Go to the documentation of this file.
77 #ifndef globalPoints_H
78 #define globalPoints_H
81 #include "indirectPrimitivePatch.H"
92 class polyBoundaryMesh;
93 class cyclicPolyPatch;
164 const label patchPointI,
175 const label localPointI,
184 const label meshPointI
191 const label localPointI
198 const label localPointI
205 const label localPointI
233 const bool mergeSeparated,
242 const bool mergeSeparated,
261 const bool keepAllPoints,
262 const bool mergeSeparated
289 const bool keepAllPoints,
290 const bool mergeSeparated
300 const bool keepAllPoints,
301 const bool mergeSeparated
globalPoints(const globalPoints &)
Disallow default bitwise copy construct.
static labelList reverseMeshPoints(const cyclicPolyPatch &)
Return mesh points of other side in same order as my meshPoints.
Calculates points shared by more than two processor patches or cyclic patches.
mapDistribute & map()
Corresponding map.
static label localToMeshPoint(const labelList &patchToMeshPoint, const label localPointI)
Opposite of meshToLocalPoint.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
const polyMesh & mesh_
Mesh reference.
const Map< label > & meshToProcPoint() const
From (mesh or patch) point to index in procPoints.
void addToSend(const polyPatch &, const label patchPointI, const labelPairList &, DynamicList< label > &patchFaces, DynamicList< label > &indexInFace, DynamicList< labelPairList > &allInfo) const
Add information about patchPointI in relative indices to send.
labelList patchFaces(const polyBoundaryMesh &patches, const wordList &names)
labelListList pointPoints_
Non-transformed connected points per point (in mapDistribute.
const globalIndexAndTransform & globalTransforms() const
Global numbering of transformed (mesh or patch) points.
Mesh consisting of general polyhedral cells.
const mapDistribute & map() const
Corresponding map.
DynamicList< labelPairList > procPoints_
All points on boundaries and their corresponding connected points.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
labelPairList addSendTransform(const label patchI, const labelPairList &info) const
const labelListList & pointPoints() const
Non-transformed connected points per point (in mapDistribute.
A patch is a list of labels that address the faces in the global face list.
bool storeInitialInfo(const labelPairList &nbrInfo, const label localPointI)
Store (and merge) info for meshPointI.
Class containing processor-to-processor mapping information.
const DynamicList< labelPairList > & procPoints() const
procPoints is per point the connected points (in
void printProcPoints(const labelList &patchToMeshPoint, const labelPairList &pointInfo) const
bool mergeInfo(const labelPairList &nbrInfo, const label localPointI, labelPairList &myInfo) const
Merge info from neighbour into my data.
autoPtr< mapDistribute > map_
Corresponding map.
static label meshToLocalPoint(const Map< label > &meshToPatchPoint, const label meshPointI)
From mesh point to 'local point'. Is the mesh point itself.
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local inde...
globalIndex globalIndices_
Global numbering of untransformed points.
void calculateSharedPoints(const Map< label > &, const labelList &, const bool keepAllPoints, const bool mergeSeparated)
Do all calculations.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
List< labelList > labelListList
A List of labelList.
const globalIndexAndTransform globalTransforms_
Global numbering of transformed points.
void receivePatchPoints(const bool mergeSeparated, const Map< label > &, const labelList &, PstreamBuffers &, labelHashSet &)
Receive neighbour points and merge into my procPoints.
An ordered pair of two objects of type <T> with first() and second() elements.
static label countPatchPoints(const polyBoundaryMesh &)
Count all points on processorPatches. Is all points for which.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Map< label > meshToProcPoint_
Map from mesh (or patch) point to index in procPoints.
void printProcPoint(const labelList &patchToMeshPoint, const labelPair &pointInfo) const
Debug printing.
void remove(const labelList &patchToMeshPoint, const Map< label > &)
Remove entries of size 2 where meshPoint is in provided Map.
const labelListList & transformedPointPoints() const
Transformed points per point (in mapDistribute indices)
void operator=(const globalPoints &)
Disallow default bitwise assignment.
ClassName("globalPoints")
Declare name of the class and its debug switch.
const label nPatchPoints_
Sum of points on processor patches (unfiltered, point on 2 patches.
labelListList & transformedPointPoints()
Transformed points per point (in mapDistribute indices)
const globalIndex & globalIndices() const
Global numbering of untransformed (mesh or patch) points.
void sendPatchPoints(const bool mergeSeparated, const Map< label > &, PstreamBuffers &, const labelHashSet &) const
Send subset of procPoints to neighbours.
labelListList transformedPointPoints_
Transformed points per point (in mapDistribute indices)
void initOwnPoints(const Map< label > &meshToPatchPoint, const bool allPoints, labelHashSet &changedPoints)
Initialize procPoints_ to my patch points. allPoints = true:
A list of faces which address into the list of points.
label findSamePoint(const labelPairList &allInfo, const labelPair &info) const
Find index of same processor+index.