Abstract base class to hold the Field mapping addressing and weights. More...
Public Member Functions | |
FieldMapper ()=default | |
Default construct. More... | |
virtual | ~FieldMapper ()=default |
Destructor. More... | |
virtual label | size () const =0 |
The size of the mapper. More... | |
virtual bool | direct () const =0 |
Is it a direct (non-interpolating) mapper? More... | |
virtual bool | distributed () const |
Does the mapper have remote contributions? More... | |
virtual bool | hasUnmapped () const =0 |
Any unmapped values? More... | |
virtual const labelUList & | directAddressing () const |
Return the direct addressing values. More... | |
virtual const mapDistributeBase & | distributeMap () const |
Return the distribution map. More... | |
virtual const labelListList & | addressing () const |
Return the interpolation addressing. More... | |
virtual const scalarListList & | weights () const |
Return the interpolation weights. More... | |
template<class Type > | |
tmp< Field< Type > > | operator() (const Field< Type > &fld) const |
Perform mapping on the given field. More... | |
Abstract base class to hold the Field mapping addressing and weights.
Definition at line 49 of file FieldMapper.H.
|
default |
Default construct.
|
virtualdefault |
Destructor.
|
pure virtual |
The size of the mapper.
Implemented in faAreaMapper, faEdgeMapper, faPatchMapper, fvPatchMapper, fvSurfaceMapper, singleCellFvMesh::agglomPatchFieldMapper, pointMapper, pointPatchMapper, cellMapper, faceMapper, fvFieldDecomposer::patchFieldDecomposer, fvFieldDecomposer::processorVolPatchFieldDecomposer, fvFieldDecomposer::processorSurfacePatchFieldDecomposer, pointFieldDecomposer::patchFieldDecomposer, faFieldDecomposer::patchFieldDecomposer, faFieldDecomposer::processorAreaPatchFieldDecomposer, faFieldDecomposer::processorEdgePatchFieldDecomposer, faFieldReconstructor::faPatchFieldReconstructor, fvFieldReconstructor::fvPatchFieldReconstructor, pointFieldReconstructor::pointPatchFieldReconstructor, distributedWeightedFvPatchFieldMapper, and meshToMesh0::patchFieldInterpolator.
Referenced by fvPatchField< Type >::autoMap(), externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField(), and Field< T >::operator/=().
|
pure virtual |
Is it a direct (non-interpolating) mapper?
Implemented in faAreaMapper, faEdgeMapper, faPatchMapper, fvPatchMapper, fvSurfaceMapper, singleCellFvMesh::agglomPatchFieldMapper, pointMapper, pointPatchMapper, cellMapper, faceMapper, fvFieldDecomposer::patchFieldDecomposer, fvFieldDecomposer::processorVolPatchFieldDecomposer, fvFieldDecomposer::processorSurfacePatchFieldDecomposer, pointFieldDecomposer::patchFieldDecomposer, faFieldDecomposer::patchFieldDecomposer, faFieldDecomposer::processorAreaPatchFieldDecomposer, faFieldDecomposer::processorEdgePatchFieldDecomposer, faFieldReconstructor::faPatchFieldReconstructor, fvFieldReconstructor::fvPatchFieldReconstructor, pointFieldReconstructor::pointPatchFieldReconstructor, distributedWeightedFvPatchFieldMapper, and meshToMesh0::patchFieldInterpolator.
Referenced by fvPatchField< Type >::autoMap(), pointPatchMapper::direct(), outletMappedUniformInletFvPatchField< Type >::outletMappedUniformInletFvPatchField(), uniformFixedValueFvPatchField< Type >::uniformFixedValueFvPatchField(), uniformFixedValuePointPatchField< Type >::uniformFixedValuePointPatchField(), and uniformNormalFixedValueFvPatchVectorField::uniformNormalFixedValueFvPatchVectorField().
|
inlinevirtual |
Does the mapper have remote contributions?
Reimplemented in distributedWeightedFvPatchFieldMapper.
Definition at line 72 of file FieldMapper.H.
Referenced by Field< Type >::autoMap(), fvPatchField< Type >::autoMap(), and Field< T >::rmap().
|
pure virtual |
Any unmapped values?
I.e. do all size() elements get value
Implemented in faAreaMapper, faEdgeMapper, faPatchMapper, fvPatchMapper, fvSurfaceMapper, singleCellFvMesh::agglomPatchFieldMapper, pointMapper, pointPatchMapper, cellMapper, faceMapper, fvFieldDecomposer::patchFieldDecomposer, fvFieldDecomposer::processorVolPatchFieldDecomposer, fvFieldDecomposer::processorSurfacePatchFieldDecomposer, pointFieldDecomposer::patchFieldDecomposer, faFieldDecomposer::patchFieldDecomposer, faFieldDecomposer::processorAreaPatchFieldDecomposer, faFieldDecomposer::processorEdgePatchFieldDecomposer, faFieldReconstructor::faPatchFieldReconstructor, fvFieldReconstructor::fvPatchFieldReconstructor, pointFieldReconstructor::pointPatchFieldReconstructor, distributedWeightedFvPatchFieldMapper, and meshToMesh0::patchFieldInterpolator.
Referenced by fvPatchField< Type >::autoMap(), directionMixedFvPatchField< Type >::directionMixedFvPatchField(), fixedGradientFvPatchField< Type >::fixedGradientFvPatchField(), fixedValueFvPatchField< Type >::fixedValueFvPatchField(), fvPatchField< Type >::fvPatchField(), mixedFvPatchField< Type >::mixedFvPatchField(), outletMappedUniformInletFvPatchField< Type >::outletMappedUniformInletFvPatchField(), uniformFixedValueFvPatchField< Type >::uniformFixedValueFvPatchField(), uniformFixedValuePointPatchField< Type >::uniformFixedValuePointPatchField(), and uniformNormalFixedValueFvPatchVectorField::uniformNormalFixedValueFvPatchVectorField().
|
inlinevirtual |
Return the direct addressing values.
Reimplemented in faAreaMapper, faEdgeMapper, faPatchMapper, fvPatchMapper, fvSurfaceMapper, pointMapper, pointPatchMapper, cellMapper, faceMapper, fvFieldDecomposer::patchFieldDecomposer, fvFieldDecomposer::processorVolPatchFieldDecomposer, pointFieldDecomposer::patchFieldDecomposer, faFieldDecomposer::patchFieldDecomposer, faFieldReconstructor::faPatchFieldReconstructor, fvFieldReconstructor::fvPatchFieldReconstructor, pointFieldReconstructor::pointPatchFieldReconstructor, and meshToMesh0::patchFieldInterpolator.
Definition at line 82 of file FieldMapper.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and UList< label >::null().
Referenced by fvPatchField< Type >::autoMap(), Field< T >::component(), and Field< T >::writeEntry().
|
inlinevirtual |
Return the distribution map.
Reimplemented in distributedWeightedFvPatchFieldMapper.
Definition at line 92 of file FieldMapper.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Referenced by Field< Type >::autoMap(), and Field< T >::rmap().
|
inlinevirtual |
Return the interpolation addressing.
Reimplemented in faAreaMapper, faEdgeMapper, faPatchMapper, fvPatchMapper, fvSurfaceMapper, singleCellFvMesh::agglomPatchFieldMapper, pointMapper, pointPatchMapper, cellMapper, faceMapper, fvFieldDecomposer::processorSurfacePatchFieldDecomposer, faFieldDecomposer::processorAreaPatchFieldDecomposer, faFieldDecomposer::processorEdgePatchFieldDecomposer, and distributedWeightedFvPatchFieldMapper.
Definition at line 102 of file FieldMapper.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and List< labelList >::null().
Referenced by fvPatchField< Type >::autoMap(), and Field< T >::replace().
|
inlinevirtual |
Return the interpolation weights.
Reimplemented in faAreaMapper, faEdgeMapper, faPatchMapper, fvPatchMapper, fvSurfaceMapper, singleCellFvMesh::agglomPatchFieldMapper, pointMapper, pointPatchMapper, cellMapper, faceMapper, fvFieldDecomposer::processorSurfacePatchFieldDecomposer, faFieldDecomposer::processorAreaPatchFieldDecomposer, faFieldDecomposer::processorEdgePatchFieldDecomposer, and distributedWeightedFvPatchFieldMapper.
Definition at line 112 of file FieldMapper.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and List< scalarList >::null().
Referenced by Field< T >::replace().
Perform mapping on the given field.
Definition at line 126 of file FieldMapper.H.
References fld(), and Foam::New().