OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

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

Collaboration diagram for mapDistributePolyMesh:

List of all members.


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.

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


Constructor & Destructor Documentation

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 53 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 94 of file mapDistributePolyMesh.C.


Member Function Documentation

const polyMesh& mesh (  )  const [inline]

Definition at line 164 of file mapDistributePolyMesh.H.

label nOldPoints (  )  const [inline]

Number of points in mesh before distribution.

Definition at line 170 of file mapDistributePolyMesh.H.

label nOldFaces (  )  const [inline]

Number of faces in mesh before distribution.

Definition at line 176 of file mapDistributePolyMesh.H.

label nOldCells (  )  const [inline]

Number of cells in mesh before distribution.

Definition at line 182 of file mapDistributePolyMesh.H.

const labelList& oldPatchSizes (  )  const [inline]

List of the old patch sizes.

Definition at line 188 of file mapDistributePolyMesh.H.

const labelList& oldPatchStarts (  )  const [inline]

List of the old patch start labels.

Definition at line 194 of file mapDistributePolyMesh.H.

const labelList& oldPatchNMeshPoints (  )  const [inline]

List of numbers of mesh points per old patch.

Definition at line 200 of file mapDistributePolyMesh.H.

const mapDistribute& pointMap (  )  const [inline]

Point distribute map.

Definition at line 206 of file mapDistributePolyMesh.H.

const mapDistribute& faceMap (  )  const [inline]

Face distribute map.

Definition at line 212 of file mapDistributePolyMesh.H.

const mapDistribute& cellMap (  )  const [inline]

Cell distribute map.

Definition at line 218 of file mapDistributePolyMesh.H.

const mapDistribute& patchMap (  )  const [inline]

Patch distribute map.

Definition at line 224 of file mapDistributePolyMesh.H.

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

distribute list of point data

Definition at line 234 of file mapDistributePolyMesh.H.

References mapDistribute::distribute().

Here is the call graph for this function:

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

distribute list of face data

Definition at line 241 of file mapDistributePolyMesh.H.

References mapDistribute::distribute().

Here is the call graph for this function:

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

distribute list of cell data

Definition at line 248 of file mapDistributePolyMesh.H.

References mapDistribute::distribute().

Here is the call graph for this function:

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

distribute list of patch data

Definition at line 255 of file mapDistributePolyMesh.H.

References mapDistribute::distribute().

Here is the call graph for this function:

void distributePointIndices ( labelList &  pointIDs  )  const

distribute list of point/face/cell/patch indices.

(Converts to boolList, distributes boolList and reconstructs)

Definition at line 132 of file mapDistributePolyMesh.C.

void distributeFaceIndices ( labelList &  faceIDs  )  const

Definition at line 154 of file mapDistributePolyMesh.C.

void distributeCellIndices ( labelList &  cellIDs  )  const

Definition at line 176 of file mapDistributePolyMesh.C.

void distributePatchIndices ( labelList &  patchIDs  )  const

Definition at line 198 of file mapDistributePolyMesh.C.

void updateMesh ( const mapPolyMesh &   )  [inline]

Correct for topo change.

Definition at line 273 of file mapDistributePolyMesh.H.

References notImplemented.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd