Skip to content
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

Shallow water exner equations 1D #51

Merged
merged 13 commits into from
Aug 15, 2024

Conversation

patrickersing
Copy link
Contributor

This PR implements the shallow water equations coupled with the exner model for sediment transport in 1D.
The implementation uses a specific formulation with an extra nonconservative term to ensure entropy conservation / stability.

To compute the sediment discharge the Meyer-Peter-Mueller and Grass model are available and the Manning formula is used to compute the shear stress. The implementation of the models is designed to be flexible, so that additional models can be added later on.

For validation there are three elixirs to test for convergence, well-balancedness and entropy conservation.

@patrickersing patrickersing added the enhancement New feature or request label Aug 2, 2024
Copy link

codecov bot commented Aug 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.27%. Comparing base (883fc00) to head (f73f6e9).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #51      +/-   ##
==========================================
+ Coverage   99.22%   99.27%   +0.05%     
==========================================
  Files          58       61       +3     
  Lines        2444     2638     +194     
==========================================
+ Hits         2425     2619     +194     
  Misses         19       19              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@patrickersing
Copy link
Contributor Author

Here are some convergence results using elixir_shallowwater_exner_source_terms.jl with polydeg=4 for different fluxes and formulas for the sediment discharge:

  • EC fluxes / Grass:
    P4_EC_Grass

  • Local Lax-Friedrichs / Meyer-Peter-Müller:
    P4_LLF_MPM

  • Roe / Meyer-Peter-Müller:
    P4_Roe_MPM

@andrewwinters5000
Copy link
Member

Here are some convergence results using elixir_shallowwater_exner_source_terms.jl with polydeg=4 for different fluxes and formulas for the sediment discharge

Overall, the EOCs look very good. One small question. Do we still see an odd/even effect when using the EC fluxes. That is, can you run with polydeg=3 for the EC + Grass test?

@patrickersing
Copy link
Contributor Author

Here are some convergence results using elixir_shallowwater_exner_source_terms.jl with polydeg=4 for different fluxes and formulas for the sediment discharge

Overall, the EOCs look very good. One small question. Do we still see an odd/even effect when using the EC fluxes. That is, can you run with polydeg=3 for the EC + Grass test?

Yes, there is some odd-even effect visible. Here are results for EC + Grass with polydeg=2:

P2_EC_Grass

and polydeg=3:

P3_EC_Grass

Copy link
Member

@andrewwinters5000 andrewwinters5000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This already looks very nice! Most of my suggestions are expanding upon the docstrings.

One question: What would be the modifications necessary to handle wetting / drying?

Project.toml Show resolved Hide resolved
src/equations/shallow_water_exner_1d.jl Show resolved Hide resolved
src/equations/shallow_water_exner_1d.jl Outdated Show resolved Hide resolved
src/equations/shallow_water_exner_1d.jl Outdated Show resolved Hide resolved
src/equations/shallow_water_exner_1d.jl Show resolved Hide resolved
src/equations/shallow_water_exner_1d.jl Outdated Show resolved Hide resolved
src/equations/shallow_water_exner_1d.jl Outdated Show resolved Hide resolved
@patrickersing
Copy link
Contributor Author

@andrewwinters5000 thanks for your review. I like the additional details that you added to the docstrings.

I did not look too much into wetting / drying yet, but I suspect that most changes should be similar to the SWE. So we need to switch to FV near dry states, add a hydrostatic reconstruction and a velocity desingularization.
I expect the additional Exner-equation to less problematic since we do not need to recover the velocity.

@andrewwinters5000
Copy link
Member

I did not look too much into wetting / drying yet, but I suspect that most changes should be similar to the SWE. So we need to switch to FV near dry states, add a hydrostatic reconstruction and a velocity desingularization. I expect the additional Exner-equation to less problematic since we do not need to recover the velocity.

Okay, we can explore the wetting/drying possibilities in a separate PR and/or open an issue describing what would need done / modified, e.g., thresholds, desingularizing the velocities in the Manning friction, hydrostatic reconstruction etc. For now, the "wet" version of the SW-Exner is mergable to main.

Copy link
Member

@andrewwinters5000 andrewwinters5000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice work @patrickersing ! Everything looks good from my side.

@andrewwinters5000 andrewwinters5000 merged commit cbc57dc into trixi-framework:main Aug 15, 2024
19 checks passed
@patrickersing patrickersing deleted the swe_exner branch August 15, 2024 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants