Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of meshes (using subsetting) to other processors and receive and reconstruct mesh. More...
Public Member Functions | |
mapDistributePolyMesh () | |
Construct null. More... | |
mapDistributePolyMesh (const polyMesh &mesh, const label nOldPoints, const label nOldFaces, const label nOldCells, const Xfer< labelList > &oldPatchStarts, const Xfer< labelList > &oldPatchNMeshPoints, const Xfer< labelListList > &subPointMap, const Xfer< labelListList > &subFaceMap, const Xfer< labelListList > &subCellMap, const Xfer< labelListList > &subPatchMap, const Xfer< labelListList > &constructPointMap, const Xfer< labelListList > &constructFaceMap, const Xfer< labelListList > &constructCellMap, const Xfer< labelListList > &constructPatchMap, const bool subFaceHasFlip=false, const bool constructFaceHasFlip=false) | |
Construct from components. Note that mesh has to be changed already. More... | |
mapDistributePolyMesh (const label nOldPoints, const label nOldFaces, const label nOldCells, const Xfer< labelList > &oldPatchStarts, const Xfer< labelList > &oldPatchNMeshPoints, const Xfer< mapDistribute > &pointMap, const Xfer< mapDistribute > &faceMap, const Xfer< mapDistribute > &cellMap, const Xfer< mapDistribute > &patchMap) | |
Construct from components. More... | |
mapDistributePolyMesh (const Xfer< mapDistributePolyMesh > &) | |
Construct by transferring parameter content. More... | |
mapDistributePolyMesh (Istream &) | |
Construct from Istream. More... | |
label | nOldPoints () const |
Number of points in mesh before distribution. More... | |
label | nOldFaces () const |
Number of faces in mesh before distribution. More... | |
label | nOldCells () const |
Number of cells in mesh before distribution. More... | |
const labelList & | oldPatchSizes () const |
List of the old patch sizes. More... | |
const labelList & | oldPatchStarts () const |
List of the old patch start labels. More... | |
const labelList & | oldPatchNMeshPoints () const |
List of numbers of mesh points per old patch. More... | |
const mapDistribute & | pointMap () const |
Point distribute map. More... | |
const mapDistribute & | faceMap () const |
Face distribute map. More... | |
const mapDistribute & | cellMap () const |
Cell distribute map. More... | |
const mapDistribute & | patchMap () const |
Patch distribute map. More... | |
void | transfer (mapDistributePolyMesh &) |
Transfer the contents of the argument and annul the argument. More... | |
Xfer< mapDistributePolyMesh > | xfer () |
Transfer contents to the Xfer container. More... | |
template<class T > | |
void | distributePointData (List< T > &lst) const |
Distribute list of point data. More... | |
template<class T > | |
void | distributeFaceData (List< T > &lst) const |
Distribute list of face data. More... | |
template<class T > | |
void | distributeCellData (List< T > &lst) const |
Distribute list of cell data. More... | |
template<class T > | |
void | distributePatchData (List< T > &lst) const |
Distribute list of patch data. More... | |
void | distributePointIndices (labelList &pointIDs) const |
Distribute list of point/face/cell/patch indices. More... | |
void | distributeFaceIndices (labelList &faceIDs) const |
void | distributeCellIndices (labelList &cellIDs) const |
void | distributePatchIndices (labelList &patchIDs) const |
void | updateMesh (const mapPolyMesh &) |
Correct for topo change. More... | |
void | operator= (const mapDistributePolyMesh &) |
Friends | |
Istream & | operator>> (Istream &, mapDistributePolyMesh &) |
Read dictionary from Istream. More... | |
Ostream & | operator<< (Ostream &, const mapDistributePolyMesh &) |
Write dictionary to Ostream. More... | |
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of meshes (using subsetting) to other processors and receive and reconstruct mesh.
We store mapping from the bits-to-send to the complete starting mesh (subXXXMap) and from the received bits to their location in the new mesh (constructXXXMap).
Definition at line 66 of file mapDistributePolyMesh.H.
Construct null.
Definition at line 62 of file mapDistributePolyMesh.C.
Referenced by mapDistributePolyMesh::mapDistributePolyMesh().
mapDistributePolyMesh | ( | const polyMesh & | mesh, |
const label | nOldPoints, | ||
const label | nOldFaces, | ||
const label | nOldCells, | ||
const Xfer< labelList > & | oldPatchStarts, | ||
const Xfer< labelList > & | oldPatchNMeshPoints, | ||
const Xfer< labelListList > & | subPointMap, | ||
const Xfer< labelListList > & | subFaceMap, | ||
const Xfer< labelListList > & | subCellMap, | ||
const Xfer< labelListList > & | subPatchMap, | ||
const Xfer< labelListList > & | constructPointMap, | ||
const Xfer< labelListList > & | constructFaceMap, | ||
const Xfer< labelListList > & | constructCellMap, | ||
const Xfer< labelListList > & | constructPatchMap, | ||
const bool | subFaceHasFlip = false , |
||
const bool | constructFaceHasFlip = false |
||
) |
Construct from components. Note that mesh has to be changed already.
since uses mesh.nPoints etc as the new size.
Definition at line 78 of file mapDistributePolyMesh.C.
References mapDistributePolyMesh::mapDistributePolyMesh().
mapDistributePolyMesh | ( | const label | nOldPoints, |
const label | nOldFaces, | ||
const label | nOldCells, | ||
const Xfer< labelList > & | oldPatchStarts, | ||
const Xfer< labelList > & | oldPatchNMeshPoints, | ||
const Xfer< mapDistribute > & | pointMap, | ||
const Xfer< mapDistribute > & | faceMap, | ||
const Xfer< mapDistribute > & | cellMap, | ||
const Xfer< mapDistribute > & | patchMap | ||
) |
Construct from components.
Definition at line 127 of file mapDistributePolyMesh.C.
References mapDistributePolyMesh::mapDistributePolyMesh().
mapDistributePolyMesh | ( | const Xfer< mapDistributePolyMesh > & | map | ) |
Construct by transferring parameter content.
Definition at line 158 of file mapDistributePolyMesh.C.
mapDistributePolyMesh | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 175 of file mapDistributePolyMesh.C.
|
inline |
Number of points in mesh before distribution.
Definition at line 175 of file mapDistributePolyMesh.H.
Referenced by mapDistributePolyMesh::distributePointIndices().
|
inline |
Number of faces in mesh before distribution.
Definition at line 181 of file mapDistributePolyMesh.H.
Referenced by mapDistributePolyMesh::distributeFaceIndices().
|
inline |
Number of cells in mesh before distribution.
Definition at line 187 of file mapDistributePolyMesh.H.
Referenced by mapDistributePolyMesh::distributeCellIndices().
|
inline |
List of the old patch sizes.
Definition at line 193 of file mapDistributePolyMesh.H.
|
inline |
List of the old patch start labels.
Definition at line 199 of file mapDistributePolyMesh.H.
Referenced by mapDistributePolyMesh::distributePatchIndices().
|
inline |
List of numbers of mesh points per old patch.
Definition at line 205 of file mapDistributePolyMesh.H.
|
inline |
Point distribute map.
Definition at line 211 of file mapDistributePolyMesh.H.
Referenced by hexRef8Data::distribute().
|
inline |
Face distribute map.
Definition at line 217 of file mapDistributePolyMesh.H.
|
inline |
Cell distribute map.
Definition at line 223 of file mapDistributePolyMesh.H.
Referenced by hexRef8Data::distribute(), and refinementHistory::distribute().
|
inline |
Patch distribute map.
Definition at line 229 of file mapDistributePolyMesh.H.
References mapDistributePolyMesh::transfer(), and mapDistributePolyMesh::xfer().
void transfer | ( | mapDistributePolyMesh & | rhs | ) |
Transfer the contents of the argument and annul the argument.
Definition at line 183 of file mapDistributePolyMesh.C.
References List< T >::transfer(), and mapDistribute::transfer().
Referenced by mapDistributePolyMesh::patchMap().
Foam::Xfer< Foam::mapDistributePolyMesh > xfer | ( | ) |
Transfer contents to the Xfer container.
Definition at line 198 of file mapDistributePolyMesh.C.
References Foam::xferMove().
Referenced by mapDistributePolyMesh::patchMap().
Distribute list of point data.
Definition at line 245 of file mapDistributePolyMesh.H.
References mapDistribute::distribute().
Referenced by hexRef8::distribute(), and mapDistributePolyMesh::distributePointIndices().
Distribute list of face data.
Definition at line 252 of file mapDistributePolyMesh.H.
References mapDistribute::distribute().
Referenced by meshRefinement::distribute(), and mapDistributePolyMesh::distributeFaceIndices().
Distribute list of cell data.
Definition at line 259 of file mapDistributePolyMesh.H.
References mapDistribute::distribute().
Referenced by hexRef8::distribute(), and mapDistributePolyMesh::distributeCellIndices().
Distribute list of patch data.
Definition at line 266 of file mapDistributePolyMesh.H.
References mapDistribute::distribute(), mapDistributePolyMesh::distributeCellIndices(), mapDistributePolyMesh::distributeFaceIndices(), mapDistributePolyMesh::distributePatchIndices(), and mapDistributePolyMesh::distributePointIndices().
Referenced by mapDistributePolyMesh::distributePatchIndices().
void distributePointIndices | ( | labelList & | pointIDs | ) | const |
Distribute list of point/face/cell/patch indices.
(Converts to boolList, distributes boolList and reconstructs)
Definition at line 204 of file mapDistributePolyMesh.C.
References mapDistributePolyMesh::distributePointData(), Foam::findIndices(), and mapDistributePolyMesh::nOldPoints().
Referenced by mapDistributePolyMesh::distributePatchData().
void distributeFaceIndices | ( | labelList & | faceIDs | ) | const |
Definition at line 226 of file mapDistributePolyMesh.C.
References mapDistributePolyMesh::distributeFaceData(), Foam::findIndices(), and mapDistributePolyMesh::nOldFaces().
Referenced by mapDistributePolyMesh::distributePatchData().
void distributeCellIndices | ( | labelList & | cellIDs | ) | const |
Definition at line 248 of file mapDistributePolyMesh.C.
References mapDistributePolyMesh::distributeCellData(), Foam::findIndices(), and mapDistributePolyMesh::nOldCells().
Referenced by mapDistributePolyMesh::distributePatchData().
void distributePatchIndices | ( | labelList & | patchIDs | ) | const |
Definition at line 270 of file mapDistributePolyMesh.C.
References mapDistributePolyMesh::distributePatchData(), Foam::findIndices(), and mapDistributePolyMesh::oldPatchStarts().
Referenced by mapDistributePolyMesh::distributePatchData().
|
inline |
Correct for topo change.
Definition at line 282 of file mapDistributePolyMesh.H.
References NotImplemented, mapDistributePolyMesh::operator<<, mapDistributePolyMesh::operator=(), and mapDistributePolyMesh::operator>>.
void operator= | ( | const mapDistributePolyMesh & | rhs | ) |
Definition at line 294 of file mapDistributePolyMesh.C.
Referenced by mapDistributePolyMesh::updateMesh().
|
friend |
Read dictionary from Istream.
Referenced by mapDistributePolyMesh::updateMesh().
|
friend |
Write dictionary to Ostream.
Referenced by mapDistributePolyMesh::updateMesh().