-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Classic LWR traffic flow #1840
Classic LWR traffic flow #1840
Conversation
Review checklistThis checklist is meant to assist creators of PRs (to let them know what reviewers will typically look for) and reviewers (to guide them in a structured review process). Items do not need to be checked explicitly for a PR to be eligible for merging. Purpose and scope
Code quality
Documentation
Testing
Performance
Verification
Created with ❤️ by the Trixi.jl community. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1840 +/- ##
==========================================
- Coverage 96.38% 96.36% -0.01%
==========================================
Files 455 458 +3
Lines 36336 36392 +56
==========================================
+ Hits 35019 35069 +50
- Misses 1317 1323 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
examples/structured_1d_dgsem/elixir_traffic_flow_lwr_greenlight.jl
Outdated
Show resolved
Hide resolved
examples/structured_1d_dgsem/elixir_traffic_flow_lwr_greenlight.jl
Outdated
Show resolved
Hide resolved
examples/structured_1d_dgsem/elixir_traffic_flow_lwr_greenlight.jl
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a nice equation to add to Trixi, especially to expand the use Trixi for educational purposes. I also like that it would be easy for students to add a more complicated flux function (like those given in Whitham's book) for traffic modelling and compare.
Co-authored-by: Andrew Winters <[email protected]>
…into TrafficFlow_LWR
Thanks for the quick review @andrewwinters5000 ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice idea!
examples/structured_1d_dgsem/elixir_traffic_flow_lwr_greenlight.jl
Outdated
Show resolved
Hide resolved
Co-authored-by: Hendrik Ranocha <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I approved this because my only note is a small fix in the NEWS.md
b0f4b0f
Co-authored-by: Andrew Winters <[email protected]>
As we integrate Trixi more and more into our teaching I plan to add classic conservation laws to Trixi.
The first one is the Lighthill-Witham-Richards (LWR) 1D traffic model that is referenced in every lecture notes I have seen on hyperbolic PDEs.
Convergence test:
initial_condition_constant
:Other than the LWR equations I plan to add 1D LinearizedEuler and 1D Wave equation (as a first order hyperbolic system) whenever I have time and am in the mood to code something up.