You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Description
There was a factor-of-two bug in the PLM slopes that preventing PLM
convergence at order 2.
I have also switched to use the Sweby $\beta=1.5$ limiter, which is
sharper than minmod. (Minmod only converges at order ~1.5 due to severe
extrema clipping. MC converges at almost exactly order 2.)
It now converges at nearly order 2, as it should:
```
Running Richardson convergence test for HydroWave:
Resolution Error Norm
---------- ----------
128 5.680154e-09
256 1.544953e-09
512 4.469956e-10
1024 1.255872e-10
2048 3.500900e-11
Reached maximum resolution (nx = 2048) without achieving the target error 2.000e-11
Convergence Rate Analysis:
Resolution Pair Observed Rate Expected Rate
--------------- ------------- -------------
128 -> 256 1.88 2.0
256 -> 512 1.79 2.0
512 -> 1024 1.83 2.0
1024 -> 2048 1.84 2.0
Overall convergence rate: 1.84
Expected rate: 2.0
```
<img width="1200" height="800" alt="hydro_wave_convergence_limiters"
src="https://github.com/user-attachments/assets/361acc88-db5d-4682-a9f7-09dd64948b77"
/>
### Related issues
N/A
### Checklist
_Before this pull request can be reviewed, all of these tasks should be
completed. Denote completed tasks with an `x` inside the square brackets
`[ ]` in the Markdown source below:_
- [x] I have added a description (see above).
- [x] I have added a link to any related issues (if applicable; see
above).
- [x] I have read the [Contributing
Guide](https://github.com/quokka-astro/quokka/blob/development/CONTRIBUTING.md).
- [ ] I have added tests for any new physics that this PR adds to the
code.
- [ ] *(For quokka-astro org members)* I have manually triggered the GPU
tests with the magic comment `/azp run`.
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
0 commit comments