Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Paper The following article is Open access

Single-stage stellarator optimization: combining coils with fixed boundary equilibria

, , , and

Published 6 June 2023 © 2023 The Author(s). Published by IOP Publishing Ltd
, , Special Issue on the 2022 Joint Varenna-Lausanne International Workshop on the Theory of Fusion Plasmas Citation R Jorge et al 2023 Plasma Phys. Control. Fusion 65 074003 DOI 10.1088/1361-6587/acd957

0741-3335/65/7/074003

Abstract

We introduce a novel approach for the simultaneous optimization of plasma physics and coil engineering objectives using fixed-boundary equilibria that is computationally efficient and applicable to a broad range of vacuum and finite plasma pressure scenarios. Our approach treats the plasma boundary and coil shapes as independently optimized variables, penalizing the mismatch between the two using a quadratic flux term in the objective function. Four use cases are presented to demonstrate the effectiveness of the approach, including simple and complex stellarator geometries. As shown here, this method outperforms previous two-stage approaches, achieving smaller plasma objective function values when coils are taken into account.

Export citation and abstract BibTeX RIS

Original content from this work may be used under the terms of the Creative Commons Attribution 4.0 license. Any further distribution of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.

1. Introduction

Developing a practical and economically viable fusion device has proven to be a formidable challenge. Several factors, including plasma confinement and heating, plasma stability, and the efficiency of energy conversion determine the performance of nuclear fusion devices. In order to achieve the conditions necessary for nuclear fusion to occur, the plasma must be confined by a magnetic field at high temperatures and densities for long periods of time. The magnetic field configuration plays a critical role in achieving these conditions, and the design of the coils that generate the magnetic field is a crucial aspect of this challenge. Over the years, various device designs with the goal of developing a viable fusion power plant have been studied. One of the most promising devices is the stellarator, a type of magnetic confinement device that uses a complex system of coils to create a magnetic field and has the ability to operate in a steady-state mode without a disruptive limit [1, 2]. Compared to tokamaks, stellarators have simpler plasma control, require less injected power to sustain the plasma since the current drive is unnecessary, and can have a very flexible plasma shape. Although this flexibility is theoretically desirable, it comes at the cost of much-increased complexity in the coils, as the plasma usually needs to be shaped in a complex way to achieve good performance, therefore increasing the cost of the physical devices and hindering their economic viability. Hence, to make the construction of these devices more economically viable, it is important to explore possible methods for optimizing coil designs while maintaining the performance of the underlying magnetic field equilibria.

In this work, we present a new method for performing a combined plasma coil optimization algorithm using fixed boundary equilibria. This method uses a combined plasma-coil optimization in a single-stage approach that takes into account both physics goals and engineering constraints simultaneously. As we show here, this method enables us to achieve smaller values of the plasma objective (in the present case, quasisymmetric or quasi-isodynamic objectives) with coils than the standard two-stage approach. This overcomes the challenges of previous methods based on free boundary equilibria and can be applied to arbitrary stellarator equilibria. Up to now, the standard technique used in the design process of the stellarator is a two-stage approach. The first step of this approach focuses on determining the desired properties of the target magnetic field equilibrium, such as its aspect ratio, quasisymmetry, magnetohydrodynamics (MHD) stability, and the properties of its magnetic islands. The second stage consists in finding a set of coils that are able to recreate that target field. The two-stage approach is commonly used today since it is an efficient technique that commonly leads to the toroidal surfaces foliating a large fraction of the plasma volume and has led to the design of many successful stellarator experiments. As there may be many different sets of coils that can produce the same target magnetic field, the second stage is an ill-posed problem. This can make it challenging to determine the optimal coil configuration for a given stellarator, because a slight modification in the plasma boundary may demand a significant adjustment to the coil geometry. Therefore, since the target magnetic field is fixed, the set of coils that are found can present an unrealistic challenge to the fabricator, as a result of the very high complexity. This would mean that the process would have to restart, requiring another target field, again without any certainty that it would lead to a realistic coil design.

These challenges and difficulties may be resolved if a single-stage optimization approach is considered, in which the target magnetic field and its accompanying coils are varied at the same time. This way, the coil complexity can be balanced with the plasma performance, with the goal of achieving good confinement and stability without sacrificing engineering feasibility. In this case, at each iteration step, the plasma equilibrium, the magnetic field from the coils, and the current contribution from the plasma are evaluated simultaneously. This joint optimization approach makes it possible to achieve the desired balance between complexity and performance in an efficient way.

Previous combined optimization methods have either relied directly or indirectly on free boundary equilibrium calculations [37], which often demand many iterations between an equilibrium solution, or these can only be used with vacuum configurations [812]. In [13] several combined optimization approaches were discussed, including the possibility of using fixed boundary equilibria and the corresponding penalty functionals. While the present work is similar in nature to section 5.1 of [13] for a general objective function, here, we consider the degrees of freedom for the optimization to be both the plasma boundary and coil degrees of freedom and define the objective function to be the linear combination of both the stage 1 and stage 2 objective functions in order to achieve our goal of good confinement and simpler coils. Those reasons support the choice of this particular single-stage approach. As a concrete example, we take the latest optimization stage of the NCSX device where the coil shapes were directly included in the optimization of the plasma shape [6]. In this case, a combined plasma-coil algorithm based on a free-boundary equilibrium was used after a two-stage optimization process that had already identified a good candidate for the design point, thus providing an initial guess for the local minimization that includes both plasma and coil models. The degrees of freedom used were the parameters describing the coil shapes and the coil currents and the target included physics parameters of the reference plasma and the geometric properties necessary for engineering coil design. As stated in [14], it was not until a combined plasma-coil optimization was performed that a family of consistent solutions (termed M45) that met engineering feasibility requirements and adequately reconstructed the plasma properties of the initial LI383 equilibrium was found. Another example where an a posteriori combined plasma-coil optimization led to major improvements in loss fraction and effective helical ripple with respect to an already found solution from a two-stage approach is described in [11], although this method is only applicable to quasisymmetric magnetic fields in vacuum. Such studies show the importance of combined plasma-coil optimization algorithms in the design of stellarator experiments.

