Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/simulation/m_riemann_solver_lf.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,12 @@ contains
! Advection flux and source: interface velocity for volume fraction transport
$:GPU_LOOP(parallelism='[seq]')
do i = eqn_idx%adv%beg, eqn_idx%adv%end
flux_rsx_vf(${SF('')}$, i) = (qL_prim_rsx_vf(${SF('')}$, i) - qR_prim_rsx_vf(${SF(' + 1')}$, &
& i))*s_M*s_P/(s_M - s_P)
flux_src_rsx_vf(${SF('')}$, i) = (s_M*qR_prim_rsx_vf(${SF(' + 1')}$, &
& i) - s_P*qL_prim_rsx_vf(${SF('')}$, i))/(s_M - s_P)
flux_rsx_vf(${SF('')}$, i) = (s_M*qR_prim_rsx_vf(${SF(' + 1')}$, &
& i)*vel_R(norm_dir) - s_P*qL_prim_rsx_vf(${SF('')}$, &
& i)*vel_L(norm_dir) + s_M*s_P*(qL_prim_rsx_vf(${SF('')}$, &
& i) - qR_prim_rsx_vf(${SF(' + 1')}$, i)))/(s_M - s_P)
Comment on lines +309 to +312
end do
flux_src_rsx_vf(${SF('')}$, eqn_idx%adv%beg) = (s_M*vel_R(norm_dir) - s_P*vel_L(norm_dir))/(s_M - s_P)
Comment on lines 313 to +314

if (bubbles_euler) then
! From HLLC: Kills mass transport @ bubble gas density
Expand Down Expand Up @@ -345,7 +346,7 @@ contains
! Geometrical source of the void fraction(s) is zero
$:GPU_LOOP(parallelism='[seq]')
do i = eqn_idx%adv%beg, eqn_idx%adv%end
flux_gsrc_rsx_vf(${SF('')}$, i) = flux_rsx_vf(${SF('')}$, i)
flux_gsrc_rsx_vf(${SF('')}$, i) = 0._wp
end do
end if
#:endif
Expand Down
Loading