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 [3–7], which often demand many iterations between an equilibrium solution, or these can only be used with vacuum configurations [8–12]. 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 [17–19]. 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
where is the plasma current density, the equilibrium magnetic field satisfying 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 , the plasma frequency, and larger than the electron and ion gyrofrequencies , and where typical length scales L are longer than the Debye length and the electron and ion gyroradii [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
where V is the integration volume and is the ratio of specific heats.
We run VMEC in fixed boundary mode. In this case, the outermost surface , also called last closed flux surface, is fixed and used as a boundary condition. The boundary surface S is specified by its Fourier amplitudes in cylindrical coordinates
and
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 is constant. We denote by ψb the value of ψ at the plasma boundary and the normalized toroidal flux. The degrees of freedom for the surface shapes are then
We mention two important properties of the surface S that we use throughout this work, namely its normal vector and its aspect ratio A defined as
where is the toroidal average of the area 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 has the following symmetry
where 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 . Note that is not required to have any particular symmetry and this symmetry is only dependent on the surface degrees of freedom 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]
where if is expressed in Boozer coordinates and seek the minimization of the objective function fQS
where is times the poloidal current outside the surface, is times the toroidal current inside the surface, ι is the rotational transform and is a flux surface average. The sum is over a set of flux surfaces where ψb is the toroidal flux at the boundary and a uniform grid is used. The quantities , , B, G and I are computed using VMEC, while we set
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
where is the target magnetic field, α is a fieldline label that in Boozer coordinates can be written as , 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 defined in [31] and the mirror ratio Δ defined as
The objective function for the equilibrium magnetic field J1, when targeting quasisymmetry, is then written as
The target aspect ratio Atarget is set to 6 for quasi-axisymmetric stellarators and to 8 for quasi-helically symmetric stellarators. The function places a constraint on the rotational transform profile in order to restrict quasi-axisymmetric configurations to not become axisymmetric. We therefore take 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
The maximum allowed mirror ratio is chosen to be and the maximum allowed elongation .
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 . 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
where Ii is the current in the ith coil , is the differential line element, θ is an angle-like coordinate that parametrizes the coil curve and is the displacement vector between the evaluated point on the surface and the differential element. Each coil i is modeled as a periodic function
where
yielding a total of degrees of freedom per coil. The degrees of freedom for the coil shapes are then
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 in order to minimize the field error, i.e. the magnitude of the normal component 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
where , and . If the field induced by the coils coincides with the target equilibrium field , then . However, minimizing 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
where Li and κi are the length and curvature of the coil i, respectively, and 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 and , respectively, and the minimum distance between coils to dmin. The regularization term 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
The objective function for the coils J2 is then written as
where are the scalar weights associated with the regularization terms gi .
The optimization problem and total objective function J can then be formulated as
with a scalar weight associated with J2. The degrees of freedom varied during the optimization are . The objective function, its gradients, as well as its CPU parallelization, are carried out using the SIMSOPT code [38]. The constraint is handled by the use of VMEC in fixed-boundary mode, while the constraint is handled by removing the term 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 is computed using a mix of numerical and analytical derivatives. In particular, the Jacobian is computed using forward finite differences, , and both and are computed analytically. The use of analytical derivatives allows significant efficiency in the optimization process as the number of degrees of freedom is typically significantly larger than . As an example, while a surface with poloidal and toroidal modes has 49 degrees of freedom (length of ), a system with independent coils and Fourier modes per coil has a total of 396 degrees of freedom (length of ). 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 . For this purpose, we estimate using a finite-difference approach
where is a randomized array with the same size as and with values between 0 and 1. We then compare it to the analytical estimate provided by the code for several values of and assess its convergence.
This is shown in figure 1 where second-order convergence 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].
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 with or . For comparison, we also estimate the gradients using a forward finite difference formula
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 and .
Download figure:
Standard image High-resolution image4. 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
without constraints on the angles that parametrize the surface, Vol(S) is the total volume within the fixed-boundary surface S and 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 Fourier modes, the interlinking coils to have , , and the top and bottom coils to have , , and with a minimum distance between coils of 0.15. As surface parameters, we use a total of 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 , and the squared flux fQF of stage 2 is . The resulting single-stage optimization is shown in figure 3 (top right) with corresponding residuals of and a squared flux of . 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 while the second yields , 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).
Download figure:
Standard image High-resolution imageWe 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 , and the squared flux fQF of stage 2 is . The resulting single-stage optimization is shown in figure 4 (top right) with corresponding residuals of and a squared flux of . 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 while the second yields . 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).
Download figure:
Standard image High-resolution imageComparison 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 Fourier modes, each coil to have , , and 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 , and the squared flux fQF of stage 2 is . The resulting single-stage optimization is shown in figure 5 (top right) with corresponding residuals of and a squared flux of . 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 while the second yields . 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).
Download figure:
Standard image High-resolution image4.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 Fourier modes. The maximum length of each coil was set at while the maximum value of the shaping parameter κ was set at , and 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 and the squared flux fQF is . The final single-stage optimization is shown in figure 6 (top right) with corresponding residuals of and a squared flux of . 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 while the second yields . 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.
Download figure:
Standard image High-resolution image4.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 Fourier modes, each coil with a maximum length of , a maximum value of , 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 , while the residuals of the squared flux fQF in stage 2 were . In the single-stage optimization shown in figure 7 (top right), the residuals of the quasi-isodynamic objective function fQI remained mostly unchanged at , while the squared flux improved to . 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 . 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.
Download figure:
Standard image High-resolution image5. 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.