58template<
class LimiterFunc>
71 const scalar cdWeight,
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 phict = LimiterFunc::phict
82 faceFlux, phiP, phiN, gradcP, gradcN, d
85 scalar limitPhict =
min(
max(phict, 0), 0.5);
86 return limitPhict/(1 - limitPhict);
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 SFCD differencing scheme based on phict...
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
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.