CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   probe one quantity using libsampling.so (https://www.cfd-online.com/Forums/openfoam/125905-probe-one-quantity-using-libsampling-so.html)

openfoammaofnepo November 3, 2013 20:58

probe one quantity using libsampling.so
 
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.

Bernhard November 4, 2013 03:07

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 November 4, 2013 04:55

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 (Post 460399)
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.



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