45#ifndef faceLimitedFaGrad_H
46#define faceLimitedFaGrad_H
99 k_(readScalar(schemeData))
101 if (k_ < 0 || k_ > 1)
104 <<
"coefficient = " << k_
105 <<
" should be >= 0 and <= 1"
116 const Type& maxDelta,
117 const Type& minDelta,
118 const Type& extrapolate
Generic GeometricField class.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Mesh data needed to do the Finite Area discretisation.
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
faPatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cover...
faceLimitedGrad gradient scheme applied to a runTime selected base gradient scheme.
TypeName("faceLimited")
RunTime type information.
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh > > grad(const GeometricField< Type, faPatchField, areaMesh > &) const
Calculate and return the grad of the given field.
static void limitEdge(Type &limiter, const Type &maxDelta, const Type &minDelta, const Type &extrapolate)
faceLimitedGrad(const faMesh &mesh, Istream &schemeData)
Construct from mesh and schemeData.
Abstract base class for finite area calculus gradient schemes.
static tmp< gradScheme< Type > > New(const faMesh &mesh, Istream &schemeData)
Return a pointer to a new gradScheme created on freestore.
const faMesh & mesh() const
Return mesh reference.
A class for managing temporary objects.
type
Volume classification types.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< areaScalarField > limiter(const areaScalarField &phi)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.