Skip to main content

wallBoundedStreamLine

Description

The wallBoundedStreamLine function object generates streamline data by sampling a set of user-specified fields along a particle track, transported by a user-specified velocity field, constrained to a patch.

Operands

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

Usage

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

wallBoundedStreamLine1
{
// Mandatory entries (unmodifiable)
type wallBoundedStreamLine;
libs (fieldFunctionObjects);

// Mandatory entries (runtime modifiable)
U <fieldTrack>;
fields (<fieldTrack> <field1> ... <fieldN>);
setFormat vtk;
direction bidirectional;
lifeTime 10000;
cloud particleTracks;
seedSampleSet
{
type patchSeed;
patches (wall);
axis x;
maxPoints 20000;
}

// Optional entries (runtime modifiable)
bounds (0.2 -10 -10)(0.22 10 10);
trackLength 1e-3;
nSubCycle 1;
interpolationScheme cellPoint;

// Deprecated
// trackForward true;

// 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: wallBoundedStreamLinewordyes-
libsLibrary name: fieldFunctionObjectswordyes-
UName of tracking velocity fieldwordyes-
fieldsNames of operand fields to samplewordListyes-
setFormatType of output datawordyes-
directionDirection to trackvectoryes-
lifetimeMaximum number of particle tracking stepslabelyes-
cloudName of cloudwordyes-
seedSampleSetName of seeding method (see below)wordyes-
boundsBounding box to trim tracksvectornoinvertedBox
trackLengthTracking segment lengthscalarnoVGREAT
nSubCycleNumber of tracking steps per celllabelno1
interpolationSchemeInterp. scheme for samplewordnocellPoint

Options for the seedSampleSet entry:

uniform | uniform particle seeding
cloud | cloud of points
patchSeed | seeding via patch faces
triSurfaceMeshPointSet | points according to a tri-surface mesh

Options for the setFormat entry:

csv
ensight
gnuplot
jplot
nastran
raw
vtk
xmgr

Options for the direction entry:

bidirectional
forward
backward

The inherited entries are elaborated in:

Usage by the postProcess utility is not available.

Notes on entries

  • When specifying the track resolution, the trackLength or nSubCycle option should be used.

Further information

Tutorial:

Source code:

API:

History: Introduced in version v1606+