Skip to main content

momentumError

Description

The momentumError function object computes balance terms for the steady momentum equation.

Operands

OperandTypeLocation
input--
output file--
output fieldvolVectorField$FOAM_CASE/<time>/<file>

Usage

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

momentumError1
{
// Mandatory entries (unmodifiable)
type momentumError;
libs (fieldFunctionObjects);

// Optional entries (runtime modifiable)
p <pName>;
U <UName>;
phi <phiName>;

// 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: momentumErrorwordyes-
libsLibrary name: fieldFunctionObjectswordyes-
pName of pressure fieldwordnop
UName of velocity fieldwordnoU
phiName of flux fieldwordnophi

The inherited entries are elaborated in:

Usage by the postProcess utility is not available.

Further information

Tutorial:

Source code:

API:

History: Introduced in version v2006