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 &) |
Private Member Functions | |
void | calcPatchSizes () |
mapDistributePolyMesh (const mapDistributePolyMesh &) | |
Disallow default bitwise copy construct. More... | |
Private Attributes | |
label | nOldPoints_ |
Number of old live points. More... | |
label | nOldFaces_ |
Number of old live faces. More... | |
label | nOldCells_ |
Number of old live cells. More... | |
labelList | oldPatchSizes_ |
List of the old patch sizes. More... | |
labelList | oldPatchStarts_ |
List of the old patch start labels. More... | |
labelList | oldPatchNMeshPoints_ |
List of numbers of mesh points per old patch. More... | |
mapDistribute | pointMap_ |
Point distribute map. More... | |
mapDistribute | faceMap_ |
Face distribute map. More... | |
mapDistribute | cellMap_ |
Cell distribute map. More... | |
mapDistribute | patchMap_ |
Patch distribute map. More... | |
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 57 of file mapDistributePolyMesh.H.
|
private |
Disallow default bitwise copy construct.
Construct null.
Definition at line 61 of file mapDistributePolyMesh.C.
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 77 of file mapDistributePolyMesh.C.
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 126 of file mapDistributePolyMesh.C.
mapDistributePolyMesh | ( | const Xfer< mapDistributePolyMesh > & | map | ) |
Construct by transferring parameter content.
Definition at line 157 of file mapDistributePolyMesh.C.
mapDistributePolyMesh | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 174 of file mapDistributePolyMesh.C.
|
private |
Definition at line 31 of file mapDistributePolyMesh.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, Foam::min(), Foam::nl, mapDistributePolyMesh::nOldFaces_, mapDistributePolyMesh::oldPatchSizes_, mapDistributePolyMesh::oldPatchStarts_, List::setSize(), and List::size().
|
inline |
Number of points in mesh before distribution.
Definition at line 166 of file mapDistributePolyMesh.H.
References mapDistributePolyMesh::nOldPoints_.
Referenced by writeProcAddressing().
|
inline |
Number of faces in mesh before distribution.
Definition at line 172 of file mapDistributePolyMesh.H.
References mapDistributePolyMesh::nOldFaces_.
Referenced by writeProcAddressing().
|
inline |
Number of cells in mesh before distribution.
Definition at line 178 of file mapDistributePolyMesh.H.
References mapDistributePolyMesh::nOldCells_.
Referenced by writeProcAddressing().
|
inline |
List of the old patch sizes.
Definition at line 184 of file mapDistributePolyMesh.H.
References mapDistributePolyMesh::oldPatchSizes_.
Referenced by writeProcAddressing().
|
inline |
List of the old patch start labels.
Definition at line 190 of file mapDistributePolyMesh.H.
References mapDistributePolyMesh::oldPatchStarts_.
|
inline |
List of numbers of mesh points per old patch.
Definition at line 196 of file mapDistributePolyMesh.H.
References mapDistributePolyMesh::oldPatchNMeshPoints_.
|
inline |
Point distribute map.
Definition at line 202 of file mapDistributePolyMesh.H.
References mapDistributePolyMesh::pointMap_.
Referenced by hexRef8Data::distribute(), and writeProcAddressing().
|
inline |
Face distribute map.
Definition at line 208 of file mapDistributePolyMesh.H.
References mapDistributePolyMesh::faceMap_.
Referenced by parFvFieldReconstructor::createPatchFaceMaps(), and writeProcAddressing().
|
inline |
Cell distribute map.
Definition at line 214 of file mapDistributePolyMesh.H.
References mapDistributePolyMesh::cellMap_.
Referenced by hexRef8Data::distribute(), refinementHistory::distribute(), and writeProcAddressing().
|
inline |
Patch distribute map.
Definition at line 220 of file mapDistributePolyMesh.H.
References mapDistributePolyMesh::patchMap_.
Referenced by writeProcAddressing().
void transfer | ( | mapDistributePolyMesh & | rhs | ) |
Transfer the contents of the argument and annul the argument.
Definition at line 182 of file mapDistributePolyMesh.C.
References mapDistributePolyMesh::cellMap_, mapDistributePolyMesh::faceMap_, mapDistributePolyMesh::nOldCells_, mapDistributePolyMesh::nOldFaces_, mapDistributePolyMesh::nOldPoints_, mapDistributePolyMesh::oldPatchNMeshPoints_, mapDistributePolyMesh::oldPatchSizes_, mapDistributePolyMesh::oldPatchStarts_, mapDistributePolyMesh::patchMap_, and mapDistributePolyMesh::pointMap_.
Referenced by redistributeAndWrite().
Foam::Xfer< Foam::mapDistributePolyMesh > xfer | ( | ) |
Transfer contents to the Xfer container.
Definition at line 197 of file mapDistributePolyMesh.C.
References Foam::xferMove().
Referenced by redistributeAndWrite().
Distribute list of point data.
Definition at line 236 of file mapDistributePolyMesh.H.
References mapDistribute::distribute(), and mapDistributePolyMesh::pointMap_.
Referenced by hexRef8::distribute(), and writeProcAddressing().
Distribute list of face data.
Definition at line 243 of file mapDistributePolyMesh.H.
References mapDistribute::distribute(), and mapDistributePolyMesh::faceMap_.
Referenced by meshRefinement::distribute().
Distribute list of cell data.
Definition at line 250 of file mapDistributePolyMesh.H.
References mapDistributePolyMesh::cellMap_, and mapDistribute::distribute().
Referenced by hexRef8::distribute(), and writeProcAddressing().
Distribute list of patch data.
Definition at line 257 of file mapDistributePolyMesh.H.
References mapDistribute::distribute(), and mapDistributePolyMesh::patchMap_.
void distributePointIndices | ( | labelList & | pointIDs | ) | const |
Distribute list of point/face/cell/patch indices.
(Converts to boolList, distributes boolList and reconstructs)
Definition at line 203 of file mapDistributePolyMesh.C.
References Foam::findIndices().
void distributeFaceIndices | ( | labelList & | faceIDs | ) | const |
Definition at line 225 of file mapDistributePolyMesh.C.
References Foam::findIndices().
void distributeCellIndices | ( | labelList & | cellIDs | ) | const |
Definition at line 247 of file mapDistributePolyMesh.C.
References Foam::findIndices().
void distributePatchIndices | ( | labelList & | patchIDs | ) | const |
Definition at line 269 of file mapDistributePolyMesh.C.
References Foam::findIndices().
|
inline |
Correct for topo change.
Definition at line 273 of file mapDistributePolyMesh.H.
References NotImplemented.
void operator= | ( | const mapDistributePolyMesh & | rhs | ) |
Definition at line 293 of file mapDistributePolyMesh.C.
References mapDistributePolyMesh::cellMap_, mapDistributePolyMesh::faceMap_, mapDistributePolyMesh::nOldCells_, mapDistributePolyMesh::nOldFaces_, mapDistributePolyMesh::nOldPoints_, mapDistributePolyMesh::oldPatchNMeshPoints_, mapDistributePolyMesh::oldPatchSizes_, mapDistributePolyMesh::oldPatchStarts_, mapDistributePolyMesh::patchMap_, and mapDistributePolyMesh::pointMap_.
Referenced by IOmapDistributePolyMesh::IOmapDistributePolyMesh().
|
friend |
Read dictionary from Istream.
|
friend |
Write dictionary to Ostream.
|
private |
Number of old live points.
Definition at line 62 of file mapDistributePolyMesh.H.
Referenced by mapDistributePolyMesh::nOldPoints(), mapDistributePolyMesh::operator=(), and mapDistributePolyMesh::transfer().
|
private |
Number of old live faces.
Definition at line 65 of file mapDistributePolyMesh.H.
Referenced by mapDistributePolyMesh::calcPatchSizes(), mapDistributePolyMesh::nOldFaces(), mapDistributePolyMesh::operator=(), and mapDistributePolyMesh::transfer().
|
private |
Number of old live cells.
Definition at line 68 of file mapDistributePolyMesh.H.
Referenced by mapDistributePolyMesh::nOldCells(), mapDistributePolyMesh::operator=(), and mapDistributePolyMesh::transfer().
|
private |
List of the old patch sizes.
Definition at line 71 of file mapDistributePolyMesh.H.
Referenced by mapDistributePolyMesh::calcPatchSizes(), mapDistributePolyMesh::oldPatchSizes(), mapDistributePolyMesh::operator=(), and mapDistributePolyMesh::transfer().
|
private |
List of the old patch start labels.
Definition at line 74 of file mapDistributePolyMesh.H.
Referenced by mapDistributePolyMesh::calcPatchSizes(), mapDistributePolyMesh::oldPatchStarts(), mapDistributePolyMesh::operator=(), and mapDistributePolyMesh::transfer().
|
private |
List of numbers of mesh points per old patch.
Definition at line 77 of file mapDistributePolyMesh.H.
Referenced by mapDistributePolyMesh::oldPatchNMeshPoints(), mapDistributePolyMesh::operator=(), and mapDistributePolyMesh::transfer().
|
private |
Point distribute map.
Definition at line 81 of file mapDistributePolyMesh.H.
Referenced by mapDistributePolyMesh::distributePointData(), mapDistributePolyMesh::operator=(), mapDistributePolyMesh::pointMap(), and mapDistributePolyMesh::transfer().
|
private |
Face distribute map.
Definition at line 84 of file mapDistributePolyMesh.H.
Referenced by mapDistributePolyMesh::distributeFaceData(), mapDistributePolyMesh::faceMap(), mapDistributePolyMesh::operator=(), and mapDistributePolyMesh::transfer().
|
private |
Cell distribute map.
Definition at line 87 of file mapDistributePolyMesh.H.
Referenced by mapDistributePolyMesh::cellMap(), mapDistributePolyMesh::distributeCellData(), mapDistributePolyMesh::operator=(), and mapDistributePolyMesh::transfer().
|
private |
Patch distribute map.
Definition at line 90 of file mapDistributePolyMesh.H.
Referenced by mapDistributePolyMesh::distributePatchData(), mapDistributePolyMesh::operator=(), mapDistributePolyMesh::patchMap(), and mapDistributePolyMesh::transfer().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.