Skip to main content

enstrophy

Description

The enstrophy function object computes the enstrophy of an input volVectorField.

Enstrophy, i.e. ξ\xi:

ξ=0.5×u2 \xi = 0.5 \mag{\nabla \times \u}^2

where u\u is the input volVectorField.

Operands

OperandTypeLocation
inputvolVectorField$FOAM_CASE/<time>/<inpField>
output file--
output fieldvolScalarField$FOAM_CASE/<time>/<outField>

Usage

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

enstrophy1
{
// Mandatory entries (unmodifiable)
type enstrophy;
libs (fieldFunctionObjects);

// Optional (inherited) entries
field <inputField>;
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: enstrophywordyes-
libsLibrary name: fieldFunctionObjectswordyes-

The inherited entries are elaborated in:

Example by using the postProcess utility:

postProcess -func enstrophy

Further information

Tutorial:

Source code:

API:

History: Introduced in version v1612+