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(
min(2*r, 0.75*r + 0.25), 0.25*r + 0.75), 2), 0);
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
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)
Class with limiter function which returns the limiter for the UMIST interpolation scheme...