48 #ifndef limitedSnGrad_H 49 #define limitedSnGrad_H 88 token nextToken(schemeData);
92 limitCoeff_ = nextToken.
number();
106 schemeData >> limitCoeff_;
108 return tcorrectedScheme;
134 correctedScheme_(lookupCorrectedScheme(schemeData))
136 if (limitCoeff_ < 0 || limitCoeff_ > 1)
141 ) <<
"limitCoeff is specified as " << limitCoeff_
142 <<
" 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.
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.