CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   finding Min of pressure after the simulation is finished (https://www.cfd-online.com/Forums/openfoam/123742-finding-min-pressure-after-simulation-finished.html)

mechy September 19, 2013 16:28

finding Min of pressure after the simulation is finished
 
Hi all
I have simulated a flow by pimpleFoam and I need to find the min and max of pressure vs time.
I have found that during run, I can use function objects (fieldMinMax) for that
at now, how can I find min and max of pressure ?


Best Regards

cfdonline2mohsen September 20, 2013 03:24

Dear mechy

Max and Min of all the variables that are solved will be written on the monitor screen (for example Ux, Uy,Uz,P,....)
You can use:
Code:

| tee log -a
to write these values in a log file.
then you can use some tools like PyFoam to plot them versus time during or after the run:
Code:

pyFoamPlotRunner.py and pyFoamPlotWatcher.py
See the below link for more info:
http://openfoamwiki.net/index.php?title=Contrib_PyFoam

Phicau September 20, 2013 03:58

Hi mechy,

function objects can be used even when the simulation is finished. Take a look at execFlowFunctionObjects utility.

Best,

Pablo


All times are GMT -4. The time now is 07:48.