Skip to content

Mhd shearing box - #8

Merged
glesur merged 11 commits into
masterfrom
MHDshearing_box
Jun 24, 2026
Merged

Mhd shearing box#8
glesur merged 11 commits into
masterfrom
MHDshearing_box

Conversation

@glesur

@glesur glesur commented Jun 23, 2026

Copy link
Copy Markdown
Owner

add the MHD shearing wave test from Balbus & Hawley (2006)
fix the source terms in the mhd rhs.

@glesur glesur added bug Something isn't working enhancement New feature or request labels Jun 23, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds an MHD shearing-wave regression test (Balbus & Hawley 2006) and updates the shearing-box implementation to support it, including adjustments to the shearing-wave test configurations, documentation, and CI coverage.

Changes:

  • Add a new shearing_wave_mhd test (Python driver + validation + input file) and run it in CI (serial + MPI).
  • Update linear-shear remapping to apply a 2/3 de-aliasing mask during remaps.
  • Update existing shearing-wave test parameters (resolution/CFL), expand InitFlow documentation, and clean up test outputs.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
test/shearing_wave/validate.py Relaxes success threshold for the hydro shearing-wave validation.
test/shearing_wave/astra.ini Updates hydro shearing-wave grid resolution and CFL.
test/shearing_wave_mhd/validate.py New MHD shearing-wave validation against an ODE reference solution.
test/shearing_wave_mhd/shearing_wave_test.py New Python init/output hooks for capturing shearing-wave MHD mode amplitudes.
test/shearing_wave_mhd/astra.ini New MHD shearing-wave test configuration (mean field + shearing box parameters).
test/shearing_wave_compressible/astra.ini Updates compressible shearing-wave grid resolution and output configuration.
src/shear/linearshear.hpp Adds de-aliasing masking during remap (but currently breaks MPI indexing; see PR comment).
src/rightHandSide/mhd.hpp Updates MHD RHS behavior/source terms to support the new test scenario.
src/rightHandSide/hydro.hpp Removes a verbose remap log line in hydro RHS post-stage.
doc/source/input_file.rst Documents mean_field InitFlow entry and clarifies mean_flow wording.
.github/workflows/astra-ci-jobs.yml Adds MHD + compressible shearing-wave test runs to CI (serial + MPI).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/shear/linearshear.hpp Outdated
@glesur
glesur merged commit c2dcb14 into master Jun 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants