Skip to main content

probes

Overview

The probes function object samples field values at point locations and writes the result to file using the chosen output file format.

Usage

Example of function object specification:

probes1
{
// Mandatory entries
type probes;
libs (sampling);
probeLocations (<points>);
fields (<wordRes>);

// Optional entries
fixedLocations <bool>;
includeOutOfBounds <bool>;
verbose <bool>;
sampleOnExecute <bool>;
interpolationScheme <scheme-type>;

// Inherited entries
...
}

where the entries mean:

PropertyDescriptionTypeRequiredDefault
typeType name: probeswordyes-
libsLibrary name: samplingwordyes-
probeLocationsList of probe locationsvectorListyes-
fieldsNames of fields to be sampledwordResyes-
fixedLocationsDo not recalculate cells if mesh movesboolnotrue
includeOutOfBoundsInclude out-of-bounds locationsboolnotrue
verboseIncrease the level of verbosity to logboolnofalse
sampleOnExecuteSample on execution and store resultsboolnofalse
interpolationSchemeInterpolation scheme to usewordnocell

Options for the interpolationScheme entry:

PropertyDescription
cellUses the cell value for any location within the cell.
cellPatchConstrainedUses the cell value for any point in the cell apart from a boundary face where it uses the boundary value directly.
cellPointGiven cell centre values and point (vertex) values decompose into tetrahedra and linear interpolate within them.
cellPointFaceGiven face centre values and point (vertex) values decompose into tetrahedra and linear interpolate within them.
cellPointWallModifiedSame as interpolationCellPoint, but if interpolating a wall face, uses cell centre value instead.
pointMVCGiven cell centre values interpolates to vertices and uses these to do a Mean Value Coordinates interpolation.

The inherited entries are elaborated in:

Operands

OperandTypeLocation
Input--
Output filedat<case>/postProcessing/<function object>/<time>/
Output field--

Stored properties

Reduced data

The following data are stored by the function object for the set of sample values, and can be used by other function objects:

  • average(<field-name>) : average set value
  • min(<field-name>) : minimum set value
  • max(<field-name>) : maximum set value
  • size(<field-name>) : size of set

Further information

Tutorial:

Source code:

API:

History: Introduced in version 1.5