Go to the documentation of this file.
44 <<
"Addressing already calculated"
106 hasUnmapped_ =
false;
122 pointMapper_(pointMap),
126 patch_.index() < mpm_.oldPatchNMeshPoints().size()
127 ? mpm_.oldPatchNMeshPoints()[patch_.index()]
131 directAddrPtr_(NULL),
132 interpolationAddrPtr_(NULL),
152 <<
"Requested direct addressing for an interpolative mapper."
161 return *directAddrPtr_;
170 <<
"Requested interpolative addressing for a direct mapper."
174 if (!interpolationAddrPtr_)
179 return *interpolationAddrPtr_;
188 <<
"Requested interpolative weights for a direct mapper."
List< scalar > scalarList
A List of scalars.
virtual label index() const =0
Return the index of this patch in the pointBoundaryMesh.
volScalarField w(IOobject("w", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE), mesh, dimensionedScalar("w", dimensionSet(0, 0, 0, 0, 0, 0, 0), 0.0))
List< label > labelList
A List of labels.
virtual bool direct() const
Is the mapping direct.
#define forAll(list, i)
Loop across all elements in list.
Template functions to aid in the implementation of demand driven data.
virtual const scalarListList & weights() const
Return interpolaion weights.
Basic pointPatch represents a set of points from the mesh.
virtual const labelUList & directAddressing() const
Return direct addressing.
Foam::pointPatchFieldMapper.
virtual ~pointPatchMapper()
Destructor.
pointPatchMapper(const pointPatchMapper &)
Disallow default bitwise copy construct.
void deleteDemandDrivenData(DataPtr &dataPtr)
labelList * directAddrPtr_
Direct addressing (only one for of addressing is used)
This object provides mapping and fill-in information for point data between the two meshes after the ...
labelListList * interpolationAddrPtr_
Interpolated addressing (only one for of addressing is used)
const pointPatch & patch_
Reference to patch.
virtual const labelListList & addressing() const
Return interpolated addressing.
const mapPolyMesh & mpm_
Reference to mapping data.
errorManip< error > abort(error &err)
virtual label size() const
Return size.
const labelListList & patchPointMap() const
Patch point renumbering.
List< labelList > labelListList
A List of labelList.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void calcAddressing() const
Calculate addressing for mapping with inserted cells.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
void size(const label)
Override size to be inconsistent with allocated storage.
List< scalarList > scalarListList
scalarListList * weightsPtr_
Interpolation weights.
void clearOut()
Clear out local storage.