36 void Foam::pointPatchMapper::calcAddressing()
const 46 <<
"Addressing already calculated" 55 directAddrPtr_ = std::make_unique<labelList>
59 auto& addr = *directAddrPtr_;
79 interpAddrPtr_ = std::make_unique<labelListList>(
size());
80 auto& addr = *interpAddrPtr_;
82 weightsPtr_ = std::make_unique<scalarListList>(addr.size());
83 auto& wght = *weightsPtr_;
91 addr[i].resize(1, ppm[i]);
92 wght[i].resize(1, 1.0);
118 Foam::pointPatchMapper::pointPatchMapper
127 pointMapper_(pointMap),
131 patch_.index() < mpm_.oldPatchNMeshPoints().size()
132 ? mpm_.oldPatchNMeshPoints()[patch_.index()]
152 <<
"Requested direct addressing for an interpolative mapper." 161 return *directAddrPtr_;
170 <<
"Requested interpolative addressing for a direct mapper." 179 return *interpAddrPtr_;
188 <<
"Requested interpolative weights for a direct mapper."
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.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
#define forAll(list, i)
Loop across all elements in list.
errorManip< error > abort(error &err)
virtual label size() const
Return size.
const labelListList & patchPointMap() const noexcept
Patch point renumbering.
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.
virtual const labelListList & addressing() const
Return interpolated addressing.