CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Monitor Velocities

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 11, 2010, 07:21
Default Monitor Velocities
  #1
New Member
 
elisenda lopez
Join Date: Dec 2009
Posts: 14
Rep Power: 7
elisenda is on a distinguished road
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
elisenda is offline   Reply With Quote

Old   October 11, 2010, 07:28
Default
  #2
New Member
 
Peter Wiemeyer
Join Date: Sep 2009
Location: Germany, Munich
Posts: 22
Rep Power: 7
peterwy is on a distinguished road
Quote:
Originally Posted by elisenda View Post
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
peterwy is offline   Reply With Quote

Old   October 11, 2010, 10:03
Default
  #3
Member
 
Join Date: Dec 2009
Posts: 36
Rep Power: 7
FG_HSRM is on a distinguished road
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
FG_HSRM is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 21:58.