CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   SimpleFOAM how to plot the real pressures (not adimensionalized by density) (http://www.cfd-online.com/Forums/openfoam-post-processing/108825-simplefoam-how-plot-real-pressures-not-adimensionalized-density.html)

alsdia November 2, 2012 05:37

SimpleFOAM how to plot the real pressures (not adimensionalized by density)
 
3 Attachment(s)
Hello,

I was making a comparison between StarCCM+ and simpleFOAM using a sphere.
In simpleFoam dimensions of pressure become pressure divided by density.
But I would like to obtain in Paraview a plot with the real pressures.

1) is there a way in Paraview to multiply all the pressure field by the density?
or
2) is it possible to customize simpleFOAM in such a way that before results are written, all pressures are multiplied by the density? Which file should be modified simpleFoam.C or createFields.H or something else and how?
or other ideas?

-----------------------------------------------------------------------------------------------------------------------
reference
(http://openfoamwiki.net/index.php/Ma...ble_solvers.3F
=> simpleFoam sphere max pressure * 1.205 = 106.399 * 1.205 =128.2108Pa ~ 129.1Pa of StarCCM)
sphere case @
https://www.dropbox.com/sh/gg1ypj0c1...vYI_k/OpenFOAM

sail November 2, 2012 06:23

Quote:

Originally Posted by alsdia (Post 389823)
Hello,

1) is there a way in Paraview to multiply all the pressure field by the density?
or

add the filter calculator, there you can multiply your pressure by the density


All times are GMT -4. The time now is 19:20.