Go to the documentation of this file.
28 #include "primitiveMesh.H"
29 #include "primitiveFacePatch.H"
50 Pout<<
"void attachDetach::calcPointMatchMap() const "
51 <<
" for object " <<
name() <<
" : "
52 <<
"Calculating point matching" <<
endl;
55 if (pointMatchMapPtr_)
58 <<
"Point match map already calculated for object " <<
name()
75 const label slavePatchStart = slavePatch.
start();
77 forAll(reverseSlavePatch, faceI)
79 reverseSlavePatch[faceI] =
80 faces[slavePatchStart + faceI].reverseFace();
91 Map<label>& removedPointMap = *pointMatchMapPtr_;
93 forAll(masterLocalFaces, faceI)
95 const face& curMasterPoints = masterLocalFaces[faceI];
96 const face& curSlavePoints = slaveLocalFaces[faceI];
98 forAll(curMasterPoints, pointI)
105 masterMeshPoints[curMasterPoints[pointI]]
106 != slaveMeshPoints[curSlavePoints[pointI]]
116 removedPointMap.insert
118 slaveMeshPoints[curSlavePoints[pointI]],
119 masterMeshPoints[curMasterPoints[pointI]]
127 Pout<<
"void attachDetach::calcPointMatchMap() const "
128 <<
" for object " <<
name() <<
" : "
129 <<
"Finished calculating point matching" <<
endl;
virtual const pointField & points() const
Return raw points.
Map< label > * pointMatchMapPtr_
Map of matching points.
#define forAll(list, i)
Loop across all elements in list.
void calcPointMatchMap() const
Calculate point match addressing.
A HashTable to objects of type <T> with a label key.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Mesh consisting of general polyhedral cells.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A patch is a list of labels that address the faces in the global face list.
errorManip< error > abort(error &err)
label start() const
Return start label of this patch in the polyMesh face list.
virtual const faceList & faces() const
Return raw faces.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
prefixOSstream Pout(cout, "Pout")
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const List< Face > & localFaces() const
Return patch faces addressing into local point list.
A face is a list of labels corresponding to mesh vertices.
void size(const label)
Override size to be inconsistent with allocated storage.
const Map< label > & pointMatchMap() const
Return point match map.
const labelList & meshPoints() const
Return labelList of mesh points in patch.
word name(const complex &)
Return a string representation of a complex.
A list of faces which address into the list of points.