77 gradScheme(
const gradScheme&) =
delete;
80 void operator=(
const gradScheme&) =
delete;
86 virtual const word&
type()
const = 0;
203#define makeFvGradTypeScheme(SS, Type) \
204 defineNamedTemplateTypeNameAndDebug(Foam::fv::SS<Foam::Type>, 0); \
210 gradScheme<Type>::addIstreamConstructorToTable<SS<Type>> \
211 add##SS##Type##IstreamConstructorToTable_; \
216#define makeFvGradScheme(SS) \
218makeFvGradTypeScheme(SS, scalar) \
219makeFvGradTypeScheme(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 with a fat-interface to all derived classes covering all possible ways in which t...
gradScheme(const fvMesh &mesh)
Construct from mesh.
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.
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.
declareRunTimeSelectionTable(tmp, gradScheme, Istream,(const fvMesh &mesh, Istream &schemeData),(mesh, schemeData))
const fvMesh & mesh() const
Return const reference to mesh.
virtual ~gradScheme()=default
Destructor.
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.
typeOfRank< typenamepTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank)>::type type
constexpr refCount() noexcept
Default construct, initializing count to 0.
A class for managing temporary objects.
Mesh data needed to do the Finite Volume discretisation.
A class for handling words, derived from Foam::string.
Namespace for finite-volume.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes).
Basic run-time type information using word as the type's name. Used to enhance the standard RTTI to c...
Forwards and collection of common volume field types.