35 #ifndef snGradScheme_H
36 #define snGradScheme_H
74 virtual const word&
type()
const = 0;
130 const word& snGradName =
"snGrad"
138 const word& snGradName =
"sndGrad"
197 #define makeSnGradTypeScheme(SS, Type) \
198 defineNamedTemplateTypeNameAndDebug(Foam::fv::SS<Foam::Type>, 0); \
204 snGradScheme<Type>::addMeshConstructorToTable<SS<Type>> \
205 add##SS##Type##MeshConstructorToTable_; \
209 #define makeSnGradScheme(SS) \
211 makeSnGradTypeScheme(SS, scalar) \
212 makeSnGradTypeScheme(SS, vector) \
213 makeSnGradTypeScheme(SS, sphericalTensor) \
214 makeSnGradTypeScheme(SS, symmTensor) \
215 makeSnGradTypeScheme(SS, tensor)
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 snGrad schemes.
virtual bool corrected() const
Return true if this scheme uses an explicit correction.
virtual const word & type() const =0
Runtime type information.
virtual ~snGradScheme()
Destructor.
snGradScheme(const fvMesh &mesh)
Construct from mesh.
const fvMesh & mesh() const
Return mesh reference.
virtual tmp< surfaceScalarField > deltaCoeffs(const VolField< Type > &) const =0
Return the interpolation weighting factors for the given field.
virtual tmp< SurfaceField< Type > > correction(const VolField< Type > &) const
Return the explicit correction to the snGrad.
static tmp< SurfaceField< Type > > sndGrad(const VolField< Type > &, const word &snGradName="sndGrad")
Return the sndGrad of the given cell field.
declareRunTimeSelectionTable(tmp, snGradScheme, Mesh,(const fvMesh &mesh, Istream &schemeData),(mesh, schemeData))
static tmp< SurfaceField< Type > > snGrad(const VolField< Type > &, const tmp< surfaceScalarField > &, const word &snGradName="snGrad")
Return the snGrad of the given cell field with the given deltaCoeffs.
void operator=(const snGradScheme &)=delete
Disallow default bitwise assignment.
static tmp< snGradScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
Return new tmp interpolation scheme.
Reference counter for various OpenFOAM components.
A class for managing temporary objects.
A class for handling words, derived from string.
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...