58 template<
class LimiterFunc>
72 const scalar faceFlux,
73 const typename LimiterFunc::phiType& phiP,
74 const typename LimiterFunc::phiType& phiN,
75 const typename LimiterFunc::gradPhiType& gradcP,
76 const typename LimiterFunc::gradPhiType& gradcN,
80 scalar r = LimiterFunc::r
82 faceFlux, phiP, phiN, gradcP, gradcN, d
85 return (r +
mag(r))/(1 +
mag(r));
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Class with limiter function which returns the limiter for the vanLeer differencing scheme based on r ...
vanLeerLimiter(Istream &)
scalar limiter(const scalar, const scalar faceFlux, const typename LimiterFunc::phiType &phiP, const typename LimiterFunc::phiType &phiN, const typename LimiterFunc::gradPhiType &gradcP, const typename LimiterFunc::gradPhiType &gradcN, const vector &d) const
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...