Skip to main content

streamFunction

Description

The streamFunction function object computes the stream function, i.e. https://w.wiki/Ncm.

Operands

OperandTypeLocation
inputsurfaceScalarField$FOAM_CASE/<time>/<inpField>
output file--
output fieldpointScalarField$FOAM_CASE/<time>/<outField>

Usage

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

streamFunction1
{
// Mandatory entries (unmodifiable)
type streamFunction;
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: streamFunctionwordyes-
libsLibrary name: fieldFunctionObjectswordyes-

The inherited entries are elaborated in:

Example by using the postProcess utility:

postProcess -func streamFunction

Further information

Tutorial:

Source code:

API:

History: Introduced in version v1606+