Our new method introduces a streamlined approach for combined plasma-coil optimization in stellarator design, which enables simultaneous optimization of both the physics and coil engineering objectives in a single stage. At the core of our new method is the principle of including both the plasma boundary shape and coil shapes in the optimization parameter space as degrees of freedom. At the same time, we introduce a quadratic flux [15] term in the objective function to ensure consistency between the two, similar to what is done in [16] using the near-axis expansion approach, i.e. obtaining the magnetic field equilibrium using an expansion at successive orders in the distance from the axis [1719]. The quadratic flux term, defined in equation (19), is the surface integral of the normal component of the magnetic field produced from the coils which is zero for the ideal equilibrium case. We combine finite difference derivatives of the MHD equilibrium with analytic derivatives of the coils, resulting in a reduced number of finite difference steps. Additionally, our approach can be applied to equilibrium codes that do not yet have free boundary functionality, such as GVEC [20], making it adaptable to a broad range of vacuum and finite plasma pressure stellarator equilibria. We note that, in this method, only one surface evaluation of the magnetic field from coils is required per optimization iteration, significantly reducing the computational time as opposed to methods that volumetrically evaluate the magnetic field such as the free-boundary version of the Variational Moments Equilibrium Code (VMEC) code [21] where an mgrid file from the MAKEGRID code is needed.

The paper is organized as follows. In section 2, we provide an overview of the method and describe the numerical implementation and the codes used. In section 3, we verify our method by performing convergence studies on the optimization objective function and its gradients. The results of our approach when applied to quasisymmetric and quasi-isodynamic configurations are shown in section 4. The conclusions follow.

2. Optimization Method

The magnetic field equilibrium is obtained using VMEC [21], which solves the static ideal MHD system of equations

Equation (1)

where $\mu_0 \mathbf{\text{J}} = \nabla \times B$ is the plasma current density, $\mathbf{\text{B}}$ the equilibrium magnetic field satisfying $\nabla \cdot \mathbf{\text{B}} = 0$ and P the plasma pressure. The ideal MHD model is valid on a low-frequency and long-wavelength regimes, where typical frequencies ω are larger than $\omega_\textrm p$, the plasma frequency, and larger than the electron and ion gyrofrequencies $\Omega_\textrm{e,i}$, and where typical length scales L are longer than the Debye length $\lambda_\textrm D$ and the electron and ion gyroradii $\rho_\textrm{e,i}$ [22]. Furthermore, it is assumed that collisions are frequent enough for the electron and ion distribution functions to thermalize. VMEC assumes a toroidal equilibrium with nested surfaces of constant toroidal magnetic flux, also called flux surfaces, and uses the steepest descent method to find a minimum in the potential energy W resulting from an integral formulation of equation (1), namely

Equation (2)

where V is the integration volume and $\Gamma = 5/3$ is the ratio of specific heats.

We run VMEC in fixed boundary mode. In this case, the outermost surface $S = [R(\vartheta,\phi)\cos(\phi), R(\vartheta,\phi)\sin(\phi), Z(\vartheta,\phi)]$, also called last closed flux surface, is fixed and used as a boundary condition. The boundary surface S is specified by its Fourier amplitudes $\{\mathrm{RBC}_{m,n},\mathrm{ZBS}_{m,n}\}$ in cylindrical coordinates

Equation (3)

and

Equation (4)

where φ is the standard cylindrical angle, ϑ is a poloidal angle, and nfp is the number of toroidal field periods of the magnetic field equilibrium. Only cos and sin modes are used to specify R and Z respectively, so as to enforce stellarator-symmetry throughout this work. At each magnetic surface, the toroidal magnetic flux $2\pi \psi$ is constant. We denote by ψb the value of ψ at the plasma boundary and $s = \psi/\psi_b$ the normalized toroidal flux. The degrees of freedom for the surface shapes are then

Equation (5)

We mention two important properties of the surface S that we use throughout this work, namely its normal vector $\mathbf n(\vartheta,\phi)$ and its aspect ratio A defined as

Equation (6)

where $\overline S = (2\pi)^{-1}\int_0^{2\pi}\mathrm d\phi S(\phi)$ is the toroidal average of the area $S(\phi)$ of the outer surface's cross section in the R − Z plane and V is the volume of the outer surface [23].

To illustrate how a physics property can be targeted while simultaneously optimizing coil shapes, we choose precise quasisymmetric [24] and quasi-isodynamic [25] magnetic fields as targets for the equilibrium magnetic field. Quasisymmetry is one of the ways to achieve the good confinement properties of a tokamak with the stability and steady-state capability of a stellarator. In particular, if the modulus of the magnetic field vector $|\mathbf{\text{B}}| = B$ has the following symmetry

