Public Member Functions | List of all members
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:
Inheritance graph
[legend]
Collaboration diagram for extendedUpwindCellToFaceStencil:
Collaboration graph
[legend]

Public Member Functions

 extendedUpwindCellToFaceStencil (const cellToFaceStencil &, const bool pureUpwind, const scalar minOpposedness)
 
 extendedUpwindCellToFaceStencil (const cellToFaceStencil &)
 
bool pureUpwind () const
 
const mapDistributeownMap () const
 
const mapDistributeneiMap () const
 
const labelListListownStencil () const
 
const labelListListneiStencil () const
 
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
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::fvsPatchField, Foam::surfaceMesh > > weightedSum (const surfaceScalarField &phi, const GeometricField< Type, fvPatchField, volMesh > &fld, const List< List< scalar >> &ownWeights, const List< List< scalar >> &neiWeights) const
 
- Public Member Functions inherited from extendedCellToFaceStencil
 ClassName ("extendedCellToFaceStencil")
 
 extendedCellToFaceStencil (const polyMesh &)
 
template<class Type >
void collectData (const mapDistribute &map, const labelListList &stencil, const GeometricField< Type, fvPatchField, volMesh > &fld, List< List< Type >> &stencilFld)
 
template<class Type >
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)
 

Additional Inherited Members

- Static Public Member Functions inherited from extendedCellToFaceStencil
template<class T >
static void collectData (const mapDistribute &map, const labelListList &stencil, const GeometricField< T, fvPatchField, volMesh > &fld, List< List< T >> &stencilFld)
 
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)
 
- Static Protected Member Functions inherited from extendedCellToFaceStencil
static void writeStencilStats (Ostream &os, const labelListList &stencil, const mapDistribute &map)
 
- Protected Attributes inherited from extendedCellToFaceStencil
const polyMeshmesh_
 

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 57 of file extendedUpwindCellToFaceStencil.H.

Constructor & Destructor Documentation

◆ extendedUpwindCellToFaceStencil() [1/2]

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

◆ extendedUpwindCellToFaceStencil() [2/2]

Member Function Documentation

◆ pureUpwind()

bool pureUpwind ( ) const
inline

Definition at line 147 of file extendedUpwindCellToFaceStencil.H.

◆ ownMap()

const mapDistribute& ownMap ( ) const
inline

◆ neiMap()

const mapDistribute& neiMap ( ) const
inline

Definition at line 159 of file extendedUpwindCellToFaceStencil.H.

◆ ownStencil()

const labelListList& ownStencil ( ) const
inline

◆ neiStencil()

const labelListList& neiStencil ( ) const
inline

Definition at line 171 of file extendedUpwindCellToFaceStencil.H.

◆ weightedSum() [1/2]

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

◆ weightedSum() [2/2]

Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh> > weightedSum ( const surfaceScalarField phi,
const GeometricField< Type, fvPatchField, volMesh > &  fld,
const List< List< scalar >> &  ownWeights,
const List< List< scalar >> &  neiWeights 
) const

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