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. |
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.
|
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:
|
All times are GMT -4. The time now is 04:00. |