Hostname: page-component-76d6cb85b7-s74w7 Total loading time: 0 Render date: 2026-07-17T13:56:42.457Z Has data issue: false hasContentIssue false

The DESC stellarator code suite Part 3: Quasi-symmetry optimization

Published online by Cambridge University Press:  12 April 2023

D.W. Dudt
Affiliation:
Department of Mechanical and Aerospace Engineering, Princeton University, Princeton, NJ 08544, USA
R. Conlin
Affiliation:
Department of Mechanical and Aerospace Engineering, Princeton University, Princeton, NJ 08544, USA
D. Panici
Affiliation:
Department of Mechanical and Aerospace Engineering, Princeton University, Princeton, NJ 08544, USA
E. Kolemen*
Affiliation:
Department of Mechanical and Aerospace Engineering, Princeton University, Princeton, NJ 08544, USA
*
Email address for correspondence: ekolemen@princeton.edu
Rights & Permissions [Opens in a new window]

Abstract

The DESC stellarator optimization code takes advantage of advanced numerical methods to search the full parameter space much faster than conventional tools. Only a single equilibrium solution is needed at each optimization step thanks to automatic differentiation, which efficiently provides exact derivative information. A Gauss–Newton trust-region optimization method uses second-order derivative information to take large steps in parameter space and converges rapidly. With just-in-time compilation and GPU portability, high-dimensional stellarator optimization runs take orders of magnitude less computation time with DESC compared to other approaches. This paper presents the theory of the DESC fixed-boundary local optimization algorithm along with demonstrations of how to easily implement it in the code. Example quasi-symmetry optimizations are shown and compared to results from conventional tools. Three different forms of quasi-symmetry objectives are available in DESC, and their relative advantages are discussed in detail. In the examples presented, the triple product formulation yields the best optimization results in terms of minimized computation time and particle transport. This paper concludes with an explanation of how the modular code suite can be extended to accommodate other types of optimization problems.

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

Listing 1 Pseudocode outlining the DESC optimization algorithm.

Figure 1

Listing 2 Example code to run quasi-helical symmetry optimization using the two-term objective function.

Figure 2

Figure 1. Quasi-symmetry optimization paths using the Boozer coordinate objective in DESC. The STELLOPT optimization path is shown for comparison.

Figure 3

Figure 2. Quasi-symmetry optimization paths using the two-term objective in DESC. The optimal STELLOPT solution is shown for comparison.

Figure 4

Figure 3. Quasi-symmetry optimization paths using the triple product objective in DESC. The optimal STELLOPT solution is shown for comparison.

Figure 5

Figure 4. Comparison of the boundary surfaces for the initial equilibrium (blue) and optimized solution (green) targeting the triple product measure of quasi-symmetry. Cross-sections are shown at each quarter of a field period: $\phi = 0, {\rm \pi}/(2 N_{FP}), {\rm \pi}/N_{FP}, 3{\rm \pi} / (2 N_{FP})$.

Figure 6

Figure 5. Contours of magnetic field magnitude in Boozer coordinates at the boundary surface $\rho =1$ for the (a) initial equilibrium and (b) optimized solution targeting the triple product measure of quasi-symmetry.

Figure 7

Figure 6. Comparison of quasi-symmetry and neoclassical confinement errors for the initial and optimized configurations. Only the second-order DESC results are shown. The three quasi-symmetry metrics were computed in DESC; the effective ripple was computed with NEO from VMEC equilibria; the particle and heat fluxes were computed in SFINCS also using VMEC equilibria.

Figure 8

Table 1. STELLOPT computation times (in seconds). The VMEC equilibrium inputs used were MPOL = 9, NTOR = 8, NS_ARRAY = 17 33 65 and FTOL_ARRAY =$1\times 10^{-8}$ $1\times 10^{-10}$ $1\times 10^{-12}$. The BOOZ_XFORM optimization inputs used were MBOZ = 17, NBOZ = 16 and TARGET_HELICITY(65) = 0.

Figure 9

Table 2. DESC computation times (in seconds) for 560 optimization parameters. The numerical resolution used was $L=M=N=8$ for the equilibria and $M=N=16$ for the Boozer spectrum with the $f_{B}$ objective. Quasi-symmetry was targeted on the $\rho =1$ surface.