Hostname: page-component-74656f9884-rdgjk Total loading time: 0 Render date: 2026-11-09T02:16:45.540Z Has data issue: false hasContentIssue false

Adjoint methods for quasi-symmetry of vacuum fields on a surface

Published online by Cambridge University Press:  21 January 2022

Richard Nies*
Affiliation:
Department of Astrophysical Sciences, Princeton University, Princeton, NJ 08543, USA Princeton Plasma Physics Laboratory, Princeton, NJ 08540, USA
Elizabeth J. Paul
Affiliation:
Department of Astrophysical Sciences, Princeton University, Princeton, NJ 08543, USA Princeton Plasma Physics Laboratory, Princeton, NJ 08540, USA
Stuart R. Hudson
Affiliation:
Princeton Plasma Physics Laboratory, Princeton, NJ 08540, USA
Amitava Bhattacharjee
Affiliation:
Department of Astrophysical Sciences, Princeton University, Princeton, NJ 08543, USA Princeton Plasma Physics Laboratory, Princeton, NJ 08540, USA
*
†Email address for correspondence: rnies@pppl.gov
Rights & Permissions [Opens in a new window]

Abstract

Adjoint methods can speed up stellarator optimisation by providing gradient information more efficiently compared with finite-difference evaluations. Adjoint methods are herein applied to vacuum magnetic fields, with objective functions targeting quasi-symmetry and a rotational transform value on a surface. To measure quasi-symmetry, a novel way of evaluating approximate flux coordinates on a single flux surface without the assumption of a neighbourhood of flux surfaces is proposed. The shape gradients obtained from the adjoint formalism are evaluated numerically and verified against finite-difference evaluations.

Information

Type
Research Article
Copyright
Copyright © The Author(s), 2022. Published by Cambridge University Press
Figure 0

Figure 1. Comparison of (a) the toroidal flux gradient ${\left | \boldsymbol {\nabla }\psi \right |}$ evaluated using VMEC with (b) the generalised toroidal flux gradient $|\boldsymbol {g}_{\psi }|$ (3.1) obtained in SPEC, for a $5$-period rotating ellipse case with half a rotation per field period, major radius at the ellipse centre $R_0 = 5$ m and ellipse major and minor axes values of $2$ and $1$ m, respectively. The relative difference between the two quantities is below $1\,\%$, as shown in (c). A small difference is to be expected in this case, where integrability is well satisfied, as attested in (d) by the Poincaré plot at toroidal angle $\phi =0$ from the SPEC calculation, which agrees well with the flux surfaces computed by VMEC. All data generated in this paper can be obtained from Nies (2021).

Figure 1

Figure 2. Shape gradient for the rotational transform objective function with $\iota _T = 1$, evaluated through (a) adjoint methods and (b) a forward finite-difference scheme with step size $\epsilon _\mathrm {FD}=10^{-7}$, for the example rotating ellipse case introduced in figure 1, with Fourier resolution $(N_\mathrm {tor}, M_\mathrm {pol}) = (16,16)$. The relative error, defined as the absolute error normalised by the maximal absolute value of the adjoint shape gradient, is shown in (c). The convergence of the relative error in the parameter derivative (2.4) for a random direction in $\varOmega$ is shown in (d) as a function of the step size $\epsilon _\mathrm {FD}$ and Fourier resolution $(N_\mathrm {tor}, M_\mathrm {pol})$. The black dashed line indicates the linear scaling in $\epsilon _\mathrm {FD}$ expected from the employed forward finite-difference scheme.

Figure 2

Figure 3. Shape gradient for the quasi-symmetry objective function with helicity $N/M=5$, evaluated through (a) adjoint methods and (b) a forward finite-difference scheme with step size $\epsilon _\mathrm {FD}=10^{-9}$, for the example rotating ellipse case introduced in figure 1, with Fourier resolution $(N_\mathrm {tor}, M_\mathrm {pol}) = (16,16)$. The relative error, defined as the absolute error normalised by the maximal absolute value of the adjoint shape gradient, is shown in (c). The convergence of the relative error in the parameter derivative (2.4) for a random direction in $\varOmega$ is shown in (d) as a function of the step size $\epsilon _\mathrm {FD}$ and Fourier resolution $(N_\mathrm {tor}, M_\mathrm {pol})$. The black dashed line indicates the linear scaling in $\epsilon _\mathrm {FD}$ expected from the employed forward finite-difference scheme.