File HLL_solvers.H
-
namespace HLL
Functions
- AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void HLLC_state (const int idir, const Real S_k, const Real S_c, const Real *qstate, Real *U)
- AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void compute_flux (const int idir, const Real bnd_fac, const int coord, const Real *U, const Real p, Real *F)
given a conserved state, compute the flux in direction idir
- AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void cons_state (const Real *qstate, Real *U)
convert the primitive variable state to the conserved state
- AMREX_GPU_HOST_DEVICE AMREX_INLINE void HLL (const Real *ql, const Real *qr, const Real cl, const Real cr, const int idir, const int coord, Real *flux_hll)
A simple HLL Riemann solver for pure hydrodynamics. This takes just a single interface’s data and returns the HLL flux
- Parameters:
ql – the left interface state
qr – the right interface state
cl – sound speed on the left interface
cr – sound speed on the right interface
idir – coordinate direction for the solve (0 = x, 1 = y, 2 = z)
coord – geometry type (0 = Cartesian, 1 = axisymmetric, 2 = spherical)
f – the HLL fluxes
- AMREX_GPU_HOST_DEVICE AMREX_INLINE void HLLC (const int i, const int j, const int k, const int idir, Array4< Real const > const &ql, Array4< Real const > const &qr, Array4< Real const > const &qaux_arr, Array4< Real > const &uflx, Array4< Real > const &qgdnv, const bool store_full_state, const GeometryData &geom, const bool special_bnd_lo, const bool special_bnd_hi, GpuArray< int, 3 > const &domlo, GpuArray< int, 3 > const &domhi)
A HLLC Riemann solver for pure hydrodynamics
- Parameters:
ql – the left interface state
qr – the right interface state
qaux_arr – the auxiliary state
uflx – the flux through the interface
qint – an approximate Godunov state on the interface
idir – coordinate direction for the solve (0 = x, 1 = y, 2 = z)