65 const VectorValue<T> * grad_phi_upwind,
66 const VectorValue<T> * ,
67 const RealVectorValue & ,
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();
77 const auto delta_face = (*grad_phi_upwind) * (face_centroid - cell_centroid);
78 const auto delta_max = abs(max_value - phi_upwind) + 1e-10;
79 const auto delta_min = abs(min_value - phi_upwind) + 1e-10;
81 const auto rf = delta_face >= 0 ? abs(delta_face) / delta_max : 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; }
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...
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.
VenkatakrishnanLimiter()=default
InterpMethod interpMethod() const override final
bool constant() const override final
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...