Go to the documentation of this file.
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"
virtual const surfaceScalarField & nonOrthDeltaCoeffs() const
A class for managing temporary objects.
virtual bool corrected() const noexcept
A token holds an item read from Istream.
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &) const
bool isNumber() const noexcept
virtual ~limitedSnGrad()=default
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
limitedSnGrad(const fvMesh &mesh, Istream &schemeData)
Mesh data needed to do the Finite Volume discretisation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const fvMesh & mesh() const
Surface gradient scheme with limited explicit non-orthogonal correction.
void putBack(const token &tok)
Surface gradient scheme with full explicit non-orthogonal correction.
Abstract base class for runtime selected snGrad surface normal gradient schemes.
#define FatalIOErrorInFunction(ios)
limitedSnGrad(const fvMesh &mesh)
Generic GeometricField class.
virtual tmp< surfaceScalarField > deltaCoeffs(const GeometricField< Type, fvPatchField, volMesh > &) const