FreeFOAM The Cross-Platform CFD Toolkit
cellLimitedGrad< Type > Class Template Reference

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

#include <finiteVolume/cellLimitedGrad.H>


Detailed Description

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

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 minumum cell and cell neighbour values and is applied to all components of the gradient.

Source files

Definition at line 60 of file cellLimitedGrad.H.

+ Inheritance diagram for cellLimitedGrad< Type >:
+ Collaboration diagram for cellLimitedGrad< Type >:

List of all members.

Public Member Functions

 TypeName ("cellLimited")
 RunTime type information.
 cellLimitedGrad (const fvMesh &mesh, Istream &schemeData)
 Construct from mesh and schemeData.
tmp< GeometricField< typename
outerProduct< vector, Type >
::type, fvPatchField, volMesh > > 
grad (const GeometricField< Type, fvPatchField, volMesh > &) const
 Calculate and return the grad of the given field.
template<>
tmp< volVectorFieldgrad (const volScalarField &vsf) const
template<>
tmp< volTensorFieldgrad (const volVectorField &vsf) const
- Public Member Functions inherited from gradScheme< Type >
virtual const wordtype () const =0
 Runtime type information.
 declareRunTimeSelectionTable (tmp, gradScheme, Istream,(const fvMesh &mesh, Istream &schemeData),(mesh, schemeData))
 gradScheme (const fvMesh &mesh)
 Construct from mesh.
virtual ~gradScheme ()
const fvMeshmesh () const
 Return mesh reference.
- Public Member Functions inherited from refCount
 refCount ()
 Construct null with zero count.
int count () const
 Return the reference count.
bool okToDelete () const
 Return true if the reference count is zero.
void resetRefCount ()
 Reset the reference count to zero.
void operator++ ()
 Increment the reference count.
void operator++ (int)
 Increment the reference count.
void operator-- ()
 Decrement the reference count.
void operator-- (int)
 Decrement the reference count.

Static Public Member Functions

static void limitFace (Type &limiter, const Type &maxDelta, const Type &minDelta, const Type &extrapolate)
- Static Public Member Functions inherited from gradScheme< Type >
static tmp< gradScheme< Type > > New (const fvMesh &mesh, Istream &schemeData)
 Return a pointer to a new gradScheme created on freestore.

Constructor & Destructor Documentation

cellLimitedGrad ( const fvMesh mesh,
Istream schemeData 
)
inline

Construct from mesh and schemeData.

Definition at line 90 of file cellLimitedGrad.H.

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


Member Function Documentation

TypeName ( "cellLimited"  )

RunTime type information.

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

Definition at line 71 of file cellLimitedGrads.C.

tmp< GeometricField <typename outerProduct<vector, Type>::type, fvPatchField, volMesh> > grad ( const GeometricField< Type, fvPatchField, volMesh > &  ) const
virtual

Calculate and return the grad of the given field.

Implements gradScheme< Type >.


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