68#ifndef LeastSquaresGrad_H
69#define LeastSquaresGrad_H
87template<
class Type,
class Stencil>
90 public fv::gradScheme<Type>
101 LeastSquaresGrad(
const LeastSquaresGrad&) =
delete;
150#define makeLeastSquaresGradTypeScheme(SS, STENCIL, TYPE) \
151 typedef Foam::fv::LeastSquaresGrad<Foam::TYPE, Foam::STENCIL> \
152 LeastSquaresGrad##TYPE##STENCIL##_; \
154 defineTemplateTypeNameAndDebugWithName \
155 (LeastSquaresGrad##TYPE##STENCIL##_, #SS, 0); \
161 typedef LeastSquaresGrad<Foam::TYPE, Foam::STENCIL> \
162 LeastSquaresGrad##TYPE##STENCIL##_; \
164 gradScheme<Foam::TYPE>::addIstreamConstructorToTable \
165 <LeastSquaresGrad<Foam::TYPE, Foam::STENCIL>> \
166 add##SS##STENCIL##TYPE##IstreamConstructorToTable_; \
170#define makeLeastSquaresGradScheme(SS, STENCIL) \
171 typedef Foam::fv::LeastSquaresVectors<Foam::STENCIL> \
172 LeastSquaresVectors##STENCIL##_; \
174 defineTemplateTypeNameAndDebugWithName \
175 (LeastSquaresVectors##STENCIL##_, #SS, 0); \
177 makeLeastSquaresGradTypeScheme(SS,STENCIL,scalar) \
178 makeLeastSquaresGradTypeScheme(SS,STENCIL,vector)
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.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Gradient calculated using weighted least-squares on an arbitrary stencil. The stencil type is provide...
virtual tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > calcGrad(const GeometricField< Type, fvPatchField, volMesh > &vsf, const word &name) const
LeastSquaresGrad(const fvMesh &mesh, Istream &schemeData)
Construct from Istream.
TypeName("LeastSquares")
Runtime type information.
Abstract base class for gradient schemes.
const fvMesh & mesh() const
Return const reference to mesh.
A class for managing temporary objects.
Mesh data needed to do the Finite Volume discretisation.
type
Volume classification types.
A class for handling words, derived from Foam::string.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.