CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

paraView - Animations and measurements

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 13, 2020, 23:10
Default paraView - Animations and measurements
  #1
New Member
 
Join Date: Nov 2019
Posts: 24
Rep Power: 6
Nic86 is on a distinguished road
Hello everyone,
I have run an InterFoam simulation and now I am reviewing the results on paraView.

I have 2 questions:

1) The simulation was run for 600seconds but paraView can display only 30 time steps. As a result of this, I can only see the animation each 20sec (600/30). Is there a way to visualize every single time step?

2) In order to display only the water fraction, I have set a scalar filter. I am now trying to measure the water level for different cross sections. To do so , I created clipped views and I am using the measuring tool to measure the levels. The problem is that I don't know how to set the camera perpendicular to the cutting plane :S Also, in order to be accurate with the measurement, I'd like to set the measuring tool to be flat on the plane rather than in the 3d Space. How can this be done? Is there a better way to measure levels?

Thank you to those who will respond.
Nic86 is offline   Reply With Quote

Old   January 14, 2020, 07:19
Default
  #2
Senior Member
 
Join Date: Mar 2014
Posts: 112
Rep Power: 12
mzzmrt is on a distinguished road
As a general answer;

1. It is controlled by two paramaters in the controlDict file: deltaT and writeInterval. If you change your existing writeInterval value 1/30 times you can get 600s data for every second but this will also mean about 30times bigger post file. If your writeInterval is already small you need the change deltaT also.

2. In short, yes. But a little hard to describe. It is better to play with Paraview functions to familiarize yourself. For example, choose a setview direction from toolbar such as x or y, later change ineraction mode in the main drawing layout window header by clickling (3D) button then click on the drawing area... You can also play with filter such as "plot on intersection curves" etc.
mzzmrt is offline   Reply With Quote

Old   January 16, 2020, 05:32
Default
  #3
Member
 
ssa
Join Date: Sep 2018
Posts: 93
Rep Power: 7
ssa_cfd is on a distinguished road
Quote:
Originally Posted by Nic86 View Post
2) In order to display only the water fraction, I have set a scalar filter. I am now trying to measure the water level for different cross sections. To do so , I created clipped views and I am using the measuring tool to measure the levels. The problem is that I don't know how to set the camera perpendicular to the cutting plane :S Also, in order to be accurate with the measurement, I'd like to set the measuring tool to be flat on the plane rather than in the 3d Space. How can this be done? Is there a better way to measure levels?

create a contour in paraview with alpha.water = 0.5
ssa_cfd is offline   Reply With Quote

Old   January 16, 2020, 06:21
Default
  #4
Senior Member
 
Join Date: Aug 2014
Location: UK
Posts: 213
Rep Power: 12
fresty is on a distinguished road
Quote:
Originally Posted by Nic86 View Post

2) In order to display only the water fraction, I have set a scalar filter. I am now trying to measure the water level for different cross sections. To do so , I created clipped views and I am using the measuring tool to measure the levels. The problem is that I don't know how to set the camera perpendicular to the cutting plane :S Also, in order to be accurate with the measurement, I'd like to set the measuring tool to be flat on the plane rather than in the 3d Space. How can this be done? Is there a better way to measure levels?
From what I know, a much more accurate way would be to use filters and calculator function. The sequence of operations (from top of my head) would be:

Contour: alpha.water
ExtractSurface(Input=Contour)
IntegrateVariables(Input=ExtractSurface)
Calculator(Input=IntegrateVariables)
CalculatorFunction = 'coordsX/Y/Z'
fresty is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 16:06.