68 #ifndef cubicGradientLimiter_H 69 #define cubicGradientLimiter_H 81 namespace gradientLimiters
107 rt_(readScalar(schemeData)),
108 a_((rt_ - 2)/
pow3(rt_)),
109 b_(-(3*a_*
sqr(rt_) + 1)/(2*rt_))
114 <<
"coefficient = " << rt_
123 inline scalar
limiter(
const scalar r)
const 127 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)
dimensionedScalar pow3(const dimensionedScalar &ds)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...