Go to the documentation of this file.
45 directAddressing_(procMeshPatch.
size(), -1),
53 forAll(completeMeshPatchPoints, pointi)
55 pointMap[completeMeshPatchPoints[pointi]] = pointi;
62 forAll(procMeshPatchPoints, pointi)
64 directAddressing_[pointi] =
65 pointMap[directAddr[procMeshPatchPoints[pointi]]];
69 if (directAddressing_.size() &&
min(directAddressing_) < 0)
74 <<
"Incomplete patch point addressing"
89 pointAddressing_(pointAddressing),
90 boundaryAddressing_(boundaryAddressing),
92 patchFieldDecomposerPtrs_()
120 return patchFieldDecomposerPtrs_.empty();
126 patchFieldDecomposerPtrs_.clear();
136 const label nMappers = procMesh_.boundary().size();
137 patchFieldDecomposerPtrs_.resize(nMappers);
139 forAll(boundaryAddressing_, patchi)
141 const label oldPatchi = boundaryAddressing_[patchi];
145 patchFieldDecomposerPtrs_.set
151 procMesh_.boundary()[patchi],
pointFieldDecomposer(const pointFieldDecomposer &)=delete
No copy construct.
patchFieldDecomposer(const pointPatch &completeMeshPatch, const pointPatch &procMeshPatch, const labelList &directAddr)
Construct given addressing.
const pointBoundaryMesh & boundary() const
Return reference to boundary mesh.
static label size(const Mesh &mesh)
Return size. Number of points.
void reset(const pointMesh &completeMesh)
Reset mappers using information from the complete mesh.
Basic pointPatch represents a set of points from the mesh.
const pointMesh & mesh() const noexcept
Return the mesh reference.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
#define forAll(list, i)
Loop across all elements in list.
void clear()
Remove all mappers.
Mesh representing a set of points created from polyMesh.
errorManip< error > abort(error &err)
virtual label size() const =0
Return size.
meshPtr reset(new Foam::fvMesh(Foam::IOobject(regionName, runTime.timeName(), runTime, Foam::IOobject::MUST_READ), false))
Point patch field decomposer class.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual const labelList & meshPoints() const =0
Return mesh points.
const pointBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
Foam::pointPatchFieldMapperPatchRef.
bool empty() const
True if no mappers have been allocated.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...