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...
#include <mapDistributePolyMesh.H>

Public Member Functions | |
| mapDistributePolyMesh () | |
| Default construct - uses worldComm. | |
| mapDistributePolyMesh (const label comm) | |
| Default construct with specified communicator. | |
| mapDistributePolyMesh (const dictionary &dict, const label comm=UPstream::worldComm) | |
| Read construct from dictionary. | |
| mapDistributePolyMesh (const mapDistributePolyMesh &map) | |
| Copy construct. | |
| mapDistributePolyMesh (mapDistributePolyMesh &&map) | |
| Move construct. | |
| mapDistributePolyMesh (mapDistributePolyMesh &map, bool reuse) | |
| Copy/move construct. | |
| 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. | |
| 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. | |
| mapDistributePolyMesh (Istream &is) | |
| Construct from Istream. | |
| label | nOldPoints () const noexcept |
| Number of points in mesh before distribution. | |
| label | nOldFaces () const noexcept |
| Number of faces in mesh before distribution. | |
| label | nOldCells () const noexcept |
| Number of cells in mesh before distribution. | |
| const labelList & | oldPatchSizes () const noexcept |
| List of the old patch sizes. | |
| const labelList & | oldPatchStarts () const noexcept |
| List of the old patch start labels. | |
| const labelList & | oldPatchNMeshPoints () const noexcept |
| List of numbers of mesh points per old patch. | |
| const mapDistribute & | pointMap () const noexcept |
| Point distribute map. | |
| const mapDistribute & | faceMap () const noexcept |
| Face distribute map. | |
| const mapDistribute & | cellMap () const noexcept |
| Cell distribute map. | |
| const mapDistribute & | patchMap () const noexcept |
| Patch distribute map. | |
| void | clear () |
| Reset to zero size, only retaining communicator(s). | |
| void | transfer (mapDistributePolyMesh &map) |
| Transfer the contents of the argument and annul the argument. | |
| template<class T> | |
| void | distributePointData (List< T > &values) const |
| Distribute list of point data. | |
| template<class T> | |
| void | distributeFaceData (List< T > &values) const |
| Distribute list of face data. | |
| template<class T> | |
| void | distributeCellData (List< T > &values) const |
| Distribute list of cell data. | |
| template<class T> | |
| void | distributePatchData (List< T > &values) const |
| Distribute list of patch data. | |
| void | distributePointIndices (labelList &pointIDs) const |
| Distribute list of point/face/cell/patch indices. | |
| void | distributeFaceIndices (labelList &faceIDs) const |
| void | distributeCellIndices (labelList &cellIDs) const |
| void | distributePatchIndices (labelList &patchIDs) const |
| void | operator= (const mapDistributePolyMesh &map) |
| Copy assignment. | |
| void | operator= (mapDistributePolyMesh &&map) |
| Move assignment. | |
| InfoProxy< mapDistributePolyMesh > | info () const noexcept |
| Return info proxy, used to print summary information to a stream. | |
| void | readDict (const dictionary &dict) |
| Read entries from dictionary format. | |
| void | writeCellMapEntries (Ostream &os) const |
| Write cellMap in dictionary format. | |
| void | writeFaceMapEntries (Ostream &os) const |
| Write faceMap in dictionary format. | |
| void | writePointMapEntries (Ostream &os) const |
| Write pointMap entries in dictionary format. | |
| void | writePatchMapEntries (Ostream &os) const |
| Write patchMap in dictionary format. | |
| void | writeEntries (Ostream &os) const |
| Write all map entries in dictionary format. | |
| void | updateMesh (const mapPolyMesh &) |
| No correction for topo change. | |
Friends | |
| Istream & | operator>> (Istream &, mapDistributePolyMesh &) |
| Read plain content (not dictionary) from Istream. | |
| Ostream & | operator<< (Ostream &, const mapDistributePolyMesh &) |
| Write plain content (not dictionary) to Ostream. | |
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.
| mapDistributePolyMesh | ( | ) |
Default construct - uses worldComm.
Definition at line 57 of file mapDistributePolyMesh.C.
References mapDistributePolyMesh().
Referenced by IOmapDistributePolyMesh::IOmapDistributePolyMesh(), IOmapDistributePolyMesh::IOmapDistributePolyMesh(), mapDistributePolyMesh(), mapDistributePolyMesh(), mapDistributePolyMesh(), mapDistributePolyMesh(), mapDistributePolyMesh(), operator<<, operator=(), operator=(), operator>>, transfer(), IOmapDistributePolyMesh::TypeName(), and IOmapDistributePolyMesh::writeContents().