Equation (7)

where $(\theta,\varphi)$ are Boozer coordinates [26]. This results in trajectories of the guiding center of charged particles that behave exactly as if they were in a truly symmetric magnetic field vector $\mathbf{\text{B}}$. Note that $\mathbf{\text{B}}$ is not required to have any particular symmetry and this symmetry is only dependent on the surface degrees of freedom $\mathbf x_{\text{surface}}$ if a fixed boundary approach is employed. To achieve quasisymmetry, we follow the approach in [27] and rewrite equation (7) in an equivalent form, namely [28]

Equation (8)

where $F(\psi) = (M G+ N I)/(\iota M - N)$ if $\mathbf{\text{B}}$ is expressed in Boozer coordinates and seek the minimization of the objective function fQS

Equation (9)

where $G(\psi)$ is $\mu_0/(2\pi)$ times the poloidal current outside the surface, $I(\psi)$ is $\mu_0/(2\pi)$ times the toroidal current inside the surface, ι is the rotational transform and $\langle \cdots \rangle$ is a flux surface average. The sum is over a set of flux surfaces $s_j = \psi_j/\psi_b$ where ψb is the toroidal flux at the boundary and a uniform grid $0, 0.1, \dots, 1$ is used. The quantities $\mathbf{\text{B}} \times \nabla B \cdot \nabla \psi$, $\mathbf{\text{B}} \cdot \nabla B$, B, G and I are computed using VMEC, while we set

Equation (10)

which are the two allowed flavors of quasisymmetry close to the magnetic axis [29]. We use this particular form of quasisymmetry, equation (9), primarily due to its accessibility within the SIMSOPT framework and its demonstrated smoothness and convergence properties. Nevertheless, further exploration of different quasisymmetry forms (e.g. [30]), might contribute to the refinement of the optimization method applied in the current work quasi-isodynamic magnetic fields are fields that are omnigeneous with poloidally closed contours of the magnetic field strength B. To achieve a quasi-isodynamic magnetic field, we follow the approach in [31] and

Equation (11)

where $B_\textrm{QI}$ is the target magnetic field, α is a fieldline label that in Boozer coordinates can be written as $\alpha = \vartheta-\iota \varphi$, and Bmax (Bmin) is the maximum (minimum) magnetic field strength on a flux surface. As QI-optimized magnetic fields often result in elongated flux surfaces and large differences between the maximum and minimum magnetic field strengths on a given flux surface, we also add to the objective function a penalty on the effective elongation epsilon defined in [31] and the mirror ratio Δ defined as

Equation (12)

The objective function for the equilibrium magnetic field J1, when targeting quasisymmetry, is then written as

Equation (13)

The target aspect ratio Atarget is set to 6 for quasi-axisymmetric stellarators and to 8 for quasi-helically symmetric stellarators. The function $c(\iota)$ places a constraint on the rotational transform profile in order to restrict quasi-axisymmetric configurations to not become axisymmetric. We therefore take $c = (\text{mean}(\iota)-\iota_0)^2$ for quasi-axisymmetry and c = 0 for quasi-helical symmetry optimization. The objective function for the equilibrium magnetic field J1, when targeting quasi-isodynamic magnetic fields, is then written as

Equation (14)

The maximum allowed mirror ratio $\Delta_*$ is chosen to be $\Delta_* = 0.21$ and the maximum allowed elongation $\epsilon_* = 6.0$.

We then place a set of NC electromagnetic coils surrounding half of a field period of the plasma boundary since, due to stellarator-symmetry and nfp rotational symmetry, the remaining coils can be found by rotation and reflection transformations of the independent NC coils. The total number of coils is then given by $2n_{\text{fp}}N_C$. While we only use modular toroidal field coils, other types of coils can be used in the framework proposed here such as saddle coils and poloidal field coils. The coils are represented as current-carrying filaments, i.e. the non-zero thickness of the coils is neglected and they are modeled as curves in space, a common assumption in coil design [32]. The magnetic field from the coils is evaluated using the Biot–Savart law

Equation (15)

where Ii is the current in the ith coil $\mathbf \Gamma_i$, ${\mathrm{\text{d}}} {\mathbf{\text{l}}}_i = \mathbf x^{\prime}_i \mathrm d\theta$ is the differential line element, θ is an angle-like coordinate that parametrizes the coil curve $\mathbf \Gamma_i$ and $\mathbf r = \overline{\mathbf x} - \mathbf x_i$ is the displacement vector between the evaluated point on the surface and the differential element. Each coil i is modeled as a periodic function

Equation (16)

where

Equation (17)

yielding a total of $3(2N_F +1)$ degrees of freedom per coil. The degrees of freedom for the coil shapes are then

Equation (18)

To prevent the minimization of the quadratic flux by all coil currents going to zero, we take one of the coil currents Ii out of the parameter space.

To find suitable coils, we follow the approach of the FOCUS coil design tool [32] and vary $\mathbf x_{\text{coils}}$ in order to minimize the field error, i.e. the magnitude of the normal component $\mathbf n$ of the magnetic field induced by the coils on the boundary S. This is in contrast to the current carrying surface approach where coils are restricted to lie on a particular surface (called the coil winding surface) which is employed in the NESCOIL [33], REGCOIL [34], ONSET [35], COILOPT [3], and COILOPT++ [36] codes. The FOCUS approach implemented in SIMSOPT has been shown to yield exceptionally low field errors and allow for simple coil shapes (see [11, 37]) and is therefore the one used here. We target the minimization of the field error by defining as a cost function the quadratic flux quantity fQF, given by

