48 #ifndef limitedSnGrad_H 49 #define limitedSnGrad_H 85 token nextToken(schemeData);
89 limitCoeff_ = nextToken.
number();
103 schemeData >> limitCoeff_;
105 return tcorrectedScheme;
131 correctedScheme_(lookupCorrectedScheme(schemeData))
133 if (limitCoeff_ < 0 || limitCoeff_ > 1)
138 ) <<
"limitCoeff is specified as " << limitCoeff_
139 <<
" but should be >= 0 && <= 1" errorManipArg< error, int > exit(error &err, const int errNo=1)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A token holds items read from Istream.
void putBack(const token &)
Put back token.
Generic GeometricField class.
TypeName("limited")
Runtime type information.
limitedSnGrad(const fvMesh &mesh)
Construct from mesh.
const surfaceScalarField & nonOrthDeltaCoeffs() const
Return reference to non-orthogonal cell-centre difference.
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the explicit correction to the limitedSnGrad.
Run-time selected snGrad scheme with limited non-orthogonal correction.
Simple central-difference snGrad scheme with non-orthogonal correction.
void operator=(const limitedSnGrad &)=delete
Disallow default bitwise assignment.
virtual bool corrected() const
Return true if this scheme uses an explicit correction.
Abstract base class for snGrad schemes.
const fvMesh & mesh() const
Return mesh reference.
#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.
virtual ~limitedSnGrad()
Destructor.