Go to the documentation of this file.
35 #ifndef snGradScheme_H
36 #define snGradScheme_H
80 virtual const word&
type()
const = 0;
133 const word& snGradName =
"snGrad"
141 const word& snGradName =
"sndGrad"
191 #define makeSnGradTypeScheme(SS, Type) \
192 defineNamedTemplateTypeNameAndDebug(Foam::fv::SS<Foam::Type>, 0); \
198 snGradScheme<Type>::addMeshConstructorToTable<SS<Type> > \
199 add##SS##Type##MeshConstructorToTable_; \
203 #define makeSnGradScheme(SS) \
205 makeSnGradTypeScheme(SS, scalar) \
206 makeSnGradTypeScheme(SS, vector) \
207 makeSnGradTypeScheme(SS, sphericalTensor) \
208 makeSnGradTypeScheme(SS, symmTensor) \
209 makeSnGradTypeScheme(SS, tensor)
A class for handling words, derived from string.
snGradScheme(const fvMesh &mesh)
Construct from mesh.
A class for managing temporary objects.
declareRunTimeSelectionTable(tmp, snGradScheme, Mesh,(const fvMesh &mesh, Istream &schemeData),(mesh, schemeData))
Reference counter for various OpenFOAM components.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void operator=(const snGradScheme &)
Disallow default bitwise assignment.
virtual ~snGradScheme()
Destructor.
Mesh data needed to do the Finite Volume discretisation.
const fvMesh & mesh() const
Return mesh reference.
virtual bool corrected() const
Return true if this scheme uses an explicit correction.
const fvMesh & mesh_
Hold reference to mesh.
Macros to ease declaration of run-time selection tables.
virtual const word & type() const =0
Runtime type information.
Abstract base class for snGrad schemes.
static tmp< snGradScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
Return new tmp interpolation scheme.
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.
virtual tmp< surfaceScalarField > deltaCoeffs(const GeometricField< Type, fvPatchField, volMesh > &) const =0
Return the interpolation weighting factors for the given field.
Generic GeometricField class.
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > sndGrad(const GeometricField< Type, fvPatchField, volMesh > &, const word &snGradName="sndGrad")
Return the sndGrad of the given cell field.