Go to the documentation of this file.
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
faPatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cover...
A class for managing temporary objects.
typeOfRank< typename pTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank) >::type type
TypeName("faceLimited")
RunTime type information.
static void limitEdge(Type &limiter, const Type &maxDelta, const Type &minDelta, const Type &extrapolate)
const faMesh & mesh() const
Return mesh reference.
faceLimitedGrad gradient scheme applied to a runTime selected base gradient scheme.
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.
faceLimitedGrad(const faMesh &mesh, Istream &schemeData)
Construct from mesh and schemeData.
static tmp< gradScheme< Type > > New(const faMesh &mesh, Istream &schemeData)
Return a pointer to a new gradScheme created on freestore.
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.
Abstract base class for finite area calculus gradient schemes.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Finite area mesh. Used for 2-D non-Euclidian finite area method.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Generic GeometricField class.
tmp< areaScalarField > limiter(const areaScalarField &phi)