Repository navigation
Add periodic GEM Fourier reconnection example - #37
rogeriojorge wants to merge 2 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
|
Validation update (2026-07-16): do not review this draft yet. The committed movie ends at Longer single-A4000 tests exposed an explicit timestep barrier as Hermite structure reaches the terminal modes. Tested configurations included The validation target is the digitized Schmitz--Grauer kinetic GEM curve: peak nonlinear rate about |
The example writes the flux plot and animation to its output directory.
|
Closing as redundant with #34, which adds the mainline periodic double-Harris reconnection example. This GEM analogue needs H>=6 at 129² (about 12 GB on a GPU) to avoid adaptive-step collapse; at 65², H=4 it slowed to about 2 h per 25 omega_pe^-1 chunk near Omega_ci t=4. Being doubly periodic, it also cannot be compared with the wall-bounded GEM flux curve. |
Summary
0.2 d_ispatial spacing|B|movie with magnetic-flux contoursThis PR changes no solver source, test, or configuration file. Its complete scope is one 171-line example and the two media files shown below.
Scope of the benchmark
The original GEM challenge uses a single Harris sheet, periodic x, and conducting walls in y. SPECTRAX's Fourier solver is periodic, so this is explicitly a doubly periodic GEM analogue, not an exact reproduction of the wall-bounded benchmark. The transverse domain is doubled from
12.8 d_ito25.6 d_i, placing sheets at one and three quarters of the domain. This preserves the original distance from each sheet to its image and preserves the transverse wavelength of the GEM seed.The equilibrium uses six kinetic populations: drifting electron/ion populations for each sheet plus stationary background electron/ion populations. Splitting the distribution this way represents the Harris drifts and stationary
0.2 n_0background exactly in their matched finite Hermite bases.Parameters follow GEM:
m_i/m_e=25,T_i/T_e=5,lambda=0.5 d_i,n_b=0.2 n_0,v_A/c=0.1, andpsi_0=0.1 B_0 d_i.References:
Result
The black curves are
A_zcontours (in-plane magnetic field lines); the color is|B|/B_0. The island O-point forms near the domain center and the periodic X-points lie at the left/right boundary.Validation
pytest -q: 3 passedruff check Examples/2D_GEM_reconnection.py: passed33^2,H=4,t=10 omega_pe^-1129^2,H=6,t=625 omega_pe^-1orOmega_ci t=12.5, 724.8 s end-to-end, about 12.2 GB device memory0.2938 B_0 d_i3.77e-5,1.41e-4, and6.53e-8in the three Hermite directionsA
129^2,H=4,nu=1run suffered adaptive-step collapse nearOmega_ci t=7.3; increasing velocity resolution toH=6completed with small terminal tails. This draft therefore demonstrates topology and a stable resolved trajectory, but does not claim Fourier/Hermite convergence or reproduce GEM's conducting-wall flux curve.