Creates upwind stencil by shifting a centred stencil to upwind and downwind faces and optionally removing all non-(up/down)wind faces ('pureUpwind'). More...
Public Member Functions | |
extendedUpwindCellToFaceStencil (const cellToFaceStencil &, const bool pureUpwind, const scalar minOpposedness) | |
extendedUpwindCellToFaceStencil (const cellToFaceStencil &) | |
bool | pureUpwind () const |
const mapDistribute & | ownMap () const |
const mapDistribute & | neiMap () const |
const labelListList & | ownStencil () const |
const labelListList & | neiStencil () 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 |
![]() | |
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 | |
![]() | |
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 void | writeStencilStats (Ostream &os, const labelListList &stencil, const mapDistribute &map) |
![]() | |
const polyMesh & | mesh_ |
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.
Definition at line 57 of file extendedUpwindCellToFaceStencil.H.
extendedUpwindCellToFaceStencil | ( | const cellToFaceStencil & | stencil, |
const bool | pureUpwind, | ||
const scalar | minOpposedness | ||
) |
Definition at line 376 of file extendedUpwindCellToFaceStencil.C.
References DynamicList::append(), fvMesh::C(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), forAll, cellToFaceStencil::globalNumbering(), mesh, cellToFaceStencil::mesh(), UPstream::nProcs(), and points.
extendedUpwindCellToFaceStencil | ( | const cellToFaceStencil & | stencil | ) |
Definition at line 520 of file extendedUpwindCellToFaceStencil.C.
References DynamicList::append(), fvMesh::C(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), forAll, cellToFaceStencil::globalNumbering(), mesh, cellToFaceStencil::mesh(), UPstream::nProcs(), and points.
|
inline |
Definition at line 147 of file extendedUpwindCellToFaceStencil.H.
|
inline |
Definition at line 153 of file extendedUpwindCellToFaceStencil.H.
Referenced by pureUpwindCFCCellToFaceStencilObject::pureUpwindCFCCellToFaceStencilObject(), upwindCECCellToFaceStencilObject::upwindCECCellToFaceStencilObject(), upwindCFCCellToFaceStencilObject::upwindCFCCellToFaceStencilObject(), upwindCPCCellToFaceStencilObject::upwindCPCCellToFaceStencilObject(), and upwindFECCellToFaceStencilObject::upwindFECCellToFaceStencilObject().
|
inline |
Definition at line 159 of file extendedUpwindCellToFaceStencil.H.
|
inline |
Definition at line 165 of file extendedUpwindCellToFaceStencil.H.
Referenced by pureUpwindCFCCellToFaceStencilObject::pureUpwindCFCCellToFaceStencilObject(), upwindCECCellToFaceStencilObject::upwindCECCellToFaceStencilObject(), upwindCFCCellToFaceStencilObject::upwindCFCCellToFaceStencilObject(), upwindCPCCellToFaceStencilObject::upwindCPCCellToFaceStencilObject(), and upwindFECCellToFaceStencilObject::upwindFECCellToFaceStencilObject().
|
inline |
Definition at line 171 of file extendedUpwindCellToFaceStencil.H.
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 |
Referenced by PureUpwindFitScheme< Type, Polynomial, Stencil >::correction(), and UpwindFitScheme< Type, Polynomial, Stencil >::correction().
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 |
Definition at line 28 of file extendedUpwindCellToFaceStencilTemplates.C.
References GeometricField::boundaryFieldRef(), fvsPatchField::coupled(), fld, forAll, mesh, fvsPatchField::patch(), phi, tmp::ref(), fvPatch::start(), and Foam::Zero.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.