Discretisation changes for RT-DG pair: - #465
Draft
stephankramer wants to merge 7 commits into
Draft
stephankramer wants to merge 7 commits into
stephankramer wants to merge 7 commits into
Conversation
stephankramer
commented
Aug 4, 2026
Contributor
- In the pressure gradient term, the jump term disappears because the velocity (test) space is hdiv. Avoid adding it to UFL and relying on firedrake to figure out it cancels - i.e. this code change does not change the numerics
- Because we have no Roe flux in the pressure gradient term, it's more consistent to not have it in the HUDiv term either. The only reason we need a jump term at all is because of the discontinuity in H in the nonlinear approximation only, i.e. we're not weakly imposing a linearized Riemann condition at the cell boundary. Having this term negatively affects the accuracy of low order RT-P0
* In the pressure gradient term, the jump term disappears because the velocity (test) space is hdiv. Avoid adding it to UFL and relying on firedrake to figure out it cancels - i.e. this code change does not change the numerics * Because we have no Roe flux in the pressure gradient term, it's more consistent to not have it in the HUDiv term either. The only reason we need a jump term at all is because of the discontinuity in H in the nonlinear approximation only, i.e. we're not weakly imposing a linearized Riemann condition at the cell boundary. Having this term negatively affects the accuracy of low order RT-P0
stephankramer
force-pushed
the
skramer/rt-dg-improvements
branch
from
August 4, 2026 15:40
f6edea7 to
abe23d6
Compare
Fix RT/BDM-DG1 cases for this test (without the jump(eta) term in HUDiv)
stephankramer
force-pushed
the
skramer/rt-dg-improvements
branch
2 times, most recently
from
August 5, 2026 14:23
d70415e to
c867cc6
Compare
stephankramer
force-pushed
the
skramer/rt-dg-improvements
branch
from
August 5, 2026 14:30
c867cc6 to
9c3e70a
Compare
It's not a stringent test and duplicates test/swe2d/test_steady_state_basin_mms.py
Add a bit more damping in steady state channel mms test. Fix viscosity in steady state channel mms test.
Draft
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.