44 #ifndef linearUpwind_H 45 #define linearUpwind_H 81 phif = phiP + (1 - cdWeight)*(d & gradcP);
85 phif = phiN - cdWeight*(d & gradcN);
90 phif =
min(phif,
max(phiN, phiP));
91 phif =
max(phif,
min(phiN, phiP));
93 return (phif - phiN)/
stabilise(phiP - phiN, SMALL);
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
dimensionedScalar stabilise(const dimensionedScalar &x, const dimensionedScalar &y)
scalar weight(scalar cdWeight, scalar faceFlux, scalar phiP, scalar phiN, const vector &gradcP, const vector &gradcN, const vector &d) const
linearUpwindWeight(Istream &)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
Class with operator() which returns the weighting factors for the linear-upwind differencing scheme...