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

globalMeshData Class Reference

Inheritance diagram for globalMeshData:

Inheritance graph
[legend]
Collaboration diagram for globalMeshData:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 98 of file globalMeshData.H.


Public Member Functions

 ClassName ("globalMeshData")
 Runtime type information.
 globalMeshData (const polyMesh &mesh)
 Construct from mesh, derive rest (does parallel communication!).
 globalMeshData (const IOobject &io, const polyMesh &mesh)
 Old behaviour: read constructor given IOobject and a polyMesh.
 ~globalMeshData ()
void clearOut ()
 Remove all demand driven data.
const polyMesh & mesh () const
 Return the mesh reference.
bool parallel () const
 Does the mesh contain processor patches? (also valid when.
const boundBox & bb () const
label nTotalPoints () const
 Return total number of points in decomposed mesh.
label nTotalFaces () const
 Return total number of faces in decomposed mesh.
label nTotalCells () const
 Return total number of cells in decomposed mesh.
const labelList & processorPatches () const
 Return list of processor patch labels.
const labelList & processorPatchIndices () const
 Return list of indices into processorPatches_ for each patch.
const labelList & processorPatchNeighbours () const
 Return processorPatchIndices of the neighbours.
label nGlobalPoints () const
 Return number of globally shared points.
const labelList & sharedPointLabels () const
 Return indices of local points that are globally shared.
const labelList & sharedPointAddr () const
 Return addressing into the complete globally shared points.
const labelList & sharedPointGlobalLabels () const
 Return shared point global labels. Tries to read.
pointField sharedPoints () const
 Collect coordinates of shared points on all processors.
pointField geometricSharedPoints () const
 Like sharedPoints but keeps cyclic points separate.
label nGlobalEdges () const
 Return number of globally shared edges. Demand-driven.
const labelList & sharedEdgeLabels () const
 Return indices of local edges that are globally shared.
const labelList & sharedEdgeAddr () const
 Return addressing into the complete globally shared edge.
void movePoints (const pointField &newPoints)
 Update for moving points.
void updateMesh ()
 Change global mesh data given a topological change. Does a.
bool write () const

Static Public Attributes

static const Foam::scalar matchTol_
 Geomtric tolerance (fraction of bounding box).

Friends

Ostream & operator<< (Ostream &, const globalMeshData &)

Classes

class  plusEqOp

Constructor & Destructor Documentation

globalMeshData ( const polyMesh &  mesh  ) 

Construct from mesh, derive rest (does parallel communication!).

globalMeshData ( const IOobject &  io,
const polyMesh &  mesh 
)

Old behaviour: read constructor given IOobject and a polyMesh.

reference. Only use this for testing!

~globalMeshData (  ) 


Member Function Documentation

ClassName ( "globalMeshData"   ) 

Runtime type information.

void clearOut (  ) 

Remove all demand driven data.

const polyMesh& mesh (  )  const [inline]

Return the mesh reference.

Definition at line 275 of file globalMeshData.H.

bool parallel (  )  const [inline]

Does the mesh contain processor patches? (also valid when.

not running parallel)

Definition at line 284 of file globalMeshData.H.

const boundBox& bb (  )  const [inline]

Definition at line 289 of file globalMeshData.H.

label nTotalPoints (  )  const [inline]

Return total number of points in decomposed mesh.

Definition at line 295 of file globalMeshData.H.

label nTotalFaces (  )  const [inline]

Return total number of faces in decomposed mesh.

Definition at line 301 of file globalMeshData.H.

label nTotalCells (  )  const [inline]

Return total number of cells in decomposed mesh.

Definition at line 307 of file globalMeshData.H.

const labelList& processorPatches (  )  const [inline]

Return list of processor patch labels.

(size of list = number of processor patches)

Definition at line 319 of file globalMeshData.H.

const labelList& processorPatchIndices (  )  const [inline]

Return list of indices into processorPatches_ for each patch.

Index = -1 for non-processor parches. (size of list = number of patches)

Definition at line 329 of file globalMeshData.H.

const labelList& processorPatchNeighbours (  )  const [inline]

Return processorPatchIndices of the neighbours.

processor patches. -1 if not running parallel.

Definition at line 338 of file globalMeshData.H.

label nGlobalPoints (  )  const [inline]

Return number of globally shared points.

Definition at line 347 of file globalMeshData.H.

Referenced by globalPointPatch::pointNormals().

Here is the caller graph for this function:

const labelList& sharedPointLabels (  )  const [inline]

Return indices of local points that are globally shared.

Definition at line 353 of file globalMeshData.H.

Referenced by globalPointPatch::index().

Here is the caller graph for this function:

const labelList& sharedPointAddr (  )  const [inline]

Return addressing into the complete globally shared points.

list Note: It is assumed that a (never constructed) complete list of globally shared points exists. The set of shared points on the current processor is a subset of all shared points. Shared point addressing gives the index in the list of all globally shared points for each of the locally shared points.

Definition at line 368 of file globalMeshData.H.

Referenced by globalPointPatch::globalPointSize().

Here is the caller graph for this function:

const labelList& sharedPointGlobalLabels (  )  const

Return shared point global labels. Tries to read.

'pointProcAddressing' and returns list or -1 if none available.

pointField sharedPoints (  )  const

Collect coordinates of shared points on all processors.

(does parallel communication!) Note: not valid for cyclicParallel since shared cyclic points are merged into single global point. (use geometricSharedPoints instead)

pointField geometricSharedPoints (  )  const

Like sharedPoints but keeps cyclic points separate.

(does geometric merging; uses matchTol_*bb as merging tolerance) Use sharedPoints() instead.

label nGlobalEdges (  )  const

Return number of globally shared edges. Demand-driven.

calculation so call needs to be synchronous among processors!

const labelList& sharedEdgeLabels (  )  const

Return indices of local edges that are globally shared.

Demand-driven calculation so call needs to be synchronous among processors!

const labelList& sharedEdgeAddr (  )  const

Return addressing into the complete globally shared edge.

list. The set of shared edges on the current processor is a subset of all shared edges. Shared edge addressing gives the index in the list of all globally shared edges for each of the locally shared edges. Demand-driven calculation so call needs to be synchronous among processors!

void movePoints ( const pointField &  newPoints  ) 

Update for moving points.

void updateMesh (  ) 

Change global mesh data given a topological change. Does a.

full parallel analysis to determine shared points and boundaries.

bool write (  )  const


Friends And Related Function Documentation

Ostream& operator<< ( Ostream &  ,
const globalMeshData &   
) [friend]


Member Data Documentation

const Foam::scalar matchTol_ [static]

Geomtric tolerance (fraction of bounding box).

Definition at line 247 of file globalMeshData.H.


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