Add comparison with experimental data to docs#238
Conversation
Benchmark Results (Julia v1.10)Time benchmarks
Memory benchmarks
|
|
@ranocha, what would you suggest where to put the experimental data? In the main repo like now, in a gist, which is downloaded, or something else? |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Why are the results for the BBM-BBM equations so bad? The plot in https://numericalmathematics.github.io/DispersiveShallowWater.jl/previews/PR238/dingemans/#Visualization-of-Temporal-Evolution does not look good for BBM-BBM. If I remember correctly, we had reasonable results for BBM-BBM in your paper, didn't we? |
In the paper we used |
Pull Request Test Coverage Report for Build 17289102680Details
💛 - Coveralls |
I see. On the other hand, we now know that the plain wide-stencil discretizations of the second derivative have issues for solving the elliptic systems. I think we should modify the current version:
Currently, the conclusion favors SK significantly while the results are not only influenced by the model but also the discretization. |
|
I switched to upwind solvers for the BBM-BBM and the SK equations in f861bcb. This improves the solution for BBM-BBM a bit, but it is still relatively oscillatory at some places. The second figure should now show the same numerical values as the last two figures from the preprint (SK set 2 in the second to last figure and BBM-BBM in the last). If you agree, I would keep it like this and add a sentence why we use upwind operators for BBM-BBM and Svärd-Kalisch and central for the others. Should we use upwind or central for SGN? If we want to use an upwind operator, should it also have |
|
Thanks! This looks better.
👍
I would expect upwind to perform at least as good as or better than the central one, so I would check the upwind version.
If I remember correctly, the upwind operators are only used for higher-order derivatives. In particular, they will be used symmetrically for the second-derivative terms. Thus, these terms will have an even order of accuracy, i.e., the accuracy will be one order higher than that of the individual upwind operators. The central first-derivative operator induced by the upwind operators has the same property, i.e., setting We can briefly comment on this in the docs and choose |
|
I now switched to upwind operators also for the SGN equations and construct the upwind operators with an
We do use the
and also the directed derivatives, cf.
So now these use first-derivative upwind operators of odd order. Is this problematic? |
ranocha
left a comment
There was a problem hiding this comment.
Thanks! That's fine since the central operator has also an even order (one order higher, i.e., sixth-order accurate in our case) and the upwind terms are treated symmetrically. For example,
is used together with
DispersiveShallowWater.jl/src/equations/serre_green_naghdi_1d.jl
Lines 950 to 951 in 7b422e9
to get a symmetric second-derivative discretization with variable coefficient. The same holds for
and
DispersiveShallowWater.jl/src/equations/svaerd_kalisch_1d.jl
Lines 412 to 413 in 7b422e9
Co-authored-by: Hendrik Ranocha <ranocha@users.noreply.github.com>
|
I added a NEWS entry. Do you mind re-approving, @ranocha? |
|
Whoops, you were faster than I requesting your review 😅 Thanks! |
No description provided.