Equation (19)

where $\mathbf{\text{B}}_{\text{ext}} = \mathbf{\text{B}}_{\text{ext}}(\mathbf x_{\text{coils}})$, $\mathbf n = \mathbf n(S)$ and $S = S(\mathbf x_{\text{surface}})$. If the field induced by the coils $\mathbf{\text{B}}_{\text{ext}}$ coincides with the target equilibrium field $\mathbf{\text{B}}$, then $f_{\text{QF}} = 0$. However, minimizing $\mathbf x_{\text{coils}} \rightarrow f_{\text{QF}}(\mathbf{\text{B}}_{\text{ext}}(\mathbf x_{\text{coils}}))$ is an ill-posed problem [32, 34]. For this reason, we restrict the allowable coil shapes by penalizing coil complexity using the method introduced in [37]. In this way, we obtain a design where it is plausible that the coils can be built. Therefore, we consider the following regularization terms

Equation (20)

Equation (21)

Equation (22)

Equation (23)

Equation (24)

where Li and κi are the length and curvature of the coil i, respectively, $\mathrm{M}(t) = \text{max}(t,0)^2$ and $\ell_j^{(i)}$ is the variance of the coil arclength. These allow us to restrict the total length of the independent coils to be Lmax, the individual coil curvature and mean squared curvature to $\kappa_{\text{max}}$ and $\kappa_{\text{msc}}$, respectively, and the minimum distance between coils to dmin. The regularization term $g_\ell$ is added to avoid poor conditioning of the optimization problem due to non-uniqueness of the curve parameter by enforcing uniform arclength along the curve [37]. In essence, such regularization terms intend to restrict the space of allowed coil shapes to satisfy the following set of conditions

Equation (25a)

Equation (25b)

Equation (25c)

Equation (25d)

The objective function for the coils J2 is then written as

Equation (26)

where $\omega_{g_i}$ are the scalar weights associated with the regularization terms gi .

The optimization problem and total objective function J can then be formulated as

Equation (27a)

Equation (27b)

with $\omega_{\text{coils}}$ a scalar weight associated with J2. The degrees of freedom varied during the optimization are $\mathbf x = (\mathbf x_{\text{surface}}, \mathbf x_{\text{coils}})$. The objective function, its gradients, as well as its CPU parallelization, are carried out using the SIMSOPT code [38]. The constraint $\psi = \psi_0$ is handled by the use of VMEC in fixed-boundary mode, while the constraint $R_{\text{major}} = R_0$ is handled by removing the term $\mathrm{RBC}_{0,0}$ from the parameter space and setting it equal to one.

In the numerical results section, we minimize J by employing the Broyden–Fletcher–Goldfarb–Shanno (BFGS) quasi-Newton algorithm [39]. This method stores the Jacobian of the objective function computed at previous points and uses the BFGS formula to approximate the Hessian using a generalized secant method. As noted in [37], this is important for convergence as it helps to overcome the ill-posedness of the coil optimization problem. The Jacobian $\mathrm dJ/\mathrm d\mathbf x = \mathrm dJ_1/\mathrm d\mathbf x+\mathrm dJ_2/\mathrm d\mathbf x$ is computed using a mix of numerical and analytical derivatives. In particular, the Jacobian $\mathrm dJ_1/\mathrm d\mathbf x_{\text{surface}}$ is computed using forward finite differences, $\mathrm dJ_1/\mathrm d\mathbf x_{\text{coils}} = 0$, and both $\mathrm dJ_2/\mathrm d\mathbf x_{\text{coils}}$ and $\mathrm dJ_2/\mathrm d\mathbf x_{\text{surface}}$ are computed analytically. The use of analytical derivatives allows significant efficiency in the optimization process as the number of degrees of freedom $\mathbf x_{\text{coils}}$ is typically significantly larger than $\mathbf x_{\text{surface}}$. As an example, while a surface with $M_{\text{pol}} = 3$ poloidal and $N_{\text{tor}} = 3$ toroidal modes has 49 degrees of freedom (length of $\mathbf x_{\text{surface}}$), a system with $N_C = 4$ independent coils and $N_F = 16$ Fourier modes per coil has a total of 396 degrees of freedom (length of $\mathbf x_{\text{coils}}$). It is worth mentioning that the method introduced here is applicable (and could entail significant advantages) even in the case where analytic derivatives of the equilibrium are available, using codes such as DESC [40]. Although the number of degrees of freedom in coils is generally larger than that in surfaces, it is essential to note that specific cases may vary. Specifically, the four-coil stellarator outlined in this work has a smaller number of degrees of freedom than the surface shape.

3. Gradient Verification

We now turn to the numerical validation of the approach implemented here which will focus on the computation of the gradients of J. This is done for several reasons with the major one being the fact that the main modifications of the SIMSOPT code were performed in the functions directly or indirectly related to the computation of the gradients. Furthermore, the gradients of J are a crucial element in the optimization algorithm, making its accuracy extremely relevant. Finally, gradients are relevant to the present work as a significant efficiency gain in the approach used here, apart from the use of fixed boundary equilibria, is the use of analytical derivatives for the computation of the derivatives of J2 and the parallelization of the finite difference gradients of J1.

