|
[Sponsors] |
November 3, 2013, 19:58 |
probe one quantity using libsampling.so
|
#1 |
Senior Member
Join Date: Jan 2013
Posts: 372
Rep Power: 14 |
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. |
|
November 4, 2013, 02:07 |
|
#2 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21 |
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.
|
|
November 4, 2013, 03:55 |
|
#3 | |
Senior Member
Join Date: Jan 2013
Posts: 372
Rep Power: 14 |
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:
|
||
|
|
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 |