Go to the documentation of this file.
46 #ifndef faceLimitedGrad_H
47 #define faceLimitedGrad_H
84 const scalar maxDelta,
85 const scalar minDelta,
86 const scalar extrapolate
110 k_(readScalar(schemeData))
112 if (k_ < 0 || k_ > 1)
115 <<
"coefficient = " << k_
116 <<
" should be >= 0 and <= 1"
144 inline void faceLimitedGrad<Type>::limitFace
147 const scalar maxDelta,
148 const scalar minDelta,
149 const scalar extrapolate
152 if (extrapolate > maxDelta + VSMALL)
156 else if (extrapolate < minDelta - VSMALL)
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
faceLimitedGrad gradient scheme applied to a runTime selected base gradient scheme.
Mesh data needed to do the Finite Volume discretisation.
typeOfRank< typename pTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank) >::type type
label min(const labelHashSet &set, label minValue=labelMax)
static tmp< gradScheme< Type > > New(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
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Abstract base class for gradient schemes.
Mesh data needed to do the Finite Volume discretisation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
GeometricField< vector, fvPatchField, volMesh > volVectorField
faceLimitedGrad(const fvMesh &mesh, Istream &schemeData)
word name(const expressions::valueTypeCode typeCode)
#define FatalIOErrorInFunction(ios)
Generic GeometricField class.
tmp< areaScalarField > limiter(const areaScalarField &phi)
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > grad(const GeometricField< Type, fvPatchField, volMesh > &, const word &name) const
virtual tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > calcGrad(const GeometricField< Type, fvPatchField, volMesh > &vsf, const word &name) const