We start by performing a Taylor test to verify the accuracy of the analytical derivatives on the computation of the objective function J2 with respect to the degrees of freedom $\mathbf x$. For this purpose, we estimate $\mathrm dJ_2/\mathrm d\mathbf x\simeq \Delta J_2/\Delta x$ using a finite-difference approach

Equation (28)

where $\mathbf h$ is a randomized array with the same size as $\mathbf x$ and with values between 0 and 1. We then compare it to the analytical estimate $J_2^{\prime}(\mathbf x)$ provided by the code for several values of $\delta x$ and assess its convergence.

This is shown in figure 1 where second-order convergence $|\Delta J_2/\Delta x-J_2^{\prime}(\mathbf x)| \sim |\Delta x|^2$ is obtained as expected from the use of a centered finite difference scheme in equation (28). The coils employed in this study are a set of three circular coils per half-field period with a major radius of 1 m and a minor radius of 0.5 m. The plasma boundaries used are the ones present in the precise quasi-axisymmetry (QA) and precise quasi-helically symmetric (QH) configurations of [27].

Figure 1. Refer to the following caption and surrounding text.

Figure 1. Second order convergence observed for the difference between the analytical estimate $J_2^{\prime}(\mathbf x)$ and the centered finite difference estimate $\Delta J_2/\Delta x$ employed in equation (28). The boundary surfaces are the QA and QH configurations of [27] and the coils consist of three curves per half field period with a major radius of 1 m and a minor radius of 0.5 m.

Standard image High-resolution image

We then perform a convergence test on the combined objective function J. This is done to ensure that the implementation of finite differences in the derivatives of J1 and the addition operation performed in equation (27a ) still allows the gradient of J to be estimated accurately. For this purpose, we apply the centered finite difference formula in equation (28) to J by replacing J2 with J and $\mathbf x$ with $\mathbf x_{\text{coils}}$ or $\mathbf x_{\text{surface}}$. For comparison, we also estimate the gradients using a forward finite difference formula

Equation (29)

and verify both first and second-order convergence using forward and centered finite differences, respectively. We show in figure 2 the root mean square (RMS) of the difference between the gradient vector computed using one of equations (28) and (29) and the gradient vector returned by SIMSOPT, both for the precise QA and QH cases. The expected first and second-order convergence is found both for the gradient with respect to $\mathbf x_{\text{coils}}$ and $\mathbf x_{\text{surface}}$.

Figure 2. Refer to the following caption and surrounding text.

Figure 2. First-order (forward) and second-order (centered) convergence shown using the root mean square (RMS) of the difference between the gradient vector computed using one of equations (28) and (29) and the gradient vector returned by SIMSOPT, both for the precise QA and QH cases.

Standard image High-resolution image

4. Numerical Results

We now show the results found using the single-stage approach proposed here by adding it as a third step in the stellarator optimization process. Namely, we first run stage 1 and stage 2 optimizations where J1 and J2 are minimized sequentially. Then, we run a single-stage optimization to obtain a fixed boundary equilibrium that faithfully reproduces the magnetic field stemming from the external coils and minimizes J in equation (27a ). As we show in this section, when running a single-stage optimization, the final coil sets have similar complexities as the stage 1 and stage 2 optimizations, but the single-stage approach successfully finds coils with a resulting magnetic field with better confinement properties (quasisymmetry or quasi-isodynamicity) and closer to the obtained fixed-boundary equilibria. In this process, it is worth mentioning that, for each function evaluation, the stage 1 quantities (related to the equilibrium part) take significantly longer to evaluate than the stage 2 quantities.

We note that all numerical results presented in this work pertain to vacuum fields. However, we emphasize that our approach is readily extendable to finite beta scenarios. By considering vacuum fields first, we can employ Poincare plots as a sensitive diagnostic tool to verify the consistency of our results. This not only enables a more rigorous evaluation of our method but also provides a solid foundation for future applications to more complex scenarios involving finite plasma pressure.

In order to assess if the fixed boundary equilibrium faithfully reproduces the magnetic field stemming from the external coils, we create a quadratic flux minimizing surface (QFM) from the resulting coils [15] with the same volume as the fixed boundary surface S and compare it to the original equilibrium. These are surfaces that minimize

Equation (30)

without constraints on the angles that parametrize the surface, Vol(S) is the total volume within the fixed-boundary surface S and $\text{Vol}(\text{QFM})$ the volume within the QFM surface. Finally, we also verify our results by comparing the QFM and fixed-boundary surfaces with Poincaré plots, which are cross-sections of the magnetic field lines traced using the Biot–Savart magnetic field from the resulting coils. It is worth noting that for vacuum fields, we have observed that running fixed-boundary VMEC inside a QFM surface results in better accuracy than running free-boundary VMEC, based on comparisons of flux surface shapes to Poincare plots. Consequently, our analysis of the final configurations is based on QFM surfaces instead of free-boundary VMEC.

4.1. Four-coil stellarator

We first apply this method to find a set of four simplified coils, two circular coils at the top and bottom of the device, and two interlinking coils. Similar configurations include Columbia Non-neutral Torus (CNT) device [41], a stellarator experiment at Columbia University with four circular coils which are used here as the starting point for the optimization, and the Compact Stellarator with Simple Coils (CSSC) [10]. First, we perform an optimization with the top and bottom coils fixed, while the two symmetric interlinking coils are allowed to vary. Then, we perform a second optimization adding the degrees of freedom of the top coil so that it is non-circular, with the bottom coil symmetric to the top one.

