Public Member Functions | Private Member Functions | Private Attributes | Friends
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]
Collaboration diagram for mapDistributePolyMesh:
Collaboration graph
[legend]

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 labelListoldPatchSizes () const
 List of the old patch sizes. More...
 
const labelListoldPatchStarts () const
 List of the old patch start labels. More...
 
const labelListoldPatchNMeshPoints () const
 List of numbers of mesh points per old patch. More...
 
const mapDistributepointMap () const
 Point distribute map. More...
 
const mapDistributefaceMap () const
 Face distribute map. More...
 
const mapDistributecellMap () const
 Cell distribute map. More...
 
const mapDistributepatchMap () const
 Patch distribute map. More...
 
void transfer (mapDistributePolyMesh &)
 Transfer the contents of the argument and annul the argument. More...
 
Xfer< mapDistributePolyMeshxfer ()
 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

Istreamoperator>> (Istream &, mapDistributePolyMesh &)
 Read dictionary from Istream. More...
 
Ostreamoperator<< (Ostream &, const mapDistributePolyMesh &)
 Write dictionary to Ostream. More...
 

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 57 of file mapDistributePolyMesh.H.

Constructor & Destructor Documentation

◆ mapDistributePolyMesh() [1/6]

Disallow default bitwise copy construct.

◆ mapDistributePolyMesh() [2/6]

Construct null.

Definition at line 61 of file mapDistributePolyMesh.C.

◆ mapDistributePolyMesh() [3/6]

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() [4/6]

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() [5/6]

Construct by transferring parameter content.

Definition at line 157 of file mapDistributePolyMesh.C.

◆ mapDistributePolyMesh() [6/6]

Construct from Istream.

Definition at line 174 of file mapDistributePolyMesh.C.

Member Function Documentation

◆ calcPatchSizes()

void calcPatchSizes ( )
private

◆ nOldPoints()

label nOldPoints ( ) const
inline

Number of points in mesh before distribution.

Definition at line 166 of file mapDistributePolyMesh.H.

References mapDistributePolyMesh::nOldPoints_.

Referenced by writeProcAddressing().

Here is the caller graph for this function:

◆ nOldFaces()

label nOldFaces ( ) const
inline

Number of faces in mesh before distribution.

Definition at line 172 of file mapDistributePolyMesh.H.

References mapDistributePolyMesh::nOldFaces_.

Referenced by writeProcAddressing().

Here is the caller graph for this function:

◆ nOldCells()

label nOldCells ( ) const
inline

Number of cells in mesh before distribution.

Definition at line 178 of file mapDistributePolyMesh.H.

References mapDistributePolyMesh::nOldCells_.

Referenced by writeProcAddressing().

Here is the caller graph for this function:

◆ oldPatchSizes()

const labelList& oldPatchSizes ( ) const
inline

List of the old patch sizes.

Definition at line 184 of file mapDistributePolyMesh.H.

References mapDistributePolyMesh::oldPatchSizes_.

Referenced by writeProcAddressing().

Here is the caller graph for this function:

◆ oldPatchStarts()

const labelList& oldPatchStarts ( ) const
inline

List of the old patch start labels.

Definition at line 190 of file mapDistributePolyMesh.H.

References mapDistributePolyMesh::oldPatchStarts_.

◆ oldPatchNMeshPoints()

const labelList& oldPatchNMeshPoints ( ) const
inline

List of numbers of mesh points per old patch.

Definition at line 196 of file mapDistributePolyMesh.H.

References mapDistributePolyMesh::oldPatchNMeshPoints_.

◆ pointMap()

const mapDistribute& pointMap ( ) const
inline

Point distribute map.

Definition at line 202 of file mapDistributePolyMesh.H.

References mapDistributePolyMesh::pointMap_.

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

Here is the caller graph for this function:

◆ faceMap()

const mapDistribute& faceMap ( ) const
inline

Face distribute map.

Definition at line 208 of file mapDistributePolyMesh.H.

References mapDistributePolyMesh::faceMap_.

Referenced by parFvFieldReconstructor::createPatchFaceMaps(), and writeProcAddressing().

Here is the caller graph for this function:

◆ cellMap()

const mapDistribute& cellMap ( ) const
inline

Cell distribute map.

Definition at line 214 of file mapDistributePolyMesh.H.

References mapDistributePolyMesh::cellMap_.

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

Here is the caller graph for this function:

◆ patchMap()

const mapDistribute& patchMap ( ) const
inline

Patch distribute map.

Definition at line 220 of file mapDistributePolyMesh.H.

References mapDistributePolyMesh::patchMap_.

Referenced by writeProcAddressing().

Here is the caller graph for this function:

◆ transfer()

void transfer ( mapDistributePolyMesh rhs)

◆ xfer()

Transfer contents to the Xfer container.

Definition at line 197 of file mapDistributePolyMesh.C.

References Foam::xferMove().

Referenced by redistributeAndWrite().

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

◆ distributePointData()

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

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

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

◆ distributeFaceData()

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

Distribute list of face data.

Definition at line 243 of file mapDistributePolyMesh.H.

References mapDistribute::distribute(), and mapDistributePolyMesh::faceMap_.

Referenced by 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

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

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

◆ distributePatchData()

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

Distribute list of patch data.

Definition at line 257 of file mapDistributePolyMesh.H.

References mapDistribute::distribute(), and mapDistributePolyMesh::patchMap_.

Here is the call graph for this function:

◆ distributePointIndices()

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

Here is the call graph for this function:

◆ distributeFaceIndices()

void distributeFaceIndices ( labelList faceIDs) const

Definition at line 225 of file mapDistributePolyMesh.C.

References Foam::findIndices().

Here is the call graph for this function:

◆ distributeCellIndices()

void distributeCellIndices ( labelList cellIDs) const

Definition at line 247 of file mapDistributePolyMesh.C.

References Foam::findIndices().

Here is the call graph for this function:

◆ distributePatchIndices()

void distributePatchIndices ( labelList patchIDs) const

Definition at line 269 of file mapDistributePolyMesh.C.

References Foam::findIndices().

Here is the call graph for this function:

◆ updateMesh()

void updateMesh ( const mapPolyMesh )
inline

Correct for topo change.

Definition at line 273 of file mapDistributePolyMesh.H.

References NotImplemented.

◆ operator=()

void operator= ( const mapDistributePolyMesh rhs)

Friends And Related Function Documentation

◆ operator>>

Istream& operator>> ( Istream ,
mapDistributePolyMesh  
)
friend

Read dictionary from Istream.

◆ operator<<

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

Write dictionary to Ostream.

Field Documentation

◆ nOldPoints_

label nOldPoints_
private

◆ nOldFaces_

label nOldFaces_
private

◆ nOldCells_

label nOldCells_
private

◆ oldPatchSizes_

labelList oldPatchSizes_
private

◆ oldPatchStarts_

labelList oldPatchStarts_
private

◆ oldPatchNMeshPoints_

labelList oldPatchNMeshPoints_
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().

◆ pointMap_

mapDistribute pointMap_
private

◆ faceMap_

mapDistribute faceMap_
private

◆ cellMap_

mapDistribute cellMap_
private

◆ patchMap_

mapDistribute patchMap_
private

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