Abstract base class to hold the Field mapping addressing and weights. More...
Public Member Functions | |
FieldMapper () | |
Null constructor. More... | |
virtual | ~FieldMapper ()=default |
Destructor. More... | |
virtual label | size () const =0 |
virtual bool | direct () const =0 |
virtual bool | distributed () const |
virtual const mapDistributeBase & | distributeMap () const |
virtual bool | hasUnmapped () const =0 |
Are there unmapped values? I.e. do all size() elements get. More... | |
virtual const labelUList & | directAddressing () const |
virtual const labelListList & | addressing () const |
virtual const scalarListList & | weights () const |
template<class Type > | |
tmp< Field< Type > > | operator() (const Field< Type > &f) const |
Abstract base class to hold the Field mapping addressing and weights.
Definition at line 49 of file FieldMapper.H.
|
inline |
Null constructor.
Definition at line 57 of file FieldMapper.H.
|
virtualdefault |
Destructor.
|
pure virtual |
Implemented in meshToMesh0::patchFieldInterpolator, faFieldDecomposer::processorEdgePatchFieldDecomposer, fvFieldDecomposer::processorSurfacePatchFieldDecomposer, faFieldDecomposer::processorAreaPatchFieldDecomposer, faAreaMapper, fvFieldDecomposer::processorVolPatchFieldDecomposer, pointPatchMapper, singleCellFvMesh::agglomPatchFieldMapper, fvPatchMapper, faceMapper, cellMapper, faPatchMapper, pointMapper, fvSurfaceMapper, faEdgeMapper, faFieldReconstructor::faPatchFieldReconstructor, fvFieldReconstructor::fvPatchFieldReconstructor, pointFieldReconstructor::pointPatchFieldReconstructor, distributedWeightedFvPatchFieldMapper, faFieldDecomposer::patchFieldDecomposer, pointFieldDecomposer::patchFieldDecomposer, fvFieldDecomposer::patchFieldDecomposer, distributedUnallocatedDirectFvPatchFieldMapper, distributedUnallocatedDirectFieldMapper, directFvPatchFieldMapper, directPointPatchFieldMapper, and directFieldMapper.
Referenced by Field< Foam::Vector2D >::autoMap(), fvPatchField< vector >::autoMap(), externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField(), and Field< Foam::Vector2D >::map().
|
pure virtual |
Implemented in faFieldDecomposer::processorEdgePatchFieldDecomposer, meshToMesh0::patchFieldInterpolator, fvFieldDecomposer::processorSurfacePatchFieldDecomposer, faFieldDecomposer::processorAreaPatchFieldDecomposer, faAreaMapper, pointPatchMapper, fvFieldDecomposer::processorVolPatchFieldDecomposer, fvPatchMapper, faPatchMapper, faceMapper, fvSurfaceMapper, singleCellFvMesh::agglomPatchFieldMapper, cellMapper, pointMapper, faEdgeMapper, faFieldReconstructor::faPatchFieldReconstructor, distributedWeightedFvPatchFieldMapper, fvFieldReconstructor::fvPatchFieldReconstructor, pointFieldReconstructor::pointPatchFieldReconstructor, faFieldDecomposer::patchFieldDecomposer, distributedUnallocatedDirectFvPatchFieldMapper, pointFieldDecomposer::patchFieldDecomposer, distributedUnallocatedDirectFieldMapper, fvFieldDecomposer::patchFieldDecomposer, directFvPatchFieldMapper, directPointPatchFieldMapper, and directFieldMapper.
Referenced by Field< Foam::Vector2D >::autoMap(), fvPatchField< vector >::autoMap(), pointPatchMapper::direct(), Field< Foam::Vector2D >::map(), uniformFixedValueFvPatchField< Type >::uniformFixedValueFvPatchField(), uniformFixedValuePointPatchField< Type >::uniformFixedValuePointPatchField(), and uniformNormalFixedValueFvPatchVectorField::uniformNormalFixedValueFvPatchVectorField().
|
inlinevirtual |
Reimplemented in distributedWeightedFvPatchFieldMapper, distributedUnallocatedDirectFvPatchFieldMapper, and distributedUnallocatedDirectFieldMapper.
Definition at line 71 of file FieldMapper.H.
Referenced by Field< Foam::Vector2D >::autoMap(), fvPatchField< vector >::autoMap(), and Field< Foam::Vector2D >::map().
|
inlinevirtual |
Reimplemented in distributedWeightedFvPatchFieldMapper, distributedUnallocatedDirectFvPatchFieldMapper, and distributedUnallocatedDirectFieldMapper.
Definition at line 76 of file FieldMapper.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Referenced by Field< Foam::Vector2D >::autoMap(), and Field< Foam::Vector2D >::map().
|
pure virtual |
Are there unmapped values? I.e. do all size() elements get.
get value
Implemented in faFieldDecomposer::processorEdgePatchFieldDecomposer, meshToMesh0::patchFieldInterpolator, fvFieldDecomposer::processorSurfacePatchFieldDecomposer, faFieldDecomposer::processorAreaPatchFieldDecomposer, faAreaMapper, fvFieldDecomposer::processorVolPatchFieldDecomposer, fvPatchMapper, distributedWeightedFvPatchFieldMapper, faPatchMapper, fvSurfaceMapper, faceMapper, singleCellFvMesh::agglomPatchFieldMapper, pointMapper, cellMapper, pointPatchMapper, faEdgeMapper, faFieldReconstructor::faPatchFieldReconstructor, fvFieldReconstructor::fvPatchFieldReconstructor, pointFieldReconstructor::pointPatchFieldReconstructor, distributedUnallocatedDirectFvPatchFieldMapper, faFieldDecomposer::patchFieldDecomposer, distributedUnallocatedDirectFieldMapper, pointFieldDecomposer::patchFieldDecomposer, fvFieldDecomposer::patchFieldDecomposer, directFvPatchFieldMapper, directPointPatchFieldMapper, and directFieldMapper.
Referenced by fvPatchField< vector >::autoMap(), directionMixedFvPatchField< Type >::directionMixedFvPatchField(), fixedGradientFvPatchField< Type >::fixedGradientFvPatchField(), fixedValueFvPatchField< scalar >::fixedValueFvPatchField(), fvPatchField< vector >::fvPatchField(), mixedFvPatchField< vector >::mixedFvPatchField(), uniformFixedValueFvPatchField< Type >::uniformFixedValueFvPatchField(), uniformFixedValuePointPatchField< Type >::uniformFixedValuePointPatchField(), and uniformNormalFixedValueFvPatchVectorField::uniformNormalFixedValueFvPatchVectorField().
|
inlinevirtual |
Reimplemented in meshToMesh0::patchFieldInterpolator, faAreaMapper, pointPatchMapper, fvFieldDecomposer::processorVolPatchFieldDecomposer, fvPatchMapper, faPatchMapper, fvSurfaceMapper, faceMapper, pointMapper, cellMapper, faEdgeMapper, faFieldReconstructor::faPatchFieldReconstructor, fvFieldReconstructor::fvPatchFieldReconstructor, pointFieldReconstructor::pointPatchFieldReconstructor, distributedUnallocatedDirectFvPatchFieldMapper, faFieldDecomposer::patchFieldDecomposer, distributedUnallocatedDirectFieldMapper, pointFieldDecomposer::patchFieldDecomposer, directFvPatchFieldMapper, fvFieldDecomposer::patchFieldDecomposer, directPointPatchFieldMapper, and directFieldMapper.
Definition at line 89 of file FieldMapper.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and UList< T >::null().
Referenced by Field< Foam::Vector2D >::autoMap(), fvPatchField< vector >::autoMap(), and Field< Foam::Vector2D >::map().
|
inlinevirtual |
Reimplemented in faFieldDecomposer::processorEdgePatchFieldDecomposer, fvFieldDecomposer::processorSurfacePatchFieldDecomposer, faFieldDecomposer::processorAreaPatchFieldDecomposer, faAreaMapper, pointPatchMapper, fvPatchMapper, faPatchMapper, fvSurfaceMapper, faceMapper, distributedWeightedFvPatchFieldMapper, pointMapper, cellMapper, faEdgeMapper, and singleCellFvMesh::agglomPatchFieldMapper.
Definition at line 98 of file FieldMapper.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and List< labelList >::null().
Referenced by Field< Foam::Vector2D >::autoMap(), fvPatchField< vector >::autoMap(), and Field< Foam::Vector2D >::map().
|
inlinevirtual |
Reimplemented in faFieldDecomposer::processorEdgePatchFieldDecomposer, fvFieldDecomposer::processorSurfacePatchFieldDecomposer, faFieldDecomposer::processorAreaPatchFieldDecomposer, faAreaMapper, pointPatchMapper, fvPatchMapper, faPatchMapper, distributedWeightedFvPatchFieldMapper, fvSurfaceMapper, faceMapper, pointMapper, singleCellFvMesh::agglomPatchFieldMapper, cellMapper, and faEdgeMapper.
Definition at line 107 of file FieldMapper.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and List< scalarList >::null().
Referenced by Field< Foam::Vector2D >::map().
Definition at line 120 of file FieldMapper.H.
References f(), and Foam::New().