-
Notifications
You must be signed in to change notification settings - Fork 99
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
Davis wave speed estimate for shallow water equations #1601
Davis wave speed estimate for shallow water equations #1601
Conversation
Thanks for noticing this!
|
I'll close and reopen this since CI fails for some weird reasons |
The additional In the separation of Trixi and TrixiShallowWater the routine |
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.
Good catch on the typo! Once the tests run we will see if any reference values need updated. But for now I will approve this.
Codecov Report
@@ Coverage Diff @@
## main #1601 +/- ##
==========================================
+ Coverage 92.90% 96.13% +3.23%
==========================================
Files 402 402
Lines 33034 33091 +57
==========================================
+ Hits 30690 31812 +1122
+ Misses 2344 1279 -1065
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Absolutely correct, sorry for that - I thought I double checked everything.
I just had a very brief look at the paper - from that, it appears to me that their numerical flux is equivalent to HLL-Davis. The standard HLL flux with checking directionality of the speeds is given by where the intermediate flux By enhancing the usual definition of the wavespeeds as done by Chen & Noelle, you can basically spare yourself from the case computation and always use |
There are two different things I noticed related to the Davis wave speed estimate for the shallow water equations that were introduced in #1561. First, I think there is a typo for the one-dimensional SWE. The second one is a question. The PR #1561 introduced
min_max_speed_davis
and #1501 introducedmin_max_speed_chen_noelle
for the SWE, which are basically the same functions (in 1d and in 2d) except thatmin_max_speed_chen_noelle
also haszero(eltype(u_ll))
in themin
andmax
. Is this known and is it intended to have (almost) the same function twice or does it suffice to keep just one? If both are necessary maybe a comment would be helpful for people looking at the source and wonder about these two functions.cc @DanielDoehring