44 const T & phi_downwind,
45 const VectorValue<T> * grad_phi_upwind,
46 const VectorValue<T> * grad_phi_downwind,
47 const RealVectorValue & dCD,
51 const bool & )
const override final
53 mooseAssert(grad_phi_upwind,
"min-mod limiter requires a gradient");
57 if (grad_phi_downwind)
58 r_f = this->
rf_grad(grad_phi_upwind, grad_phi_downwind, dCD);
60 r_f =
Moose::FV::rF(phi_upwind, phi_downwind, *grad_phi_upwind, dCD);
63 return 0 * r_f + std::max(T(0), std::min(T(1), r_f));
66 bool constant() const override final {
return false; }
This data structure is used to store geometric and variable related metadata about each cell face in ...
Base class for defining slope limiters for finite volume or potentially reconstructed Discontinuous-G...
T rf_grad(const VectorValue< T > *grad_phi_upwind, const VectorValue< T > *grad_phi_downwind, const RealVectorValue &dCD) const
The Min-Mod limiter function $\beta(r_f)$ is defined as:
bool constant() const override final
InterpMethod interpMethod() const override final
T limit(const T &phi_upwind, const T &phi_downwind, const VectorValue< T > *grad_phi_upwind, const VectorValue< T > *grad_phi_downwind, const RealVectorValue &dCD, const Real &, const Real &, const FaceInfo *, const bool &) const override final
This method overrides the pure virtual limit method in the base Limiter class.
Scalar rF(const Scalar &phiC, const Scalar &phiD, const Vector &gradC, const RealVectorValue &dCD)
From Moukalled 12.30.
InterpMethod
This codifies a set of available ways to interpolate with elem+neighbor solution information to calcu...
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...