![]() |
Shamrock 2025.10.0
Astrophysical Code
|
HLLC Riemann solvers for the gas equations From original version by Thomas Guillet (T.A.G.nosp@m.uill.nosp@m.et@ex.nosp@m.eter.nosp@m..ac.u.nosp@m.k). More...
#include "shammath/riemann_common.hpp"Go to the source code of this file.
Namespaces | |
| namespace | shammath |
| namespace for math utility | |
Functions | |
| template<FluidStateAdiabaticSpec FSpec> | |
| constexpr FSpec::Tcons | shammath::hllc_adiab_toro_flux (const FSpec &fspec, const typename FSpec::Tprim &prim_l, const typename FSpec::Tprim &prim_r, const typename FSpec::Tvec &n) |
| HLLC solver based on section 10.4 from Toro 3rd Edition , Springer 2009. The wave speeds estimates are based on Bernd Einfeldt (SIAM, 1988), On Godunov-Type Methods for Gas Dynamics, using the pressure in the star region estimated through the primitive variable solver (valid for an adiabatic equation of state). Computes the flux across a face with unit normal n. | |
| template<FluidStateSpec FSpec> | |
| constexpr FSpec::Tcons | shammath::hllc_davis_flux (const FSpec &fspec, const typename FSpec::Tprim &prim_l, const typename FSpec::Tprim &prim_r, const typename FSpec::Tvec &n) |
| HLLC solver based on section 10.4 from Toro 3rd Edition , Springer 2009, using the Davis (1988) wave speed estimate instead of the pressure based (p*) estimate, i.e. s_l = min(velx_l - cs_l, velx_r - cs_r) s_r = max(velx_l + cs_l, velx_r + cs_r) This estimate does not rely on an adiabatic equation of state for the pressure in the star region and can therefore be used for other equations of state. Computes the flux across a face with unit normal n. | |
HLLC Riemann solvers for the gas equations From original version by Thomas Guillet (T.A.G.nosp@m.uill.nosp@m.et@ex.nosp@m.eter.nosp@m..ac.u.nosp@m.k).
Definition in file riemann_hllc.hpp.