52 template<
class LimiterFunc>
65 const scalar cdWeight,
66 const scalar faceFlux,
67 const typename LimiterFunc::phiType& phiP,
68 const typename LimiterFunc::phiType& phiN,
69 const typename LimiterFunc::gradPhiType& gradcP,
70 const typename LimiterFunc::gradPhiType& gradcN,
74 scalar r = LimiterFunc::r
76 faceFlux, phiP, phiN, gradcP, gradcN, d
79 return max(
min(
min(2*r, 0.5*r + 0.5), 2), 0);
Class with limiter function which returns the limiter for the van Leer's MUSCL differencing scheme...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
scalar limiter(const scalar cdWeight, 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
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)