Skip to content

Commit

Permalink
add davis wave speed estimate for upcoming change
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDoehring committed Feb 8, 2024
1 parent 3eb1b39 commit 48ab702
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ using Trixi
equations = TrafficFlowLWREquations1D()

basis = LobattoLegendreBasis(3)
surface_flux = flux_hll
surface_flux = FluxHLL(min_max_speed_davis)
solver = DGSEM(basis, surface_flux)

coordinates_min = (-1.0,) # minimum coordinate
Expand Down
5 changes: 5 additions & 0 deletions src/equations/traffic_flow_lwr_1d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ end
return λ_min, λ_max
end

@inline function min_max_speed_davis(u_ll, u_rr, orientation::Integer,
equations::TrafficFlowLWREquations1D)
min_max_speed_naive(u_ll, u_rr, orientation, equations)
end

@inline function max_abs_speeds(u, equations::TrafficFlowLWREquations1D)
return (abs(equations.v_max * (1.0 - 2 * u[1])),)
end
Expand Down

0 comments on commit 48ab702

Please sign in to comment.