43#ifndef edgeLimitedFaGrad_H
44#define edgeLimitedFaGrad_H
81 const scalar maxDelta,
82 const scalar minDelta,
83 const scalar extrapolate
109 k_(readScalar(schemeData))
111 if (k_ < 0 || k_ > 1)
114 <<
"coefficient = " << k_
115 <<
" should be >= 0 and <= 1"
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...
TypeName("edgeLimited")
RunTime type information.
edgeLimitedGrad(const faMesh &mesh, Istream &schemeData)
Construct from mesh and schemeData.
edgeLimitedGrad(const edgeLimitedGrad &)=delete
No copy construct.
void operator=(const edgeLimitedGrad &)=delete
No copy assignment.
virtual tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh > > calcGrad(const GeometricField< Type, faPatchField, areaMesh > &vsf, const word &name) const
Return the gradient of the given field to the gradScheme::grad for optional caching.
Abstract base class for finite area calculus gradient schemes.
const faMesh & mesh() const noexcept
Return mesh reference.
static tmp< gradScheme< Type > > New(const faMesh &mesh, Istream &schemeData)
Return a pointer to a new gradScheme created on freestore.
gradScheme(const gradScheme &)=delete
No copy construct.
typeOfRank< typenamepTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank)>::type type
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Namespace for finite-area.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
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.