36 void Foam::pointPatchMapper::calcAddressing()
const 41 || interpolationAddrPtr_
46 <<
"Addressing already calculated" 104 void Foam::pointPatchMapper::clearOut()
109 hasUnmapped_ =
false;
115 Foam::pointPatchMapper::pointPatchMapper
124 pointMapper_(pointMap),
128 patch_.index() < mpm_.oldPatchNMeshPoints().size()
129 ? mpm_.oldPatchNMeshPoints()[patch_.index()]
133 directAddrPtr_(nullptr),
134 interpolationAddrPtr_(nullptr),
154 <<
"Requested direct addressing for an interpolative mapper." 163 return *directAddrPtr_;
172 <<
"Requested interpolative addressing for a direct mapper." 176 if (!interpolationAddrPtr_)
181 return *interpolationAddrPtr_;
190 <<
"Requested interpolative weights for a direct mapper."
List< scalar > scalarList
List of scalar.
virtual const labelUList & directAddressing() const
Return direct addressing.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual bool direct() const
Is the mapping direct.
virtual const scalarListList & weights() const
Return interpolaion weights.
Foam::pointPatchFieldMapper.
List< labelList > labelListList
List of labelList.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
#define forAll(list, i)
Loop across all elements in list.
List< scalarList > scalarListList
List of scalarList.
errorManip< error > abort(error &err)
virtual label size() const
Return size.
const labelListList & patchPointMap() const
Patch point renumbering.
Template functions to aid in the implementation of demand driven data.
virtual ~pointPatchMapper()
Destructor.
Basic pointPatch represents a set of points from the mesh.
virtual label index() const =0
Return the index of this patch in the pointBoundaryMesh.
const std::string patch
OpenFOAM patch number as a std::string.
This object provides mapping and fill-in information for point data between the two meshes after the ...
List< label > labelList
A List of labels.
void deleteDemandDrivenData(DataPtr &dataPtr)
virtual const labelListList & addressing() const
Return interpolated addressing.