-
Notifications
You must be signed in to change notification settings - Fork 114
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
Implement max_abs_speed
for real maximum speed
#2233
base: main
Are you sure you want to change the base?
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 ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2233 +/- ##
==========================================
+ Coverage 96.42% 96.44% +0.03%
==========================================
Files 487 487
Lines 39352 39636 +284
==========================================
+ Hits 37942 38226 +284
Misses 1410 1410
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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 a lot! I think this is a good idea and we should likely update the default estimate as well. The only concern I have is as follows: In general, this is not a perfect estimate of the fastest wave speed in the solution of a Riemann problem but more a David-type estimate. Shall we rename it accordingly to max_abd_speed_davis
?
Hm true. The thing is, though, that this then somewhat indicates a different notion compared to |
That's true. For |
The current implementation of the LLF flux uses
max_abs_speed_naive
Trixi.jl/src/equations/numerical_fluxes.jl
Lines 209 to 222 in e93de2a
which is somewhat too conservative/over-diffusive:
Trixi.jl/src/equations/compressible_euler_2d.jl
Line 1413 in e93de2a
In particular, this is actually different compared to the values used in the
StepsizeCallback
:Trixi.jl/src/callbacks_step/stepsize_dg2d.jl
Line 18 in e93de2a
which uses the actual (sharp) true eigenvalues of the flux Jacobian:
Trixi.jl/src/equations/compressible_euler_2d.jl
Lines 1863 to 1868 in e93de2a
This PR adds the sharper functions + tests.
Whether we want to change the default used wave speed estimate remains for discussion for a separate PR.