Hostname: page-component-76d6cb85b7-lrvh5 Total loading time: 0 Render date: 2026-07-14T23:58:52.462Z Has data issue: false hasContentIssue false

Spectrally accurate, reverse-mode differentiable bounce-averaging algorithm and its applications

Published online by Cambridge University Press:  10 June 2026

Kaya Unalmis*
Affiliation:
Electrical and Computer Engineering, Princeton University, Princeton, New Jersey, USA
Rahul Gaur
Affiliation:
Mechanical and Aerospace Engineering, Princeton University, Princeton, New Jersey, USA
Rory Conlin
Affiliation:
Institute for Research in Electronics and Applied Physics, University of Maryland, College Park, Maryland, USA
Dario Panici
Affiliation:
Mechanical and Aerospace Engineering, Princeton University, Princeton, New Jersey, USA
Egemen Kolemen*
Affiliation:
Mechanical and Aerospace Engineering, Princeton University, Princeton, New Jersey, USA Andlinger Center for Energy and the Environment, Princeton University, Princeton, New Jersey, USA Princeton Plasma Physics Laboratory, Princeton, New Jersey, USA
*
Corresponding authors: Kaya Unalmis, kunalmis@alumni.princeton.edu; Egemen Kolemen, ekolemen@princeton.edu
Corresponding authors: Kaya Unalmis, kunalmis@alumni.princeton.edu; Egemen Kolemen, ekolemen@princeton.edu

Abstract

We present a fast, spectrally (exponentially) accurate, automatically differentiable bounce-averaging algorithm that is used to simplify kinetic models. Using this algorithm, implemented in the DESC stellarator optimisation suite, we can perform efficient optimisation of many objectives to improve stellarator performance, such as the effective ripple $\epsilon _{\mathrm{eff}}$ metric for the neoclassical transport coefficient in the low collisionality regime and proxies for energetic particle confinement. For the first time, we optimise a finite-beta stellarator to directly reduce neoclassical ripple transport using reverse-mode differentiation. This ensures the computational cost of differentiation is independent of the number of controllable parameters.

Keywords

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2026. Published by Cambridge University Press
Figure 0

Figure 1. A schematic categorising neoclassical transport.

Figure 1

Figure 2. Bounce points within $(\zeta _1, \zeta _2) = (0, 4 \mathrm{\pi })$ on the field line $(\psi , \alpha ) = (\psi_{\text{plasma boundary}}, 0)$ for a mesh of $\varrho$ values on a W7-X stellarator. For a given $\varrho$ marked by a horizontal line, $\lvert {v_{\parallel }}\rvert = 0$ at the bounce points marked by triangles. The plasma distribution vanishes in the hypograph of $\lvert {B}\rvert$.

Figure 2

Figure 3. Convergence of quadratures for (3.9). $\mathrm{GC}_1$ and $\mathrm{GL}_1$ show spectral convergence whereas midpoint, Simpson and double exponential quadratures hit floating point plateaus early.

Figure 3

Figure 4. Convergence of quadratures for (3.10). $\mathrm{GC}_2$ and $\mathrm{GL}_2$ show spectral convergence.

Figure 4

Figure 5. Convergence of quadratures for the quantity labeled by $f$.

Figure 5

Figure 6. Convergence of quadratures for the quantity labelled by $f$. In the top row, the integrand becomes nearly non-integrable as the parallel velocity nearly vanishes at $\zeta = 0$. In either case, splitting the quadrature there recovers fast convergence.

Figure 6

Figure 7. Convergence of the spectral projection of $\alpha , \zeta \mapsto \theta - \alpha$ onto the Fourier–Chebyshev basis (3.21). Equation (3.13) was solved to error $\leqslant 10^{-7}$. Note that if $\omega \to \varLambda / \iota$, then $\theta - \alpha \to \iota \zeta$, so the spectral width reduces to one parameter. Thus, if the optimiser is motivated to match higher frequency spectral coefficients of $\omega$ with $\varLambda / \iota$, then field lines can be tracked at lower resolution.

Figure 7

Figure 8. $\theta$ on the plasma boundary of an NCSX stellarator with $N_{\text{FP}} = 3$.

Figure 8

Figure 9. An OH transport optimisation. Panels (b) and (c) are shown in Boozer coordinates (D’haeseleer et al. 2012). Panels (d) and (e) show bounce-averaged radial drifts, summed in magnitude over $\zeta \in (0, 2\mathrm{\pi })$. The size of the region with large drifts appears reduced.

Figure 9

Figure 10. Resolution scan for $\epsilon _{\text{eff}}$ on the W7-X equilibrium in the DESC repository.

Figure 10

Figure 11. Comparison of our shifted-circle model for the binormal drift with the result computed by our algorithm. The minor difference in panel (b) is because the shifted-circle model is accurate to $\mathcal{O}(\epsilon ^2)$.

Figure 11

Figure 12. Error induced by changing the Fourier–Zernike basis for $(R, Z, \varLambda , \omega )$ from flux coordinates $(\theta , \zeta )$ to the straight field line coordinates $(\vartheta , \phi )$. Fitting at the resolution that obtains the error of $10^{-4}$ Tesla in $\lvert {B}\rvert$ on the NCSX stellarator in panel (a) took 10 minutes with a CPU (Intel Corporation 2019).