Skip to main content

flux

Description

The flux function object computes the flux of an input vector field.

Operands

OperandTypeLocation
input{vol,surface}VectorField$FOAM_CASE/<time>/<inpField>
output file--
output fieldsurfaceScalarField$FOAM_CASE/<time>/<outField>

Usage

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

flux1
{
// Mandatory entries (unmodifiable)
type flux;
libs (fieldFunctionObjects);

// Optional entries (runtime modifiable)
rho none;

// Optional (inherited) entries
field <field>;
result <fieldResult>;
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: fluxwordyes-
libsLibrary name: fieldFunctionObjectswordyes-
rhoName of density fieldwordnonone

The inherited entries are elaborated in:

Usage by the postProcess utility is not available.

Further information

Tutorial:

Source code:

API:

History: Introduced in version v1612+