Repository navigation
Field-scaled closure rate for the asymmetric-Hermite top-mode instability - #66
Open
rogeriojorge wants to merge 2 commits into
Open
rogeriojorge wants to merge 2 commits into
rogeriojorge wants to merge 2 commits into
Conversation
…lity
field_scaled_closure_rate returns nu_s = c |q/m|_s max_i sqrt(2 N_i) max_x|E_i - <E_i>| / a_{s,i},
shaped (Ns,1,1,1,1,1,1) so it can be passed as nu to Hermite_Fourier_system with an order >= 2
hypercollision spectrum (density, momentum and energy rows untouched). c = 0 is exactly zero.
rogeriojorge
added a commit
that referenced
this pull request
Oct 5, 2026
This was referenced Oct 16, 2026
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.
Stacked on #60 (
adaptive/p5-hypercollision, d3379cc). Lands on main after the foundation PRs and #56–#60.What
field_scaled_closure_rate(F, alpha_s, qs, Omega_cs, Nn, Nm, Np, Ns, c)returns a per-species ratenu_s = c |q/m|_s max_i sqrt(2 N_i) max_x |E_i - <E_i>| / a_{s,i}shaped(Ns,1,1,1,1,1,1), so it can be passed asnutoHermite_Fourier_system(whoseCol = -nu * col * Ckalready broadcasts) together withhypercollision_spectrum(order>=2). The docstring ofnunow states it may be per species. No default changes:nothing calls it unless the user does. 2 files, +93/-3 (
_model.py+42/-3, newtests/test_field_closure.py).Why (defect it addresses)
The truncated asymmetric-Hermite (AW) Fourier–Hermite operator
-v d/dx + (q/m) E d/dvis not anti-self-adjoint.In a non-uniform field it has spurious growing modes in the top third of the Hermite ladder at the largest kept |k|:
at E1 = 4e-3; the symmetric (SW) basis gives 1e-15;
E1 ~ 8e-3; SW zero throughout.
The rate grows with the Fourier cut-off and with Nn, which is why, in the pump-frame strong-drive H05 runs,
x-refinement failed earlier (Nx 16 at t = 476 vs Nx 8 at 632) and Nn-refinement did not help. Aliasing
(padded-convolution check: 1e-16), step size (fixed dt 0.01: same failure time) and segment remaps (disabled:
same failure) were ruled out. A fixed nu is overtaken because the self-consistent field grows secularly; a rate
that follows max|E| is not.
Evidence (Dark-SPECTRAX branch
highk, studies/highk_*.py, macOS, py3.12, JAX 0.11.2, CPU x64)H05 pump frame, v_q/v_te = 0.1, c = 1, order-2 spectrum:
electron dK and W_ext; no negative kinetic energy or k=0 temperature; mobile-ion grid agreement on dK_e to 691.5
and W_ext to 700. Before 550 the closure run equals the unregularized run to 5 digits.
952 (0.03), then loses positivity at 672 / 942. That late loss is a physical broadband finite-k instability of the
quivering plasma (growth rising with k up to k lambda_D ~ 0.1; exact Volterra, linear Hermite and the grid agree on
it), which the closure correctly does not suppress; the grid at Nx 32 blows up at the same time.
The study wrapper used there equals this helper used as
nuto 4e-16 relative.Tests
tests/test_field_closure.py: c = 0 gives exactly zero; analytic value (uniform field excluded, axes with N <= 3inactive); per-species nu in the RHS gives exactly
-nu_s col Cand zero rate of n, M_i, M_ii; jit.Local:
python -m pytest -q -n 2 tests-> 187 passed (tested SHA d0f371f). GitHub CI does not run on stacked PRs.Open questions