Skip to main content

readFields

Description

The readFields function object reads fields from the time directories and adds them to the mesh database for further post-processing.

Operands

OperandTypeLocation
inputvol<Type>Field$FOAM_CASE/<time>/<inpField>
output file--
output fieldvol<Type>FieldMesh database

where <Type>=Scalar/Vector/SphericalTensor/SymmTensor/Tensor.

Usage

Example of the readFields function object by using functions sub-dictionary in system/controlDict file:

readFields1
{
// Mandatory entries (unmodifiable)
type readFields;
libs (fieldFunctionObjects);

// Mandatory entries (runtime modifiable)
fields (<field1> <field2> ... <fieldN>);

// Optional entries (runtime modifiable)
readOnStart true;

// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl timeStep;
writeInterval 1;
}

where the entries mean:

PropertyDescriptionTypeRequiredDefault
typeType name: readFieldswordyes-
libsLibrary name: fieldFunctionObjectswordyes-
fieldsNames of the operand fieldswordListyes-
readOnStartFlag to start reading on start-upboolnotrue

The inherited entries are elaborated in:

Usage by the postProcess utility is not available.

Further information

Tutorial:

Source code:

API:

History: Introduced in version v1606+