Skip to main content

vorticity

Description

The vorticity function object computes the vorticity, the curl of the velocity.

Ω=×u \vec \Omega = \nabla \times \u

where:

Ω\vec \Omega : Vorticity vector [1/s]

u\u : Velocity [m/s]

Operands

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

Usage

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

vorticity1
{
// Mandatory entries (unmodifiable)
type vorticity;
libs (fieldFunctionObjects);

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

The inherited entries are elaborated in:

Example by using the postProcess utility:

postProcess -func vorticity

Sample output

Further information

Tutorial:

Source code:

API:

Related:

History: Introduced in version v1812 ]