Files
openfoam/tutorials/compressible/rhoSimpleFoam/gasMixing/injectorPipe/system/surfaceFieldValue.cfg
Mark Olesen 03e6aa1a6d ENH: replace surfMesh/fields support with polySurface/fields support (#1206)
- fits better into the general sampling framework, improves flexibilty
  and allows code reduction.

ENH: include surface fields on sampledSurfaces that support it
2019-02-12 13:54:02 +01:00

102 lines
2.2 KiB
C++

// -*- C++ -*-
// Averaging of volume fields or fields on an externally loaded surface.
//
// fields [required]
// The fields and the specification for the type of averaging needed.
//
// The 'execute' control triggers the averaging.
// The 'output/write' control is optional.
//
// The averaging can be optionally restart in two ways:
//
// periodicRestart / restartPeriod:
// - reset at defined intervals
//
// restartTime:
// - a 'one-shot' reset at a particular time
//
__settings_avg
{
type fieldAverage;
libs ("libfieldFunctionObjects.so");
log on;
enabled true;
executeControl timeStep;
writeControl outputTime;
writeInterval 1;
// restart behaviour
resetOnStartUp true;
resetOnOutput false;
// periodicRestart true;
// restartPeriod 0.002;
// Use the same values for all entries
meanOnly
{
mean on;
prime2Mean off;
base time;
}
fields
(
rho
{
$meanOnly;
}
U
{
$meanOnly;
}
tracer0
{
$meanOnly;
}
);
}
// restartTime:
// - a 'one-shot' reset at a particular time
//
// fields [required]
// Pairs of fields to use for calculating the deviation.
// The fields must already exist on the surfaces.
//
// weightField [optional]
// A scalar or vector field for weighting.
//
// postOperation [optional]
// Modify the results by particular operations.
// (none | sqrt)
// The sqrt operation is useful when determining RMS values.
//
// The 'output/write' control triggers the calculation.
__settings_stats
{
type surfaceFieldValue;
libs ("libfieldFunctionObjects.so");
log on;
enabled true;
writeControl timeStep;
writeInterval 1;
writeFields false;
surfaceFormat vtk;
// writeArea true;
// resetOnStartUp true;
// resetOnOutput false;
// periodicRestart true;
// restartPeriod 0.0005;
}
// ************************************************************************* //