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 () | |
Default construct - uses worldComm. More... | |
mapDistributePolyMesh (const label comm) | |
Default construct with specified communicator. More... | |
mapDistributePolyMesh (const dictionary &dict, const label comm=UPstream::worldComm) | |
Read construct from dictionary. More... | |
mapDistributePolyMesh (const mapDistributePolyMesh &map) | |
Copy construct. More... | |
mapDistributePolyMesh (mapDistributePolyMesh &&map) | |
Move construct. More... | |
mapDistributePolyMesh (mapDistributePolyMesh &map, bool reuse) | |
Copy/move construct. More... | |
mapDistributePolyMesh (const polyMesh &mesh, const label nOldPoints, const label nOldFaces, const label nOldCells, labelList &&oldPatchStarts, labelList &&oldPatchNMeshPoints, labelListList &&subPointMap, labelListList &&subFaceMap, labelListList &&subCellMap, labelListList &&subPatchMap, labelListList &&constructPointMap, labelListList &&constructFaceMap, labelListList &&constructCellMap, 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, labelList &&oldPatchStarts, labelList &&oldPatchNMeshPoints, mapDistribute &&pointMap, mapDistribute &&faceMap, mapDistribute &&cellMap, mapDistribute &&patchMap) | |
Move construct from components. More... | |
mapDistributePolyMesh (Istream &is) | |
Construct from Istream. More... | |
label | nOldPoints () const noexcept |
Number of points in mesh before distribution. More... | |
label | nOldFaces () const noexcept |
Number of faces in mesh before distribution. More... | |
label | nOldCells () const noexcept |
Number of cells in mesh before distribution. More... | |
const labelList & | oldPatchSizes () const noexcept |
List of the old patch sizes. More... | |
const labelList & | oldPatchStarts () const noexcept |
List of the old patch start labels. More... | |
const labelList & | oldPatchNMeshPoints () const noexcept |
List of numbers of mesh points per old patch. More... | |
const mapDistribute & | pointMap () const noexcept |
Point distribute map. More... | |
const mapDistribute & | faceMap () const noexcept |
Face distribute map. More... | |
const mapDistribute & | cellMap () const noexcept |
Cell distribute map. More... | |
const mapDistribute & | patchMap () const noexcept |
Patch distribute map. More... | |
void | clear () |
Reset to zero size, only retaining communicator(s) More... | |
void | transfer (mapDistributePolyMesh &map) |
Transfer the contents of the argument and annul the argument. More... | |
template<class T > | |
void | distributePointData (List< T > &values) const |
Distribute list of point data. More... | |
template<class T > | |
void | distributeFaceData (List< T > &values) const |
Distribute list of face data. More... | |
template<class T > | |
void | distributeCellData (List< T > &values) const |
Distribute list of cell data. More... | |
template<class T > | |
void | distributePatchData (List< T > &values) 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 | operator= (const mapDistributePolyMesh &map) |
Copy assignment. More... | |
void | operator= (mapDistributePolyMesh &&map) |
Move assignment. More... | |
InfoProxy< mapDistributePolyMesh > | info () const noexcept |
Return info proxy, used to print summary information to a stream. More... | |
void | readDict (const dictionary &dict) |
Read entries from dictionary format. More... | |
void | writeCellMapEntries (Ostream &os) const |
Write cellMap in dictionary format. More... | |
void | writeFaceMapEntries (Ostream &os) const |
Write faceMap in dictionary format. More... | |
void | writePointMapEntries (Ostream &os) const |
Write pointMap entries in dictionary format. More... | |
void | writePatchMapEntries (Ostream &os) const |
Write patchMap in dictionary format. More... | |
void | writeEntries (Ostream &os) const |
Write all map entries in dictionary format. More... | |
void | updateMesh (const mapPolyMesh &) |
No correction for topo change. More... | |
Friends | |
Istream & | operator>> (Istream &, mapDistributePolyMesh &) |
Read plain content (not dictionary) from Istream. More... | |
Ostream & | operator<< (Ostream &, const mapDistributePolyMesh &) |
Write plain content (not 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 65 of file mapDistributePolyMesh.H.
Default construct - uses worldComm.
Definition at line 57 of file mapDistributePolyMesh.C.
|
explicit |
Default construct with specified communicator.
Definition at line 63 of file mapDistributePolyMesh.C.
|
explicit |
Read construct from dictionary.
Definition at line 27 of file mapDistributePolyMeshIO.C.
References dict.
mapDistributePolyMesh | ( | const mapDistributePolyMesh & | map | ) |
Copy construct.
Definition at line 79 of file mapDistributePolyMesh.C.
mapDistributePolyMesh | ( | mapDistributePolyMesh && | map | ) |
Move construct.
Definition at line 90 of file mapDistributePolyMesh.C.
mapDistributePolyMesh | ( | mapDistributePolyMesh & | map, |
bool | reuse | ||
) |
Copy/move construct.
Definition at line 101 of file mapDistributePolyMesh.C.
mapDistributePolyMesh | ( | const polyMesh & | mesh, |
const label | nOldPoints, | ||
const label | nOldFaces, | ||
const label | nOldCells, | ||
labelList && | oldPatchStarts, | ||
labelList && | oldPatchNMeshPoints, | ||
labelListList && | subPointMap, | ||
labelListList && | subFaceMap, | ||
labelListList && | subCellMap, | ||
labelListList && | subPatchMap, | ||
labelListList && | constructPointMap, | ||
labelListList && | constructFaceMap, | ||
labelListList && | constructCellMap, | ||
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 120 of file mapDistributePolyMesh.C.
mapDistributePolyMesh | ( | const label | nOldPoints, |
const label | nOldFaces, | ||
const label | nOldCells, | ||
labelList && | oldPatchStarts, | ||
labelList && | oldPatchNMeshPoints, | ||
mapDistribute && | pointMap, | ||
mapDistribute && | faceMap, | ||
mapDistribute && | cellMap, | ||
mapDistribute && | patchMap | ||
) |
Move construct from components.
Definition at line 184 of file mapDistributePolyMesh.C.
|
explicit |
Construct from Istream.
Definition at line 38 of file mapDistributePolyMeshIO.C.
|
inlinenoexcept |
Number of points in mesh before distribution.
Definition at line 229 of file mapDistributePolyMesh.H.
Referenced by faMeshDistributor::distribute(), pointSet::distribute(), faMeshTools::writeProcAddressing(), and fvMeshTools::writeProcAddressing().
|
inlinenoexcept |
Number of faces in mesh before distribution.
Definition at line 237 of file mapDistributePolyMesh.H.
Referenced by faMeshDistributor::distribute(), faceSet::distribute(), faMeshTools::writeProcAddressing(), and fvMeshTools::writeProcAddressing().
|
inlinenoexcept |
Number of cells in mesh before distribution.
Definition at line 245 of file mapDistributePolyMesh.H.
Referenced by cellSet::distribute(), faMeshTools::writeProcAddressing(), and fvMeshTools::writeProcAddressing().
|
inlinenoexcept |
List of the old patch sizes.
Definition at line 253 of file mapDistributePolyMesh.H.
Referenced by faMeshTools::writeProcAddressing(), and fvMeshTools::writeProcAddressing().
|
inlinenoexcept |
List of the old patch start labels.
Definition at line 261 of file mapDistributePolyMesh.H.
|
inlinenoexcept |
List of numbers of mesh points per old patch.
Definition at line 269 of file mapDistributePolyMesh.H.
|
inlinenoexcept |
Point distribute map.
Definition at line 277 of file mapDistributePolyMesh.H.
Referenced by hexRef8Data::distribute(), faMeshDistributor::distribute(), faMeshTools::writeProcAddressing(), and fvMeshTools::writeProcAddressing().
|
inlinenoexcept |
Face distribute map.
Definition at line 285 of file mapDistributePolyMesh.H.
Referenced by faMeshDistributor::distribute(), faMeshTools::writeProcAddressing(), and fvMeshTools::writeProcAddressing().
|
inlinenoexcept |
Cell distribute map.
Definition at line 293 of file mapDistributePolyMesh.H.
Referenced by hexRef8Data::distribute(), refinementHistory::distribute(), faMeshTools::writeProcAddressing(), and fvMeshTools::writeProcAddressing().
|
inlinenoexcept |
Patch distribute map.
Definition at line 301 of file mapDistributePolyMesh.H.
Referenced by faMeshTools::writeProcAddressing(), and fvMeshTools::writeProcAddressing().
void clear | ( | ) |
Reset to zero size, only retaining communicator(s)
Definition at line 216 of file mapDistributePolyMesh.C.
void transfer | ( | mapDistributePolyMesh & | map | ) |
Transfer the contents of the argument and annul the argument.
Definition at line 252 of file mapDistributePolyMesh.C.
Referenced by IOmapDistributePolyMesh::IOmapDistributePolyMesh().
Distribute list of point data.
Definition at line 326 of file mapDistributePolyMesh.H.
References mapDistribute::distribute(), and Foam::HashTableOps::values().
Referenced by pointBitSet::distribute(), pointSet::distribute(), hexRef8::distribute(), faMeshTools::writeProcAddressing(), and fvMeshTools::writeProcAddressing().
Distribute list of face data.
Definition at line 335 of file mapDistributePolyMesh.H.
References mapDistribute::distribute(), and Foam::HashTableOps::values().
Referenced by faceBitSet::distribute(), faceBoolSet::distribute(), faceSet::distribute(), and meshRefinement::distribute().
Distribute list of cell data.
Definition at line 344 of file mapDistributePolyMesh.H.
References mapDistribute::distribute(), and Foam::HashTableOps::values().
Referenced by cellSet::distribute(), hexRef8::distribute(), and fvMeshTools::writeProcAddressing().
Distribute list of patch data.
Definition at line 353 of file mapDistributePolyMesh.H.
References mapDistribute::distribute(), and Foam::HashTableOps::values().
void distributePointIndices | ( | labelList & | pointIDs | ) | const |
Distribute list of point/face/cell/patch indices.
(Converts to boolList, distributes boolList and reconstructs)
Definition at line 277 of file mapDistributePolyMesh.C.
References Foam::findIndices().
void distributeFaceIndices | ( | labelList & | faceIDs | ) | const |
Definition at line 293 of file mapDistributePolyMesh.C.
References Foam::findIndices().
void distributeCellIndices | ( | labelList & | cellIDs | ) | const |
Definition at line 309 of file mapDistributePolyMesh.C.
References Foam::findIndices().
void distributePatchIndices | ( | labelList & | patchIDs | ) | const |
Definition at line 325 of file mapDistributePolyMesh.C.
References Foam::findIndices().
void operator= | ( | const mapDistributePolyMesh & | map | ) |
Copy assignment.
Definition at line 349 of file mapDistributePolyMesh.C.
Referenced by IOmapDistributePolyMesh::IOmapDistributePolyMesh().
void operator= | ( | mapDistributePolyMesh && | map | ) |
Move assignment.
Definition at line 370 of file mapDistributePolyMesh.C.
|
inlinenoexcept |
Return info proxy, used to print summary information to a stream.
Definition at line 391 of file mapDistributePolyMesh.H.
void readDict | ( | const dictionary & | dict | ) |
Read entries from dictionary format.
Definition at line 46 of file mapDistributePolyMeshIO.C.
References dict, dictionary::readEntry(), and dictionary::subDict().
void writeCellMapEntries | ( | Ostream & | os | ) | const |
Write cellMap in dictionary format.
Definition at line 84 of file mapDistributePolyMeshIO.C.
References Ostream::beginBlock(), Ostream::endBlock(), os(), and Ostream::writeEntry().
void writeFaceMapEntries | ( | Ostream & | os | ) | const |
Write faceMap in dictionary format.
Definition at line 93 of file mapDistributePolyMeshIO.C.
References Ostream::beginBlock(), Ostream::endBlock(), os(), and Ostream::writeEntry().
void writePointMapEntries | ( | Ostream & | os | ) | const |
Write pointMap entries in dictionary format.
Definition at line 102 of file mapDistributePolyMeshIO.C.
References Ostream::beginBlock(), Ostream::endBlock(), os(), and Ostream::writeEntry().
void writePatchMapEntries | ( | Ostream & | os | ) | const |
Write patchMap in dictionary format.
Definition at line 111 of file mapDistributePolyMeshIO.C.
References Ostream::beginBlock(), Ostream::endBlock(), os(), and Ostream::writeEntry().
void writeEntries | ( | Ostream & | os | ) | const |
Write all map entries in dictionary format.
Definition at line 122 of file mapDistributePolyMeshIO.C.
References Foam::nl, and os().
|
inline |
No correction for topo change.
Definition at line 444 of file mapDistributePolyMesh.H.
References NotImplemented.
|
friend |
Read plain content (not dictionary) from Istream.
|
friend |
Write plain content (not dictionary) to Ostream.