Skip to content

Discretisation changes for RT-DG pair: - #465

Draft
stephankramer wants to merge 7 commits into
mainfrom
skramer/rt-dg-improvements
Draft

stephankramer wants to merge 7 commits into
mainfrom
skramer/rt-dg-improvements

Conversation

@stephankramer

Copy link
Copy Markdown
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
stephankramer force-pushed the skramer/rt-dg-improvements branch from f6edea7 to abe23d6 Compare August 4, 2026 15:40
Fix RT/BDM-DG1 cases for this test (without the jump(eta) term in HUDiv)
@stephankramer
stephankramer force-pushed the skramer/rt-dg-improvements branch 2 times, most recently from d70415e to c867cc6 Compare August 5, 2026 14:23
@stephankramer
stephankramer force-pushed the skramer/rt-dg-improvements branch from c867cc6 to 9c3e70a Compare August 5, 2026 14:30
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.
@stephankramer stephankramer mentioned this pull request Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant