63 #ifndef cubicGradientLimiter_H 64 #define cubicGradientLimiter_H 76 namespace gradientLimiters
103 a_(2.0/
sqr(rt_) - 2.0/
pow3(rt_)),
104 b_(-(3.0/2.0)*a_*rt_)
111 ) <<
"coefficient = " << rt_
120 inline scalar
limiter(
const scalar r)
const 124 return ((a_*r + b_)*r + 1)*r;
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
scalar limiter(const scalar r) const
cubic(Istream &schemeData)
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if successful.
dimensionedScalar pow3(const dimensionedScalar &ds)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.