|
explicit |
Default construct with specified communicator.
Definition at line 63 of file mapDistributePolyMesh.C.
|
explicit |
Read construct from dictionary.
Definition at line 26 of file mapDistributePolyMeshIO.C.
References dict, mapDistributePolyMesh(), and readDict().

| mapDistributePolyMesh | ( | const mapDistributePolyMesh & | map | ) |
Copy construct.
Definition at line 78 of file mapDistributePolyMesh.C.
References mapDistributePolyMesh().

| mapDistributePolyMesh | ( | mapDistributePolyMesh && | map | ) |
Move construct.
Definition at line 89 of file mapDistributePolyMesh.C.
References mapDistributePolyMesh(), and transfer().

| mapDistributePolyMesh | ( | mapDistributePolyMesh & | map, |
| bool | reuse ) |
Copy/move construct.
Definition at line 100 of file mapDistributePolyMesh.C.
References mapDistributePolyMesh(), and transfer().

| 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 119 of file mapDistributePolyMesh.C.
References mesh, nOldCells(), nOldFaces(), nOldPoints(), nPoints, oldPatchNMeshPoints(), and oldPatchStarts().

| 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 183 of file mapDistributePolyMesh.C.
References cellMap(), faceMap(), nOldCells(), nOldFaces(), nOldPoints(), oldPatchNMeshPoints(), oldPatchStarts(), patchMap(), and pointMap().

|
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.
References Foam::noexcept.
Referenced by pointSet::distribute(), distributePointIndices(), mapDistributePolyMesh(), mapDistributePolyMesh(), and fvMeshTools::writeProcAddressing().

|
inlinenoexcept |
Number of faces in mesh before distribution.
Definition at line 237 of file mapDistributePolyMesh.H.
References Foam::noexcept.
Referenced by faceSet::distribute(), distributeFaceIndices(), mapDistributePolyMesh(), mapDistributePolyMesh(), and fvMeshTools::writeProcAddressing().

|
inlinenoexcept |
Number of cells in mesh before distribution.
Definition at line 245 of file mapDistributePolyMesh.H.
References Foam::noexcept.
Referenced by cellSet::distribute(), distributeCellIndices(), mapDistributePolyMesh(), mapDistributePolyMesh(), and fvMeshTools::writeProcAddressing().

|
inlinenoexcept |
List of the old patch sizes.
Definition at line 253 of file mapDistributePolyMesh.H.
References Foam::noexcept.
Referenced by fvMeshTools::writeProcAddressing().

|
inlinenoexcept |
List of the old patch start labels.
Definition at line 261 of file mapDistributePolyMesh.H.
References Foam::noexcept.
Referenced by distributePatchIndices(), mapDistributePolyMesh(), and mapDistributePolyMesh().

|
inlinenoexcept |
List of numbers of mesh points per old patch.
Definition at line 269 of file mapDistributePolyMesh.H.
References Foam::noexcept.
Referenced by mapDistributePolyMesh(), and mapDistributePolyMesh().

|
inlinenoexcept |
Point distribute map.
Definition at line 277 of file mapDistributePolyMesh.H.
References Foam::noexcept.
Referenced by hexRef8Data::distribute(), mapDistributePolyMesh(), and fvMeshTools::writeProcAddressing().

|
inlinenoexcept |
Face distribute map.
Definition at line 285 of file mapDistributePolyMesh.H.
References Foam::noexcept.
Referenced by mapDistributePolyMesh(), and fvMeshTools::writeProcAddressing().

|
inlinenoexcept |
Cell distribute map.
Definition at line 293 of file mapDistributePolyMesh.H.
References Foam::noexcept.
Referenced by hexRef8Data::distribute(), refinementHistory::distribute(), mapDistributePolyMesh(), and fvMeshTools::writeProcAddressing().

|
inlinenoexcept |
Patch distribute map.
Definition at line 301 of file mapDistributePolyMesh.H.
References Foam::noexcept.
Referenced by mapDistributePolyMesh(), 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.
References mapDistributePolyMesh(), and Foam::rhs().
Referenced by IOmapDistributePolyMesh::IOmapDistributePolyMesh(), mapDistributePolyMesh(), mapDistributePolyMesh(), and operator=().


