46#ifndef faceLimitedFaGrad_H
47#define faceLimitedFaGrad_H
101 k_(readScalar(schemeData))
103 if (k_ < 0 || k_ > 1)
106 <<
"coefficient = " << k_
107 <<
" should be >= 0 and <= 1"
118 const Type& maxDelta,
119 const Type& minDelta,
120 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...
TypeName("faceLimited")
RunTime type information.
faceLimitedGrad(const faceLimitedGrad &)=delete
No copy construct.
static void limitEdge(Type &limiter, const Type &maxDelta, const Type &minDelta, const Type &extrapolate)
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.
faceLimitedGrad(const faMesh &mesh, Istream &schemeData)
Construct from mesh and schemeData.
void operator=(const faceLimitedGrad &)=delete
No copy assignment.
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.