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

cellToCellStencil Class Reference

baseclass for extended cell centred addressing. Contains per cell a list of neighbouring cells and/or boundaryfaces in global addressing. More...

Inheritance diagram for cellToCellStencil:
Collaboration diagram for cellToCellStencil:

List of all members.


Classes

class  unionEqOp
 Combine operator for labelLists. More...

Public Member Functions

 cellToCellStencil (const polyMesh &)
 Construct from mesh.
const polyMeshmesh () const
const globalIndexglobalNumbering () const
 Global numbering for cells and boundary faces.

Protected Member Functions

void validBoundaryFaces (boolList &isValidBFace) const
 Valid boundary faces (not empty and not coupled).
autoPtr< indirectPrimitivePatchallCoupledFacesPatch () const
 Return patch of all coupled faces.
void insertFaceCells (const label exclude0, const label exclude1, const boolList &nonEmptyFace, const labelList &faceLabels, labelHashSet &globals) const
 Collect cell neighbours of faces in global numbering.
labelList calcFaceCells (const boolList &nonEmptyFace, const labelList &faceLabels, labelHashSet &globals) const
 Collect cell neighbours of faces in global numbering.

Static Protected Member Functions

static void merge (const label, const label, const labelList &, labelList &)
 Merge two lists.
static void merge (const label, const labelList &, labelList &)
 Merge two lists.

Detailed Description

baseclass for extended cell centred addressing. Contains per cell a list of neighbouring cells and/or boundaryfaces in global addressing.

Source files

Definition at line 50 of file cellToCellStencil.H.


Constructor & Destructor Documentation

cellToCellStencil ( const polyMesh mesh  )  [explicit]

Construct from mesh.

Definition at line 334 of file cellToCellStencil.C.


Member Function Documentation

void merge ( const label  global0,
const label  global1,
const labelList listA,
labelList listB 
) [static, protected]

Merge two lists.

Definition at line 27 of file cellToCellStencil.C.

References FatalErrorIn, Foam::findSortedIndex(), forAll, and Foam::sort().

Here is the call graph for this function:

void merge ( const label  globalI,
const labelList pGlobals,
labelList cCells 
) [static, protected]

Merge two lists.

Definition at line 128 of file cellToCellStencil.C.

void validBoundaryFaces ( boolList isValidBFace  )  const [protected]

Valid boundary faces (not empty and not coupled).

Definition at line 162 of file cellToCellStencil.C.

Foam::autoPtr< Foam::indirectPrimitivePatch > allCoupledFacesPatch (  )  const [protected]

Return patch of all coupled faces.

Definition at line 185 of file cellToCellStencil.C.

void insertFaceCells ( const label  exclude0,
const label  exclude1,
const boolList nonEmptyFace,
const labelList faceLabels,
labelHashSet globals 
) const [protected]

Collect cell neighbours of faces in global numbering.

Definition at line 259 of file cellToCellStencil.C.

Foam::labelList calcFaceCells ( const boolList nonEmptyFace,
const labelList faceLabels,
labelHashSet globals 
) const [protected]

Collect cell neighbours of faces in global numbering.

Definition at line 311 of file cellToCellStencil.C.

const polyMesh& mesh (  )  const [inline]

Definition at line 124 of file cellToCellStencil.H.

const globalIndex& globalNumbering (  )  const [inline]

Global numbering for cells and boundary faces.

Definition at line 130 of file cellToCellStencil.H.


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