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 <OpenFOAM/mapDistributePolyMesh.H>
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 58 of file mapDistributePolyMesh.H.
Public Member Functions | |
mapDistributePolyMesh (const polyMesh &mesh, const label nOldPoints, const label nOldFaces, const label nOldCells, const labelList &oldPatchStarts, const labelList &oldPatchNMeshPoints, const labelListList &subPointMap, const labelListList &subFaceMap, const labelListList &subCellMap, const labelListList &subPatchMap, const labelListList &constructPointMap, const labelListList &constructFaceMap, const labelListList &constructCellMap, const labelListList &constructPatchMap) | |
Construct from components. Note that mesh has to be changed already.
| |
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 reUse) | |
(optionally destructively) construct from components
| |
const polyMesh & | mesh () const |
label | nOldPoints () const |
Number of points in mesh before distribution.
| |
label | nOldFaces () const |
Number of faces in mesh before distribution.
| |
label | nOldCells () const |
Number of cells in mesh before distribution.
| |
const labelList & | oldPatchSizes () const |
List of the old patch sizes.
| |
const labelList & | oldPatchStarts () const |
List of the old patch start labels.
| |
const labelList & | oldPatchNMeshPoints () const |
List of numbers of mesh points per old patch.
| |
const mapDistribute & | pointMap () const |
Point distribute map.
| |
const mapDistribute & | faceMap () const |
Face distribute map.
| |
const mapDistribute & | cellMap () const |
Cell distribute map.
| |
const mapDistribute & | patchMap () const |
Patch distribute map.
| |
template<class T > | |
void | distributePointData (List< T > &lst) const |
distribute list of point data
| |
template<class T > | |
void | distributeFaceData (List< T > &lst) const |
distribute list of face data
| |
template<class T > | |
void | distributeCellData (List< T > &lst) const |
distribute list of cell data
| |
template<class T > | |
void | distributePatchData (List< T > &lst) 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 | updateMesh (const mapPolyMesh &) |
Correct for topo change.
|
mapDistributePolyMesh | ( | const polyMesh & | mesh, |
const label | nOldPoints, | ||
const label | nOldFaces, | ||
const label | nOldCells, | ||
const labelList & | oldPatchStarts, | ||
const labelList & | oldPatchNMeshPoints, | ||
const labelListList & | subPointMap, | ||
const labelListList & | subFaceMap, | ||
const labelListList & | subCellMap, | ||
const labelListList & | subPatchMap, | ||
const labelListList & | constructPointMap, | ||
const labelListList & | constructFaceMap, | ||
const labelListList & | constructCellMap, | ||
const labelListList & | constructPatchMap | ||
) |
Construct from components. Note that mesh has to be changed already.
Construct from components.
since uses mesh.nPoints etc as the new size.
Definition at line 61 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 | reUse | ||
) |
(optionally destructively) construct from components
Note that mesh has to be changed already!
Definition at line 102 of file mapDistributePolyMesh.C.
const polyMesh& mesh | ( | ) | const [inline]
|
Definition at line 165 of file mapDistributePolyMesh.H.
Referenced by refinementHistory::distribute().
label nOldPoints | ( | ) | const [inline]
|
Number of points in mesh before distribution.
Definition at line 171 of file mapDistributePolyMesh.H.
label nOldFaces | ( | ) | const [inline]
|
Number of faces in mesh before distribution.
Definition at line 177 of file mapDistributePolyMesh.H.
label nOldCells | ( | ) | const [inline]
|
Number of cells in mesh before distribution.
Definition at line 183 of file mapDistributePolyMesh.H.
const labelList& oldPatchSizes | ( | ) | const [inline]
|
List of the old patch sizes.
Definition at line 189 of file mapDistributePolyMesh.H.
const labelList& oldPatchStarts | ( | ) | const [inline]
|
List of the old patch start labels.
Definition at line 195 of file mapDistributePolyMesh.H.
const labelList& oldPatchNMeshPoints | ( | ) | const [inline]
|
List of numbers of mesh points per old patch.
Definition at line 201 of file mapDistributePolyMesh.H.
const mapDistribute& pointMap | ( | ) | const [inline]
|
Point distribute map.
Definition at line 207 of file mapDistributePolyMesh.H.
const mapDistribute& faceMap | ( | ) | const [inline]
|
Face distribute map.
Definition at line 213 of file mapDistributePolyMesh.H.
const mapDistribute& cellMap | ( | ) | const [inline]
|
Cell distribute map.
Definition at line 219 of file mapDistributePolyMesh.H.
Referenced by refinementHistory::distribute().
const mapDistribute& patchMap | ( | ) | const [inline]
|
Patch distribute map.
Definition at line 225 of file mapDistributePolyMesh.H.
void distributePointData | ( | List< T > & | lst ) | const [inline]
|
distribute list of point data
Definition at line 235 of file mapDistributePolyMesh.H.
References mapDistribute::distribute().
Referenced by hexRef8::distribute().
void distributeFaceData | ( | List< T > & | lst ) | const [inline]
|
distribute list of face data
Definition at line 242 of file mapDistributePolyMesh.H.
References mapDistribute::distribute().
Referenced by meshRefinement::distribute().
void distributeCellData | ( | List< T > & | lst ) | const [inline]
|
distribute list of cell data
Definition at line 249 of file mapDistributePolyMesh.H.
References mapDistribute::distribute().
Referenced by hexRef8::distribute().
void distributePatchData | ( | List< T > & | lst ) | const [inline]
|
distribute list of patch data
Definition at line 256 of file mapDistributePolyMesh.H.
References mapDistribute::distribute().
void distributePointIndices | ( | labelList & | pointIDs ) | const |
distribute list of point/face/cell/patch indices.
(Converts to boolList, distributes boolList and reconstructs)
Definition at line 140 of file mapDistributePolyMesh.C.
References Foam::findIndices().
void distributeFaceIndices | ( | labelList & | faceIDs ) | const |
Definition at line 162 of file mapDistributePolyMesh.C.
References Foam::findIndices().
void distributeCellIndices | ( | labelList & | cellIDs ) | const |
Definition at line 184 of file mapDistributePolyMesh.C.
References Foam::findIndices().
void distributePatchIndices | ( | labelList & | patchIDs ) | const |
Definition at line 206 of file mapDistributePolyMesh.C.
References Foam::findIndices().
void updateMesh | ( | const mapPolyMesh & | ) | [inline]
|
Correct for topo change.
Definition at line 272 of file mapDistributePolyMesh.H.
References notImplemented.