Skip to content
Snippets Groups Projects
Commit d38b66d8 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Add stabilization parameter to shallow water example

parent 126c8502
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,8 @@ bflux = as_matrix([[-q0, -q1], ...@@ -27,7 +27,8 @@ bflux = as_matrix([[-q0, -q1],
# Define numerical fluxes to choose from # Define numerical fluxes to choose from
llf_flux = dot(avg(flux), n) - 0.5*jump(u) alpha = Max(abs(n[0]*q0('+') + n[1]*q1('+')) + sqrt(g*h('+')), abs(n[0]*q0('-') + n[1]*q1('-')) + sqrt(g*h('-')))
llf_flux = dot(avg(flux), n) - 0.5*alpha*jump(u)
boundary_flux = 0.5*dot(flux + bflux, n) + as_vector([0., q0, q1]) boundary_flux = 0.5*dot(flux + bflux, n) + as_vector([0., q0, q1])
numerical_flux = llf_flux numerical_flux = llf_flux
......
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