Script to obtain "real" static pressure (pressure times density)
Hello,
I am struggling with making the really easy scripting line which I am sure is very useful for all OpenFOAM users ! How to obtain the "real" static pressure from an openfoam incompressible solver ? So performing p*density on the relevant lines. Let's say in a bash line, it would be perfect :)! for example, my "p" file looks like PHP Code:
Quote:
PHP Code:
PHP Code:
Any idea how to set this condition in awk ? Or using sed ? Or running something in openfoam ? |
If anybody comes to find solution here like me. I have tried out the simple way in OF2012
Code:
postProcess -func "staticPressure(p, pRef=**, rho=rhoInf, rhoInf=**)" |
All times are GMT -4. The time now is 11:00. |