mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
postProcessing: Replaced 'foamCalc' and the 'postCalc' utilities
with the more general and flexible 'postProcess' utility and '-postProcess' solver option
Rationale
---------
Both the 'postProcess' utility and '-postProcess' solver option use the
same extensive set of functionObjects available for data-processing
during the run avoiding the substantial code duplication necessary for
the 'foamCalc' and 'postCalc' utilities and simplifying maintenance.
Additionally consistency is guaranteed between solver data processing
and post-processing.
The functionObjects have been substantially re-written and generalized
to simplify development and encourage contribution.
Configuration
-------------
An extensive set of simple functionObject configuration files are
provided in
OpenFOAM-dev/etc/caseDicts/postProcessing
and more will be added in the future. These can either be copied into
'<case>/system' directory and included into the 'controlDict.functions'
sub-dictionary or included directly from 'etc/caseDicts/postProcessing'
using the '#includeEtc' directive or the new and more convenient
'#includeFunc' directive which searches the
'<etc>/caseDicts/postProcessing' directories for the selected
functionObject, e.g.
functions
{
#includeFunc Q
#includeFunc Lambda2
}
'#includeFunc' first searches the '<case>/system' directory in case
there is a local configuration.
Description of #includeFunc
---------------------------
Specify a functionObject dictionary file to include, expects the
functionObject name to follow (without quotes).
Search for functionObject dictionary file in
user/group/shipped directories.
The search scheme allows for version-specific and
version-independent files using the following hierarchy:
- \b user settings:
- ~/.OpenFOAM/\<VERSION\>/caseDicts/postProcessing
- ~/.OpenFOAM/caseDicts/postProcessing
- \b group (site) settings (when $WM_PROJECT_SITE is set):
- $WM_PROJECT_SITE/\<VERSION\>/caseDicts/postProcessing
- $WM_PROJECT_SITE/caseDicts/postProcessing
- \b group (site) settings (when $WM_PROJECT_SITE is not set):
- $WM_PROJECT_INST_DIR/site/\<VERSION\>/caseDicts/postProcessing
- $WM_PROJECT_INST_DIR/site/caseDicts/postProcessing
- \b other (shipped) settings:
- $WM_PROJECT_DIR/etc/caseDicts/postProcessing
An example of the \c \#includeFunc directive:
\verbatim
#includeFunc <funcName>
\endverbatim
postProcess
-----------
The 'postProcess' utility and '-postProcess' solver option provide the
same set of controls to execute functionObjects after the run either by
reading a specified set of fields to process in the case of
'postProcess' or by reading all fields and models required to start the
run in the case of '-postProcess' for each selected time:
postProcess -help
Usage: postProcess [OPTIONS]
options:
-case <dir> specify alternate case directory, default is the cwd
-constant include the 'constant/' dir in the times list
-dict <file> read control dictionary from specified location
-field <name> specify the name of the field to be processed, e.g. U
-fields <list> specify a list of fields to be processed, e.g. '(U T p)' -
regular expressions not currently supported
-func <name> specify the name of the functionObject to execute, e.g. Q
-funcs <list> specify the names of the functionObjects to execute, e.g.
'(Q div(U))'
-latestTime select the latest time
-newTimes select the new times
-noFunctionObjects
do not execute functionObjects
-noZero exclude the '0/' dir from the times list, has precedence
over the -withZero option
-parallel run in parallel
-region <name> specify alternative mesh region
-roots <(dir1 .. dirN)>
slave root directories for distributed running
-time <ranges> comma-separated time ranges - eg, ':10,20,40:70,1000:'
-srcDoc display source code in browser
-doc display application documentation in browser
-help print the usage
pimpleFoam -postProcess -help
Usage: pimpleFoam [OPTIONS]
options:
-case <dir> specify alternate case directory, default is the cwd
-constant include the 'constant/' dir in the times list
-dict <file> read control dictionary from specified location
-field <name> specify the name of the field to be processed, e.g. U
-fields <list> specify a list of fields to be processed, e.g. '(U T p)' -
regular expressions not currently supported
-func <name> specify the name of the functionObject to execute, e.g. Q
-funcs <list> specify the names of the functionObjects to execute, e.g.
'(Q div(U))'
-latestTime select the latest time
-newTimes select the new times
-noFunctionObjects
do not execute functionObjects
-noZero exclude the '0/' dir from the times list, has precedence
over the -withZero option
-parallel run in parallel
-postProcess Execute functionObjects only
-region <name> specify alternative mesh region
-roots <(dir1 .. dirN)>
slave root directories for distributed running
-time <ranges> comma-separated time ranges - eg, ':10,20,40:70,1000:'
-srcDoc display source code in browser
-doc display application documentation in browser
-help print the usage
The functionObjects to execute may be specified on the command-line
using the '-func' option for a single functionObject or '-funcs' for a
list, e.g.
postProcess -func Q
postProcess -funcs '(div(U) div(phi))'
In the case of 'Q' the default field to process is 'U' which is
specified in and read from the configuration file but this may be
overridden thus:
postProcess -func 'Q(Ua)'
as is done in the example above to calculate the two forms of the divergence of
the velocity field. Additional fields which the functionObjects may depend on
can be specified using the '-field' or '-fields' options.
The 'postProcess' utility can only be used to execute functionObjects which
process fields present in the time directories. However, functionObjects which
depend on fields obtained from models, e.g. properties derived from turbulence
models can be executed using the '-postProcess' of the appropriate solver, e.g.
pisoFoam -postProcess -func PecletNo
or
sonicFoam -postProcess -func MachNo
In this case all required fields will have already been read so the '-field' or
'-fields' options are not be needed.
Henry G. Weller
CFD Direct Ltd.
This commit is contained in:
@ -32,7 +32,7 @@ Solution:
|
||||
sub-dictionary in the case controlDict file, e.g.
|
||||
functions
|
||||
{
|
||||
#include "flowRatePatch"
|
||||
#includeFunc flowRatePatch
|
||||
... other function objects here ...
|
||||
}
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/faceSource/faceSource.cfg"
|
||||
#includeFunc faceSource.cfg
|
||||
|
||||
source faceZone;
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ patchAverage
|
||||
fields (p);
|
||||
|
||||
operation average;
|
||||
#includeEtc "caseDicts/postProcessing/faceSource/patchSource.cfg";
|
||||
#includeFunc patchSource.cfg;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/faceSource/faceSource.cfg"
|
||||
#includeFunc faceSource.cfg
|
||||
|
||||
source patch;
|
||||
sourceName $patch;
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/faceSource/faceSource.cfg"
|
||||
#includeFunc faceSource.cfg
|
||||
|
||||
source sampledSurface;
|
||||
|
||||
|
||||
20
etc/caseDicts/postProcessing/fields/CourantNo
Normal file
20
etc/caseDicts/postProcessing/fields/CourantNo
Normal file
@ -0,0 +1,20 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
CourantNo
|
||||
{
|
||||
type CourantNo;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
field phi;
|
||||
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -9,7 +9,9 @@
|
||||
Lambda2
|
||||
{
|
||||
type Lambda2;
|
||||
libs ("libutilityFunctionObjects.so");
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
field U;
|
||||
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
|
||||
20
etc/caseDicts/postProcessing/fields/MachNo
Normal file
20
etc/caseDicts/postProcessing/fields/MachNo
Normal file
@ -0,0 +1,20 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
MachNo
|
||||
{
|
||||
type MachNo;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
field U;
|
||||
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
20
etc/caseDicts/postProcessing/fields/PecletNo
Normal file
20
etc/caseDicts/postProcessing/fields/PecletNo
Normal file
@ -0,0 +1,20 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
PecletNo
|
||||
{
|
||||
type PecletNo;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
field phi;
|
||||
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -9,7 +9,9 @@
|
||||
Q
|
||||
{
|
||||
type Q;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
field U;
|
||||
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
|
||||
@ -9,7 +9,9 @@
|
||||
components
|
||||
{
|
||||
type components;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
field <fieldName>;
|
||||
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
|
||||
@ -9,7 +9,9 @@
|
||||
div
|
||||
{
|
||||
type div;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
field <fieldName>;
|
||||
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
|
||||
20
etc/caseDicts/postProcessing/fields/enstrophy
Normal file
20
etc/caseDicts/postProcessing/fields/enstrophy
Normal file
@ -0,0 +1,20 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
enstrophy
|
||||
{
|
||||
type enstrophy;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
field U;
|
||||
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
20
etc/caseDicts/postProcessing/fields/flowType
Normal file
20
etc/caseDicts/postProcessing/fields/flowType
Normal file
@ -0,0 +1,20 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
flowType
|
||||
{
|
||||
type flowType;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
field U;
|
||||
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
20
etc/caseDicts/postProcessing/fields/grad
Normal file
20
etc/caseDicts/postProcessing/fields/grad
Normal file
@ -0,0 +1,20 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
grad
|
||||
{
|
||||
type grad;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
field <fieldName>;
|
||||
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
20
etc/caseDicts/postProcessing/fields/mag
Normal file
20
etc/caseDicts/postProcessing/fields/mag
Normal file
@ -0,0 +1,20 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
mag
|
||||
{
|
||||
type mag;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
field <fieldName>;
|
||||
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
20
etc/caseDicts/postProcessing/fields/magSqr
Normal file
20
etc/caseDicts/postProcessing/fields/magSqr
Normal file
@ -0,0 +1,20 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
magSqr
|
||||
{
|
||||
type magSqr;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
field <fieldName>;
|
||||
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -8,7 +8,9 @@
|
||||
|
||||
randomise
|
||||
{
|
||||
#includeEtc "caseDicts/postProcessing/fields/randomise.cfg"
|
||||
#includeFunc "randomise.cfg"
|
||||
|
||||
field <fieldName>;
|
||||
|
||||
// Set the magnitude of the perturbation
|
||||
magPerturbation <scalar>;
|
||||
|
||||
20
etc/caseDicts/postProcessing/fields/vorticity
Normal file
20
etc/caseDicts/postProcessing/fields/vorticity
Normal file
@ -0,0 +1,20 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
vorticity
|
||||
{
|
||||
type vorticity;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
field U;
|
||||
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -14,7 +14,7 @@ flowRatePatch
|
||||
{
|
||||
patch <patchName>;
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/flowRate/flowRatePatch.cfg"
|
||||
#includeFunc flowRatePatch.cfg
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/faceSource/patchSource.cfg"
|
||||
#includeFunc patchSource.cfg
|
||||
|
||||
fields (phi);
|
||||
operation sum;
|
||||
|
||||
@ -14,7 +14,7 @@ volFlowRateSurface
|
||||
{
|
||||
triSurface <triSurfaceFile>;
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/flowRate/volFlowRateSurface.cfg"
|
||||
#includeFunc volFlowRateSurface.cfg
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/faceSource/surfaceSource.cfg"
|
||||
#includeFunc surfaceSource.cfg
|
||||
|
||||
fields (U);
|
||||
operation areaNormalIntegrate;
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/forces/forces.cfg"
|
||||
#includeFunc forces.cfg
|
||||
|
||||
type forceCoeffs;
|
||||
rhoInf 1; // Redundant for incompressible
|
||||
|
||||
@ -21,7 +21,7 @@ forceCoeffs
|
||||
CofR (0 0 0);
|
||||
pitchAxis (0 1 0);
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/forces/forceCoeffsCompressible.cfg"
|
||||
#includeFunc forceCoeffsCompressible.cfg
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -6,6 +6,6 @@
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/forces/forceCoeffs.cfg"
|
||||
#includeFunc forceCoeffs.cfg
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -20,7 +20,7 @@ forceCoeffs
|
||||
CofR (0 0 0);
|
||||
pitchAxis (0 1 0);
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/forces/forceCoeffs.cfg"
|
||||
#includeFunc forceCoeffs.cfg
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -13,7 +13,7 @@ forces
|
||||
CofR (0 0 0);
|
||||
pitchAxis (0 1 0);
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/forces/forcesCompressible.cfg"
|
||||
#includeFunc forcesCompressible.cfg
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/forces/forces.cfg"
|
||||
#includeFunc forces.cfg
|
||||
|
||||
rhoInf 1; // Redundant
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
forces
|
||||
{
|
||||
#includeEtc "caseDicts/postProcessing/forces/forces.cfg"
|
||||
#includeFunc forces.cfg
|
||||
|
||||
rhoInf 1.225; // Fluid density
|
||||
patches (patch1 patch2);
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"
|
||||
#includeFunc sampleDict.cfg
|
||||
|
||||
sets
|
||||
(
|
||||
|
||||
@ -12,10 +12,10 @@ graph
|
||||
end (1 1e-06 0);
|
||||
fields (U p);
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"
|
||||
#includeFunc sampleDict.cfg
|
||||
|
||||
// Must be last entry
|
||||
#includeEtc "caseDicts/postProcessing/graphs/graph.cfg"
|
||||
#includeFunc graph.cfg
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
cellMax
|
||||
{
|
||||
#includeEtc "caseDicts/postProcessing/minMax/cellMinMax.cfg"
|
||||
#includeFunc cellMinMax.cfg
|
||||
|
||||
fields (U p);
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
cellMin
|
||||
{
|
||||
#includeEtc "caseDicts/postProcessing/minMax/cellMin.cfg"
|
||||
#includeFunc cellMin.cfg
|
||||
|
||||
fields (U p);
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/minMax/cellMinMax.cfg"
|
||||
#includeFunc cellMinMax.cfg
|
||||
operation min;
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
faceMax
|
||||
{
|
||||
#includeEtc "caseDicts/postProcessing/minMax/faceMinMax.cfg"
|
||||
#includeFunc faceMinMax.cfg
|
||||
|
||||
fields (U p);
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
faceMin
|
||||
{
|
||||
#includeEtc "caseDicts/postProcessing/minMax/faceMin.cfg"
|
||||
#includeFunc faceMin.cfg
|
||||
|
||||
fields (U p);
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/minMax/faceMinMax.cfg"
|
||||
#includeFunc faceMinMax.cfg
|
||||
operation min;
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
minMaxComponents
|
||||
{
|
||||
#includeEtc "caseDicts/postProcessing/minMax/minMaxComponents.cfg"
|
||||
#includeFunc minMaxComponents.cfg
|
||||
|
||||
mode components;
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/minMax/fieldMinMax.cfg"
|
||||
#includeFunc fieldMinMax.cfg
|
||||
mode components;
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
minMaxMagnitude
|
||||
{
|
||||
#includeEtc "caseDicts/postProcessing/minMax/fieldMinMax.cfg"
|
||||
#includeFunc fieldMinMax.cfg
|
||||
|
||||
fields (U p);
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
residuals
|
||||
{
|
||||
#includeEtc "caseDicts/postProcessing/numerical/residuals.cfg"
|
||||
#includeFunc residuals.cfg
|
||||
|
||||
fields (p U);
|
||||
}
|
||||
|
||||
@ -15,7 +15,7 @@ FoamFile
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
type pressure;
|
||||
libs ("libutilityFunctionObjects.so");
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
|
||||
@ -17,13 +17,13 @@ log false;
|
||||
|
||||
source1
|
||||
{
|
||||
#includeEtc "caseDicts/postProcessing/faceSource/faceSource.cfg"
|
||||
#includeFunc faceSource.cfg
|
||||
operation areaAverage;
|
||||
fields (p);
|
||||
}
|
||||
source2
|
||||
{
|
||||
#includeEtc "caseDicts/postProcessing/faceSource/faceSource.cfg"
|
||||
#includeFunc faceSource.cfg
|
||||
operation areaAverage;
|
||||
fields (p);
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@ pressureDifferencePatch
|
||||
patch1 <patch1>;
|
||||
patch2 <patch2>;
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/pressure/pressureDifferencePatch.cfg"
|
||||
#includeFunc pressureDifferencePatch.cfg
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/pressure/pressureDifference.cfg"
|
||||
#includeFunc pressureDifference.cfg
|
||||
|
||||
source1
|
||||
{
|
||||
|
||||
@ -11,8 +11,7 @@ pressureDifferenceSurface
|
||||
triSurface1 <triSurface1>;
|
||||
triSurface2 <triSurface2>;
|
||||
|
||||
#includeEtc
|
||||
"caseDicts/postProcessing/pressure/pressureDifferenceSurface.cfg"
|
||||
#includeFunc pressureDifferenceSurface.cfg
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/pressure/pressureDifference.cfg"
|
||||
#includeFunc pressureDifference.cfg
|
||||
|
||||
source1
|
||||
{
|
||||
|
||||
@ -8,9 +8,9 @@
|
||||
|
||||
staticPressure
|
||||
{
|
||||
#includeEtc "caseDicts/postProcessing/pressure/staticPressure.cfg"
|
||||
#includeFunc staticPressure.cfg
|
||||
|
||||
rho 1.2; // Density to scale
|
||||
rhoInf 1.2; // Density to scale
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -6,11 +6,10 @@
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/pressure/pressure.cfg"
|
||||
#includeFunc pressure.cfg
|
||||
|
||||
calcTotal no;
|
||||
calcCoeff no;
|
||||
rho rhoInf;
|
||||
rhoInf $rho;
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -8,8 +8,7 @@
|
||||
|
||||
totalPressure
|
||||
{
|
||||
#includeEtc
|
||||
"caseDicts/postProcessing/pressure/totalPressureCompressible.cfg"
|
||||
#includeFunc totalPressureCompressible.cfg
|
||||
|
||||
pRef 0;
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/pressure/pressure.cfg"
|
||||
#includeFunc pressure.cfg
|
||||
|
||||
calcTotal no;
|
||||
calcCoeff no;
|
||||
|
||||
@ -8,11 +8,10 @@
|
||||
|
||||
totalPressure
|
||||
{
|
||||
#includeEtc
|
||||
"caseDicts/postProcessing/pressure/totalPressureIncompressible.cfg"
|
||||
#includeFunc totalPressureIncompressible.cfg
|
||||
|
||||
pRef 0.0;
|
||||
rho 1.2;
|
||||
pRef 0.0;
|
||||
rhoInf 1.2;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -6,11 +6,10 @@
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/pressure/pressure.cfg"
|
||||
#includeFunc pressure.cfg
|
||||
|
||||
calcTotal yes;
|
||||
calcCoeff no;
|
||||
rho rhoInf;
|
||||
rhoInf $rho;
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -19,7 +19,7 @@ boundaryCloud
|
||||
|
||||
patches (".*");
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/probes/boundaryCloud.cfg"
|
||||
#includeFunc boundaryCloud.cfg
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/probes/cloud.cfg"
|
||||
#includeFunc cloud.cfg
|
||||
|
||||
sets
|
||||
(
|
||||
|
||||
@ -14,7 +14,7 @@ internalCloud
|
||||
(0 0 0)
|
||||
);
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/probes/internalCloud.cfg"
|
||||
#includeFunc internalCloud.cfg
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/probes/cloud.cfg"
|
||||
#includeFunc cloud.cfg
|
||||
|
||||
sets
|
||||
(
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
probes
|
||||
{
|
||||
#includeEtc "caseDicts/postProcessing/probes/probes.cfg"
|
||||
#includeFunc probes.cfg
|
||||
|
||||
fields (p U);
|
||||
probeLocations
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
T
|
||||
{
|
||||
#includeEtc "caseDicts/postProcessing/scalarTransport/scalarTransport.cfg"
|
||||
#includeFunc scalarTransport.cfg
|
||||
|
||||
userDT true;
|
||||
DT 1e-09;
|
||||
|
||||
@ -20,6 +20,6 @@ writeInterval 1e-2;
|
||||
// transportProperties settings
|
||||
DT DT [ 0 2 -1 0 0 0 0 ] 1e-9;
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/scalarTransport/scalarTransportDict.cfg"
|
||||
#includeFunc scalarTransportDict.cfg
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -14,7 +14,7 @@ streamlines
|
||||
fields (U p);
|
||||
|
||||
// Must be last entry
|
||||
#includeEtc "caseDicts/postProcessing/visualization/streamlines.cfg"
|
||||
#includeFunc streamlines.cfg
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
surfaces
|
||||
{
|
||||
#includeEtc "caseDicts/postProcessing/visualization/surfaces.cfg"
|
||||
#includeFunc surfaces.cfg
|
||||
|
||||
fields (p U);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user