62 #ifndef LeastSquaresGrad_H 63 #define LeastSquaresGrad_H 81 template<
class Type,
class Stencil>
82 class LeastSquaresGrad
84 public fv::gradScheme<Type>
144 #define makeLeastSquaresGradTypeScheme(SS, STENCIL, TYPE) \ 145 typedef Foam::fv::LeastSquaresGrad<Foam::TYPE, Foam::STENCIL> \ 146 LeastSquaresGrad##TYPE##STENCIL##_; \ 148 defineTemplateTypeNameAndDebugWithName \ 149 (LeastSquaresGrad##TYPE##STENCIL##_, #SS, 0); \ 155 typedef LeastSquaresGrad<Foam::TYPE, Foam::STENCIL> \ 156 LeastSquaresGrad##TYPE##STENCIL##_; \ 158 gradScheme<Foam::TYPE>::addIstreamConstructorToTable \ 159 <LeastSquaresGrad<Foam::TYPE, Foam::STENCIL>> \ 160 add##SS##STENCIL##TYPE##IstreamConstructorToTable_; \ 164 #define makeLeastSquaresGradScheme(SS, STENCIL) \ 165 typedef Foam::fv::LeastSquaresVectors<Foam::STENCIL> \ 166 LeastSquaresVectors##STENCIL##_; \ 168 defineTemplateTypeNameAndDebugWithName \ 169 (LeastSquaresVectors##STENCIL##_, #SS, 0); \ 171 makeLeastSquaresGradTypeScheme(SS,STENCIL,scalar) \ 172 makeLeastSquaresGradTypeScheme(SS,STENCIL,vector) Gradient calculated using weighted least-squares on an arbitrary stencil. The stencil type is provide...
TypeName("LeastSquares")
Runtime type information.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
typeOfRank< typename pTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank) >::type type
Generic GeometricField class.
Mesh data needed to do the Finite Volume discretisation.
virtual tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > calcGrad(const GeometricField< Type, fvPatchField, volMesh > &vsf, const word &name) const
Return the gradient of the given field to the gradScheme::grad.
A class for handling words, derived from string.
word name(const complex &)
Return a string representation of a complex.
Abstract base class for gradient schemes.
LeastSquaresGrad(const fvMesh &mesh, Istream &schemeData)
Construct from Istream.
Mesh data needed to do the Finite Volume discretisation.
A class for managing temporary objects.
const fvMesh & mesh() const
Return mesh reference.
void operator=(const LeastSquaresGrad &)=delete
Disallow default bitwise assignment.