All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gradScheme< Type > Class Template Referenceabstract

Abstract base class for gradient schemes. More...

Inheritance diagram for gradScheme< Type >:
Collaboration diagram for gradScheme< Type >:

Public Member Functions

virtual const wordtype () const =0
 Runtime type information. More...
 
 declareRunTimeSelectionTable (tmp, gradScheme, Istream,(const fvMesh &mesh, Istream &schemeData),(mesh, schemeData))
 
 gradScheme (const fvMesh &mesh)
 Construct from mesh. More...
 
virtual ~gradScheme ()
 Destructor. More...
 
const fvMeshmesh () const
 Return mesh reference. More...
 
virtual tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > calcGrad (const GeometricField< Type, fvPatchField, volMesh > &, const word &name) const =0
 Calculate and return the grad of the given field. More...
 
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > grad (const GeometricField< Type, fvPatchField, volMesh > &, const word &name) const
 Calculate and return the grad of the given field. More...
 
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. More...
 
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > grad (const tmp< GeometricField< Type, fvPatchField, volMesh >> &) const
 Calculate and return the grad of the given field. More...
 
- Public Member Functions inherited from refCount
int count () const
 Return the current reference count. More...
 
bool unique () const
 Return true if the reference count is zero. More...
 
void operator++ ()
 Increment the reference count. More...
 
void operator++ (int)
 Increment the reference count. More...
 
void operator-- ()
 Decrement the reference count. More...
 
void operator-- (int)
 Decrement the reference count. More...
 

Static Public Member Functions

static tmp< gradScheme< Type > > New (const fvMesh &mesh, Istream &schemeData)
 Return a pointer to a new gradScheme created on freestore. More...
 

Additional Inherited Members

- Protected Member Functions inherited from refCount
 refCount ()
 Construct null initialising count to 0. More...
 

Detailed Description

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

Abstract base class for gradient schemes.

Source files

Definition at line 60 of file gradScheme.H.

Constructor & Destructor Documentation

◆ gradScheme()

gradScheme ( const fvMesh mesh)
inline

Construct from mesh.

Definition at line 99 of file gradScheme.H.

References gradScheme< Type >::New(), and gradScheme< Type >::~gradScheme().

Here is the call graph for this function:

◆ ~gradScheme()

~gradScheme ( )
virtual

Destructor.

Definition at line 78 of file gradScheme.C.

References Foam::fvc::grad(), gradScheme< Type >::grad(), mesh, Foam::name(), IOobject::name(), and tmp< T >::ptr().

Referenced by gradScheme< Type >::gradScheme().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ type()

virtual const word& type ( ) const
pure virtual

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( tmp  ,
gradScheme< Type >  ,
Istream  ,
(const fvMesh &mesh, Istream &schemeData)  ,
(mesh, schemeData)   
)

◆ New()

Foam::tmp< Foam::fv::gradScheme< Type > > New ( const fvMesh mesh,
Istream schemeData 
)
static

Return a pointer to a new gradScheme created on freestore.

Definition at line 34 of file gradScheme.C.

References Foam::endl(), IOstream::eof(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, InfoInFunction, mesh, and Foam::nl.

Referenced by Foam::fvc::grad(), and gradScheme< Type >::gradScheme().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mesh()

const fvMesh& mesh ( ) const
inline

Return mesh reference.

Definition at line 122 of file gradScheme.H.

References gradScheme< Type >::calcGrad(), gradScheme< Type >::grad(), and Foam::name().

Referenced by gaussGrad< Type >::gaussGrad().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calcGrad()

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

Calculate and return the grad of the given field.

Used by grad either to recalculate the cached gradient when it is out of date with respect to the field or when it is not cached.

Implemented in cellLimitedGrad< Type, Limiter >, LeastSquaresGrad< Type, Stencil >, gaussGrad< Type >, faceMDLimitedGrad< Type >, faceLimitedGrad< Type >, cellMDLimitedGrad< Type >, leastSquaresGrad< Type >, and fourthGrad< Type >.

Referenced by gradScheme< Type >::mesh().

Here is the caller graph for this function:

◆ grad() [1/3]

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

Calculate and return the grad of the given field.

which may have been cached

Referenced by faceLimitedGrad< Type >::calcGrad(), gradScheme< Type >::mesh(), and gradScheme< Type >::~gradScheme().

Here is the caller graph for this function:

◆ grad() [2/3]

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.

with the default name which may have been cached

◆ grad() [3/3]

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

Calculate and return the grad of the given field.

with the default name which may have been cached


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