As an optimization goal, we aim at a quasi-axisymmetric device with an aspect ratio A = 3.5 and mean rotational transform of ι = 0.23. As coil parameters, we let each of the independent coils have a total of $N_F = 7$ Fourier modes, the interlinking coils to have $L_{\text{max}} = 3.8$, $\kappa_{\text{max}} = 12$, $\kappa_{\text{msc}} = 12$ and the top and bottom coils to have $L_{\text{max}} = 7.0$, $\kappa_{\text{max}} = 3.5$, and $\kappa_{\text{msc}} = 4.5$ with a minimum distance between coils of 0.15. As surface parameters, we use a total of $M_\text{pol} = N_\text{tor} = 3$ surface Fourier modes.

We show in figure 3 the result of the first optimization with fixed circular top and bottom coils. The configuration associated with the stage 1 and stage 2 independent optimizations is shown in figure 3 (top left) where the residuals of the quasisymmetry objective function fQS of stage 1 is $5.3 \times 10^{-5}$, and the squared flux fQF of stage 2 is $6.3 \times 10^{-4}$. The resulting single-stage optimization is shown in figure 3 (top right) with corresponding residuals of $f_{\text{QS}} = 1.7 \times 10^{-2}$ and a squared flux of $f_{\text{QF}} = 1.6 \times 10^{-6}$. We then run VMEC in fixed-boundary mode using the QFM surfaces obtained from the stage 1 and stage 2 independent optimizations and the single-stage approach. In this case, the first yields a quasisymmetry objective function of $f_{\text{QS}} = 3.0 \times 10^{-2}$ while the second yields $f_{\text{QS}} = 1.7 \times 10^{-2}$, the same value as the optimization result. The second fQS number is smaller than the first, indicating the effectiveness of the stage-3 optimization. This shows that while the stage 1 optimization can result in very precise quasisymmetric (or quasi-isodynamic) configurations, the resulting configuration from a stage 2 optimization may not retain the same expected properties. The figure in figure 3 (lower left) shows that the minimization of the squared flux leads to an agreement between the single-stage fixed boundary equilibrium, a fixed boundary equilibrium based on the QFM surface, and the Poincaré plots. The contours of constant magnetic field at the s = 0.495 surface resulting from a VMEC run based on the QFM surface obtained using the final coil configuration in Boozer coordinates, which assess the degree of quasisymmetry associated with this configuration, and its rotational transform profile, are shown in figure 3 (middle and bottom right).

Figure 3. Refer to the following caption and surrounding text.

Figure 3. Optimization with circular top and bottom coils. Top: standard stellarator optimization approach where stage 1 and stage 2 optimizations were performed sequentially (left) and the single-stage optimization result (right). Lower Left: Superposition of magnetic surfaces at constant cylindrical toroidal angle φ of the QFM and the final single-stage equilibrium, as well as the Poincaré plot resulting from tracing magnetic field lines in the obtained coils. Middle Right: Contours of constant magnetic field strength on a surface at s = 0.495 in Boozer coordinates $(\theta, \varphi)$. Bottom Right: profile of rotational transform ι.

Standard image High-resolution image

We show in figure 4 the result of the second optimization with free top and bottom coils. The configuration associated with the stage 1 and stage 2 independent optimizations is shown in figure 4 (top left) where the residuals of the quasisymmetry objective function fQS of stage 1 is $5.3 \times 10^{-5}$, and the squared flux fQF of stage 2 is $8.7 \times 10^{-5}$. The resulting single-stage optimization is shown in figure 4 (top right) with corresponding residuals of $f_{\text{QS}} = 4.9 \times 10^{-3}$ and a squared flux of $f_{\text{QF}} = 9.3 \times 10^{-6}$. We then run VMEC in fixed-boundary mode using the QFM surfaces obtained from the stage 1 and stage 2 independent optimizations and the single-stage approach. In this case, the first yields a quasisymmetry objective function of $f_{\text{QS}} = 1.8 \times 10^{-2}$ while the second yields $f_{\text{QS}} = 5.0 \times 10^{-3}$. The second value is smaller than the former, again showing that the combined plasma-and-coils optimization provides a better result than the traditional two-stage method. The figure in figure 4 (lower left) shows that the minimization of the squared flux leads to an agreement between the single-stage fixed boundary equilibrium, a fixed boundary equilibrium based on the QFM surface, and the Poincaré plots. The contours of constant magnetic field at the s = 0.495 surface in Boozer coordinates, which assess the degree of quasisymmetry associated with this configuration, and its rotational transform profile are shown in figure 4 (middle and bottom right).

Figure 4. Refer to the following caption and surrounding text.

Figure 4. Optimization with free top and bottom coils. Top: standard stellarator optimization approach where stage 1 and stage 2 optimizations were performed sequentially (left) and the single-stage optimization result (right). Lower Left: Superposition of magnetic surfaces at constant cylindrical toroidal angle φ of the QFM and the final single-stage equilibrium, as well as the Poincaré plot resulting from tracing magnetic field lines in the obtained coils. Middle Right: Contours of constant magnetic field strength on a surface at s = 0.495 in Boozer coordinates $(\theta, \varphi)$. Bottom Right: profile of rotational transform ι.

Standard image High-resolution image

Comparison of figures 3 and 4 reveals that the degree of quasisymmetry can be significantly improved by allowing for variation in the Helmholtz coils. However, this comes at the cost of increased complexity in the coil shapes, as demonstrated by the top row of figure 4.

