Go to the source code of this file.
|
| class | LeastSquaresGrad< Type, Stencil > |
| | Gradient calculated using weighted least-squares on an arbitrary stencil. The stencil type is provided via a template argument and any cell-based stencil is supported: More...
|
|
| namespace | Foam |
| | Namespace for OpenFOAM.
|
| namespace | Foam::fv |
| | Namespace for finite-volume.
|
Original source file LeastSquaresGrad.H
Definition in file LeastSquaresGrad.H.
◆ makeLeastSquaresGradTypeScheme
| #define makeLeastSquaresGradTypeScheme |
( |
| SS, |
|
|
| STENCIL, |
|
|
| TYPE ) |
Value:
LeastSquaresGrad##TYPE##STENCIL##_; \
\
(LeastSquaresGrad##TYPE##STENCIL##_, #SS, 0); \
\
{ \
{ \
typedef LeastSquaresGrad<Foam::TYPE, Foam::STENCIL> \
LeastSquaresGrad##TYPE##STENCIL##_; \
\
gradScheme<Foam::TYPE>::addIstreamConstructorToTable \
<LeastSquaresGrad<Foam::TYPE, Foam::STENCIL>> \
add##SS##STENCIL##TYPE##IstreamConstructorToTable_; \
} \
}
Gradient calculated using weighted least-squares on an arbitrary stencil. The stencil type is provide...
#define defineTemplateTypeNameAndDebugWithName(Type, Name, DebugSwitch)
Define the typeName and debug information, lookup as Name.
dict add("bounds", meshBb)
Definition at line 183 of file LeastSquaresGrad.H.
◆ makeLeastSquaresGradScheme
| #define makeLeastSquaresGradScheme |
( |
| SS, |
|
|
| STENCIL ) |
Value:
LeastSquaresVectors##STENCIL##_; \
\
(LeastSquaresVectors##STENCIL##_, #SS, 0); \
\
makeLeastSquaresGradTypeScheme(SS,STENCIL,scalar) \
makeLeastSquaresGradTypeScheme(SS,STENCIL,
vector)
Least-squares gradient scheme vectors.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
Definition at line 203 of file LeastSquaresGrad.H.