How well can VMEC predict the initial saturation of external kink modes in near circular tokamaks and $l=2$ stellarators?
Rohan Ramasamy, Matthias Hoelzl, Sophia Henneberg, Erika Strumberger,, Karl Lackner, Sibylle G\"unter

TL;DR
This study evaluates VMEC's ability to predict the initial saturation of external kink modes in near-circular tokamaks and $l=2$ stellarators, highlighting its limitations and potential for future nonlinear MHD modeling.
Contribution
The paper investigates VMEC's applicability to nonlinear MHD effects and identifies the constraints needed for accurate physical modeling of kink mode saturation.
Findings
VMEC does not converge to a single solution with increasing spectral resolution.
Saturated kink states decrease with increasing external rotational transform, but bifurcated states appear.
VMEC captures expected toroidal mode coupling and aligns with JOREK in energy redistribution.
Abstract
The equilibrium code, VMEC, is used to study external kinks in low tokamaks and stellarators. The applicability of the code when modelling nonlinear MHD effects is explored in an attempt to understand and predict how the initial saturation of the MHD mode depends on the external rotational transform. It is shown that helicity preserving, free boundary VMEC computations do not converge to a single perturbed solution with increasing spectral resolution. Additional constraints are therefore applied to narrow down the numerical resolution parameters appropriate for physical scans. The dependence of the modelled (4, 1) kink mode on the external rotational transform and field periodicity is then studied. While saturated states can be identified which decrease in amplitude with increasing external rotational transform, bifurcated states are found that contradict this trend. It…
| Parameter | Value | Profile |
|---|---|---|
| Linear | ||
| Linear | ||
| Constant | ||
| Sigmoid function | ||
| Constant | ||
| Sigmoid function | ||
| Spitzer | ||
| Constant | ||
| Spitzer-like | ||
| Constant | ||
| — | ||
| — | ||
| — |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMagnetic confinement fusion research · Particle accelerators and beam dynamics · Ionosphere and magnetosphere dynamics
How well can VMEC predict the initial saturation of external kink modes in near circular tokamaks and stellarators?
R Ramasamy
Max-Planck Institut für Plasmaphysik, Boltzmannstraße 2, 85748 Garching bei München, Germany
M Hoelzl
Max-Planck Institut für Plasmaphysik, Boltzmannstraße 2, 85748 Garching bei München, Germany
S Henneberg
Max-Planck Institut für Plasmaphysik, Wendelsteinstrasse 1, 17491 Greifswald, Germany
E Strumberger
Max-Planck Institut für Plasmaphysik, Boltzmannstraße 2, 85748 Garching bei München, Germany
K Lackner
Max-Planck Institut für Plasmaphysik, Boltzmannstraße 2, 85748 Garching bei München, Germany
S Günter
Max-Planck Institut für Plasmaphysik, Boltzmannstraße 2, 85748 Garching bei München, Germany
Abstract
The equilibrium code, VMEC, is used to study external kinks in low tokamaks and stellarators. The applicability of the code when modelling nonlinear MHD effects is explored in an attempt to understand and predict how the initial saturation of the MHD mode depends on the external rotational transform. It is shown that helicity preserving, free boundary VMEC computations do not converge to a single perturbed solution with increasing spectral resolution. Additional constraints are therefore applied to narrow down the numerical resolution parameters appropriate for physical scans. The dependence of the modelled (4, 1) kink mode on the external rotational transform and field periodicity is then studied. While saturated states can be identified which decrease in amplitude with increasing external rotational transform, bifurcated states are found that contradict this trend. It was therefore not possible to use VMEC alone to identify the physical dependency of the nonlinear mode amplitude on the magnetic geometry. The accuracy of the VMEC solutions is nevertheless demonstrated by showing that the expected toroidal mode coupling is captured in the magnetic energy spectrum for stellarator cases. Comparing with the initial value code, JOREK, the predicted redistribution of poloidal magnetic energy from the vacuum to plasma region in VMEC is shown to be physical. This work is a first step towards using VMEC to study MHD modes in stellarator geometry.
I Introduction
The VMEC free-boundary code HirshmanRij1986 has been proposed as a computationally efficient solution to nonlinear MHD problems in the ideal MHD limit. Though VMEC and other equilibrium codes do not evolve the MHD equations dynamically, it has been proposed that perturbed equilibrium states can be found which correspond to the final saturated state of a MHD perturbationcooper2010tokamak . This is considered possible if the saturated state, referred to as the perturbed solution, is appropriately constrained to have a physically meaningful link to the initial unperturbed equilibrium from which the dynamics evolve turnbull2012plasma ; turnbull2013comparisons .
Equilibrium codes have been used successfully to study externally driven problems, such as resonant magnetic perturbations (RMPs) chapman2014three ; king2015experimental , as well as to study ideal MHD instabilities in a variety of tokamak scenarios graves2012magnetohydrodynamic ; strumberger2014mhd ; cooper2016saturated ; kleiner2019current . Perturbed solutions of both internal, and external ideal MHD modes have been validated against other linear, and nonlinear MHD approachesbrunetti2014ideal ; ramasamy2022 . In many of these studies, VMEC is used to analyse MHD instabilities that have been observed experimentally, such that there is a strong understanding of what the expected perturbed solution should be.
Regarding stellarators, only a few studies of the nonlinear saturation of MHD modes using such an equilibrium approach existcooper2018stellarator ; garabedian2006three . In Ref. cooper2018stellarator, , periodicity breaking modes in a HELIAS configuration were found to lead to much milder edge distortions than those observed in similar tokamak studies, even at high plasma – the ratio of plasma and magnetic pressure. This is one of the few applications in the literature, where it has been attempted to use VMEC to predict the ideal saturation of a MHD mode that has not been experimentally observed. Though these results did not conserve helicity, or enforce physical constraints that link the unperturbed equilibria and saturated states explicitly, they have motivated discussion regarding the use of equilibrium codes to understand nonlinear MHD phenomena in stellarators, informing their design and optimisation.
While the above results are encouraging, it is known that VMEC can produce apparently unphysical results when compared with linear MHD codesturnbull2013comparisons . Rigorous numerical resolution scans from RMP studies also identify that current-preserving, free boundary VMEC computations do not converge to a single well-defined solution for externally driven problemslopez2020validation .
If VMEC is to be applied to optimise and design stellarators for good nonlinear MHD properties, a rigorous understanding of the applicability of the equilibrium approach and its limits in modelling nonlinear MHD activity must be obtained. It is known that fixing the profile provides a physical link between the initial and perturbed solutions as the conservation of helicity is enforced. While this constraint is necessary, it is not sufficient to demonstrate that the obtained numerical equilibria are physically meaningful. Additional arguments based on linear and nonlinear simulation results, as well as experimental comparisons are often needed in order to defend the results of the equilibrium approach.
The main ambition of this work is to understand how far VMEC can be used to study the nonlinear saturation of MHD modes, relying as little as possible on other more expensive nonlinear computations or experimental observations to justify results. In such a way, the authors would like to understand to what extent VMEC can be used to predict the nonlinear saturation, rather than act as a diagnostic that complements more expensive numerical or experimental studies.
In this paper, nonlinearly perturbed states are computed for tokamaks, and stellarators with near circular, elliptical cross section. While these devices are much simpler than the optimised configurations that are of interest to the fusion research community at the moment, they provide a reasonable test bed for understanding the numerical methods involved, and how to appropriately apply them. This study also aims to explore a physics question — how does the saturated amplitude, and the nonlinear mode structure of ideal MHD instabilities vary as a function of the applied external rotational transform and field periodicity, denoted by and , respectively?
The remainder of this paper is outlined as follows. The method for finding nonlinearly perturbed states in VMEC, and the parameter space in which free boundary perturbed VMEC equilibria are computed is discussed in Section II. In Section III, the resolution requirements are studied, identifying that the saturation amplitude of the perturbed state can depend on the spectral resolution of the computation, and that current sheets form at the plasma boundary. These results are consistent with previous studies that suggest the saturation of an ideal kink instability requires some localised resistivity to prevent current sheets from growing indefinitely large arber1999unstable .
The numerical convergence properties presented in Section III introduce a challenge for resolving the saturated mode. Multiple, equally valid solutions for the saturated MHD perturbation exist — how does one differentiate between these solutions to find the most physical one? Further constraints, such as incompressibility, which is an expected condition for high aspect ratio external kink modes kadomtsev1973 , and the increase in toroidal plasma current — the spike — from the initial to perturbed equilibrium are used to identify the resolution parameters which lead to the most physically meaningful saturated mode. The Fourier content of induced current sheets at the plasma boundary is also considered as a constraint on the perturbed solutions.
The above indicators are used a posteriori, after the VMEC computations are converged, to narrow down the numerical parameter space in VMEC sufficiently to proceed with scans of the physical parameters governing the external kink mode — namely, the profile and . In Section IV, the dependence of the nonlinearly saturated mode structure on these parameters is evaluated. In most results, the nonlinear perturbation amplitude follows the linear growth rate of the initial ideal MHD instability. However, within the narrow window of numerical parameters that are considered physically reasonable, deviations are also observed in some solutions which are thought to be alternative bifurcated states of the equilibrium. In such a way, while physically meaningful saturated states could be obtained, the authors were unable to identify the physical dependencies of the mode conclusively using VMEC alone.
To further interrogate the physical accuracy of the modes observed in VMEC, the nonlinear magnetic energy spectrum is considered in Section V. The expected mode coupling of the MHD instability is identified in the stellarator cases. It is shown that the stellarator perturbations are dominated by toroidal harmonics that are within the toroidal mode family of the instability. In addition, it is shown that the magnetic energy inside the simulation domain increases, despite being the dominant contributor to the instability.
The analysis in Section V presents us with a further question — why does the magnetic energy increase? To answer this question, observations from VMEC computations are compared with those from a free boundary tokamak simulation using the initial value code, JOREK, in Section VI. The results of the initial value code are used to demonstrate that the increase in the magnetic energy in VMEC is physically reasonable. In such a way, VMEC captures many aspects of the energy dynamics accurately. The implications of the results of this study are discussed in Section VII with an outlook for future work.
II Computation of perturbed free boundary VMEC equilibria
The algorithm implemented in VMEC is well documented in Ref. hirshman1983steepest, , and the methods applied in this paper follow the approach of previous studies, which have used VMEC to compute nonlinearly perturbed equilibrium states strumberger2014mhd ; kleiner2019current . A brief review of this approach follows in this Section.
The ideal MHD potential energy, , can be written as
[TABLE]
where is the magnetic field strength, is the plasma pressure, and and are the vacuum magnetic permeability, and heat capacity ratio, respectively. VMEC minimises of the plasma and vacuum region up to a prescribed level of accuracy in the ideal MHD force balance equation
[TABLE]
where , and are the current, magnetic field and plasma pressure, respectively.
The MHD energy can be further minimised by physical MHD perturbations if the initially targeted equilibrium is ideal MHD unstable. In this case, a new equilibrium is obtained, which is physically interpreted as the nonlinearly saturated MHD state produced by the ideal MHD equations, which govern the dynamics. It is important to acknowledge that the hydromagnetostatic equations used in VMEC cannot represent the instantaneous dynamics of the MHD mode, during its growth and saturation. The outcome of the overall dynamics can however be studied by considering the change in equilibrium quantities between the initial and saturated states, as attempted in Section V.
The interpretation of the perturbed equilibrium as a saturated state can only be justified for the study of the ideal saturation of MHD modes, such that effects leading to internal reconnection, and the breaking of the internal nested flux surfaces in VMEC can be neglected. For this reason, the focus of this study is on the initial ideal saturation of the external kink.
When using VMEC to study the long term behaviour of MHD instabilities, the applicability of the method comes into question. A convincing argument for the long term stability of the perturbed solution is necessary to justify these applications. Such arguments can be based on the use of external plasma control, such as in the case of RMPs, or analysis to show the perturbed solution is stable to further non-ideal MHD perturbations.
To study external modes using VMEC, the plasma boundary must be allowed to deform. This requires a free boundary solution, which in turn requires a representation of the externally generated vacuum magnetic field. The virtual casing principle shafranov1972use , which has been implemented in EXTENDER drevlak2005pies , can be used together with the NESCOIL merkel1987solution and MAKEGRID codes to compute the magnetic field from external currents. All VMEC results presented in this study are free boundary, using this technique to generate the vacuum field.
As mentioned in Section I, helicity conservation is an appropriate constraint for studying ideal MHD perturbations. For this reason, the perturbed equilibria studied in this paper have been computed fixing the profile to the form of the initial equilibrium during the computation. This enforces that the helicity of the plasma is conservedturnbull2012plasma ; ramasamy2022 . Finding perturbed states that constrain instead of the toroidal current density can be more challenging, but is necessary to ensure a physical link between the initial and perturbed equilibrium state.
II.1 VMEC convergence behaviour
The different convergence behaviours of the radial force residual, , in VMEC are shown in Figure 1. In this work, the tolerance in the force residuals for convergence, , is set to be less than . Figure 1 (a) shows an equilibrium that converges successfully to an unperturbed solution. In this unperturbed case, the force residual decreases monotonically, as is expected with the minimisation of the energy.
For the perturbed cases in Figure 1 (b) and (c), it can be seen that the force residuals increase, as the instability is found and the force balance of the equilibrium is lost. Note that this often occurs at a relatively low residual value, below , which would normally be considered reasonably converged in equilibrium studies. If a new perturbed state is found, the residuals must fall as the new perturbed state is reached, leading to the behaviour in Figure 1 (c). Similar observations of the force residual have been observed in studies of magnetic island formation using NSTAB garabedian2006three .
In many cases however, the force residuals continue to rise, until the VMEC algorithm detects the unfavourable behaviour. The equilibrium is then reset to an earlier stage, and the numerical time step parameter is decreased in an attempt to improve convergence. Often the smaller numerical time step does not lead to a converged solution and the process repeats indefinitely, as shown in Figure 1 (b). Though the residuals still remain relatively low compared to normal equilibrium studies, the results produced with this behaviour are either considered to be numerical, or disruptive MHD instabilities that cannot be modelled with VMEC. The perturbed states reported in this paper all have the convergence behaviour shown in Figure 1 (c).
II.2 Equilibria and scale invariance
In this study, simple tokamaks and classical stellarators were targeted at . As a result, due to the scale invariance of ideal MHD, the behaviour of the saturated modes can be assumed to be a function of the magnetic geometry alone. This means that the parameter space at is defined by the external rotational transform, , and the safety factor profile, , where is in turn dependent on and the shaping of the plasma.
To simplify the parameter space further, the initial toroidal current density, , of the considered equilibria is prescribed to have an Ohmic profile, similar to the analytic studies by Wesson wesson1978hydromagnetic
[TABLE]
where is the normalised toroidal flux, , and is a constant. For the final results shown in this paper, which constrain , the rotational transform is first determined by computing an unperturbed equilibrium with the current profile prescribed by equation 3.
All equilibria considered have a high aspect ratio, , where is the minor radius, and is the major radius. In order to determine a parameter space for finding nonlinearly perturbed states, tokamak cases were first considered, using . The elongation, , where is the maximum height of the toroidally averaged plasma boundary, defined by the boundary coefficients, above the major axis, and edge safety factor, were also varied.
Equilibria initialised with quartic current profiles were difficult to converge to a saturated state, while constraining the profile. Using cubic and quadratic profiles, saturated (4, 1) modes could be found. Figure 2 (a) shows the variation of the profile with the plasma elongation for simulations with cubic current profiles, setting . The saturated state could only be found in VMEC for . For lower values approaching a circular plasma, the convergence behaviour in Figure 1 (b) was observed.
The normalised growth rate of the (4, 1) external kink mode, , can be computed from the unperturbed equilibrium state using CASTOR3D Strumberger2016 . The growth rate is normalised by the Alfvén time, , where is the ion mass density. This accounts for variations in the magnetic field strength between equilibria. The growth rates are shown in Figure 2 (b). It can be seen that increases with decreasing . As such, it is thought that the poor convergence at low is due to the instability being too strong to reach a saturated state. Quadratic profiles were also computed, but again the saturated states did not converge well when decreasing . Scans with a higher , targeting a (5, 1) instability also failed to converge for plasmas with lower elongation. As a result of the above analysis, the tokamak and stellarator equilibria studied herein all have . The magnetic geometry is modified by varying and .
An example of the initial and perturbed equilibria for the , stellarator case with is shown in Figure 3. The imposed vertical shaping to get has modified the initial equilibrium from the typical rotating ellipse expected for stellarators. When compared with the initial equilibrium, the perturbed solution has a clear (4, 1) external kink deformation. It has been confirmed that all perturbed solutions presented in this work are dominated by such (4, 1) kink perturbations, as expected.
III Resolution scans
Before proceeding to scans of the physical parameters, and , it is important to understand the influence of resolution parameters on the perturbed equilibria that are being considered. Resolution scans of the normalised plasma boundary displacement, plasma current spike and plasma incompressibility are carried out in Section III.1. Analysis of these global quantities helps to isolate the numerical parameter space where physically meaningful solutions are expected. In Section III.2, the dependence of localised current sheets at the plasma boundary on numerical parameters is studied.
III.1 Analysis of global quantities
The normalised Fourier decomposed, perpendicular plasma displacement, , is computed in straight field line coordinates using a similar method to previous studies kleiner2018free ; strumberger2014mhd . Figure 4 shows for a stellarator case with , , and two fold periodicity. It can be seen that the Fourier displacement is dominated by the , Fourier component. The poloidal and toroidal sidebands are below of the dominant mode, as expected for an instability in a low , high aspect ratio stellarator, where poloidal and toroidal mode coupling should be limited. As a result, the , Fourier component alone, , is used as a measure of the mode amplitude and its variation with resolution parameters.
Figure 5 (a-c) show as a function of the radial, , toroidal, and poloidal, , resolution in VMEC. It is important to note that, for stellarator cases, the modelled (4, 1) external kink mode in this study breaks the periodicity of the device. In order to observe this mode, it is necessary to include all toroidal harmonics in the computation up to the maximum harmonic, .
Results are shown for a tokamak and stellarators with and with and in the stellarator cases. Similar to previous studies of RMPs lopez2020validation , it is found that computations do not converge to a single solution with increasing spectral resolution. While the displacement of the plasma boundary is converged at reasonable radial resolutions, the poloidal resolution is not converged for any of the simulated cases. It should be noted that higher resolution simulations were attempted but were not tractable due to high computational cost, leading to convergence difficulties.
In Ref.lopez2020validation, , it was argued that this could be due to the high poloidal resolution required in order to resolve the resonant poloidal mode number at the edge. The implied contributions to the saturated mode structure from the higher poloidal harmonics is plausible, given that modes are required to resolve the resonant poloidal mode of a given toroidal mode number. In order to confirm that the solution converges when the resonant harmonic is included, computations using are shown in Figure 5 (c). At this lower toroidal resolution, the computation converges at approximately , soon after the resonant mode is passed.
In addition to this observation, the toroidal resolution requirements increase with , such that edge displacements could not be converged for the case. This is likely due to higher toroidal components of the mode as a result of the mode coupling produced by the components of the background vacuum magnetic field.
The above observations present a challenge to the use of the VMEC equilibrium approach for physics studies — all of the above equilibria are valid perturbed equilibrium states that could correspond to a saturated ideal MHD mode, so how does one determine the numerical resolution which is most representative of the saturated state produced by the ideal MHD dynamics?
To address this question, additional physical constraints need to be applied to the equilibrium solution. In this study, additional constraints have not been added to the convergence algorithm in VMEC; rather, they are used to determine the converged equilibria which are the most physically relevant. In such a way, these constraints are not used to modify the VMEC convergence algorithm. Instead, the adherence of converged computations at different resolutions to these constraints is assessed a posteriori, as shown in Figure 5. Two possible constraints were explored, using the change in the toroidal plasma current and plasma volume, as shown in Figure 5 (d-f) and (g-i), respectively.
The first constraint considered is to ensure that the observed plasma current spike, typically observed during ideal MHD activity, between the perturbed and unperturbed solutions is reasonable in magnitude. Given the lack of experimental data to inform this constraint, a current spike on the order of at is assumed to be reasonable. The variation of the plasma current spike observed in resolution scans is shown in Figure 5 (d-f). It can be seen that the current spike remains below for the tokamak and case when , such that results below this value are taken to be more physically meaningful.
A second constraint can be applied by noting the conserved quantities that are found in conventional high aspect ratio orderings of the dynamics in fusion devices. In particular, the incompressibility of the plasma is typically preserved to second order in the aspect ratio kadomtsev1973 . As a result for the simulated cases with , it is expected that the plasma volume will be conserved up to . The change in plasma volume is shown in Figure 5 (g-i). For the stellarator cases, the change in plasma volume is relatively small. In the tokamak case, the change in plasma volume can exceed , with a strong dependence on the poloidal resolution for . For this reason, it could be argued that solutions with a lower poloidal resolution are more reasonable.
III.2 Structure of edge current sheets
For an ideal external kink mode, current sheets are expected to form during the dynamics, wrapping around the outside of the main plasma column at the unstable resonant surfacearber1999unstable . Further, the theory in Ref. kadomtsev1973, predicts that current sheets are also induced at the plasma boundary as a response to its deformation on the ideal MHD timescale. In such a way, large localised current sheets are expected in the perturbed equilibrium solution, according to the physical model implemented in VMEC.
The growth of these current sheets, and the kink mode more generally, would normally be limited by non-ideal effects such as resistive diffusion. The omission of non-ideal effects in VMEC could be the reason that the saturated kink amplitude is observed to increase indefinitely with increasing spectral resolution. To help identify the most physically meaningful solution, it would be instructive to understand both the expected magnitude of the current sheets, and what their expected structure should be. Similar to Ref. lazerson2016verification, , the Fourier decomposed toroidal current density can be plotted near the plasma boundary, as shown in Figure 6. The Fourier contributions are normalised by the value of the , component on the magnetic axis, and only the dominant Fourier components have been plotted.
There are qualitative differences in the current sheets observed in the perturbed solutions using the different spectral resolution parameters in Figure 5. For the tokamak case, shown in Figure 6 (a), the (, ) component of the current is large at the plasma edge, as one might expect for the observed instability. In the tokamak case, shown in Figure 6 (b), the Fourier content of the current sheets is broader. Some of the additional components could correspond to a nonlinear response of internal resonant surfaces. For example, the , mode could correspond to shielding currents at the surface, which prevent internal reconnection within the plasma core.
Even if this is the case, it is unclear whether these shielding currents should be considered physical. In Appendix A, it is shown that internal (7, 2) magnetic islands can form near the plasma edge, when resistive effects are included in the nonlinear phase. It makes sense that in VMEC, the (7, 2) islands would be shielded if the resistive effects in the plasma edge region are sufficiently small, or neglected — a solution similar to Figure 6 (b) may not be precluded in this limit.
There are also unintuitive contributions to the induced current in Figure 6 (b). In particular, the , mode, which does not have a corresponding resonance within the plasma or vacuum region, is unexpected. This mode is larger than the , mode at the plasma boundary. As a physical explanation for the dominance of this contribution could not be found, it could be a numerical artifact.
A rigorous method for determining whether the structure of the current sheets in the VMEC solution are correct remains an open question. If the solutions in Figure 6 are to be differentiated in terms of their physical validity, a more detailed physical intuition of the nonlinear mode structure of the shielding currents is required. Developing this intuition is beyond the scope of the current work.
III.3 Choice of resolution parameters
While the above analysis cannot provide a definitive answer for what the correct resolution parameters are to obtain the most physically meaningful perturbations, the change in volume and current spike imply that poloidal resolutions below are likely to be most reasonable. In the scans of physical parameters which follow, , and are used, unless stated otherwise. Although the current sheets for the case may have unphysical numerical structures, this value was chosen because, for the scan of in Section IV.1, it was difficult to obtain saturated states close to the upper and lower linear stability thresholds for . This resolution was therefore necessary in order to explore the physical parameter space of the mode in Section IV.1. The toroidal resolution is and for the tokamak and cases, respectively. Results with different toroidal resolution are computed for the case, to investigate how the spectral resolution can influence the physical trend in the mode structure.
IV Physical parameter scans
IV.1 Dependence of mode amplitude on
In this section, VMEC computations are used to carry out parameter scans over the magnetic geometry defined by and . Initially, a scan of was carried out in the tokamak case. To prescribe the initial equilibria for this scan, is varied by modifying the toroidal flux of the unperturbed equilibrium, keeping the same total toroidal plasma current and initial current density profile.
The profiles are shown in Figure 7 (a). As expected for a high aspect ratio tokamak case, where is approximately uniform, the increase of the toroidal flux does not significantly distort the shape of the profile, only shifting it upwards. The flux surfaces of the perturbed solution in the plane are shown in Figure 7 (b). It can be seen that as approaches 4, the perturbed mode becomes visibly milder.
The amplitude of the dominant (4, 1) perturbation is shown in Figure 8, alongside the normalised linear growth rate of the (4, 1) external kink mode. According to nonlinear analytic theory, the saturated amplitude of the mode should follow the square of the linear growth rate eriksson1997nonlinear . This trend is not necessarily expected across the parameter space considered, because the nonlinear analytic result assumes that the mode is marginally unstable. Similar to previous studieskleiner2019current , it can be seen in Figure 8 that the general trend of the perturbation amplitude and the linear growth rate are correlated.
It should be noted that computations were also carried out at . At this point in the parameter scan, the ideal MHD mode is stabilised. Only a (3, 1) resistive tearing mode was observed in CASTOR3D. It therefore makes sense that a corresponding saturated (4, 1) mode could not be found at . As expected, perturbed states were only found in the window of linear instability of the (4, 1) external kink.
IV.2 Dependence of mode amplitude on
In Figure 8, the nonlinear amplitude of the external kink varies most around . This value of is therefore chosen for scans of stellarators with increasing external rotational transform, in order to observe the influence of on the saturated mode amplitude. In this scan, , and are once again held constant, while varying the external rotational transform.
If the external rotational transform is increased by increasing the deformation of the equilibrium, keeping other equilibrium parameters fixed, will decrease. In order to keep , the toroidal flux is increased to counteract this effect. The scale invariance arguments invoked in Section II are used to make the time scale, mode amplitude, and nonlinear energy spectra of the results comparable. This can be done by normalising these results by the Alfvén time, minor radius, and square of the magnetic field strength, respectively.
The results of scans of for and 5 are shown in Figure 9 and 10, respectively. Once again, the mode amplitudes are compared with the normalised linear growth rates from CASTOR3D. It can be seen that in both cases, a family of saturated states is found, which is incrementally stabilised by the externally imposed helical field. These states are again observed up to the point at which the (4, 1) mode is observed in the linear stability analysis, which again shows that the linear and nonlinear picture presented by the MHD codes used is, in this sense, consistent.
For the case, a second branch of saturated states were found when using a higher toroidal resolution in VMEC computations. This second series of equilibria have a larger mode amplitude that does not decrease with the linear growth rate. Comparing computations with and 12, the solutions obtained were similar, as can be expected from the toroidal mode number resolution scan in Figure 5 (b).
Because the nonlinear displacement amplitude does not decrease with the linear growth rate, as expected by the nonlinear analytic theory of kink modes eriksson1997nonlinear , this second branch is an unexpected result. It is thought that the states are a second series of bifurcated states which do not correspond to the (4, 1) linear instability. Nevertheless, numerical artifacts could not be identified in the mode structure of these large amplitude solutions, such that they appear to be physical and cannot be discarded conclusively.
For this reason, it must be acknowledged that even after applying the physical constraints in Section III, it was not possible to isolate the physical trend for the dependence on using VMEC computations alone. In the following sections, aspects of the energy dynamics implied by the VMEC solutions are interrogated to test the physical validity of the perturbed solutions further.
V Energy dynamics and mode coupling of VMEC solutions
The change in the poloidal magnetic energy spectrum can in principle be used to infer how the magnetic configuration has been modified by the instability, and confirm whether a more energetically favourable state has been reached. It should be noted however that for a free boundary mode, the magnetic energy should be considered over all real space to account for the modification of the energy in the vacuum region.
Previous studies have understandably only been able to consider the potential energy over the plasma volume covered by the VMEC computational domain cooper2018stellarator . While a method to compute the total energy over all space could not be found, the EXTENDER drevlak2005pies , NESCOIL merkel1987solution , and MAKEGRID codes could be used to compute the plasma and vacuum magnetic fields in a finite domain both inside and outside the plasma volume on a , , grid. This enables an assessment of the modification of the magnetic field structure in the vacuum region close to the plasma, where the interaction should be strongest.
The magnetic field is computed and Fourier decomposed inside a cylindrical torus, centred at , with minor radius, , where these parameters are normalised by the major and minor radius, respectively. This torus contains all of the simulated cases considered in the parameter scans from Section IV. The poloidal magnetic energy spectrum is then computed, normalising by the square of the volume averaged toroidal magnetic field such that results of different equilibrium computations can be compared with one another. The results for three cases with different field periodicities are shown in Figure 11. The external rotational transform is for the stellarator cases in Figure 11 (b) and (c). It can be observed that the energy in the perturbation is notably smaller in the stellarator cases.
In the tokamak case, the magnetic energy cascades from high values in low toroidal harmonics to lower values as increases. For stellarators however, it can be seen that the perturbation is influenced by the toroidal mode coupling of the simulated device, such that there is distinct behaviour in the different mode familiesschwab1993ideal . In particular, the perturbation exists predominantly in the mode family. This means that the energy corresponding to the perturbation cascades down from the dominant mode to , 5, and so on in the case. Equally in the case, the and modes are notably larger than the members of the mode family. These results are expected due to the toroidal mode coupling of the instability in stellarators.
In all cases, it can be seen that the poloidal magnetic energy has increased. This result is unintuitive, because the overall energy of the plasma-vacuum system should decrease as a result of the MHD perturbation. The energy provides the drive for the MHD instability, such that the overall energy in this mode is expected to decrease as a result of the nonlinear perturbation, despite the increase in plasma current, observed in Figure 5 (d-f). This unexpected result can be justified by studying the exchange of energy between the plasma and vacuum as considered in Section VI.2.
In contrast, the toroidal harmonics of the mode family show a decrease in poloidal magnetic energy for the and the stellarator results. It could be argued that these toroidal harmonics contribute to the equilibrium drive for the instability, which releases energy from these toroidal harmonics in the perturbed state.
VI Comparison with nonlinear JOREK simulations
A question has been introduced by the observations in Section V - why does the energy increase in all cases? In order to develop an answer to this question, the VMEC results for the tokamak case with are compared with nonlinear simulations using the JOREK codehoelzl2021jorek .
The physics model used in this study to simulate a tokamak is the same as outlined in Ref. ramasamy2022, , neglecting the parallel momentum equation. However, unlike in this previous study, free boundary conditions are applied to all toroidal harmonics, including the mode, using the JOREK-STARWALL coupling artola2018free . In such a way, the energy dynamics can be interrogated, comparing with VMEC. While JOREK has recently been extended to model stellaratorsnikulsin2022jorek3d , the above question of interest can be answered with tokamak simulations alone. In Section VI.1, the simulation setup for the tokamak simulation is outlined. The increase in the magnetic energy is then studied in Section VI.2.
VI.1 JOREK simulation parameters
The numerical and diffusive parameters used in the simulations are shown in Table 1, along with their profiles. The temperature and density linearly decrease from the plasma core to boundary. A smoothing function is used to transition to the vacuum quantities. A Spitzer-like resistivity is used to ensure the vacuum region is highly resistive. The perpendicular diffusive coefficients are kept constant within the plasma region, before artificially being increased outside the plasma using a sigmoid function. This keeps the density and temperature relatively low in the vacuum region. The parallel thermal diffusion coefficient is prescribed as a constant for simplicity. A constant parallel particle diffusivity is also applied to replace the parallel particle transport from advection.
Typically in nonlinear MHD simulations, an initial phase is required before the onset of the MHD instability, in order to obtain stationary profiles. For the simulated tokamak case, the steady state profiles could not be computed, because the elliptically shaped tokamak equilibrium is vertically unstable. The vertical displacement event would evolve on a much faster time scale than it would take for the equilibrium to reach steady state. For this case, it is necessary to initialise the modes before the profiles have fully equilibrated. For the aspects of the initial ideal saturation that we are interested in, namely the flows of magnetic energy on the fast ideal MHD timescale, the much slower relaxation of the profiles is not considered to have an effect.
VI.2 Understanding the increase in poloidal magnetic energy
To further develop an understanding of the poloidal magnetic energy increase observed in the corresponding VMEC result, the evolution of the poloidal magnetic energies in the JOREK simulation is shown in Figure 12 (a). It can be seen in Figure 12 (b) that as the external kink saturates, an increase in the energy is observed, similar to in VMEC computations.
To confirm that this observation is related to the finite integral over the simulation domain, which does not capture all of the energy in the free boundary system, a simulation is also run applying a fixed boundary condition to the poloidal flux. The energies from this simulation are also plotted with dashed lines in Figure 12 (a) and (b). With this boundary condition, the energy does not increase. The result is expected because the fixed boundary implies that the simulated domain is a closed system, such that the total magnetic energy cannot increase as a result of the instability. Finally, the Poynting flux on the JOREK boundary is plotted for the free boundary simulation case in Figure 12 (c). This diagnostic shows that there is a flux of magnetic energy into the system from outside of the JOREK computational domain.
The fixed boundary simulation, and the Poynting flux diagnostic confirm that the increase in the energy in JOREK is due to an exchange of energy between the integrated volume, and the vacuum region. While equivalent diagnostics could not be identified to confirm this for the VMEC result, it is likely that the increase in the magnetic energy in Figure 11 is a result of the same effect.
The exchange of energy is likely due to the changing current profile, and total plasma current. To first order, the confined plasma can be treated as a current carrying loop. If such a current loop has an increasing current, similar to the spike in current observed in the VMEC result, the induced Poynting flux will be towards the current loop. While the rearrangement of current in VMEC and JOREK results is more complex than such a simplified case, the first order effect of the transition from the initial unperturbed equilibrium to saturated state should be similar, explaining the increase in the energy in the integrated region. This analogy breaks down when considering the energy over all space, which would increase in the case of a loop with increasing current. In the case of the external kink, it is expected that the total energy would decrease because of changes in the spatial current distribution, leading to an effective change of the loop inductance.
VII Conclusion
The aim of this work was to determine to what extent free boundary VMEC computations could be used to study external kinks in tokamaks and classical stellarators. The authors hoped to provide an initial understanding of how the nonlinear mode structure depends on the magnetic geometry, independent of other nonlinear methods, or experimental data.
It has been shown with numerical resolution scans that helicity preserving, free boundary computations do not converge to a single perturbed solution with increasing spectral resolution. As such, the numerical resolution needs to be chosen carefully in order to obtain a physically meaningful result. In this work, additional physical constraints, using the observed plasma current spike and conservation of volume are used to constrain the spectral resolution. Even after applying these constraints to narrow down the range of physically reasonable numerical resolution parameters, it was not possible to identify the physical dependency of the mode amplitude on the external rotational transform using VMEC alone. For , stellarators, the trend differs depending on the number of toroidal harmonics included in the VMEC solution.
Despite this limitation, several aspects of the energy dynamics implied by the VMEC results appear physical. Considering the magnetic energy spectrum in more detail, the perturbed energy is carried predominantly in the mode family of stellarator cases, as expected due to toroidal mode coupling. Comparing with JOREK simulations, it is argued that the increase in the magnetic energy observed in VMEC computations is due to an exchange of energy between the plasma and vacuum region.
There are several directions for future work. With respect to the applicability of VMEC to modelling nonlinear MHD, the physical constraints applied in the current work were not sufficient to provide a conclusive answer to the physics questions of interest. It is entirely possible that additional constraints could improve the current situation. The formation of current sheets at the plasma boundary in Section III.2 could be a potential direction for further constraining the VMEC solution space. If the structure of the expected current sheets at the boundary can be known a priori, perhaps by comparing with linear theory, it may be possible to constrain the VMEC solutions further. The authors personally believe this is a promising constraint to explore.
It would also be interesting to see if the physical conservation laws and constraints considered herein could be enforced in VMEC during the computation itself. VMEC was afterall not designed for the capture of nonlinearly saturated MHD perturbations. It could be possible that modifying the convergence algorithm could improve the physical validity of the solutions, without having to filter through the solution space manually, as has been done in this work. Such an endeavour has not been attempted thus far, to the author’s knowledge.
Further work could also include additional physics studies, which apply the methods in this paper to consider several open advanced stellarator research questions. Low-n external modes observed on the W7-AS stellarator merkel1996free , or external modes predicted in candidate quasi-axisymmetric stellarators Strumberger2019 could be considered. Such VMEC computations would help to gain an initial understanding of the nonlinear saturation of these MHD modes to help inform more detailed nonlinear studies with initial value codes, which could include non-ideal, and extended MHD effects. Of course, dedicated nonlinear studies using the recent stellarator extension implemented in JOREK will also be important to interrogate such physics problems.
Acknowledgements
The authors would like to thank Florian Hindenlang, Ksenia Aleynikova, Nikita Nikulsin, Guillermo Suárez López, Michael Drevlak and Carolin Nuehrenberg for helpful discussions and assistance in the use of the codes used in this work.
Some of this work was carried out on the high performance computing architectures COBRA and RAVEN operated by MPCDF in Germany, JFRS-1 operated by IFERC-CSC in Japan, and the EUROfusion High Performance Computer (Marconi-Fusion).
This work has been supported in part by the Max-Planck/Princeton Center for Plasma Physics, and 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.
Appendix A Comparison of current sheets in JOREK and VMEC
The toroidal current density at during the initial saturation of the tokamak case studied in Section VI.2 is plotted in Figure 13. This is the same case that is used to study the current sheets induced in VMEC in Section III.2. In Figure 13 (a), broad counterflowing current sheets are observed in the JOREK solution near the x-points of the (4, 1) magnetic islands outside the plasma, as well as much finer current sheets in the hotter plasma edge region, where the kink displacement is radially inwards.
Figure 13 (b) shows a zoom in of the black rectangle in Figure 13 (a). Poincaré data is overlaid on the plot, with each field line coloured based on its value, computed numerically by tracing the field for 200 toroidal turns. In such a way, points with identify the approximate plasma region. It can be seen that the current sheet lies within the plasma volume, intersecting with field lines in the range of . The above observations indicate that the (4, 1) current sheets in the VMEC result in Figure 6 (a) are consistent with JOREK in the early nonlinear phase.
Later in the nonlinear phase, competing mode structures are observed in the JOREK solution. For example, (7, 2) and (8, 2) island structures can be observed in Poincaré plots computed at , shown in Figure 14. As argued in previous workramasamy2022 , similar island structures triggered by nonlinear mode competition are suppressed by the assumption of nested flux surfaces in VMEC. The (7, 2) Fourier component observed in Figure 6 (b) could represent shielding currents that prevent such islands from forming.
References
- (1)
Hirshman S P, van Rij W I and Merkel P 1986 Comput. Phys. Commun. 43 143 URL https://doi.org/10.1016/0010-4655(86)90058-5
- (2)
Cooper W, Graves J, Pochelon A, Sauter O and Villard L 2010 Physical review letters 105 035003
- (3)
Turnbull A 2012 Nuclear Fusion 52 054016
- (4)
Turnbull A, Ferraro N, Izzo V, Lazarus E A, Park J K, Cooper W, Hirshman S P, Lao L L, Lanctot M, Lazerson S et al. 2013 Physics of Plasmas 20 056114
- (5)
Chapman I, Becoulet M, Bird T, Canik J, Cianciosa M, Cooper W, Evans T, Ferraro N, Fuchs C, Gryaznevich M et al. 2014 Nuclear Fusion 54 083006
- (6)
King J D, Strait E J, Lazerson S A, Ferraro N M, Logan N C, Haskey S R, Park J K, Hanson J M, Lanctot M J, Liu Y et al. 2015 Physics of Plasmas 22 072501
- (7)
Graves J, Brunetti D, Chapman I, Cooper W, Reimerdes H, Halpern F, Pochelon A, Sauter O et al. 2012 Plasma Physics and Controlled Fusion 55 014005
- (8)
Strumberger E, Günter S and Tichmann C 2014 Nuclear Fusion 54 064019
- (9)
Cooper W, Brunetti D, Duval B, Faustin J, Graves J, Kleiner A, Patten H, Pfefferlé D, Porte L, Raghunathan M et al. 2016 Physics of Plasmas 23 040701
- (10)
Kleiner A, Graves J, Brunetti D, Cooper W A, Medvedev S, Merle A and Wahlberg C 2019 Plasma Physics and Controlled Fusion 61 084005
- (11)
Brunetti D, Graves J, Cooper W A and Terranova D 2014 Nuclear Fusion 54 064017
- (12)
Ramasamy R, Ramirez G B, Hoelzl M, Graves J, López G S, Lackner K, Günter S and Team J 2022 Physics of Plasmas 29 072303
- (13)
Cooper W A, López-Bruna D, Ochando M A, Castejon F, Graves J, Kleiner A, Lanthaler S, Patten H, Raghunathan M, Faustin J et al. 2018 Nuclear Fusion 58 124002
- (14)
Garabedian P R 2006 Proceedings of the National Academy of Sciences 103 19232–19236
- (15)
López G S, Cianciosa M, Lunt T, Tierens W, Bilato R, Birkenmeier G, Bobkov V, Dunne M, Ochoukov R, Strumberger E et al. 2020 Plasma Physics and Controlled Fusion 62 125021
- (16)
Arber T, Longbottom A and Van der Linden R 1999 The Astrophysical Journal 517 990
- (17)
Kadomtsev B and Pogutse O 1973 Sov. Phys. JETP 5 575–590
- (18)
Hirshman S P and Whitson J 1983 The Physics of fluids 26 3553–3568
- (19)
Shafranov V and Zakharov L 1972 Nuclear Fusion 12 599
- (20)
Drevlak M, Monticello D and Reiman A 2005 Nuclear fusion 45 731
- (21)
Merkel P 1987 Nuclear Fusion 27 867
- (22)
Wesson J 1978 Nuclear Fusion 18 87
- (23)
Strumberger E and Günter S 2017 Nuclear Fusion 57 016032
- (24)
Kleiner A, Graves J, Cooper W, Nicolas T and Wahlberg C 2018 Nuclear Fusion 58 074001
- (25)
Lazerson S A, Loizu J, Hirshman S and Hudson S R 2016 Physics of Plasmas 23 012507
- (26)
Eriksson H and Wahlberg C 1997 Plasma physics and controlled fusion 39 943
- (27)
Schwab C 1993 Physics of Fluids B: Plasma Physics 5 3195–3206
- (28)
Hoelzl M, Huijsmans G, Pamela S, Becoulet M, Nardon E, Artola F J, Nkonga B, Atanasiu C, Bandaru V, Bhole A et al. 2021 Nuclear Fusion 61 065001
- (29)
Artola F J, Beyer P, Huijsmans G, Loarte A and Hoelzl M 2018 Free-boundary simulations of MHD plasma instabilities in tokamaks Ph.D. thesis Aix-Marseille Université URL https://hal-amu.archives-ouvertes.fr/tel-02012234v1
- (30)
Nikulsin N, Ramasamy R, Hoelzl M, Hindenlang F, Strumberger E, Lackner K, Günter S and Team J 2022 Physics of Plasmas 29 063901
- (31)
Merkel P, Nuehrenberg C and Cooper W 1996
- (32)
Strumberger E and Günter S 2019 Nuclear Fusion 59 106008
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1(1) Hirshman S P, van Rij W I and Merkel P 1986 Comput. Phys. Commun. 43 143 URL https://doi.org/10.1016/0010-4655(86)90058-5 · doi ↗
- 2(2) Cooper W, Graves J, Pochelon A, Sauter O and Villard L 2010 Physical review letters 105 035003
- 3(3) Turnbull A 2012 Nuclear Fusion 52 054016
- 4(4) Turnbull A, Ferraro N, Izzo V, Lazarus E A, Park J K, Cooper W, Hirshman S P, Lao L L, Lanctot M, Lazerson S et al. 2013 Physics of Plasmas 20 056114
- 5(5) Chapman I, Becoulet M, Bird T, Canik J, Cianciosa M, Cooper W, Evans T, Ferraro N, Fuchs C, Gryaznevich M et al. 2014 Nuclear Fusion 54 083006
- 6(6) King J D, Strait E J, Lazerson S A, Ferraro N M, Logan N C, Haskey S R, Park J K, Hanson J M, Lanctot M J, Liu Y et al. 2015 Physics of Plasmas 22 072501
- 7(7) Graves J, Brunetti D, Chapman I, Cooper W, Reimerdes H, Halpern F, Pochelon A, Sauter O et al. 2012 Plasma Physics and Controlled Fusion 55 014005
- 8(8) Strumberger E, Günter S and Tichmann C 2014 Nuclear Fusion 54 064019
