FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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< volVectorField >  grad (const volScalarField &vsf) const
template<>
tmp< volTensorField >  grad (const volVectorField &vsf) const

Static Public Member Functions

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

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  
) [inline, static]

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:
  • src/finiteVolume/finiteVolume/gradSchemes/limitedGradSchemes/cellLimitedGrad/cellLimitedGrad.H
  • src/finiteVolume/finiteVolume/gradSchemes/limitedGradSchemes/cellLimitedGrad/cellLimitedGrads.C