Skip to content

Commit b961b05

Browse files
committed
tmp update: add old pressure estimate for comparison
1 parent 8247190 commit b961b05

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/hydro/HLLD.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@ AMREX_FORCE_INLINE AMREX_GPU_DEVICE auto HLLD(quokka::HydroState<N_scalars, N_ms
161161

162162
//--- Step 5. Compute intermediate states
163163

164+
// // total pressure (no correction)
165+
// // MK5: eqn (41) can be calculated (more explicitly) via eqn (23)
166+
// double ptot_star_L = ptot_L + u_L.rho * siui_L * (spds[2] - sL.u);
167+
// double ptot_star_R = ptot_R + u_R.rho * siui_R * (spds[2] - sR.u);
168+
// double const ptot_star = 0.5 * (ptot_star_L + ptot_star_R);
169+
164170
// total pressure (w/ MM21 low-Mach correction)
165171
// MM21 eqn 8
166172
const double spd_ca_sq_L = b_magn_sq_L / sL.rho;

0 commit comments

Comments
 (0)