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);
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
Class with limiter function which returns the limiter for the van Leer's MUSCL interpolation scheme...
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
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)