Minmod Struct ReferenceΒΆ
|
adc_cpp 0.3.0
Model-free C++23 core for coupled hyperbolic-elliptic systems on adaptive (AMR) meshes, with MPI and GPU (Kokkos) backends
|
pops::Minmod Struct Reference
minmod limiter: TVD (Total Variation Diminishing), 2 ghosts, order 2 in smooth regions. More...
#include <reconstruction.hpp>
Collaboration diagram for pops::Minmod:Public Member Functions | |
| POPS_HD Real | operator() (Real a, Real b) const |
Static Public Attributes | |
| static constexpr int | n_ghost = 2 |
Detailed Description
minmod limiter: TVD (Total Variation Diminishing), 2 ghosts, order 2 in smooth regions.
Returns min(|a|,|b|)*sgn(a) if a and b have the same sign, 0 otherwise. Implemented without std::min / std::abs to stay device-safe (no <cmath> required). Order 1 locally at extrema (clips smooth peaks): prefer VanLeer when smooth growth modes must survive.
Member Function Documentation
◆ operator()()
Member Data Documentation
◆ n_ghost
|
staticconstexpr |
The documentation for this struct was generated from the following file:
- include/pops/numerics/fv/reconstruction.hpp
Generated by