Go to the documentation of this file.
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"
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.
A class for managing temporary objects.
TypeName("limited")
Runtime type information.
limitedLnGrad(const faMesh &mesh)
Construct from mesh.
const faMesh & mesh() const
Return mesh reference.
const edgeScalarField & deltaCoeffs() const
Return reference to difference factors array.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool orthogonal() const
Return whether mesh is orthogonal or not.
limitedLnGrad(const faMesh &mesh, Istream &is)
Construct from mesh and data stream.
virtual bool corrected() const
Return true if this scheme uses an explicit correction.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Finite area mesh. Used for 2-D non-Euclidian finite area method.
virtual tmp< edgeScalarField > deltaCoeffs(const GeometricField< Type, faPatchField, areaMesh > &) const
Return the interpolation weighting factors for the given field.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Generic GeometricField class.
Abstract base class for lnGrad schemes.