Skip to content
Snippets Groups Projects
Verified Commit 04271cac authored by Florian Atteneder's avatar Florian Atteneder
Browse files

implement bdry conditions for FV

parent dfcc2f5e
No related branches found
No related tags found
1 merge request!157EulerEq: More follow ups to !155, !156
Pipeline #6622 failed
...@@ -200,7 +200,7 @@ function step_fv_muscl!(P::Project, mesh::Mesh1d{FVElement}, state) ...@@ -200,7 +200,7 @@ function step_fv_muscl!(P::Project, mesh::Mesh1d{FVElement}, state)
dv₊[k], dv₋[k] = v₊-v₀, v₀-v₋ dv₊[k], dv₋[k] = v₊-v₀, v₀-v₋
end end
else else
TODO() # TODO Atm we assume that evolution does not reach bdry
end end
# limit slope and compute left (L) and (R) interface values # limit slope and compute left (L) and (R) interface values
...@@ -295,7 +295,7 @@ function step_fv_muscl!(P::Project, mesh::Mesh1d{FVElement}, state) ...@@ -295,7 +295,7 @@ function step_fv_muscl!(P::Project, mesh::Mesh1d{FVElement}, state)
nflx_E_R[k] = LLF(nx*f₊, nx*f₋, E₊, E₋, max_v) nflx_E_R[k] = LLF(nx*f₊, nx*f₋, E₊, E₋, max_v)
end end
else else
TODO() # TODO Atm we assume that evolution does not reach bdry
end end
# evaluate rhs # evaluate rhs
...@@ -305,6 +305,12 @@ function step_fv_muscl!(P::Project, mesh::Mesh1d{FVElement}, state) ...@@ -305,6 +305,12 @@ function step_fv_muscl!(P::Project, mesh::Mesh1d{FVElement}, state)
rhs_q[k] = -(nflx_q_R[k] + nflx_q_L[k] )/dl rhs_q[k] = -(nflx_q_R[k] + nflx_q_L[k] )/dl
rhs_E[k] = -(nflx_E_R[k] + nflx_E_L[k] )/dl rhs_E[k] = -(nflx_E_R[k] + nflx_E_L[k] )/dl
end end
if !periodic
# TODO Atm we assume that evolution does not reach bdry
rhs_rho[1] = rhs_rho[end] = 0
rhs_q[1] = rhs_q[end] = 0
rhs_E[1] = rhs_E[end] = 0
end
return return
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment