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

probe one quantity using libsampling.so

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 3, 2013, 19:58
Question probe one quantity using libsampling.so
  #1
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
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, 02:07
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
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, 03:55
Default
  #3
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Probe for part of a patch ndr OpenFOAM Running, Solving & CFD 7 April 4, 2019 06:26
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 11:29
Calculate a quantity based on another quantity solved by Openfoam. hz283 OpenFOAM 10 December 27, 2012 01:47
new atmospheric probe design manobianco Main CFD Forum 0 May 12, 2012 15:04


All times are GMT -4. The time now is 00:38.