OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

mapDistributePolyMesh Class Reference

Collaboration diagram for mapDistributePolyMesh:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 62 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.
 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 labelListList & subPointMap () const
 From subsetted mesh back to original mesh.
const labelListList & subFaceMap () const
 From subsetted mesh back to original mesh.
const labelListList & subCellMap () const
 From subsetted mesh back to original mesh.
const labelListList & subPatchMap () const
 From subsetted mesh back to original mesh.
const labelListList & constructPointMap () const
 From subsetted mesh to new reconstructed mesh.
const labelListList & constructFaceMap () const
 From subsetted mesh to new reconstructed mesh.
const labelListList & constructCellMap () const
 From subsetted mesh to new reconstructed mesh.
const labelListList & constructPatchMap () const
 From subsetted mesh to new reconstructed mesh.
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.

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.

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


Member Function Documentation

const polyMesh& mesh (  )  const [inline]

Definition at line 168 of file mapDistributePolyMesh.H.

label nOldPoints (  )  const [inline]

Number of points in mesh before distribution.

Definition at line 174 of file mapDistributePolyMesh.H.

label nOldFaces (  )  const [inline]

Number of faces in mesh before distribution.

Definition at line 180 of file mapDistributePolyMesh.H.

label nOldCells (  )  const [inline]

Number of cells in mesh before distribution.

Definition at line 186 of file mapDistributePolyMesh.H.

const labelList& oldPatchSizes (  )  const [inline]

List of the old patch sizes.

Definition at line 192 of file mapDistributePolyMesh.H.

const labelList& oldPatchStarts (  )  const [inline]

List of the old patch start labels.

Definition at line 198 of file mapDistributePolyMesh.H.

const labelList& oldPatchNMeshPoints (  )  const [inline]

List of numbers of mesh points per old patch.

Definition at line 204 of file mapDistributePolyMesh.H.

const labelListList& subPointMap (  )  const [inline]

From subsetted mesh back to original mesh.

(these are like the maps in fvMeshSubset)

Definition at line 213 of file mapDistributePolyMesh.H.

Referenced by mapDistributePolyMesh::constructPatchMap().

Here is the caller graph for this function:

const labelListList& subFaceMap (  )  const [inline]

From subsetted mesh back to original mesh.

Definition at line 218 of file mapDistributePolyMesh.H.

const labelListList& subCellMap (  )  const [inline]

From subsetted mesh back to original mesh.

Definition at line 223 of file mapDistributePolyMesh.H.

const labelListList& subPatchMap (  )  const [inline]

From subsetted mesh back to original mesh.

Definition at line 228 of file mapDistributePolyMesh.H.

const labelListList& constructPointMap (  )  const [inline]

From subsetted mesh to new reconstructed mesh.

(like the pointProcAddressing in reconstructPar)

Definition at line 237 of file mapDistributePolyMesh.H.

Referenced by mapDistributePolyMesh::constructPatchMap().

Here is the caller graph for this function:

const labelListList& constructFaceMap (  )  const [inline]

From subsetted mesh to new reconstructed mesh.

Definition at line 242 of file mapDistributePolyMesh.H.

const labelListList& constructCellMap (  )  const [inline]

From subsetted mesh to new reconstructed mesh.

Definition at line 247 of file mapDistributePolyMesh.H.

const labelListList& constructPatchMap (  )  const [inline]

From subsetted mesh to new reconstructed mesh.

Definition at line 252 of file mapDistributePolyMesh.H.

References mapDistributePolyMesh::constructPointMap(), primitiveMesh::nPoints(), and mapDistributePolyMesh::subPointMap().

Here is the call graph for this function:

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

distribute list of point data

Definition at line 261 of file mapDistributePolyMesh.H.

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

distribute list of face data

Definition at line 273 of file mapDistributePolyMesh.H.

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

distribute list of cell data

Definition at line 285 of file mapDistributePolyMesh.H.

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

distribute list of patch data

Definition at line 297 of file mapDistributePolyMesh.H.

void distributePointIndices ( labelList &  pointIDs  )  const

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

(Converts to boolList, distributes boolList and reconstructs)

void distributeFaceIndices ( labelList &  faceIDs  )  const

void distributeCellIndices ( labelList &  cellIDs  )  const

void distributePatchIndices ( labelList &  patchIDs  )  const

void updateMesh ( const mapPolyMesh &   )  [inline]

Correct for topo change.

Definition at line 320 of file mapDistributePolyMesh.H.


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