65 const VectorValue<T> * grad_phi_upwind,
66 const VectorValue<T> * ,
68 const Real & max_value,
69 const Real & min_value,
71 const bool & fi_elem_is_upwind)
const override final 73 const auto face_centroid = fi->faceCentroid();
74 const auto cell_centroid = fi_elem_is_upwind ? fi->elemCentroid() : fi->neighborCentroid();
76 const auto delta_face = (*grad_phi_upwind) * (face_centroid - cell_centroid);
77 const auto delta_max =
std::abs(max_value - phi_upwind) + 1e-10;
78 const auto delta_min =
std::abs(min_value - phi_upwind) + 1e-10;
81 delta_face >= 0 ?
std::abs(delta_face) / delta_max :
std::abs(delta_face) / delta_min;
83 return (2 * rf + 1.0) / (rf * (2 * rf + 1.0) + 1.0);
86 bool constant() const override final {
return false; }
MetaPhysicL::DualNumber< V, D, asd > abs(const MetaPhysicL::DualNumber< V, D, asd > &a)
VenkatakrishnanLimiter()=default
Base class for defining slope limiters for finite volume or potentially reconstructed Discontinuous-G...
InterpMethod interpMethod() const override final
bool constant() const override final
The Venkatakrishnan limiter is derived from the following equations:
T limit(const T &phi_upwind, const T &, const VectorValue< T > *grad_phi_upwind, const VectorValue< T > *, const RealVectorValue &, const Real &max_value, const Real &min_value, const FaceInfo *fi, const bool &fi_elem_is_upwind) const override final
This method overrides the pure virtual limit method in the base Limiter class.
This data structure is used to store geometric and variable related metadata about each cell face in ...
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
InterpMethod
This codifies a set of available ways to interpolate with elem+neighbor solution information to calcu...