4.2. Quasi-axisymmetry

We now optimize a three-field period quasi-axisymmetric stellarator with two coils per half-field period. As an optimization goal, we aim at a quasi-axisymmetric device with an aspect ratio A = 6.0 and mean rotational transform of ι = 0.42. As coil parameters, we let each of the independent coils have a total of $N_F = 16$ Fourier modes, each coil to have $L_{\text{max}} = 5.5$, $\kappa_{\text{max}} = 5.0$, and $\kappa_{\text{msc}} = 5.0$ with a minimum distance between coils of 0.1. The configuration associated with the stage 1 and stage 2 independent optimizations is shown in figure 5 (top left) where the residuals of the quasisymmetry objective function fQS of stage 1 is $2.3 \times 10^{-4}$, and the squared flux fQF of stage 2 is $9.8 \times 10^{-5}$. The resulting single-stage optimization is shown in figure 5 (top right) with corresponding residuals of $f_{\text{QS}} = 9.3 \times 10^{-3}$ and a squared flux of $f_{\text{QF}} = 7.9 \times 10^{-6}$. We then run VMEC in fixed-boundary mode using the QFM surfaces obtained from the stage 1 and stage 2 independent optimizations and the single-stage approach. In this case, the first yields a quasisymmetry objective function of $f_{\text{QS}} = 1.7 \times 10^{-2}$ while the second yields $f_{\text{QS}} = 9.1 \times 10^{-3}$. These values show that once again, better quasisymmetry is obtained using the combined plasma-and-coils optimization compared to consecutive stage 1 and stage 2 optimization. The figure in figure 5 (lower left) shows that the minimization of the squared flux leads to an agreement between the single-stage fixed boundary equilibrium, a fixed boundary equilibrium based on the QFM surface, and the Poincaré plots. The contours of constant magnetic field at the s = 0.495 surface in Boozer coordinates, which assess the degree of quasisymmetry associated with this configuration, and its rotational transform profile are shown in figure 5 (middle and bottom right).

Figure 5. Refer to the following caption and surrounding text.

Figure 5. Quasi-axisymmetric stellarator with three field periods and two coils per half-field period. Top: standard stellarator optimization approach where stage 1 and stage 2 optimizations were performed sequentially (left) and the single-stage optimization result (right). Lower Left: Superposition of magnetic surfaces at constant cylindrical toroidal angle φ of the QFM and the final single-stage equilibrium, as well as the Poincaré plot resulting from tracing magnetic field lines in the obtained coils. Middle Right: Contours of constant magnetic field strength on a surface at s = 0.495 in Boozer coordinates $(\theta, \varphi)$. Bottom Right: profile of rotational transform ι.

Standard image High-resolution image

4.3. Quasi-Helical Symmetry

We present a systematic optimization of a four-field period quasi-helical symmetric stellarator. The goal of the optimization was to achieve a device with an aspect ratio of A = 7.0 that displays quasi-helical symmetry. To achieve this, we utilized 3 independent coils, each of which contained $N_F = 16$ Fourier modes. The maximum length of each coil was set at $L_{\text{max}} = 3.5$ while the maximum value of the shaping parameter κ was set at $\kappa_{\text{max}} = 10.0$, and $\kappa_{\text{msc}} = 10.0$ with a minimum distance between coils of 0.08. The results of stage 1 and stage 2 consecutive optimizations are displayed in figure 6 (top left), where the residuals of the quasisymmetry objective function fQS is shown to be $2.0 \times 10^{-3}$ and the squared flux fQF is $3.1 \times 10^{-5}$. The final single-stage optimization is shown in figure 6 (top right) with corresponding residuals of $f_{\text{QS}} = 1.3 \times 10^{-2}$ and a squared flux of $f_{\text{QF}} = 8.3 \times 10^{-6}$. We then run VMEC in fixed-boundary mode using the QFM surfaces obtained from the stage 1 and stage 2 consecutive optimizations and the single-stage approach. In this case, the first yields a quasisymmetry objective function of $f_{\text{QS}} = 5.3 \times 10^{-2}$ while the second yields $f_{\text{QS}} = 2.0 \times 10^{-2}$. As demonstrated in figure 6 (lower left), the minimization of the squared flux results in consistency between the single-stage fixed boundary equilibrium, a fixed boundary equilibrium based on the QFM surface, and the Poincaré plots. Additionally, the contours of constant magnetic field at the s = 0.495 surface in Boozer coordinates, which assess the degree of quasisymmetry in the configuration, and its rotational transform profile are displayed in figure 6 (middle and bottom right). This optimization provides an important contribution to the field of stellarator optimization. By systematically obtaining coils for a quasi-helical symmetric stellarator, we have taken a step towards improving the performance and stability of these devices in fusion energy applications.

Figure 6. Refer to the following caption and surrounding text.

Figure 6. Quasi-helical symmetric stellarator with four field periods and three coils per half-field period. Top: standard stellarator optimization approach where stage 1 and stage 2 optimizations were performed sequentially (left) and the single-stage optimization result (right). Lower Left: Superposition of magnetic surfaces at constant cylindrical toroidal angle φ of the QFM and the final single-stage equilibrium, as well as the Poincaré plot resulting from tracing magnetic field lines in the obtained coils. Middle Right: Contours of constant magnetic field strength on a surface at s = 0.495 in Boozer coordinates $(\theta, \varphi)$. Bottom Right: profile of rotational transform ι.

