47#ifndef limitedLnGrad_H
48#define limitedLnGrad_H
102 limitCoeff_(readScalar(is))
104 if (limitCoeff_ < 0 || limitCoeff_ > 1)
107 <<
"limitCoeff is specified as " << limitCoeff_
108 <<
" but should be >= 0 && <= 1"
Generic GeometricField class.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
const edgeScalarField & deltaCoeffs() const
Return reference to difference factors array.
bool orthogonal() const
Return whether mesh is orthogonal or not.
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
Central-difference lnGrad scheme with limited non-orthogonal correction.
virtual tmp< GeometricField< Type, faePatchField, edgeMesh > > correction(const GeometricField< Type, faPatchField, areaMesh > &) const
Return the explicit correction to the limitedLnGrad.
virtual bool corrected() const
Return true if this scheme uses an explicit correction.
limitedLnGrad(const faMesh &mesh)
Construct from mesh.
limitedLnGrad(const faMesh &mesh, Istream &is)
Construct from mesh and data stream.
TypeName("limited")
Runtime type information.
virtual tmp< edgeScalarField > deltaCoeffs(const GeometricField< Type, faPatchField, areaMesh > &) const
Return the interpolation weighting factors for the given field.
Abstract base class for lnGrad schemes.
const faMesh & mesh() const
Return mesh reference.
A class for managing temporary objects.
#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.