60 #ifndef limitedSnGrad_H 61 #define limitedSnGrad_H 102 token nextToken(schemeData);
106 limitCoeff_ = nextToken.
number();
120 schemeData >> limitCoeff_;
122 return tcorrectedScheme;
147 correctedScheme_(lookupCorrectedScheme(schemeData))
149 if (limitCoeff_ < 0 || limitCoeff_ > 1)
152 <<
"limitCoeff is specified as " << limitCoeff_
153 <<
" but should be >= 0 && <= 1" errorManipArg< error, int > exit(error &err, const int errNo=1)
scalar number() const
Return label, float or double value.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A token holds an item read from Istream.
Generic GeometricField class.
TypeName("limited")
Runtime type information.
limitedSnGrad(const fvMesh &mesh)
Construct from mesh.
virtual const surfaceScalarField & nonOrthDeltaCoeffs() const
Return reference to non-orthogonal cell-centre difference.
void putBack(const token &tok)
Put back a token. Only a single put back is permitted.
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the explicit correction to the limitedSnGrad for the given field.
Surface gradient scheme with limited explicit non-orthogonal correction.
virtual bool corrected() const noexcept
Return true if this scheme uses an explicit correction.
Surface gradient scheme with full explicit non-orthogonal correction.
Abstract base class for runtime selected snGrad surface normal gradient schemes.
virtual ~limitedSnGrad()=default
Destructor.
const fvMesh & mesh() const
Return const reference to mesh.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Mesh data needed to do the Finite Volume discretisation.
virtual tmp< surfaceScalarField > deltaCoeffs(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the interpolation weighting factors for the given field.
A class for managing temporary objects.
bool isNumber() const noexcept
Token is LABEL, FLOAT or DOUBLE.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...