90 snGradScheme(
const snGradScheme&) =
delete;
93 void operator=(
const snGradScheme&) =
delete;
99 virtual const word&
type()
const = 0;
152 const word& snGradName =
"snGrad"
160 const word& snGradName =
"sndGrad"
209#define makeSnGradTypeScheme(SS, Type) \
210 defineNamedTemplateTypeNameAndDebug(Foam::fv::SS<Foam::Type>, 0); \
216 snGradScheme<Type>::addMeshConstructorToTable<SS<Type>> \
217 add##SS##Type##MeshConstructorToTable_; \
221#define makeSnGradScheme(SS) \
223makeSnGradTypeScheme(SS, scalar) \
224makeSnGradTypeScheme(SS, vector) \
225makeSnGradTypeScheme(SS, sphericalTensor) \
226makeSnGradTypeScheme(SS, symmTensor) \
227makeSnGradTypeScheme(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.
snGradScheme(const fvMesh &mesh)
Construct from mesh.
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 ~snGradScheme()=default
Destructor.
declareRunTimeSelectionTable(tmp, snGradScheme, Mesh,(const fvMesh &mesh, Istream &schemeData),(mesh, schemeData))
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 by using the given deltaCoeffs.
const fvMesh & mesh() const
Return const reference to mesh.
virtual bool corrected() const noexcept
Return true if this scheme uses an explicit correction.
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the explicit correction to the snGrad for the given field.
static tmp< snGradScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
Return new tmp interpolation scheme.
virtual const word & type() const =0
Runtime type information.
virtual tmp< surfaceScalarField > deltaCoeffs(const GeometricField< Type, fvPatchField, volMesh > &) const =0
Return the interpolation weighting factors for the given field.
constexpr refCount() noexcept
Default construct, initializing count to 0.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
Namespace for finite-volume.
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes).
Basic run-time type information using word as the type's name. Used to enhance the standard RTTI to c...
Forwards and collection of common volume field types.