CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   paraView - Animations and measurements (https://www.cfd-online.com/Forums/openfoam-post-processing/223500-paraview-animations-measurements.html)

Nic86 January 13, 2020 23:10

paraView - Animations and measurements
 
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.

mzzmrt January 14, 2020 07:19

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.

ssa_cfd January 16, 2020 05:32

Quote:

Originally Posted by Nic86 (Post 754571)
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

fresty January 16, 2020 06:21

Quote:

Originally Posted by Nic86 (Post 754571)

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'


All times are GMT -4. The time now is 13:53.