Go to the documentation of this file.
68 #ifndef LeastSquaresGrad_H
69 #define LeastSquaresGrad_H
87 template<
class Type,
class Stencil>
88 class LeastSquaresGrad
90 public fv::gradScheme<Type>
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)
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > calcGrad(const GeometricField< Type, fvPatchField, volMesh > &vsf, const word &name) const
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
Mesh data needed to do the Finite Volume discretisation.
typeOfRank< typename pTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank) >::type type
LeastSquaresGrad(const fvMesh &mesh, Istream &schemeData)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
const fvMesh & mesh() const
Abstract base class for gradient schemes.
Mesh data needed to do the Finite Volume discretisation.
Gradient calculated using weighted least-squares on an arbitrary stencil. The stencil type is provide...
word name(const expressions::valueTypeCode typeCode)
Generic GeometricField class.