Skip to content

Commit

Permalink
Update src/equations/ideal_glm_mhd_1d.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Winters <[email protected]>
  • Loading branch information
DanielDoehring and andrewwinters5000 authored Nov 24, 2023
1 parent 300c9b3 commit 26503ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/equations/ideal_glm_mhd_1d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function flux_hllc(u_ll, u_rr, orientation::Integer,
rho_ll, v1_ll, v2_ll, v3_ll, p_ll, B1_ll, B2_ll, B3_ll = cons2prim(u_ll, equations)
rho_rr, v1_rr, v2_rr, v3_rr, p_rr, B1_rr, B2_rr, B3_rr = cons2prim(u_rr, equations)

# Total pressure (eq. (12))
# Total pressure, i.e., thermal + magnetic pressures (eq. (12))
p_tot_ll = p_ll + 0.5 * (B1_ll^2 + B2_ll^2 + B3_ll^2)
p_tot_rr = p_rr + 0.5 * (B1_rr^2 + B2_rr^2 + B3_rr^2)

Expand Down

0 comments on commit 26503ab

Please sign in to comment.