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"
Generic GeometricField class.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void putBack(const token &tok)
Put back a token. Only a single put back is permitted.
Mesh data needed to do the Finite Volume discretisation.
Surface gradient scheme with full explicit non-orthogonal correction.
Surface gradient scheme with limited explicit non-orthogonal correction.
limitedSnGrad(const fvMesh &mesh, Istream &schemeData)
Construct from mesh and data stream.
virtual ~limitedSnGrad()=default
Destructor.
virtual tmp< surfaceScalarField > deltaCoeffs(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the interpolation weighting factors for the given field.
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &) const
virtual bool corrected() const noexcept
Return true if this scheme uses an explicit correction.
limitedSnGrad(const fvMesh &mesh)
Construct from mesh.
TypeName("limited")
Runtime type information.
Abstract base class for runtime selected snGrad surface normal gradient schemes.
const fvMesh & mesh() const
Return const reference to mesh.
virtual const surfaceScalarField & nonOrthDeltaCoeffs() const
Return reference to non-orthogonal cell-centre difference.
A class for managing temporary objects.
A token holds an item read from Istream.
bool isNumber() const noexcept
Token is LABEL, FLOAT or DOUBLE.
scalar number() const
Return label, float or double value.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.