Distribute list of point data.
Definition at line 326 of file mapDistributePolyMesh.H.
Referenced by hexRef8::distribute(), pointBitSet::distribute(), pointSet::distribute(), distributePointIndices(), and fvMeshTools::writeProcAddressing().

Distribute list of face data.
Definition at line 335 of file mapDistributePolyMesh.H.
Referenced by faceBitSet::distribute(), faceBoolSet::distribute(), faceSet::distribute(), meshRefinement::distribute(), and distributeFaceIndices().

Distribute list of cell data.
Definition at line 344 of file mapDistributePolyMesh.H.
Referenced by cellSet::distribute(), hexRef8::distribute(), distributeCellIndices(), and fvMeshTools::writeProcAddressing().

Distribute list of patch data.
Definition at line 353 of file mapDistributePolyMesh.H.
Referenced by distributePatchIndices().

| 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::ListOps::createWithValue(), distributePointData(), Foam::findIndices(), and nOldPoints().

| void distributeFaceIndices | ( | labelList & | faceIDs | ) | const |
Definition at line 293 of file mapDistributePolyMesh.C.
References Foam::ListOps::createWithValue(), distributeFaceData(), Foam::findIndices(), and nOldFaces().

| void distributeCellIndices | ( | labelList & | cellIDs | ) | const |
Definition at line 309 of file mapDistributePolyMesh.C.
References Foam::ListOps::createWithValue(), distributeCellData(), Foam::findIndices(), and nOldCells().

| void distributePatchIndices | ( | labelList & | patchIDs | ) | const |
Definition at line 325 of file mapDistributePolyMesh.C.
References Foam::ListOps::createWithValue(), distributePatchData(), Foam::findIndices(), and oldPatchStarts().

| void operator= | ( | const mapDistributePolyMesh & | map | ) |
Copy assignment.
Definition at line 349 of file mapDistributePolyMesh.C.
References mapDistributePolyMesh(), and Foam::rhs().
Referenced by IOmapDistributePolyMesh::IOmapDistributePolyMesh().


| void operator= | ( | mapDistributePolyMesh && | map | ) |
Move assignment.
Definition at line 370 of file mapDistributePolyMesh.C.
References mapDistributePolyMesh(), Foam::rhs(), and transfer().

|
inlinenoexcept |
Return info proxy, used to print summary information to a stream.
Definition at line 391 of file mapDistributePolyMesh.H.
References Foam::noexcept.
| void readDict | ( | const dictionary & | dict | ) |
Read entries from dictionary format.
Definition at line 46 of file mapDistributePolyMeshIO.C.
References dict, and dictionary::readEntry().
Referenced by mapDistributePolyMesh().


| void writeCellMapEntries | ( | Ostream & | os | ) | const |
Write cellMap in dictionary format.
Definition at line 84 of file mapDistributePolyMeshIO.C.
References os().
Referenced by writeEntries().


| void writeFaceMapEntries | ( | Ostream & | os | ) | const |
Write faceMap in dictionary format.
Definition at line 93 of file mapDistributePolyMeshIO.C.
References os().
Referenced by writeEntries().


| void writePointMapEntries | ( | Ostream & | os | ) | const |
Write pointMap entries in dictionary format.
Definition at line 102 of file mapDistributePolyMeshIO.C.
References os().
Referenced by writeEntries().


| void writePatchMapEntries | ( | Ostream & | os | ) | const |
Write patchMap in dictionary format.
Definition at line 111 of file mapDistributePolyMeshIO.C.
References os().
Referenced by writeEntries().


| void writeEntries | ( | Ostream & | os | ) | const |
Write all map entries in dictionary format.
Definition at line 122 of file mapDistributePolyMeshIO.C.
References Foam::nl, os(), writeCellMapEntries(), writeFaceMapEntries(), writePatchMapEntries(), and writePointMapEntries().

|
inline |
No correction for topo change.
Definition at line 444 of file mapDistributePolyMesh.H.
References NotImplemented.
|
friend |
Read plain content (not dictionary) from Istream.
References mapDistributePolyMesh().
|
friend |
Write plain content (not dictionary) to Ostream.
References mapDistributePolyMesh().