Repository navigation
Relativistic feedback discharge mechanism (Færder et al. 2026) - #15
Merged
Merged
Conversation
The relativistic fluid model of Færder et al. (preprint, doi:10.22541/essoar.15010550/v1, and its supplementary material) as an incept1d mechanism: runaway electrons drifting forward and positrons drifting backward at 0.89 c, one forward and one backward photon group (PHOTON_DIRECTIONS), and nothing emitted at either end, so the feedback closes entirely in the gas. With every yield zero the inception condition is the paper's self-sustained condition, and incept1d pdiv gives E_s(L). The mapping onto the interface, the coefficients (S1-S9) and the normal-mode solution are documented in configuration/examples/rfd.rst (eq_rfd_model, eq_rfd_normal_modes). Each coefficient is the paper's function of the sea-level-equivalent field E/n~ times n~: the paper's expression at n~ = 1, and a function of E/N only, so the curve depends on N d alone. The sea-level reference density (1 atm, 293.15 K by default) and the photon attenuation lengths are configuration keys; radius.json holds the paper's two radii. tests/closed_form_rfd.py transcribes the normal-mode solution independently of the solver. Both criteria match it to 1e-8 for L = 25 m - 5 km and both radii (observed agreement ~1e-10); E_s reaches 3 MV/m at L = 22.9 m, as the paper states (~23 m), and falls toward 305.4 kV/m, the onset of Bhabha production, at large L. The S15 matrix prints the forward-photon attenuation entry with the wrong sign; the model equations (and S18) give -1/lambda_a,up, which is used. New example examples/rfd/ and default figure docs/figures/rfd.tex (solver against normal modes; builds in seconds). Depends on PHOTON_DIRECTIONS (#14). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rmrsk
force-pushed
the
rfd-faerder2026
branch
from
October 21, 2026 06:25
d7e8109 to
395d5e6
Compare
The authors publish their code and E_s(L) results on Zenodo (doi:10.5281/zenodo.22983026, CC-BY 4.0). examples/rfd/paper_comparison.py reads their normal-mode and time-dependent results from the reader's unpacked archive, solves the same thresholds with Incept1D at the same L, and writes both to examples/rfd/paper.dat (git-ignored: their data is not redistributed). The opt-in figure `rfdpaper` plots it, and RFD9 asserts the like-for-like case when the file is present. Result: Incept1D matches their normal modes to within their 100 V/m search grid (<= 0.05 kV/m, 1.5e-4) for every L from 10 m to 5 km, and to 6e-4 up to 12 km. Their time-dependent model lies 0.1-2 % below both, and drops to E_t beyond about 5 km, where its finite-time growth test departs from the steady-state threshold. Their code also uses -1/lambda_a,up in the mode matrix, confirming the sign the mechanism uses. Also black-formats tests/closed_form_rfd.py. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
@claude review |
|
Claude finished @rmrsk's task in 28s —— View job Review of PR #15: RFD mechanism (Færder et al. 2026)I read Overall: no blocking issues in the files I read. The mapping is consistent with the solver's conventions. Mapping checks that hold up
Minor points (non-blocking)
Docs and licensing (from the PR description only)
Checklist
|
… figure Off sea level the mechanism now solves the authors' system (doi:10.5281/zenodo.22983026) rather than an extrapolation of ours: the avalanche length is U_R/(E - n~ E_d) with the branch at n~ E_t, and every other coefficient is its sea-level fit at the field E itself, times n~ (previously each was evaluated at E/n~, which made the curve depend on pd only but is not what the authors do). The sea-level density is theirs, 2.688e25 m^-3 (config key sea_level_density, replacing sea_level_pressure/temperature); the example runs at it, --p 1.01371 --T 273.15. At sea level, where every published result is, nothing changes: the thresholds move by <= 1.4e-9, and the agreement with the paper's normal modes stays <= 0.05 kV/m to 5 km. RFD6 now checks half the sea-level density against the normal modes of the authors' scaling, transcribed in the test, instead of pd invariance. One figure, rfd: Incept1D for both radii over the paper's 10 m - 12 km; with the reader's examples/rfd/paper.dat it adds the paper's results and a difference panel. The normal-mode overlay (examples/rfd/normal_modes.py, the mechanism's own mode_matrix / normal_mode_threshold) and the opt-in rfdpaper figure are removed; solver vs normal modes stays in the tests (tests/closed_form_rfd.py, RFD1). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The attenuation lengths of the case the paper calls R >> L come from its GEANT4 runs at R = 5 km, and are used over the whole range of L, up to 12 km, where R >> L no longer holds. The configuration, figure and docs now call it R = 5 km and note the paper's name for it. The example page gains a section on what the gap is here: the high-field region, with open ends where nothing enters, which are the boundary conditions of the secondary-emission chapter with every yield zero; and on how R enters (only through the photon attenuation lengths). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The high-field region lies between two layers of opposite charge inside the thundercloud; the gap's electrodes stand for them. They set the field and the voltage, but particles cross them and are lost beyond, which in this one-way, diffusion-free model is an absorbing electrode with zero yield. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Adds the relativistic fluid model of Færder et al. (2026, doi:10.22541/essoar.15010550/v1) for the relativistic feedback discharge (RFD) in thunderclouds, as the mechanism
mechanisms/air/rfd/. No solver change: it runs on the per-group photon directions added in #14.Background
Relativistic runaway electrons (RREs) avalanche along the field and emit bremsstrahlung forward and backward. Forward photons make RREs and positrons; positrons and backward photons run back and make new RREs. Above a field E_s(L), set by the length L of the high-field region, this loop sustains itself with nothing coming in. The paper models it with four 1-D continuity equations whose coefficients were fitted to GEANT4, and finds E_s(L) by normal-mode expansion.
Solution
"forward"and one"backward"photon group. Every yield is zero, so the feedback closes entirely in the gas and the inception condition is the paper's self-sustained condition:incept1d pdivgives E_s(L).sea_level_density); the example runs at it (--p 1.01371 --T 273.15). Photon attenuation lengths are configuration keys;radius.jsonholds the paper's two radii, R = 5 km (the paper's "R ≫ L", whose attenuation lengths come from GEANT4 at R = 5 km) and R = 100 m.configuration/examples/rfd.rst(modeleq_rfd_model, mapping table, coefficients, normal modeseq_rfd_normal_modes, limits);examples/rfd.rst+examples/rfd/README.md+ a row inexamples/README.md; one default figuredocs/figures/rfd.tex(Incept1D for both radii, 10 m – 12 km; with the reader'spaper.datit adds the paper's results and a difference panel);[Faerder2026b]reference.tests/closed_form_rfd.py: the normal-mode solution, transcribed independently of the solver.tests/test_rfd_mechanism.py(23 tests, ~2.5 s, plus RFD9 when the paper's data is supplied), including RFD6: at half the sea-level density, the solver against the normal modes of the authors' scaling.examples/rfd/paper_comparison.pyreads their E_s(L) from the reader's unpacked archive, solves the same thresholds with Incept1D at the same L, and writesexamples/rfd/paper.dat(git-ignored; their data is not redistributed).make -C docs/figures rfdthen includes it; RFD9 asserts the like-for-like case when the file is present.Evidence (sea level, R = 5 km), solver vs the independent normal-mode transcription:
Both criteria (Riccati and det Q); the tests assert 1e-8 for both radii. E_s reaches 3 MV/m at L = 22.9 m (paper: "≈ 23 m") and falls toward 305.4 kV/m (Bhabha onset, just above E_t = 284 kV/m) at large L. An 80-point sweep for both radii, 10 m – 12 km, takes under two seconds.
Against the paper's published results, at their 100 L values from 10 m to 12 km:
The normal modes are the like-for-like comparison: same model, same coefficients, same steady-state condition, agreeing to their grid resolution. Their time-dependent model sits the same 0.1–2 % below their own normal modes, and beyond ~5 km drops to E_t, below the 305.4 kV/m floor of any steady-state threshold; that is a property of their finite-time growth test, not of the model.
Points found in the paper
+λ_a↑⁻¹; eq. 5/S12 and S18 give−λ_a↑⁻¹. The model equations are used, and the authors' own normal-mode code uses−λ_a↑⁻¹too, so this is a typo in the supplement only.Choices and limits
incept1d growthretards photons by λ/c; the model moves them at c̃. The threshold (λ = 0) is unaffected.--fieldapplies the coefficients locally; not checked against GEANT4.alpha/eta, soincept1d ionizationand--streamer-criteriondo not apply.PR-review checklist
Mandatory:
pre-commit run --all-files(black, flake8, Sphinx) and it passed.reuse lintfails locally only on an untracked.claude/worktreescheckout that is not part of the repository.paper.datpresent).make -C docs htmlbuilds without warnings. Dummy builder with-W; the figure builds withmake -C docs/figures rfd, with and withoutpaper.dat.@claude review.If this PR changes the physics or the numerics:
docs/source/theory/in the commit message or docstring, and updated the theory page if the model itself changed. No solver or theory change; the model's own equations are labelled on its configuration page.mechanisms/air/pancheshnyi/paschen.jsonand it still reproduces the standard Paschen law. Not applicable: no shared code changed.🤖 Generated with Claude Code