CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Monitor Velocities (https://www.cfd-online.com/Forums/openfoam/80912-monitor-velocities.html)

elisenda October 11, 2010 07:21

Monitor Velocities
 
Dear all,

I would like to monitor velocity and pressure of some cells during simulation.
I don't know how I can do that.

Can every body help me?
Do I need to include any function into the controlDict file? Which function?

Thanks in advance and regards,
Elisenda

peterwy October 11, 2010 07:28

Quote:

Originally Posted by elisenda (Post 278661)
Dear all,

I would like to monitor velocity and pressure of some cells during simulation.
I don't know how I can do that.

Can every body help me?
Do I need to include any function into the controlDict file? Which function?

Thanks in advance and regards,
Elisenda

e.g. here you find a piece of code out of a controlDict file (look at the tutorials):
functions
{
probes
{
// Where to load it from
functionObjectLibs ( "libsampling.so" );

type probes;

// Name of the directory for probe data
name probes;
probeLocations
(
( 1e-06 0 0.01 ) // at inlet
( 0.21 -0.20999 0.01 ) // at outlet1
( 0.21 0.20999 0.01 ) // at outlet2
( 0.21 0 0.01 ) // at central block
);

// Fields to be probed
fields ( p U );

// Write at same frequency as fields
outputControl outputTime;
outputInterval 1;
}
}

If you would like to see more examples, just look for controlDicts with the keyword functionObject. You will probably find a lot of examples and most cases will be covered with this.

Best Regards,
Peter

FG_HSRM October 11, 2010 10:03

There is an alternative way to do it, that is not so efficient as Peter's, but sometimes it is quite helpful.

Paraview also include an Probefunction/ -filter, that can do the job. The advantage is that it can be done after the simulation is already finished.
Regards
fritz


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