Abstract base class for finite area calculus gradient schemes. More...
Public Member Functions | |
declareRunTimeSelectionTable (tmp, gradScheme, Istream,(const faMesh &mesh, Istream &schemeData),(mesh, schemeData)) | |
gradScheme (const gradScheme &)=delete | |
No copy construct. More... | |
void | operator= (const gradScheme &)=delete |
No copy assignment. More... | |
gradScheme (const faMesh &mesh) | |
Construct from mesh. More... | |
virtual | ~gradScheme ()=default |
Destructor. More... | |
const faMesh & | mesh () const noexcept |
Return mesh reference. More... | |
virtual tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh > > | calcGrad (const GeometricField< Type, faPatchField, areaMesh > &, const word &name) const =0 |
Calculate and return the grad of the given field. More... | |
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh > > | grad (const GeometricField< Type, faPatchField, areaMesh > &, const word &name) const |
Calculate and return the grad of the given field which may have been cached. More... | |
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh > > | grad (const GeometricField< Type, faPatchField, areaMesh > &) const |
Calculate and return the grad of the given field with the default name which may have been cached. More... | |
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh > > | grad (const tmp< GeometricField< Type, faPatchField, areaMesh >> &) const |
Calculate and return the grad of the given field with the default name which may have been cached. More... | |
Public Member Functions inherited from refCount | |
constexpr | refCount () noexcept |
Default construct, initializing count to 0. More... | |
int | use_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 faMesh &mesh, Istream &schemeData) |
Return a pointer to a new gradScheme created on freestore. More... | |
Abstract base class for finite area calculus gradient schemes.
Definition at line 58 of file faGradScheme.H.
|
delete |
No copy construct.
|
inline |
Construct from mesh.
Definition at line 102 of file faGradScheme.H.
|
virtualdefault |
Destructor.
declareRunTimeSelectionTable | ( | tmp | , |
gradScheme< Type > | , | ||
Istream | , | ||
(const faMesh &mesh, Istream &schemeData) | , | ||
(mesh, schemeData) | |||
) |
|
delete |
No copy assignment.
|
static |
Return a pointer to a new gradScheme created on freestore.
Definition at line 40 of file faGradScheme.C.
References Foam::ensightOutput::debug, Foam::endl(), IOstream::eof(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, FatalIOErrorInLookup, InfoInFunction, mesh, and Foam::nl.
Referenced by Foam::fac::ngrad().
|
inlinenoexcept |
Return mesh reference.
Definition at line 131 of file faGradScheme.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 gaussGrad< Type >, edgeLimitedGrad< Type >, faceLimitedGrad< Type >, and leastSquaresFaGrad< Type >.
tmp< GeometricField <typename outerProduct<vector, Type>::type, faPatchField, areaMesh> > grad | ( | const GeometricField< Type, faPatchField, areaMesh > & | , |
const word & | name | ||
) | const |
Calculate and return the grad of the given field which may have been cached.
Referenced by Foam::fac::grad().
tmp< GeometricField <typename outerProduct<vector, Type>::type, faPatchField, areaMesh> > grad | ( | const GeometricField< Type, faPatchField, areaMesh > & | ) | 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, faPatchField, areaMesh> > grad | ( | const tmp< GeometricField< Type, faPatchField, areaMesh >> & | ) | const |
Calculate and return the grad of the given field with the default name which may have been cached.