Go to the documentation of this file.
51 #ifndef snGradScheme_H
52 #define snGradScheme_H
99 virtual const word&
type()
const = 0;
152 const word& snGradName =
"snGrad"
160 const word& snGradName =
"sndGrad"
213 #define makeSnGradTypeScheme(SS, Type) \
214 defineNamedTemplateTypeNameAndDebug(Foam::fv::SS<Foam::Type>, 0); \
220 snGradScheme<Type>::addMeshConstructorToTable<SS<Type>> \
221 add##SS##Type##MeshConstructorToTable_; \
225 #define makeSnGradScheme(SS) \
227 makeSnGradTypeScheme(SS, scalar) \
228 makeSnGradTypeScheme(SS, vector) \
229 makeSnGradTypeScheme(SS, sphericalTensor) \
230 makeSnGradTypeScheme(SS, symmTensor) \
231 makeSnGradTypeScheme(SS, tensor)
A class for handling words, derived from Foam::string.
snGradScheme(const fvMesh &mesh)
virtual bool corrected() const noexcept
A class for managing temporary objects.
declareRunTimeSelectionTable(tmp, snGradScheme, Mesh,(const fvMesh &mesh, Istream &schemeData),(mesh, schemeData))
Reference counter for various OpenFOAM components.
virtual ~snGradScheme()=default
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.
const fvMesh & mesh() const
Macros to ease declaration of run-time selection tables.
virtual const word & type() const =0
Abstract base class for runtime selected snGrad surface normal gradient schemes.
static tmp< snGradScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &) const
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &, const tmp< surfaceScalarField > &, const word &snGradName="snGrad")
virtual tmp< surfaceScalarField > deltaCoeffs(const GeometricField< Type, fvPatchField, volMesh > &) const =0
Generic GeometricField class.
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > sndGrad(const GeometricField< Type, fvPatchField, volMesh > &, const word &snGradName="sndGrad")