Abstract base class for gradient schemes. More...
Public Member Functions | |
virtual const word & | type () 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 ()=default |
Destructor. More... | |
const fvMesh & | mesh () 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 | |
constexpr | refCount () noexcept |
Default construct, initializing count to 0. More... | |
int | count () const noexcept |
Return the current reference count. More... | |
bool | unique () const noexcept |
Return true if the reference count is zero. More... | |
void | operator++ () noexcept |
Increment the reference count. More... | |
void | operator++ (int) noexcept |
Increment the reference count. More... | |
void | operator-- () noexcept |
Decrement the reference count. More... | |
void | operator-- (int) noexcept |
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... | |
Abstract base class for gradient schemes.
Definition at line 62 of file gradScheme.H.
|
inline |
Construct from mesh.
Definition at line 101 of file gradScheme.H.
|
virtualdefault |
Destructor.
|
pure virtual |
Runtime type information.
declareRunTimeSelectionTable | ( | tmp | , |
gradScheme< Type > | , | ||
Istream | , | ||
(const fvMesh &mesh, Istream &schemeData) | , | ||
(mesh, schemeData) | |||
) |
|
static |
Return a pointer to a new gradScheme created on freestore.
Definition at line 37 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().
|
inline |
Return mesh reference.
Definition at line 124 of file gradScheme.H.
Referenced by gaussGrad< Type >::gaussGrad().
|
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 >, faceLimitedGrad< Type >, faceMDLimitedGrad< Type >, cellMDLimitedGrad< Type >, leastSquaresGrad< Type >, and fourthGrad< Type >.
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().
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
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