Public Member Functions | Static Public Member Functions | List of all members
gradScheme< Type > Class Template Referenceabstract

Abstract base class for gradient schemes. More...

Inheritance diagram for gradScheme< Type >:
Inheritance graph
[legend]
Collaboration diagram for gradScheme< Type >:
Collaboration graph
[legend]

Public Member Functions

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
 
virtual tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > calcGrad (const GeometricField< Type, fvPatchField, volMesh > &, const word &name) const =0
 
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
 

Static Public Member Functions

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

Detailed Description

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

Abstract base class for gradient schemes.

Source files

Definition at line 59 of file gradScheme.H.

Constructor & Destructor Documentation

◆ gradScheme()

gradScheme ( const fvMesh mesh)
inline

Definition at line 99 of file gradScheme.H.

◆ ~gradScheme()

virtual ~gradScheme ( )
virtualdefault

Member Function Documentation

◆ type()

virtual const word& type ( ) const
pure virtual

◆ 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

Definition at line 30 of file gradScheme.C.

References Foam::expressions::patchExpr::debug, Foam::endl(), IOstream::eof(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, FatalIOErrorInLookup, InfoInFunction, and mesh.

Referenced by Foam::fvc::grad().

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

◆ mesh()

const fvMesh& mesh ( ) const
inline

Definition at line 122 of file gradScheme.H.

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

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

◆ grad() [1/3]

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

Referenced by faceLimitedGrad< Type >::calcGrad().

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

◆ grad() [3/3]

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

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