Skip to main content

flowType

Description

The flowType function object computes the flow type indicator of an input velocity field.

The flow type indicator is obtained according to the following equation:

λ=DΩD+Ω \lambda = \frac{\mag{\tensor D} - \mag{\tensor \Omega}}{ \mag{\tensor D} + \mag{\tensor \Omega}}

where

λ\lambda : Flow type indicator

D\tensor D : Symmetric part of the gradient tensor of velocity

Ω\tensor \Omega : Skew-symmetric part of the gradient tensor of velocity

The flow type indicator values mean:

-1 : rotational flow

0 : simple shear flow

1 : planar extensional flow

Operands

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

Usage

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

flowType1
{
// Mandatory entries (unmodifiable)
type flowType;
libs (fieldFunctionObjects);

// 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: flowTypewordyes-
libsLibrary name: fieldFunctionObjectswordyes-

The inherited entries are elaborated in:

Example by using the postProcess utility:

postProcess -func flowType

Further information

Tutorial:

Source code:

API:

History: Introduced in version v1606+