72 <<
"coefficient = " << k_
73 <<
" should be >= 0 and <= 1" 79 k_ =
max(0.5*k_, SMALL);
97 const vector& gradcPN = (faceFlux > 0) ? gradcP : gradcN;
98 const scalar udWeight = (faceFlux > 0) ? 1 : 0;
101 const scalar gradcf =
stabilise(dHat & gradcPN, SMALL);
103 const scalar gradf = (phiN - phiP)/
mag(d);
105 const scalar phict = 1 - 0.5*gradf/gradcf;
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
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)
quaternion normalised(const quaternion &q)
Return the normalised (unit) quaternion of the given quaternion.
tmp< areaScalarField > limiter(const areaScalarField &phi)
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 Gamma differencing scheme...
dimensioned< Type > lerp(const dimensioned< Type > &a, const dimensioned< Type > &b, const scalar t)
scalar weight(scalar cdWeight, scalar faceFlux, scalar phiP, scalar phiN, const vector &gradcP, const vector &gradcN, const vector &d) const
Represents 0/1 range or concept. Used for tagged dispatch or clamping.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
dimensionSet clamp(const dimensionSet &a, const dimensionSet &range)
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...