Add call to the positivity limiter after coarsen / refine#97
Add call to the positivity limiter after coarsen / refine#97andrewwinters5000 merged 17 commits intotrixi-framework:mainfrom
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #97 +/- ##
==========================================
- Coverage 99.23% 99.19% -0.04%
==========================================
Files 71 72 +1
Lines 3370 3449 +79
==========================================
+ Hits 3344 3421 +77
- Misses 26 28 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
The missed lines are due to the fact that we do not run anything with MPI in the CI testing. This could be added (I think) relatively easily. It might be good to run a couple tests in parallel in TrixiSW to make sure that this capability is still available. |
|
Nevermind, there is no |
patrickersing
left a comment
There was a problem hiding this comment.
Thanks for fixing the AMR test. Hopefully, this will also make the AMR procedure more robust.
The implementation looks good to me, I just left suggestions for some of the comments.
examples/p4est_2d_dgsem/elixir_shallowwater_perturbation_wet_dry_amr.jl
Outdated
Show resolved
Hide resolved
Co-authored-by: Patrick Ersing <114223904+patrickersing@users.noreply.github.com>
|
Would it be possible to extend this to the main repository? |
I agree that this is something that should be done in main repo to address trixi-framework/Trixi.jl#2064. I thought about this but I could not figure out a proper and equation agnostic way to have the call to the limiter. For shallow water I know that we always want to limit the water height and that the threshold lives in the # Apply limiter to ensure admissible solution states
limiter_shallow_water!(u, equations.threshold_limiter, waterheight,
mesh, equations, dg, cache)However, for something like compressible Euler one would limit the |
a2d5afc
into
trixi-framework:main
This PR re-implements
max_abs_speedsfor the time step calculation that usesBase.sqrt. Also, specializedrefine!andcoarsen!functions are implemented to ensure positivity of the water height after adaptation in the AMR callback. There were negative water heights generated (for example in the coarsening step) in wet/dry transition areas.