73 virtual const word&
type()
const = 0;
179 #define makeFvGradTypeScheme(SS, Type) \
180 defineNamedTemplateTypeNameAndDebug(Foam::fv::SS<Foam::Type>, 0); \
186 gradScheme<Type>::addIstreamConstructorToTable<SS<Type>> \
187 add##SS##Type##IstreamConstructorToTable_; \
192 #define makeFvGradScheme(SS) \
194 makeFvGradTypeScheme(SS, scalar) \
195 makeFvGradTypeScheme(SS, vector)
Generic GeometricField class.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Mesh data needed to do the Finite Volume discretisation.
Abstract base class for gradient schemes.
gradScheme(const fvMesh &mesh)
Construct from mesh.
virtual const word & type() const =0
Runtime type information.
virtual ~gradScheme()
Destructor.
const fvMesh & mesh() const
Return mesh reference.
void operator=(const gradScheme &)=delete
Disallow default bitwise assignment.
tmp< VolField< typename outerProduct< vector, Type >::type > > grad(const VolField< Type > &, const word &name) const
Calculate and return the grad of the given field.
declareRunTimeSelectionTable(tmp, gradScheme, Istream,(const fvMesh &mesh, Istream &schemeData),(mesh, schemeData))
virtual tmp< VolField< typename outerProduct< vector, Type >::type > > calcGrad(const VolField< Type > &, const word &name) const =0
Calculate and return the grad of the given field.
static tmp< gradScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
Return a pointer to a new gradScheme created on freestore.
Reference counter for various OpenFOAM components.
A class for managing temporary objects.
A class for handling words, derived from string.
word name(const bool)
Return a word representation of a bool.
Macros to ease declaration of run-time selection tables.
Basic run-time type information using word as the type's name. Used to enhance the standard RTTI to c...