Skip to main content

particleDistribution

Description

The particleDistribution function object generates a particle distribution for lagrangian data at a given time.

Operands

OperandTypeLocation
input--
output filedat$FOAM_CASE/postProcessing/<FO>/<time>/<file>
output field--

Usage

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

particleDistribution1
{
// Mandatory entries (unmodifiable)
type particleDistribution;
libs (fieldFunctionObjects);

// Mandatory entries (runtime modifiable)
cloud <cloudName>;
nameVsBinWidth
(
(d 0.1)
(U 10)
);
setFormat raw;

// Optional entries (runtime modifiable)
tagField none;

// Optional (inherited) entries
writePrecision 8;
writeToFile true;
useUserTime true;
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: particleDistributionwordyes-
libsLibrary name: fieldFunctionObjectswordyes-
cloudName of cloud to processwordyes-
nameVsBinWidthList of cloud field-bin widthwordHashTableyes-
setFormatOutput formatwordyes-
tagFieldName of cloud field to use group particleswordnonone

The inherited entries are elaborated in:

Usage by the postProcess utility is not available.

Further information

Tutorial:

Source code:

API:

History: Introduced in version v1612+