Public Member Functions | Friends | List of all members
mapDistributePolyMesh Class Reference

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...

Inheritance diagram for mapDistributePolyMesh:
Inheritance graph
[legend]

Public Member Functions

 mapDistributePolyMesh ()
 
 mapDistributePolyMesh (mapDistributePolyMesh &&map)
 
 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)
 
 mapDistributePolyMesh (const label nOldPoints, const label nOldFaces, const label nOldCells, labelList &&oldPatchStarts, labelList &&oldPatchNMeshPoints, mapDistribute &&pointMap, mapDistribute &&faceMap, mapDistribute &&cellMap, mapDistribute &&patchMap)
 
 mapDistributePolyMesh (Istream &is)
 
label nOldPoints () const
 
label nOldFaces () const
 
label nOldCells () const
 
const labelListoldPatchSizes () const
 
const labelListoldPatchStarts () const
 
const labelListoldPatchNMeshPoints () const
 
const mapDistributepointMap () const
 
const mapDistributefaceMap () const
 
const mapDistributecellMap () const
 
const mapDistributepatchMap () const
 
void transfer (mapDistributePolyMesh &map)
 
template<class T >
void distributePointData (List< T > &lst) const
 
template<class T >
void distributeFaceData (List< T > &lst) const
 
template<class T >
void distributeCellData (List< T > &lst) const
 
template<class T >
void distributePatchData (List< T > &lst) const
 
void distributePointIndices (labelList &pointIDs) const
 
void distributeFaceIndices (labelList &faceIDs) const
 
void distributeCellIndices (labelList &cellIDs) const
 
void distributePatchIndices (labelList &patchIDs) const
 
void updateMesh (const mapPolyMesh &)
 
void operator= (const mapDistributePolyMesh &map)
 
void operator= (mapDistributePolyMesh &&map)
 

Friends

Istreamoperator>> (Istream &, mapDistributePolyMesh &)
 
Ostreamoperator<< (Ostream &, const mapDistributePolyMesh &)
 

Detailed Description

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).

Source files

Definition at line 62 of file mapDistributePolyMesh.H.

Constructor & Destructor Documentation

◆ mapDistributePolyMesh() [1/5]

Definition at line 57 of file mapDistributePolyMesh.C.

◆ mapDistributePolyMesh() [2/5]

Definition at line 73 of file mapDistributePolyMesh.C.

◆ mapDistributePolyMesh() [3/5]

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 
)

Definition at line 84 of file mapDistributePolyMesh.C.

◆ mapDistributePolyMesh() [4/5]

mapDistributePolyMesh ( const label  nOldPoints,
const label  nOldFaces,
const label  nOldCells,
labelList &&  oldPatchStarts,
labelList &&  oldPatchNMeshPoints,
mapDistribute &&  pointMap,
mapDistribute &&  faceMap,
mapDistribute &&  cellMap,
mapDistribute &&  patchMap 
)

Definition at line 148 of file mapDistributePolyMesh.C.

◆ mapDistributePolyMesh() [5/5]

Definition at line 178 of file mapDistributePolyMesh.C.

Member Function Documentation

◆ nOldPoints()

label nOldPoints ( ) const
inline

Definition at line 171 of file mapDistributePolyMesh.H.

Referenced by pointSet::distribute().

Here is the caller graph for this function:

◆ nOldFaces()

label nOldFaces ( ) const
inline

Definition at line 177 of file mapDistributePolyMesh.H.

Referenced by faceSet::distribute().

Here is the caller graph for this function:

◆ nOldCells()

label nOldCells ( ) const
inline

Definition at line 183 of file mapDistributePolyMesh.H.

Referenced by cellSet::distribute().

Here is the caller graph for this function:

◆ oldPatchSizes()

const labelList& oldPatchSizes ( ) const
inline

Definition at line 189 of file mapDistributePolyMesh.H.

◆ oldPatchStarts()

const labelList& oldPatchStarts ( ) const
inline