Standard image High-resolution image

4.4. Quasi-isodynamic

We now present the optimization of a one-field period quasi-isodynamic stellarator with an aspect ratio of A = 7.0. To achieve this goal, we used eight independent coils with a total of $N_F = 16$ Fourier modes, each coil with a maximum length of $L_{\text{max}} = 5.5$, a maximum value of $\kappa_{\text{max}} = 10.0$, and a minimum distance between coils of 0.12. The results of our optimization are displayed in figure 7 (top), where we show the configuration obtained from stage 1 and stage 2 independent optimizations. The residuals of the quasi-isodynamic objective function fQI in stage 1 were $2.4 \times 10^{-3}$, while the residuals of the squared flux fQF in stage 2 were $2.9 \times 10^{-6}$. In the single-stage optimization shown in figure 7 (top right), the residuals of the quasi-isodynamic objective function fQI remained mostly unchanged at $2.9 \times 10^{-3}$, while the squared flux improved to $4.4 \times 10^{-7}$. We then run VMEC in fixed-boundary mode using the QFM surfaces obtained from the stage 1 and stage 2 independent optimizations and the single-stage approach. Using the stage-2 QFM surface as a boundary, fixed-boundary VMEC failed to converge to a reasonable force residual. However using the single-stage QFM surface as a boundary, VMEC converged and yields $f_{\text{QI}} = 3.2\times10^{-3}$. Thus, the traditional two-stage approach did not produce a usable result, whereas the single-stage method did. The figures in figure 7 provide further insight into the effectiveness of our optimization. On the lower left, we see that the reduction in the squared flux results in an agreement between the single-stage fixed boundary equilibrium, a fixed boundary equilibrium based on the QFM surface, and the Poincaré plots. On the right, we display the contours of constant magnetic field at the s = 0.495 surface in Boozer coordinates, which show the quasi-isodynamic character of this configuration, and its rotational transform profile.

Figure 7. Refer to the following caption and surrounding text.

Figure 7. Quasi-isodynamic stellarator with one field period and eight coils per half-field period. Top: standard stellarator optimization approach where stage 1 and stage 2 optimizations were performed sequentially (left) and the single-stage optimization result (right). Lower Left: Superposition of magnetic surfaces at constant cylindrical toroidal angle φ of the QFM and the final single-stage equilibrium, as well as the Poincaré plot resulting from tracing magnetic field lines in the obtained coils. Middle Right: Contours of constant magnetic field strength on a surface at s = 0.495 in Boozer coordinates $(\theta, \varphi)$. Bottom Right: profile of rotational transform ι.

Standard image High-resolution image

5. Conclusions

The proposed single-stage optimization of both physics and engineering goals in coil systems provides a critical leap forward in the advancement of plasma physics and magnetic confinement. Our approach, which relies on fixed boundary equilibria, offers a significantly more efficient and versatile solution compared to previous numerical implementations based on free-boundary calculations. This is evident from the numerical examples presented in this paper, which demonstrate the effectiveness of the proposed method in obtaining various types of equilibria for stellarators with a reduced number of coils.

Our method directly balances plasma physics and coil engineering objectives by introducing a quadratic flux term in the objective function, resulting in consistency between the plasma shape and coil shapes. We combine finite difference derivatives of the MHD equilibrium with analytic derivatives of the coils, reducing the number of finite difference steps required. This approach is applicable to a wide range of vacuum and finite plasma pressure stellarator equilibria, including codes that do not yet have free boundary functionality, such as GVEC. Furthermore, we require only one surface evaluation of the magnetic field from coils per optimization iteration, reducing computational time compared to volumetric evaluations used in other methods. Compared to the free-boundary single-stage approach, our method is more efficient and adaptable.

We plan to extend our proposed method to investigate plasmas with finite plasma pressure. This will be critical to understanding the behavior of plasma in magnetic confinement systems and will provide valuable information to design next-generation fusion reactors. Fortunately, the only required modifications with respect to the present work are the inclusion of a target magnetic field in the quadratic flux term in the objective function, calculated using the virtual casing principle [42] at each optimization step, and a single free-boundary MHD calculation at the end of the optimization (instead of the QFM surface approach used here) to assess the results. We also mention that, for the case of finite-beta plasmas, the profiles of pressure and current (or ι) can be added as degrees of freedom, therefore extending the scope of the current method.

Acknowledgments

We thank the SIMSOPT team for their invaluable contributions. R J is supported by the Portuguese FCT—Fundação para a Ciência e Tecnologia, under Grant 2021.02213.CEECIND. The optimization studies were carried out using the EUROfusion Marconi supercomputer facility. This work has been carried out within the framework of the EUROfusion Consortium, funded by the European Union via the Euratom Research and Training Programme (Grant Agreement No 101052200 — EUROfusion). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Commission. Neither the European Union nor the European Commission can be held responsible for them. IST activities also received financial support from FCT through Projects UIDB/50010/2020 and UIDP/50010/2020. This work was supported by a Grant from the Simons Foundation (560651, ML).

Data availability statement

The data that support the findings of this study are openly available in Zenodo at https://doi.org/10.5281/zenodo.7655077, reference number 7655077, and on GitHub at https://github.com/rogeriojorge/single_stage_optimization.

Please wait… references are loading.
10.1088/1361-6587/acd957