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

extendedUpwindCellToFaceStencil Class Reference

Creates upwind stencil by shifting a centred stencil to upwind and downwind faces and optionally removing all non-(up/down)wind faces ('pureUpwind'). More...

Inheritance diagram for extendedUpwindCellToFaceStencil:
Collaboration diagram for extendedUpwindCellToFaceStencil:

List of all members.


Public Member Functions

 extendedUpwindCellToFaceStencil (const cellToFaceStencil &, const bool pureUpwind, const scalar minOpposedness)
 Construct from mesh and uncompacted centred face stencil.
 extendedUpwindCellToFaceStencil (const cellToFaceStencil &)
 Construct from mesh and uncompacted centred face stencil. Splits.
bool pureUpwind () const
const mapDistribute & ownMap () const
 Return reference to the parallel distribution map.
const mapDistribute & neiMap () const
 Return reference to the parallel distribution map.
const labelListList & ownStencil () const
 Return reference to the stencil.
const labelListList & neiStencil () const
 Return reference to the stencil.
template<class Type >
tmp< GeometricField< Type,
fvsPatchField, surfaceMesh > > 
weightedSum (const surfaceScalarField &phi, const GeometricField< Type, fvPatchField, volMesh > &fld, const List< List< scalar > > &ownWeights, const List< List< scalar > > &neiWeights) const
 Sum vol field contributions to create face values.

Detailed Description

Creates upwind stencil by shifting a centred stencil to upwind and downwind faces and optionally removing all non-(up/down)wind faces ('pureUpwind').

Note: the minOpposedness parameter is to decide which upwind and downwind faces to combine the stencils from. If myArea is the local area and upwindArea the area of the possible upwind candidate it will be included if (upwindArea & myArea)/magSqr(myArea) > minOpposedness so this includes both cosine and area. WIP.

Source files

Definition at line 55 of file extendedUpwindCellToFaceStencil.H.


Constructor & Destructor Documentation

extendedUpwindCellToFaceStencil ( const cellToFaceStencil &  stencil,
const bool  pureUpwind,
const scalar  minOpposedness 
)

Construct from mesh and uncompacted centred face stencil.

Transports facestencil to create owner and neighbour versions. pureUpwind to remove any remaining downwind cells.

Definition at line 367 of file extendedUpwindCellToFaceStencil.C.

Construct from mesh and uncompacted centred face stencil. Splits.

stencil into owner and neighbour (so always pure upwind)

Definition at line 498 of file extendedUpwindCellToFaceStencil.C.


Member Function Documentation

bool pureUpwind (  )  const [inline]

Definition at line 146 of file extendedUpwindCellToFaceStencil.H.

const mapDistribute& ownMap (  )  const [inline]

Return reference to the parallel distribution map.

Definition at line 152 of file extendedUpwindCellToFaceStencil.H.

Referenced by extendedUpwindCellToFaceStencil::weightedSum().

Here is the caller graph for this function:

const mapDistribute& neiMap (  )  const [inline]

Return reference to the parallel distribution map.

Definition at line 158 of file extendedUpwindCellToFaceStencil.H.

Referenced by extendedUpwindCellToFaceStencil::weightedSum().

Here is the caller graph for this function:

const labelListList& ownStencil (  )  const [inline]

Return reference to the stencil.

Definition at line 164 of file extendedUpwindCellToFaceStencil.H.

Referenced by extendedUpwindCellToFaceStencil::weightedSum().

Here is the caller graph for this function:

const labelListList& neiStencil (  )  const [inline]

Return reference to the stencil.

Definition at line 170 of file extendedUpwindCellToFaceStencil.H.

Referenced by extendedUpwindCellToFaceStencil::weightedSum().

Here is the caller graph for this function:


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