From e26a6779514aa2c2b28ab369142714987d32770f Mon Sep 17 00:00:00 2001 From: psharda Date: Tue, 1 Aug 2023 23:15:26 +0200 Subject: [PATCH] use second order wavespeed correction --- src/HLLC.hpp | 44 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 37 insertions(+), 7 deletions(-) diff --git a/src/HLLC.hpp b/src/HLLC.hpp index 25a7050ac..afbbcd5d1 100644 --- a/src/HLLC.hpp +++ b/src/HLLC.hpp @@ -36,10 +36,16 @@ AMREX_FORCE_INLINE AMREX_GPU_DEVICE auto HLLC(quokka::HydroState::ComputeOtherDerivatives(sL.rho, sL.P, sL.massScalar); - auto [dedr_R, dedp_R, drdp_R] = quokka::EOS::ComputeOtherDerivatives(sR.rho, sR.P, sR.massScalar); + auto [dedr_L, dedp_L, drdp_L, G_gamma_L] = quokka::EOS::ComputeOtherDerivatives(sL.rho, sL.P, sL.massScalar); + auto [dedr_R, dedp_R, drdp_R, G_gamma_R] = quokka::EOS::ComputeOtherDerivatives(sR.rho, sR.P, sR.massScalar); // equation A.5a of Kershaw+1998 // need specific internal energy here @@ -51,21 +57,45 @@ AMREX_FORCE_INLINE AMREX_GPU_DEVICE auto HLLC(quokka::HydroState