Go to the documentation of this file.
45 #ifndef faceLimitedGrad_H
46 #define faceLimitedGrad_H
82 const scalar maxDelta,
83 const scalar minDelta,
84 const scalar extrapolate
108 k_(readScalar(schemeData))
110 if (k_ < 0 || k_ > 1)
113 <<
"coefficient = " << k_
114 <<
" should be >= 0 and <= 1"
142 inline void faceLimitedGrad<Type>::limitFace
145 const scalar maxDelta,
146 const scalar minDelta,
147 const scalar extrapolate
150 if (extrapolate > maxDelta + VSMALL)
154 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)
Find the min value in labelHashSet, optionally limited by second argument.
static tmp< gradScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
Return a pointer to a new gradScheme created on freestore.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
word name(const complex &c)
Return string representation of complex.
const fvMesh & mesh() const
Return mesh reference.
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)
Construct from mesh and schemeData.
TypeName("faceLimited")
RunTime type information.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
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
Calculate and return the grad of the given field.
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.