51 template<
class LimitedScheme>
57 scalar lowerBound_, upperBound_;
59 void checkParameters(
Istream& is)
61 if (lowerBound_ > upperBound_)
64 <<
"Invalid bounds. Lower = " << lowerBound_
65 <<
" Upper = " << upperBound_
66 <<
". Lower bound is higher than the upper bound." 76 const scalar lowerBound,
77 const scalar upperBound,
82 lowerBound_(lowerBound),
83 upperBound_(upperBound)
91 lowerBound_(readScalar(is)),
92 upperBound_(readScalar(is))
100 const scalar cdWeight,
101 const scalar faceFlux,
112 (faceFlux > 0 && (phiP < lowerBound_ || phiN > upperBound_))
113 || (faceFlux < 0 && (phiN < lowerBound_ || phiP > upperBound_))
errorManipArg< error, int > exit(error &err, const int errNo=1)
Class to create NVD/TVD limited weighting-factors.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
LimitedLimiter(const scalar lowerBound, const scalar upperBound, Istream &is)
scalar limiter(const scalar cdWeight, const scalar faceFlux, const scalar phiP, const scalar phiN, const vector &gradcP, const vector &gradcN, const vector &d) const
virtual tmp< surfaceScalarField > limiter(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the interpolation weighting factors.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
#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 ...