Loading...
Searching...
No Matches
LeastSquaresGrad.H File Reference
Include dependency graph for LeastSquaresGrad.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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...

Namespaces

namespace  Foam
 Namespace for OpenFOAM.
namespace  Foam::fv
 Namespace for finite-volume.

Macros

#define makeLeastSquaresGradTypeScheme(SS, STENCIL, TYPE)
#define makeLeastSquaresGradScheme(SS, STENCIL)

Detailed Description

Original source file LeastSquaresGrad.H

Definition in file LeastSquaresGrad.H.

Macro Definition Documentation

◆ makeLeastSquaresGradTypeScheme

#define makeLeastSquaresGradTypeScheme ( SS,
STENCIL,
TYPE )
Value:
LeastSquaresGrad##TYPE##STENCIL##_; \
\
(LeastSquaresGrad##TYPE##STENCIL##_, #SS, 0); \
\
namespace Foam \
{ \
namespace fv \
{ \
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.
Definition className.H:149
Namespace for OpenFOAM.
labelList fv(nPoints)
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.