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) 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.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
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 for optional caching.
A class for handling words, derived from Foam::string.
Abstract base class for gradient schemes.
Mesh data needed to do the Finite Volume discretisation.
A class for managing temporary objects.
const fvMesh & mesh() const
Return const reference to mesh.