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

extendedCellToFaceStencil Class Reference

Calculates/constains the extended cell-to-face stencil. More...

Inheritance diagram for extendedCellToFaceStencil:
Collaboration diagram for extendedCellToFaceStencil:

List of all members.


Public Member Functions

 ClassName ("extendedCellToFaceStencil")
 extendedCellToFaceStencil (const polyMesh &)
 Construct from mesh.
template<class Type >
void collectData (const mapDistribute &map, const labelListList &stencil, const GeometricField< Type, fvPatchField, volMesh > &fld, List< List< Type > > &stencilFld)

Static Public Member Functions

static autoPtr< mapDistribute > calcDistributeMap (const polyMesh &mesh, const globalIndex &globalNumbering, labelListList &faceStencil)
 Calculate distribute map.
template<class T >
static void collectData (const mapDistribute &map, const labelListList &stencil, const GeometricField< T, fvPatchField, volMesh > &fld, List< List< T > > &stencilFld)
 Use map to get the data into stencil order.
template<class Type >
static tmp< GeometricField
< Type, fvsPatchField,
surfaceMesh > > 
weightedSum (const mapDistribute &map, const labelListList &stencil, const GeometricField< Type, fvPatchField, volMesh > &fld, const List< List< scalar > > &stencilWeights)
 Sum vol field contributions to create face values.

Static Protected Member Functions

static void writeStencilStats (Ostream &os, const labelListList &stencil, const mapDistribute &map)
 Write some statistics about stencil.

Protected Attributes

const polyMesh & mesh_

Detailed Description

Calculates/constains the extended cell-to-face stencil.

The stencil is a list of indices into either cells or boundary faces in a compact way. (element 0 is owner, 1 is neighbour). The index numbering is

  • cells first
  • then all (non-empty patch) boundary faces

When used in evaluation is a two stage process:

  • collect the data (cell data and non-empty boundaries) into a single field
  • (parallel) distribute the field
  • sum the weights*field.

Source files

Definition at line 61 of file extendedCellToFaceStencil.H.


Constructor & Destructor Documentation

extendedCellToFaceStencil ( const polyMesh &  mesh  )  [explicit]

Construct from mesh.

Definition at line 286 of file extendedCellToFaceStencil.C.


Member Function Documentation

void writeStencilStats ( Ostream &  os,
const labelListList &  stencil,
const mapDistribute &  map 
) [static, protected]

Write some statistics about stencil.

Definition at line 31 of file extendedCellToFaceStencil.C.

ClassName ( "extendedCellToFaceStencil"   ) 

Foam::autoPtr< Foam::mapDistribute > calcDistributeMap ( const polyMesh &  mesh,
const globalIndex &  globalNumbering,
labelListList &  faceStencil 
) [static]

Calculate distribute map.

Definition at line 89 of file extendedCellToFaceStencil.C.

Referenced by extendedCentredCellToFaceStencil::extendedCentredCellToFaceStencil(), and extendedCentredFaceToCellStencil::extendedCentredFaceToCellStencil().

Here is the caller graph for this function:

static void collectData ( const mapDistribute &  map,
const labelListList &  stencil,
const GeometricField< T, fvPatchField, volMesh > &  fld,
List< List< T > > &  stencilFld 
) [inline, static]

Use map to get the data into stencil order.

Referenced by extendedUpwindCellToFaceStencil::weightedSum().

Here is the caller graph for this function:

Foam::tmp< Foam::GeometricField< Type, Foam::fvsPatchField, Foam::surfaceMesh > > weightedSum ( const mapDistribute &  map,
const labelListList &  stencil,
const GeometricField< Type, fvPatchField, volMesh > &  fld,
const List< List< scalar > > &  stencilWeights 
) [inline, static]

Sum vol field contributions to create face values.

Definition at line 74 of file extendedCellToFaceStencilTemplates.C.

Referenced by quadraticFitSnGrad< Type >::correction().

Here is the caller graph for this function:

void collectData ( const mapDistribute &  map,
const labelListList &  stencil,
const GeometricField< Type, fvPatchField, volMesh > &  fld,
List< List< Type > > &  stencilFld 
) [inline]


Member Data Documentation

const polyMesh& mesh_ [protected]

Definition at line 67 of file extendedCellToFaceStencil.H.


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