VanLeer Struct ReferenceΒΆ

adc_cpp: pops::VanLeer 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

van Leer limiter: smooth, 2 ghosts, better order at extrema than Minmod. More...

#include <reconstruction.hpp>

+ Collaboration diagram for pops::VanLeer:

Public Member Functions

POPS_HD Real operator() (Real a, Real b) const
 

Static Public Attributes

static constexpr int n_ghost = 2
 

Detailed Description

van Leer limiter: smooth, 2 ghosts, better order at extrema than Minmod.

Harmonic average of the differences: 2ab/(a+b) if same sign, 0 otherwise. No sign branch (no std::abs). Preferred over Minmod for preserving smooth growth modes (less dissipative at the density profile extrema).

Member Function Documentation

◆ operator()()

POPS_HD Real pops::VanLeer::operator() ( Real  a,
Real  b 
) const
inline

Member Data Documentation

◆ n_ghost

constexpr int pops::VanLeer::n_ghost = 2
staticconstexpr

The documentation for this struct was generated from the following file: