etc/caseDicts/postProcessing: simplified configuration files

This commit is contained in:
Henry Weller
2016-06-13 17:03:06 +01:00
parent c201df1284
commit b758db8882
47 changed files with 231 additions and 371 deletions

View File

@ -32,7 +32,7 @@ Solution:
sub-dictionary in the case controlDict file, e.g. sub-dictionary in the case controlDict file, e.g.
functions functions
{ {
#includeEtc "caseDicts/postProcessing/flowRate/flowRatePatch" #includeFunc flowRatePatch
... other function objects here ... ... other function objects here ...
} }

View File

@ -10,15 +10,12 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
CourantNo type CourantNo;
{ libs ("libfieldFunctionObjects.so");
type CourantNo;
libs ("libfieldFunctionObjects.so");
field phi; field phi;
executeControl writeTime; executeControl writeTime;
writeControl writeTime; writeControl writeTime;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -12,15 +12,12 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
Lambda2 type Lambda2;
{ libs ("libfieldFunctionObjects.so");
type Lambda2;
libs ("libfieldFunctionObjects.so");
field U; field U;
executeControl writeTime; executeControl writeTime;
writeControl writeTime; writeControl writeTime;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,15 +10,12 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
MachNo type MachNo;
{ libs ("libfieldFunctionObjects.so");
type MachNo;
libs ("libfieldFunctionObjects.so");
field U; field U;
executeControl writeTime; executeControl writeTime;
writeControl writeTime; writeControl writeTime;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,15 +10,12 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
PecletNo type PecletNo;
{ libs ("libfieldFunctionObjects.so");
type PecletNo;
libs ("libfieldFunctionObjects.so");
field phi; field phi;
executeControl writeTime; executeControl writeTime;
writeControl writeTime; writeControl writeTime;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,15 +10,12 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
Q type Q;
{ libs ("libfieldFunctionObjects.so");
type Q;
libs ("libfieldFunctionObjects.so");
field U; field U;
executeControl writeTime; executeControl writeTime;
writeControl writeTime; writeControl writeTime;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,15 +10,12 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
R type turbulenceFields;
{ libs ("libfieldFunctionObjects.so");
type turbulenceFields;
libs ("libfieldFunctionObjects.so");
field R; field R;
executeControl writeTime; executeControl writeTime;
writeControl writeTime; writeControl writeTime;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,15 +10,12 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
components type components;
{ libs ("libfieldFunctionObjects.so");
type components;
libs ("libfieldFunctionObjects.so");
field <fieldName>; field <fieldName>;
executeControl writeTime; executeControl writeTime;
writeControl writeTime; writeControl writeTime;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,15 +10,12 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
div type div;
{ libs ("libfieldFunctionObjects.so");
type div;
libs ("libfieldFunctionObjects.so");
field <fieldName>; field <fieldName>;
executeControl writeTime; executeControl writeTime;
writeControl writeTime; writeControl writeTime;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,15 +10,12 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
enstrophy type enstrophy;
{ libs ("libfieldFunctionObjects.so");
type enstrophy;
libs ("libfieldFunctionObjects.so");
field U; field U;
executeControl writeTime; executeControl writeTime;
writeControl writeTime; writeControl writeTime;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -13,15 +13,12 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
flowType type flowType;
{ libs ("libfieldFunctionObjects.so");
type flowType;
libs ("libfieldFunctionObjects.so");
field U; field U;
executeControl writeTime; executeControl writeTime;
writeControl writeTime; writeControl writeTime;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,15 +10,12 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
grad type grad;
{ libs ("libfieldFunctionObjects.so");
type grad;
libs ("libfieldFunctionObjects.so");
field <fieldName>; field <fieldName>;
executeControl writeTime; executeControl writeTime;
writeControl writeTime; writeControl writeTime;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,15 +10,12 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
mag type mag;
{ libs ("libfieldFunctionObjects.so");
type mag;
libs ("libfieldFunctionObjects.so");
field <fieldName>; field <fieldName>;
executeControl writeTime; executeControl writeTime;
writeControl writeTime; writeControl writeTime;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,15 +10,12 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
magSqr type magSqr;
{ libs ("libfieldFunctionObjects.so");
type magSqr;
libs ("libfieldFunctionObjects.so");
field <fieldName>; field <fieldName>;
executeControl writeTime; executeControl writeTime;
writeControl writeTime; writeControl writeTime;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -11,14 +11,11 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
randomise #includeEtc "caseDicts/postProcessing/fields/randomise.cfg"
{
#includeEtc "caseDicts/postProcessing/fields/randomise.cfg"
field <fieldName>; field <fieldName>;
// Set the magnitude of the perturbation // Set the magnitude of the perturbation
magPerturbation <scalar>; magPerturbation <scalar>;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,15 +10,12 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
turbulenceFields type turbulenceFields;
{ libs ("libfieldFunctionObjects.so");
type turbulenceFields;
libs ("libfieldFunctionObjects.so");
fields (<field names>); fields (<field names>);
executeControl writeTime; executeControl writeTime;
writeControl writeTime; writeControl writeTime;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,15 +10,12 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
vorticity type vorticity;
{ libs ("libfieldFunctionObjects.so");
type vorticity;
libs ("libfieldFunctionObjects.so");
field U; field U;
executeControl writeTime; executeControl writeTime;
writeControl writeTime; writeControl writeTime;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -11,13 +11,10 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
wallShearStress type wallShearStress;
{ libs ("libfieldFunctionObjects.so");
type wallShearStress;
libs ("libfieldFunctionObjects.so");
executeControl writeTime; executeControl writeTime;
writeControl writeTime; writeControl writeTime;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,14 +10,11 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
writeObjects type writeObjects;
{ libs ("libutilityFunctionObjects.so");
type writeObjects;
libs ("libutilityFunctionObjects.so");
objects (<object names>); objects (<object names>);
writeControl writeTime; writeControl writeTime;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,13 +10,10 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
yPlus type yPlus;
{ libs ("libfieldFunctionObjects.so");
type yPlus;
libs ("libfieldFunctionObjects.so");
executeControl writeTime; executeControl writeTime;
writeControl writeTime; writeControl writeTime;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -12,11 +12,8 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
flowRatePatch name <patchName>;
{
name <patchName>;
#includeEtc "caseDicts/postProcessing/flowRate/flowRatePatch.cfg" #includeEtc "caseDicts/postProcessing/flowRate/flowRatePatch.cfg"
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -13,11 +13,8 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
volFlowRateSurface triSurface <triSurfaceFile>;
{
triSurface <triSurfaceFile>;
#includeEtc "caseDicts/postProcessing/flowRate/volFlowRateSurface.cfg" #includeEtc "caseDicts/postProcessing/flowRate/volFlowRateSurface.cfg"
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -12,22 +12,19 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
forceCoeffsCompressible patches (patch1 patch2);
{
patches (patch1 patch2);
magUInf 20; magUInf 20;
rhoInf 1.225; rhoInf 1.225;
lRef 1; lRef 1;
Aref 1; Aref 1;
liftDir (0 0 1); liftDir (0 0 1);
dragDir (1 0 0); dragDir (1 0 0);
CofR (0 0 0); CofR (0 0 0);
pitchAxis (0 1 0); pitchAxis (0 1 0);
#includeEtc "caseDicts/postProcessing/forces/forceCoeffsCompressible.cfg" #includeEtc "caseDicts/postProcessing/forces/forceCoeffsCompressible.cfg"
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -12,21 +12,18 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
forceCoeffsIncompressible patches (patch1 patch2);
{
patches (patch1 patch2);
magUInf 20; magUInf 20;
lRef 1; lRef 1;
Aref 1; Aref 1;
liftDir (0 0 1); liftDir (0 0 1);
dragDir (1 0 0); dragDir (1 0 0);
CofR (0 0 0); CofR (0 0 0);
pitchAxis (0 1 0); pitchAxis (0 1 0);
#includeEtc "caseDicts/postProcessing/forces/forceCoeffs.cfg" #includeEtc "caseDicts/postProcessing/forces/forceCoeffs.cfg"
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -11,14 +11,11 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
forcesCompressible patches (patch1 patch2);
{
patches (patch1 patch2);
CofR (0 0 0); CofR (0 0 0);
pitchAxis (0 1 0); pitchAxis (0 1 0);
#includeEtc "caseDicts/postProcessing/forces/forcesCompressible.cfg" #includeEtc "caseDicts/postProcessing/forces/forcesCompressible.cfg"
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -11,15 +11,12 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
forcesIncompressible #includeEtc "caseDicts/postProcessing/forces/forces.cfg"
{
#includeEtc "caseDicts/postProcessing/forces/forces.cfg"
rhoInf 1.225; // Fluid density rhoInf 1.225; // Fluid density
patches (patch1 patch2); patches (patch1 patch2);
CofR (0 0 0); CofR (0 0 0);
pitchAxis (0 1 0); pitchAxis (0 1 0);
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -11,16 +11,13 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
singleGraph start (0 1e-06 0);
{ end (1 1e-06 0);
start (0 1e-06 0); fields (U p);
end (1 1e-06 0);
fields (U p);
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg" #includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"
// Must be last entry // Must be last entry
#includeEtc "caseDicts/postProcessing/graphs/graph.cfg" #includeEtc "caseDicts/postProcessing/graphs/graph.cfg"
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,11 +10,8 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
cellMax #includeEtc "caseDicts/postProcessing/minMax/cellMinMax.cfg"
{
#includeEtc "caseDicts/postProcessing/minMax/cellMinMax.cfg"
fields (U p); fields (U p);
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,11 +10,8 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
cellMin #includeEtc "caseDicts/postProcessing/minMax/cellMin.cfg"
{
#includeEtc "caseDicts/postProcessing/minMax/cellMin.cfg"
fields (U p); fields (U p);
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,11 +10,8 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
faceMax #includeEtc "caseDicts/postProcessing/minMax/faceMinMax.cfg"
{
#includeEtc "caseDicts/postProcessing/minMax/faceMinMax.cfg"
fields (U p); fields (U p);
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,11 +10,8 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
faceMin #includeEtc "caseDicts/postProcessing/minMax/faceMin.cfg"
{
#includeEtc "caseDicts/postProcessing/minMax/faceMin.cfg"
fields (U p); fields (U p);
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -11,11 +11,8 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
minMaxComponents #includeEtc "caseDicts/postProcessing/minMax/minMaxComponents.cfg"
{
#includeEtc "caseDicts/postProcessing/minMax/minMaxComponents.cfg"
fields (U p); fields (U p);
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -11,11 +11,8 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
minMaxMagnitude #includeEtc "caseDicts/postProcessing/minMax/fieldMinMax.cfg"
{
#includeEtc "caseDicts/postProcessing/minMax/fieldMinMax.cfg"
fields (U p); fields (U p);
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -12,11 +12,8 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
residuals #includeEtc "caseDicts/postProcessing/numerical/residuals.cfg"
{
#includeEtc "caseDicts/postProcessing/numerical/residuals.cfg"
fields (p U); fields (p U);
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -11,12 +11,9 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
pressureDifferencePatch patch1 <patch1>;
{ patch2 <patch2>;
patch1 <patch1>;
patch2 <patch2>;
#includeEtc "caseDicts/postProcessing/pressure/pressureDifferencePatch.cfg" #includeEtc "caseDicts/postProcessing/pressure/pressureDifferencePatch.cfg"
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -11,12 +11,9 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
pressureDifferenceSurface triSurface1 <triSurface1>;
{ triSurface2 <triSurface2>;
triSurface1 <triSurface1>;
triSurface2 <triSurface2>;
#includeEtc "caseDicts/postProcessing/pressure/pressureDifferenceSurface.cfg" #includeEtc "caseDicts/postProcessing/pressure/pressureDifferenceSurface.cfg"
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -11,11 +11,8 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
staticPressure #includeEtc "caseDicts/postProcessing/pressure/staticPressure.cfg"
{
#includeEtc "caseDicts/postProcessing/pressure/staticPressure.cfg"
rhoInf 1.2; // Density to scale rhoInf 1.2; // Density to scale
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -11,11 +11,8 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
totalPressureCompressible #includeEtc "caseDicts/postProcessing/pressure/totalPressureCompressible.cfg"
{
#includeEtc "caseDicts/postProcessing/pressure/totalPressureCompressible.cfg"
pRef 0; pRef 0;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -11,12 +11,9 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
totalPressureIncompressible #includeEtc "caseDicts/postProcessing/pressure/totalPressureIncompressible.cfg"
{
#includeEtc "caseDicts/postProcessing/pressure/totalPressureIncompressible.cfg"
pRef 0.0; pRef 0.0;
rhoInf 1.2; rhoInf 1.2;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -11,20 +11,17 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
boundaryCloud fields (p U);
{
fields (p U);
points points
( (
(0 0 0) (0 0 0)
); );
maxDistance 0.1; maxDistance 0.1;
patches (".*"); patches (".*");
#includeEtc "caseDicts/postProcessing/probes/boundaryCloud.cfg" #includeEtc "caseDicts/postProcessing/probes/boundaryCloud.cfg"
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,15 +10,12 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
internalCloud fields (p U);
{ points
fields (p U); (
points (0 0 0)
( );
(0 0 0)
);
#includeEtc "caseDicts/postProcessing/probes/internalCloud.cfg" #includeEtc "caseDicts/postProcessing/probes/internalCloud.cfg"
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,15 +10,12 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
probes #includeEtc "caseDicts/postProcessing/probes/probes.cfg"
{
#includeEtc "caseDicts/postProcessing/probes/probes.cfg"
fields (p U); fields (p U);
probeLocations probeLocations
( (
(0 0 0) (0 0 0)
); );
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -14,14 +14,11 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
scalarTransport type scalarTransport;
{ libs ("libsolverFunctionObjects.so");
type scalarTransport;
libs ("libsolverFunctionObjects.so");
field s; field s;
schemesField s; schemesField s;
D 1e-09; D 1e-09;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,14 +10,10 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
patchAverage name <patchName>;
{ fields (<field names>);
name <patchName>;
fields (<field names>);
operation average;
#includeEtc "caseDicts/postProcessing/surfaceRegion/patch.cfg"
}
operation average;
#includeEtc "caseDicts/postProcessing/surfaceRegion/patch.cfg"
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,14 +10,10 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
patchIntegrate name <patchName>;
{ fields (<field names>);
name <patchName>;
fields (<field names>);
operation areaIntegrate;
#includeEtc "caseDicts/postProcessing/surfaceRegion/patch.cfg"
}
operation areaIntegrate;
#includeEtc "caseDicts/postProcessing/surfaceRegion/patch.cfg"
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,15 +10,12 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
streamlines nLines 20;
{ start (0 -4 1e-06); // Ensure that points do not coincide with
nLines 20; end (0 4 1e-06); // mesh faces, but instead lie inside cells
start (0 -4 1e-06); // Ensure that points do not coincide with fields (U p);
end (0 4 1e-06); // mesh faces, but instead lie inside cells
fields (U p);
// Must be last entry // Must be last entry
#includeEtc "caseDicts/postProcessing/visualization/streamlines.cfg" #includeEtc "caseDicts/postProcessing/visualization/streamlines.cfg"
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -14,51 +14,48 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#includeEtc "caseDicts/postProcessing/visualization/surfaces.cfg"
fields (p U);
surfaces surfaces
{ (
#includeEtc "caseDicts/postProcessing/visualization/surfaces.cfg" xNormal
{
$cuttingPlane;
}
fields (p U); yNormal
{
surfaces $cuttingPlane;
( pointAndNormalDict
xNormal
{ {
$cuttingPlane; normalVector $y; // Overrides default normalVector (1 0 0)
} } // $y: macro for (0 1 0)
}
yNormal zNormal
{
$cuttingPlane;
pointAndNormalDict
{ {
$cuttingPlane; basePoint (0 0 2); // Overrides default basePoint (0 0 0)
pointAndNormalDict normalVector $z; // $y: macro for (0 0 1)
{
normalVector $y; // Overrides default normalVector (1 0 0)
} // $y: macro for (0 1 0)
} }
}
zNormal p100
{ {
$cuttingPlane; $isosurface;
pointAndNormalDict isoField p;
{ isoValue 100;
basePoint (0 0 2); // Overrides default basePoint (0 0 0) }
normalVector $z; // $y: macro for (0 0 1)
}
}
p100 CAD
{ {
$isosurface; $patchSurface;
isoField p; patches (CAD);
isoValue 100; }
} );
CAD
{
$patchSurface;
patches (CAD);
}
);
}
// ************************************************************************* // // ************************************************************************* //