Public Member Functions | List of all members
cellLimitedGrad< Type, Limiter > Class Template Reference

cellLimitedGrad gradient scheme applied to a runTime selected base gradient scheme. More...

Inheritance diagram for cellLimitedGrad< Type, Limiter >:
Inheritance graph
[legend]
Collaboration diagram for cellLimitedGrad< Type, Limiter >:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("cellLimited")
 
 cellLimitedGrad (const fvMesh &mesh, Istream &schemeData)
 
void limitFaceCmpt (scalar &limiter, const scalar maxDelta, const scalar minDelta, const scalar extrapolate) const
 
void limitFace (Type &limiter, const Type &maxDelta, const Type &minDelta, const Type &extrapolate) const
 
virtual tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > calcGrad (const GeometricField< Type, fvPatchField, volMesh > &vsf, const word &name) const
 
- Public Member Functions inherited from gradScheme< Type >
virtual const wordtype () const =0
 
 declareRunTimeSelectionTable (tmp, gradScheme, Istream,(const fvMesh &mesh, Istream &schemeData),(mesh, schemeData))
 
 gradScheme (const fvMesh &mesh)
 
virtual ~gradScheme ()=default
 
const fvMeshmesh () const
 
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > grad (const GeometricField< Type, fvPatchField, volMesh > &, const word &name) const
 
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > grad (const GeometricField< Type, fvPatchField, volMesh > &) const
 
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > grad (const tmp< GeometricField< Type, fvPatchField, volMesh >> &) const
 
- Public Member Functions inherited from refCount
constexpr refCount () noexcept
 
int count () const noexcept
 
bool unique () const noexcept
 
void operator++ () noexcept
 
void operator++ (int) noexcept
 
void operator-- () noexcept
 
void operator-- (int) noexcept
 

Additional Inherited Members

- Static Public Member Functions inherited from gradScheme< Type >
static tmp< gradScheme< Type > > New (const fvMesh &mesh, Istream &schemeData)
 

Detailed Description

template<class Type, class Limiter>
class Foam::fv::cellLimitedGrad< Type, Limiter >

cellLimitedGrad gradient scheme applied to a runTime selected base gradient scheme.

The scalar limiter based on limiting the extrapolated face values between the maximum and minimum cell and cell neighbour values and is applied to all components of the gradient.

Source files

Definition at line 59 of file cellLimitedGrad.H.

Constructor & Destructor Documentation

◆ cellLimitedGrad()

cellLimitedGrad ( const fvMesh mesh,
Istream schemeData 
)
inline

Definition at line 102 of file cellLimitedGrad.H.

References Foam::exit(), Foam::FatalIOError, and FatalIOErrorInFunction.

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "cellLimited"  )

◆ limitFaceCmpt()

void limitFaceCmpt ( scalar &  limiter,
const scalar  maxDelta,
const scalar  minDelta,
const scalar  extrapolate 
) const
inline

Definition at line 155 of file cellLimitedGrad.H.

References Foam::limiter(), and Foam::min().

Here is the call graph for this function:

◆ limitFace()

void limitFace ( Type &  limiter,
const Type &  maxDelta,
const Type &  minDelta,
const Type &  extrapolate 
) const
inline

Definition at line 183 of file cellLimitedGrad.H.

References Foam::component(), Foam::limiter(), and Foam::setComponent().

Here is the call graph for this function:

◆ calcGrad()

virtual tmp< GeometricField <typename outerProduct<vector, Type>::type, fvPatchField, volMesh> > calcGrad ( const GeometricField< Type, fvPatchField, volMesh > &  vsf,
const word name 
) const
virtual

Implements gradScheme< Type >.


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