Skip to main content

fieldAverageItem

Description

Helper class to describe what form of averaging to apply. A set will be applied to each base field in Foam::fieldAverage, of the following form.

Usage

<field1>
{
mean on;
prime2Mean on;
base time; // iteration
window 200; // optional averaging window
windowName w1; // optional window name (default = "")
windowType approximate; // window type

allowRestart yes; // optional, used for windowType 'exact'
}

where the entries mean:

PropertyDescriptionTypeRequiredDefault
meanFlag to calculate averageboolyes-
prime2MeanFlag to calculate prime-square averageboolyes-
baseType of averaging intervalwordyes-
windowAveraging windowscalarno-
windowNameName of the averaging windowwordno-
windowTypeType of averaging windowwordno-
allowRestartFlag to allow restart for windowType=exactboolno-

Options for the base entry:

time | Averaging interval is based on time
iter | Averaging interval is based on iterations

Options for the windowType entry:

none | no windowing
exact | allow additional files will be stored and written
approximate | disallow additional files will be stored and written

To employ the prime2Mean option, the mean option must be enabled.

Further information

Source code:

API: