![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Configuration for Riemann solvers in GSPH. More...
Classes | |
| struct | Exact |
| Exact Riemann solver. More... | |
| struct | HLLC |
| HLLC approximate Riemann solver. More... | |
| struct | Iterative |
| van Leer (1997) iterative Riemann solver More... | |
| struct | Roe |
| Roe linearized Riemann solver. More... | |
Public Types | |
| using | Tscal = shambase::VecComponent< Tvec > |
| using | Variant = std::variant< Iterative, Exact, HLLC, Roe > |
Public Member Functions | |
| void | set (Variant v) |
| void | set_iterative (Tscal tol=Tscal{1.0e-6}, u32 max_iter=20) |
| void | set_exact (Tscal tol=Tscal{1.0e-8}) |
| void | set_hllc () |
| void | set_roe (Tscal entropy_fix=Tscal{0.1}) |
| bool | is_iterative () const |
| bool | is_exact () const |
| bool | is_hllc () const |
| bool | is_roe () const |
| void | print_status () const |
Public Attributes | |
| Variant | config = Iterative{} |
Static Public Attributes | |
| static constexpr u32 | dim = shambase::VectorProperties<Tvec>::dimension |
Configuration for Riemann solvers in GSPH.
This struct contains the configuration for different Riemann solver types:
| Tvec | type of the vector of coordinates |
Definition at line 53 of file RiemannConfig.hpp.
| using shammodels::gsph::RiemannConfig< Tvec >::Tscal = shambase::VecComponent<Tvec> |
Definition at line 55 of file RiemannConfig.hpp.
| using shammodels::gsph::RiemannConfig< Tvec >::Variant = std::variant<Iterative, Exact, HLLC, Roe> |
Definition at line 101 of file RiemannConfig.hpp.
|
inline |
Definition at line 118 of file RiemannConfig.hpp.
|
inline |
Definition at line 119 of file RiemannConfig.hpp.
|
inline |
Definition at line 117 of file RiemannConfig.hpp.
|
inline |
Definition at line 120 of file RiemannConfig.hpp.
|
inline |
Definition at line 122 of file RiemannConfig.hpp.
|
inline |
Definition at line 105 of file RiemannConfig.hpp.
|
inline |
Definition at line 111 of file RiemannConfig.hpp.
|
inline |
Definition at line 113 of file RiemannConfig.hpp.
|
inline |
Definition at line 107 of file RiemannConfig.hpp.
|
inline |
Definition at line 115 of file RiemannConfig.hpp.
| Variant shammodels::gsph::RiemannConfig< Tvec >::config = Iterative{} |
Definition at line 103 of file RiemannConfig.hpp.
|
staticconstexpr |
Definition at line 56 of file RiemannConfig.hpp.