Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodrig6 committed Feb 3, 2025
2 parents e4bdb5e + 1bc7a1d commit 0313afa
Show file tree
Hide file tree
Showing 3 changed files with 186 additions and 187 deletions.
6 changes: 3 additions & 3 deletions src/common/m_variables_conversion.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ contains
if (model_eqns /= 4) then
qK_prim_vf(i)%sf(j, k, l) = qK_cons_vf(i)%sf(j, k, l) &
/rho_K
dyn_pres_K = dyn_pres_K + 5e-1_wp*qK_cons_vf(i)%sf(j, k, l) &
dyn_pres_K = dyn_pres_K + 0.5_wp*qK_cons_vf(i)%sf(j, k, l) &
*qK_prim_vf(i)%sf(j, k, l)
else
qK_prim_vf(i)%sf(j, k, l) = qK_cons_vf(i)%sf(j, k, l) &
Expand Down Expand Up @@ -1341,7 +1341,7 @@ contains

! Computing the energy from the pressure
E_K = gamma_K*pres_K + pi_inf_K &
+ 5e-1_wp*rho_K*vel_K_sum + qv_K
+ 0.5_wp*rho_K*vel_K_sum + qv_K

! mass flux, this should be \alpha_i \rho_i u_i
!$acc loop seq
Expand Down Expand Up @@ -1466,7 +1466,7 @@ contains
(rho*(1._wp - adv(num_fluids)))
end if
else
c = ((H - 5e-1*vel_sum)/gamma)
c = ((H - 0.5_wp*vel_sum)/gamma)
end if

if (mixture_err .and. c < 0._wp) then
Expand Down
Loading

0 comments on commit 0313afa

Please sign in to comment.