40 #ifndef faceLimitedGrad_H
41 #define faceLimitedGrad_H
77 const scalar maxDelta,
78 const scalar minDelta,
79 const scalar extrapolate
103 ) <<
"coefficient = " << k_
104 <<
" should be >= 0 and <= 1"
141 const scalar maxDelta,
142 const scalar minDelta,
143 const scalar extrapolate
146 if (extrapolate > maxDelta + vSmall)
150 else if (extrapolate < minDelta - vSmall)
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 Volume discretisation.
faceLimitedGrad gradient scheme applied to a runTime selected base gradient scheme.
TypeName("faceLimited")
RunTime type information.
virtual tmp< VolField< typename outerProduct< vector, Type >::type > > calcGrad(const VolField< Type > &vsf, const word &name) const
Return the gradient of the given field to the gradScheme::grad.
faceLimitedGrad(const fvMesh &mesh, Istream &schemeData)
Construct from mesh and schemeData.
void operator=(const faceLimitedGrad &)=delete
Disallow default bitwise assignment.
Abstract base class for gradient schemes.
const fvMesh & mesh() const
Return mesh reference.
tmp< VolField< typename outerProduct< vector, Type >::type > > grad(const VolField< Type > &, const word &name) const
Calculate and return the grad of the given field.
static tmp< gradScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
Return a pointer to a new gradScheme created on freestore.
A class for managing temporary objects.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
void limiter(surfaceScalarField &lambda, const RdeltaTType &rDeltaT, const RhoType &rho, const volScalarField &psi, const surfaceScalarField &phiBD, const surfaceScalarField &phiCorr, const SpType &Sp, const SuType &Su, const PsiMaxType &psiMax, const PsiMinType &psiMin)
errorManipArg< error, int > exit(error &err, const int errNo=1)
word name(const bool)
Return a word representation of a bool.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if successful.