44 #ifndef filteredLinear_H 45 #define filteredLinear_H 58 template<
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 df = phiN - phiP;
82 scalar dcP = d & gradcP;
83 scalar dcN = d & gradcN;
91 return max(
min(limiter, 1), 0.8);
Class to generate weighting factors for the filteredLinear 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)...
filteredLinearLimiter(Istream &)
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 > &)
dimensioned< scalar > mag(const dimensioned< Type > &)