extendedCellToFaceStencil Class Reference

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

Inheritance diagram for extendedCellToFaceStencil:
Collaboration diagram for extendedCellToFaceStencil:

Public Member Functions

 ClassName ("extendedCellToFaceStencil")
 
 extendedCellToFaceStencil (const polyMesh &)
 Construct from mesh. More...
 
template<class Type >
Foam::tmp< Foam::SurfaceField< Type > > weightedSum (const distributionMap &map, const labelListList &stencil, const VolField< Type > &fld, const List< List< scalar >> &stencilWeights)
 

Static Public Member Functions

template<class Type >
static void collectData (const distributionMap &map, const labelListList &stencil, const VolField< Type > &fld, List< List< Type >> &stencilFld)
 Use map to get the data into stencil order. More...
 
template<class Type >
static tmp< SurfaceField< Type > > weightedSum (const distributionMap &map, const labelListList &stencil, const VolField< Type > &fld, const List< List< scalar >> &stencilWeights)
 Sum vol field contributions to create face values. More...
 

Static Protected Member Functions

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

Protected Attributes

const polyMeshmesh_
 

Detailed Description

Calculates/contains 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 65 of file extendedCellToFaceStencil.H.

Constructor & Destructor Documentation

◆ extendedCellToFaceStencil()

Member Function Documentation

◆ writeStencilStats()

◆ ClassName()

ClassName ( "extendedCellToFaceStencil"  )

◆ collectData()

void collectData ( const distributionMap map,
const labelListList stencil,
const VolField< Type > &  fld,
List< List< Type >> &  stencilFld 
)
static

◆ weightedSum() [1/2]

static tmp<SurfaceField<Type> > weightedSum ( const distributionMap map,
const labelListList stencil,
const VolField< Type > &  fld,
const List< List< scalar >> &  stencilWeights 
)
static

Sum vol field contributions to create face values.

Referenced by extendedCentredCellToFaceStencil::weightedSum().

Here is the caller graph for this function:

◆ weightedSum() [2/2]

Foam::tmp<Foam::SurfaceField<Type> > weightedSum ( const distributionMap map,
const labelListList stencil,
const VolField< Type > &  fld,
const List< List< scalar >> &  stencilWeights 
)

Member Data Documentation

◆ mesh_

const polyMesh& mesh_
protected

Definition at line 71 of file extendedCellToFaceStencil.H.


The documentation for this class was generated from the following files: