Go to the documentation of this file.
70 <<
"coefficient = " << k_
71 <<
" should be >= 0 and <= 1"
78 const scalar cdWeight,
79 const scalar faceFlux,
86 scalar phiP = Sf&PhiP;
87 scalar phiN = Sf&PhiN;
100 scalar phiCD = cdWeight*phiP + (1 - cdWeight)*phiN;
107 ((faceFlux - phiU)/
stabilise(phiCD - phiU, SMALL) + k_);
110 return max(
min(PLimiter, 1), 0);
Class with limiter function which returns the limiter for the Phi differencing scheme.
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)
label max(const labelHashSet &set, label maxValue=labelMin)
Vector< scalar > vector
A scalar version of the templated Vector.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalIOErrorInFunction(ios)
scalar limiter(const scalar cdWeight, const scalar faceFlux, const vector &PhiP, const vector &PhiN, const vector &Sf, const scalar &) const