Skip to main content

extractEulerianParticles

Description

The extractEulerianParticles function object generates particle size information from Eulerian calculations, e.g. VoF. It derives spherical particles by interrogating the Eulerian phase fraction field.

Operands

OperandTypeLocation
input--
input--
output file--
output field 1scalarField$OUTPUT/d
output field 2scalarField$OUTPUT/soi
output field 3labelField$OUTPUT/tag
output field 4vectorField$OUTPUT/U

where $OUTPUT=$FOAM_CASE/<time>/lagrangian/eulerianParticleCloud.

Usage

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

extractEulerianParticles1
{
// Mandatory entries (unmodifiable)
type extractEulerianParticles;
libs (fieldFunctionObjects);

// Mandatory entries (runtime modifiable)
faceZone f0;
alpha alpha.water;

// Optional entries (runtime modifiable)
alphaThreshold 0.1;
nLocations 0;
U U;
rho rho;
phi phi;
minDiameter 1e-30;
maxDiameter 1e30;

// 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: extractEulerianParticleswordyes-
libsLibrary name: fieldFunctionObjectswordyes-
faceZoneName of faceZone used as collection surfacewordyes-
alphaName of phase indicator fieldwordyes-
alphaThresholdThreshold for alpha fieldscalarno0.1
nLocationsNumber of injection bins to generatelabelno0
UName of velocity fieldwordnoU
rhoName of density fieldwordnorho
phiName of flux fieldwordnophi
minDiameterMinimum diameterscalarnoSMALL
maxDiameterMaximum diameterscalarnoGREAT

The inherited entries are elaborated in:

Usage by the postProcess utility is not available.

Notes on entries

The faceZone defines the particle collection surface, at which the phase fraction field, alpha is interpolated to identify the particle bounds.

Each isolated Eulerian region is converted into the equivalent spherical particle by default. Alternatively, the nLocations entry can be used to agglomerate the face zone to define a set of collection faces across which particle information is gathered. This can be useful to the derive particle spatial distribution. faces into a set of collection zones, for which

Stored properties

Reduced data

The following data are stored by the function object, and can be used by other function objects:

  • nCollectedParticles: number of particles collected
  • collectedVolume: volume of collected particles
  • nDiscardedParticles: number of discarded particles
  • discardedVolume: volume of discarded particles

Sample output

Further information

Tutorial:

Source code:

API:

History: Introduced in version v1612+