Go to the documentation of this file.
84 virtual const word&
type()
const = 0;
193 #define makeFvGradTypeScheme(SS, Type) \
194 defineNamedTemplateTypeNameAndDebug(Foam::fv::SS<Foam::Type>, 0); \
200 gradScheme<Type>::addIstreamConstructorToTable<SS<Type>> \
201 add##SS##Type##IstreamConstructorToTable_; \
206 #define makeFvGradScheme(SS) \
208 makeFvGradTypeScheme(SS, scalar) \
209 makeFvGradTypeScheme(SS, vector)
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
Reference counter for various OpenFOAM components.
Mesh data needed to do the Finite Volume discretisation.
typeOfRank< typename pTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank) >::type type
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.
virtual const word & type() const =0
Runtime type information.
static tmp< gradScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
Return a pointer to a new gradScheme created on freestore.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
word name(const complex &c)
Return string representation of complex.
const fvMesh & mesh() const
Return mesh reference.
Abstract base class for gradient schemes.
Mesh data needed to do the Finite Volume discretisation.
virtual ~gradScheme()=default
Destructor.
Macros to ease declaration of run-time selection tables.
gradScheme(const fvMesh &mesh)
Construct from mesh.
Generic GeometricField class.
declareRunTimeSelectionTable(tmp, gradScheme, Istream,(const fvMesh &mesh, Istream &schemeData),(mesh, schemeData))
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.