35 #ifndef snGradScheme_H 36 #define snGradScheme_H 83 virtual const word&
type()
const = 0;
136 const word& snGradName =
"snGrad" 144 const word& snGradName =
"sndGrad" 194 #define makeSnGradTypeScheme(SS, Type) \ 195 defineNamedTemplateTypeNameAndDebug(Foam::fv::SS<Foam::Type>, 0); \ 201 snGradScheme<Type>::addMeshConstructorToTable<SS<Type>> \ 202 add##SS##Type##MeshConstructorToTable_; \ 206 #define makeSnGradScheme(SS) \ 208 makeSnGradTypeScheme(SS, scalar) \ 209 makeSnGradTypeScheme(SS, vector) \ 210 makeSnGradTypeScheme(SS, sphericalTensor) \ 211 makeSnGradTypeScheme(SS, symmTensor) \ 212 makeSnGradTypeScheme(SS, tensor) static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &, const tmp< surfaceScalarField > &, const word &snGradName="snGrad")
Return the snGrad of the given cell field with the given deltaCoeffs.
virtual bool corrected() const
Return true if this scheme uses an explicit correction.
Reference counter for various OpenFOAM components.
const fvMesh & mesh() const
Return mesh reference.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > sndGrad(const GeometricField< Type, fvPatchField, volMesh > &, const word &snGradName="sndGrad")
Return the sndGrad of the given cell field.
Generic GeometricField class.
static tmp< snGradScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
Return new tmp interpolation scheme.
virtual tmp< surfaceScalarField > deltaCoeffs(const GeometricField< Type, fvPatchField, volMesh > &) const =0
Return the interpolation weighting factors for the given field.
A class for handling words, derived from string.
virtual const word & type() const =0
Runtime type information.
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the explicit correction to the snGrad.
declareRunTimeSelectionTable(tmp, snGradScheme, Mesh,(const fvMesh &mesh, Istream &schemeData),(mesh, schemeData))
Abstract base class for snGrad schemes.
Mesh data needed to do the Finite Volume discretisation.
Macros to ease declaration of run-time selection tables.
A class for managing temporary objects.
virtual ~snGradScheme()
Destructor.