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,
// Where to load it from
functionObjectLibs ( "libsampling.so" );
// Name of the directory for probe data
( 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
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.
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.
|All times are GMT -4. The time now is 12:56.|