This change formalises the usage of the "log" keyword in function objects. By default, logging to stdout is activated when running "postProcess" or "<solver> -postProcess", and deactivated when a function is being executed as part of a run. This behaviour can now be overridden in the function object dictionary when operating in either mode.
31 lines
927 B
C++
31 lines
927 B
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
type fieldValueDelta;
|
|
libs ("libfieldFunctionObjects.so");
|
|
|
|
writeControl timeStep;
|
|
writeInterval 1
|
|
|
|
operation subtract;
|
|
|
|
region1
|
|
{
|
|
#includeEtc "caseDicts/postProcessing/surfaceFieldValue/surfaceRegion.cfg"
|
|
operation areaAverage;
|
|
fields (p);
|
|
}
|
|
region2
|
|
{
|
|
#includeEtc "caseDicts/postProcessing/surfaceFieldValue/surfaceRegion.cfg"
|
|
operation areaAverage;
|
|
fields (p);
|
|
}
|
|
|
|
// ************************************************************************* //
|