Skip to content
DraconiticResearch
Search Sources API
197,768 studies31 sourcesUpdated 18 min ago
PreprintCC BY 4.0arXiv

AGNI: A differentiable MHD stability solver & optimizer for magnetic confinement fusion devices

Abstract

The existence of an ideal MagnetoHydroDynamic (MHD) equilibrium does not guarantee its stability. Finite toroidal mode number (n) instabilities degrade performance in both tokamaks and stellarators and differentiable stability optimization tools to date have operated only in the infinite-n limit. We present AGNI (Analysis of Global Normal modes in Ideal MHD), a GPU-accelerated, automatically differentiable finite-n ideal MHD stability solver and optimizer. AGNI discretizes the ideal MHD energy principle pseudospectrally in real space using differentiation matrices and geometric coefficients from a DESC equilibrium, giving a variational eigenvalue problem for the plasma displacement, and efficiently finds the most unstable modes. Built on jax, AGNI yields reverse-mode gradients of the growth rate with respect to boundary-shape and profile parameters without re-solving the equilibrium. We benchmark AGNI against the initial-value code NIMSTELL for a modified Landreman-Bulle-Drevlak quasi-helically symmetric stellarator and a DSHAPE tokamak,recovering the dominant mode with agreement in terms of growth rate and eigenfunction structure, and verify the automatic differentiation gradients against central finite differences. We quantify CPU and GPU cost for eigenvalue and gradient evaluation, establish the finite-precision limit on resolving near-marginal eigenvalues, and present a numerical scheme to impose incompressibility, compatible with gradient-based optimization. AGNI will allow us to optimize tokamaks, stellarators, and mirrors against ideal MHD instabilities.

Related

  1. Strain-overlap and surface-confinement engineering in AlScN/YIG magnetoacoustic devices
    Kevin Künstle, Kaya Gauch, Agnė Žukauskaitė +2
    arXivPreprintCC BY 4.0Full textCondensed matterarXiv
  2. Fractal Confinement and Magnetic Self-sabotage of Current Flow: Electrons Near the Metal-insulator Crossover in a 2D δ-layer
    Xinghai Zhang, Matthew S. Foster, Markus Mueller
    arXivPreprintarXiv licenceFull textCondensed matterarXiv
  3. Quantum computing for plasma physics in magnetic-confinement fusion
    Chenjia Zhu, Shuai Xu, Yousheng Zhang +2
    arXivPreprintarXiv licenceFull textQuantum physics & quantum informationarXiv
  4. Exact Magnetic Confinement of a Doped Hole by Kinetic Frustration
    Nikolai Peshcherenko, Yixin Zhang, Cristian D. Batista +1
    arXivPreprintCC BY 4.0Full textCondensed matterarXiv
  5. Geometrical Confinement of Magnetic Domains and Domain Walls on Two-Dimensional Cylindrical-Shaped Ferromagnetic Surfaces
    Gabriel Martínez-Carracedo, Aurelio Hierro-Rodríguez, Amador García-Fuente +1
    arXivPreprintCC BY 4.0Full textCondensed matterarXiv
BibTeX
@misc{gaur2026agni,
  title = {{AGNI: A differentiable MHD stability solver & optimizer for magnetic confinement fusion devices}},
  author = {Rahul Gaur and Sanket Patil and Prateek Gupta and Djin Patch and Tony Qian},
  howpublished = {arXiv},
  year = {2026},
  month = sep,
  doi = {10.48550/arxiv.2608.01750},
  eprint = {2608.01750},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.01750},
  note = {CC BY 4.0},
}
RIS
TY  - UNPB
TI  - AGNI: A differentiable MHD stability solver & optimizer for magnetic confinement fusion devices
AU  - Rahul Gaur
AU  - Sanket Patil
AU  - Prateek Gupta
AU  - Djin Patch
AU  - Tony Qian
PY  - 2026
DA  - 2026/09/30
PB  - arXiv
DO  - 10.48550/arxiv.2608.01750
UR  - https://arxiv.org/abs/2608.01750
AB  - The existence of an ideal MagnetoHydroDynamic (MHD) equilibrium does not guarantee its stability. Finite toroidal mode number (n) instabilities degrade performance in both tokamaks and stellarators and differentiable stability optimization tools to date have operated only in the infinite-n limit. We present AGNI (Analysis of Global Normal modes in Ideal MHD), a GPU-accelerated, automatically differentiable finite-n ideal MHD stability solver and optimizer. AGNI discretizes the ideal MHD energy principle pseudospectrally in real space using differentiation matrices and geometric coefficients from a DESC equilibrium, giving a variational eigenvalue problem for the plasma displacement, and efficiently finds the most unstable modes. Built on jax, AGNI yields reverse-mode gradients of the growth rate with respect to boundary-shape and profile parameters without re-solving the equilibrium. We benchmark AGNI against the initial-value code NIMSTELL for a modified Landreman-Bulle-Drevlak quasi-helically symmetric stellarator and a DSHAPE tokamak,recovering the dominant mode with agreement in terms of growth rate and eigenfunction structure, and verify the automatic differentiation gradients against central finite differences. We quantify CPU and GPU cost for eigenvalue and gradient evaluation, establish the finite-precision limit on resolving near-marginal eigenvalues, and present a numerical scheme to impose incompressibility, compatible with gradient-based optimization. AGNI will allow us to optimize tokamaks, stellarators, and mirrors against ideal MHD instabilities.
ER  -