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" 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) virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the explicit correction to the snGrad.
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.
Reference counter for various OpenFOAM components.
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.
virtual bool corrected() const
Return true if this scheme uses an explicit correction.
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.
declareRunTimeSelectionTable(tmp, snGradScheme, Mesh,(const fvMesh &mesh, Istream &schemeData),(mesh, schemeData))
Abstract base class for snGrad schemes.
const fvMesh & mesh() const
Return mesh reference.
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.