Hostname: page-component-76d6cb85b7-hqrjx Total loading time: 0 Render date: 2026-07-10T15:40:53.292Z Has data issue: false hasContentIssue false

An adjoint-based method for optimising MHD equilibria against the infinite-n, ideal ballooning mode

Published online by Cambridge University Press:  31 October 2023

Rahul Gaur*
Affiliation:
Institute for Research in Electronics and Applied Physics, University of Maryland, College Park 20740, MD, USA
Stefan Buller
Affiliation:
Institute for Research in Electronics and Applied Physics, University of Maryland, College Park 20740, MD, USA
Maximilian E. Ruth
Affiliation:
Center for Applied Mathematics, Cornell University, Ithaca 14850, NY, USA
Matt Landreman
Affiliation:
Institute for Research in Electronics and Applied Physics, University of Maryland, College Park 20740, MD, USA
Ian G. Abel
Affiliation:
Institute for Research in Electronics and Applied Physics, University of Maryland, College Park 20740, MD, USA
William D. Dorland
Affiliation:
Institute for Research in Electronics and Applied Physics, University of Maryland, College Park 20740, MD, USA Department of Physics, University of Maryland, College Park 20740, MD, USA
*
Email address for correspondence: rgaur@umd.edu
Rights & Permissions [Opens in a new window]

Abstract

We demonstrate a fast adjoint-based method to optimise tokamak and stellarator equilibria against a pressure-driven instability known as the infinite-$n$ ideal ballooning mode. We present three finite-$\beta$ (the ratio of thermal to magnetic pressure) equilibria: one tokamak equilibrium and two stellarator equilibria that are unstable against the ballooning mode. Using the self-adjoint property of ideal magnetohydrodynamics, we construct a technique to rapidly calculate the change in the eigenvalue, a measure of ideal ballooning instability. Using the SIMSOPT optimisation framework, we then implement our fast adjoint gradient-based optimiser to minimise the eigenvalue and find stable equilibria for each of the three originally unstable equilibria.

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 (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
Copyright © The Author(s), 2023. Published by Cambridge University Press
Figure 0

Figure 1. Plots of the inputs to the VMEC code for the DIII-D-like design: (a) the pressure, (b) the rotational transform as a function of the normalised toroidal flux $s$ and (c) the cross section of the boundary.

Figure 1

Table 1. Relevant physical quantities for the DIII-D-like equilibrium.

Figure 2

Figure 2. Plots of the inputs to the VMEC code for the modified NCSX design: (a) the pressure, (b) the rotational transform as a function of the normalised toroidal flux $s$ and (c) the cross section of the boundary. Note the large negative shear until $s \approx 0.85$.

Figure 3

Table 2. Important physical quantities for the modified NCSX equilibrium.

Figure 4

Figure 3. Plots of the inputs to the VMEC code for the modified Henneberg-QA design: (a) the pressure, (b) the rotational transform as a function of the normalised toroidal flux $s$ and (c) the cross section of the boundary.

Figure 5

Table 3. Relevant physical quantities for the modified Henneberg-QA design.

Figure 6

Figure 4. (a) Comparison between the gradients of eigenvalue $\hat {\lambda }_{\alpha _{t}} = \partial \hat {\lambda }/\partial \alpha _{t}$ and $\hat {\lambda }_{\theta _0} = \partial \hat {\lambda }/\partial \theta _0$ obtained using a finite-difference scheme against those obtained using an adjoint method. The quantity $\mathrm {iter}$ is the number of iterations taken by the local optimiser on a flux surface before finding $\hat {\lambda }_{\mathrm {max}}$. The gradients match well for around four orders of magnitude. The discrepancy between the adjoint and finite difference $\hat {\lambda }_{\alpha _{t}}$ is due to the finite resolution of the $\texttt {VMEC}$ run. (b) Different grids used to calculate the gradient of the eigenvalue $\hat {\lambda }$ on a flux surface. A finite-difference scheme requires four points, whereas an adjoint method only requires one point. This gives us a four times speed-up.

Figure 7

Figure 5. Process of finding the globally maximum eigenvalue $\hat {\lambda }_{\mathrm {max}}$ on the flux surface $s = 0.8$ of the NCSX equilibrium. We start by first finding the maximum $\hat {\lambda }$ on a discrete grid (marked by crosses) of $\alpha _{t}$ and $\theta _0$. From the discrete maximum $\hat {\lambda }$, we search for the global maximum eigenvalue using a local optimiser. In the inset, we show the approximate path taken by the optimiser to reach $\hat {\lambda }_{\mathrm {max}}$. This process is repeated for all the flux surfaces.

Figure 8

Figure 6. Plots of $\hat {\lambda }_{\mathrm {max}}$ against the normalised toroidal flux $s$ for the three chosen equilibria in (ac) and the eigenfunctions $\hat {X}$ at the maximum $\hat {\lambda }_\textrm {max}$ for each equilibrium in the (df): (a) DIII-D $\hat {\lambda }_\textrm {max}$, (b) NCSX $\hat {\lambda }_\textrm {max}$, (c) Henneberg-QA $\hat {\lambda }_\textrm {max}$, (d) DIII-D $\hat {X}(s = 0.95)$, (e) NCSX $\hat {X}(s = 0.8)$ and( f) Henneberg-QA$\hat {X}(s = 0.84)$. The decay of the eigenfunction could be a result of the Anderson localisation of ballooning modes, as discussed by Redi et al. (2002).

Figure 9

Figure 7. (a) Maximum eigenvalue $\hat {\lambda }_{\mathrm {max}}$ of the initial and optimised DIII-D-like equilibrium. The optimised equilibrium is stable. (b) Boundary shape of the initial and final equilibria. Note the negative triangularity of the initial equilibrium and the positive triangularity of the optimised equilibrium.

Figure 10

Table 4. Comparison between relevant physical quantities of the initial and optimised DIII-D equilibrium.

Figure 11

Table 5. Boundary shape DoFs for the NCSX case.

Figure 12

Figure 8. (a) Maximum eigenvalue $\hat {\lambda }_{\mathrm {max}}$ of the initial and optimised modified NCSX equilibrium. (b) Boundary shape of the initial and final equilibria at three different values of the toroidal angle $\zeta$. The dotted curves correspond to the initial cross sections whereas the solid curves are the final cross sections. Note how sensitive the maximum eigenvalue is to the boundary shape.

Figure 13

Table 6. Comparison between relevant physical quantities of the initial and optimised NCSX equilibrium.

Figure 14

Table 7. Boundary shape DoFs for the modified Henneberg-QA case. We have chosen the exact same coefficients as the NCSX case.

Figure 15

Figure 9. (a) Maximum eigenvalue $\hat {\lambda }_{\mathrm {max}}$ of the initial and optimised modified Henneberg-QA equilibrium. (b) Boundary shape of the initial and final equilibria at three different positions of the toroidal angle $\zeta$. The dotted curves correspond to the initial cross sections whereas the solid curves are the final cross sections.

Figure 16

Table 8. Comparison between relevant physical quantities of the initial and optimised modified Henneberg-QA equilibrium.