Definition at line 195 of file mapDistributePolyMesh.H.

◆ oldPatchNMeshPoints()

const labelList& oldPatchNMeshPoints ( ) const
inline

Definition at line 201 of file mapDistributePolyMesh.H.

◆ pointMap()

const mapDistribute& pointMap ( ) const
inline

Definition at line 207 of file mapDistributePolyMesh.H.

Referenced by hexRef8Data::distribute().

Here is the caller graph for this function:

◆ faceMap()

const mapDistribute& faceMap ( ) const
inline

Definition at line 213 of file mapDistributePolyMesh.H.

◆ cellMap()

const mapDistribute& cellMap ( ) const
inline

Definition at line 219 of file mapDistributePolyMesh.H.

Referenced by hexRef8Data::distribute(), and refinementHistory::distribute().

Here is the caller graph for this function:

◆ patchMap()

const mapDistribute& patchMap ( ) const
inline

Definition at line 225 of file mapDistributePolyMesh.H.

◆ transfer()

void transfer ( mapDistributePolyMesh map)

Definition at line 186 of file mapDistributePolyMesh.C.

Referenced by IOmapDistributePolyMesh::IOmapDistributePolyMesh().

Here is the caller graph for this function:

◆ distributePointData()

void distributePointData ( List< T > &  lst) const
inline

Definition at line 238 of file mapDistributePolyMesh.H.

References mapDistribute::distribute().

Referenced by pointBitSet::distribute(), pointSet::distribute(), and hexRef8::distribute().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ distributeFaceData()

void distributeFaceData ( List< T > &  lst) const
inline

Definition at line 245 of file mapDistributePolyMesh.H.

References mapDistribute::distribute().

Referenced by faceBitSet::distribute(), faceBoolSet::distribute(), faceSet::distribute(), and meshRefinement::distribute().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ distributeCellData()

void distributeCellData ( List< T > &  lst) const
inline

Definition at line 252 of file mapDistributePolyMesh.H.

References mapDistribute::distribute().

Referenced by cellSet::distribute(), and hexRef8::distribute().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ distributePatchData()

void distributePatchData ( List< T > &  lst) const
inline

Definition at line 259 of file mapDistributePolyMesh.H.

References mapDistribute::distribute().

Here is the call graph for this function:

◆ distributePointIndices()

void distributePointIndices ( labelList pointIDs) const

Definition at line 205 of file mapDistributePolyMesh.C.

References Foam::findIndices().

Here is the call graph for this function:

◆ distributeFaceIndices()

void distributeFaceIndices ( labelList faceIDs) const

Definition at line 221 of file mapDistributePolyMesh.C.

References Foam::findIndices().

Here is the call graph for this function:

◆ distributeCellIndices()

void distributeCellIndices ( labelList cellIDs) const

Definition at line 237 of file mapDistributePolyMesh.C.

References Foam::findIndices().

Here is the call graph for this function:

◆ distributePatchIndices()

void distributePatchIndices ( labelList patchIDs) const

Definition at line 253 of file mapDistributePolyMesh.C.

References Foam::findIndices().

Here is the call graph for this function:

◆ updateMesh()

void updateMesh ( const mapPolyMesh )
inline

Definition at line 275 of file mapDistributePolyMesh.H.

References NotImplemented.

◆ operator=() [1/2]

void operator= ( const mapDistributePolyMesh map)

Definition at line 277 of file mapDistributePolyMesh.C.

Referenced by IOmapDistributePolyMesh::IOmapDistributePolyMesh().

Here is the caller graph for this function:

◆ operator=() [2/2]

void operator= ( mapDistributePolyMesh &&  map)

Definition at line 292 of file mapDistributePolyMesh.C.

Friends And Related Function Documentation

◆ operator>>

Istream& operator>> ( Istream ,
mapDistributePolyMesh  
)
friend

◆ operator<<

Ostream& operator<< ( Ostream ,
const mapDistributePolyMesh  
)
friend

The documentation for this class was generated from the following files: