CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Monitor the total pressure in a point during solver iterations (http://www.cfd-online.com/Forums/openfoam-solving/63298-monitor-total-pressure-point-during-solver-iterations.html)

Horeai April 3, 2009 13:21

Monitor the total pressure in a point during solver iterations
 
Hi everyone,

I want to add some code to be able to monitor the total pressure, f.e., during the solver iterations at inlet. But, I want to monitor it in only one point, node or face at the Inlet or Outlet.

Does anybody has experience, code developed, with this kind of problems?
Could somebody give an advice?

Thanks

Horea

kcjarvis56 April 5, 2009 00:25

In the controlDict add the following code:

functions
(

probes1
{
type probes; // Type of functionObject
// Where to load it from (if not already in solver)
functionObjectLibs ("libsampling.so");
setFormat gnuplot;
surfaceFormat raw;

probeLocations // Locations to be probed. runTime modifiable!
(
(0.3 2.75 0.0)
(0.3 .5 0.0)
(0.3 1 0.0)
);
// Fields to be probed. runTime modifiable!
fields
(
rho
k
U
T
p
);
}
);

This works with OpenFoam 1.5 but I'm not sure if it works with previous versions.
The function will create a probes1 directory with in that directory you will find another directory with the start time. With in the start time directory you will find files for each variable probed (i.e "p") with the value of each point you probed for vs time for each time step.

Hope this helps.
Kirk

Horeai April 6, 2009 09:54

Thank you Kirk!
I'll try it. I am using 1.5 so must work !

Horea

chbenz April 6, 2009 13:02

Hi,

it also works for OF-1.4.1-dev.

Christof


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