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

probe one quantity using libsampling.so

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 3, 2013, 20:58
Question probe one quantity using libsampling.so
  #1
Senior Member
 
Join Date: Jan 2013
Posts: 284
Rep Power: 6
openfoammaofnepo is on a distinguished road
Dear All,

I am doing an unsteady simulation and for each time instant, I calculate the maximum temperature for the whole domain:

scalar Tmax=max(T).value;

Then I add Tmax in the list of probe:


probes
{
type probes;
functionObjectLibs ("libsampling.so");
enabled true;
outputControl timeStep;
outputInterval 1;

fields
(
rho
Tmax
);


probeLocations
(
#include "probeLocations"
);

}
The density can be correctly extracted for each time step however Tmax cannot. Does anybody how to make Tmax also output using probe? Thank you very much.
openfoammaofnepo is offline   Reply With Quote

Old   November 4, 2013, 03:07
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 13
Bernhard is on a distinguished road
Why would you probe a global variable like Tmax locally, that doesn't make sense? Also, where did you put this line where you define? I think you have many options here with a function object: 1. coded function object, which is default OpenFOAM syntax in newer version or 2. swakExpression, which makes it really easy to track a maximum. 3. I can imagine there is a default function object which you could use instead of probes.
Bernhard is offline   Reply With Quote

Old   November 4, 2013, 04:55
Default
  #3
Senior Member
 
Join Date: Jan 2013
Posts: 284
Rep Power: 6
openfoammaofnepo is on a distinguished road
Thank you very much. Yes I know but I would like to output this global quantity into a file not just print on the monitor. I do not really understand the function object you mentioned. Could you please nicely say it more specifically?

Thank you.

Quote:
Originally Posted by Bernhard View Post
Why would you probe a global variable like Tmax locally, that doesn't make sense? Also, where did you put this line where you define? I think you have many options here with a function object: 1. coded function object, which is default OpenFOAM syntax in newer version or 2. swakExpression, which makes it really easy to track a maximum. 3. I can imagine there is a default function object which you could use instead of probes.
openfoammaofnepo 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Line Probe Smoothing badger1 STAR-CCM+ 1 May 21, 2013 22:36
Heat transfer/Temperature along a tube and probe. moienfar-CFD FLUENT 4 March 4, 2013 12:29
Calculate a quantity based on another quantity solved by Openfoam. hz283 OpenFOAM 10 December 27, 2012 02:47
new atmospheric probe design manobianco Main CFD Forum 0 May 12, 2012 15:04
Using Probe for part of a patch ndr OpenFOAM Running, Solving & CFD 5 November 8, 2009 04:47


All times are GMT -4. The time now is 19:45.