Skip to main content

mapFields

Description

The mapFields function object maps input fields from local mesh to secondary mesh at runtime.

Operands

OperandTypeLocation
inputvol<Type>Field$FOAM_CASE/<time>/<inpField>
output file--
output fieldvol<Type>Field$FOAM_CASE/<time>/<outField>

where <Type>=Scalar/Vector/SphericalTensor/SymmTensor/Tensor.

Usage

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

mapFields1
{
// Mandatory entries (unmodifiable)
type mapFields;
libs (fieldFunctionObjects);

// Mandatory (inherited) entries (runtime modifiable)
fields (<field1> <field2> ... <fieldN>);
mapRegion coarseMesh;
mapMethod cellVolumeWeight;
consistent true;

// Optional entries (runtime modifiable)
// patchMapMethod direct; // AMI-related entry
// enabled if consistent=false
// patchMap (<patchSrc> <patchTgt>);
// cuttingPatches (<patchTgt1> <patchTgt2> ... <patchTgtN>);

// 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: mapFieldswordyes-
libsLibrary name: fieldFunctionObjectswordyes-
fieldsNames of operand fieldswordListyes-
mapRegionName of region to map towordyes-
mapMethodMapping methodwordyes-
consistentMapping meshes have consistent boundariesboolyes-
patchMapMethodPatch mapping method for AMI caseswordno-
patchMapCoincident source/target patches in two caseswordHashTableno-
cuttingPatchesTarget patches cutting the source domainwordListno-

Options for the mapMethod entry:

direct
mapNearest
cellVolumeWeight
correctedCellVolumeWeight

Options for the patchMapMethod entry:

directAMI
mapNearestAMI
faceAreaWeightAMI
partialFaceAreaWeightAMI

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+