Go to the documentation of this file.
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);
linearUpwindWeight(Istream &)
label min(const labelHashSet &set, label minValue=labelMax)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
tmp< DimensionedField< scalar, GeoMesh > > stabilise(const DimensionedField< scalar, GeoMesh > &dsf, const dimensioned< scalar > &ds)
Class with operator() which returns the weighting factors for the linear-upwind differencing scheme....
label max(const labelHashSet &set, label maxValue=labelMin)
scalar weight(scalar cdWeight, scalar faceFlux, scalar phiP, scalar phiN, const vector &gradcP, const vector &gradcN, const vector &d) const