Simultaneous iterative learning control of mode entrainment and error field
Wilkie Choi, Francesco Volpe

TL;DR
This paper introduces an iterative learning control method to diagnose and correct static error fields in mode entrainment, enabling higher rotation frequencies and improved mode stabilization in plasma control systems.
Contribution
It presents a novel iterative learning control approach for real-time EF correction, enhancing mode entrainment and stability in plasma devices.
Findings
Rapid EF correction within a few rotation periods
Enables higher mode entrainment frequencies
Improves rotational stabilization and mode control
Abstract
It is shown that static error fields (EFs) can severely limit the maximum rotation frequency achievable in mode entrainment by applied rotating fields. It is also shown that the rotation non-uniformities caused by an EF can be used to diagnose and correct said EF in real time. Simulations using typical DIII-D data show that this can be achieved within a small number of mode rotation periods by an iterative learning control algorithm. In addition to rapidly correcting the EF, this gives access to high entrainment frequencies that would not be accessible otherwise, and paves the way to rotational stabilization and improved mode control.
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.
Simultaneous iterative learning control of mode entrainment and error field
W. Choi and F. A. Volpe
Dept of Applied Physics and Applied Mathematics, Columbia University, New York, NY 10027, USA
Abstract
It is shown that static error fields (EFs) can severely limit the maximum rotation frequency achievable in mode entrainment by applied rotating fields. It is also shown that the rotation non-uniformities caused by an EF can be used to diagnose and correct said EF in real time. Simulations using typical DIII-D data show that this can be achieved within a small number of mode rotation periods by an iterative learning control algorithm. In addition to rapidly correcting the EF, this gives access to high entrainment frequencies that would not be accessible otherwise, and paves the way to rotational stabilization and improved mode control.
\ioptwocol
1 Introduction
Error field (EF) correction and mode entrainment are inter-related topics of great importance for the stable, high-confinement operation of tokamaks.
The importance and benefits of EF correction are well-known and extensively reviewed [1, 2]. When left uncorrected, intrinsic EFs can lead to a braking of plasma rotation, the formation of magnetic islands, a loss of confinement and possibly a disruption.
The toroidal rotation of magnetic islands can be sustained by means of “mode entrainment” with applied rotating fields [3]. Such fields, like the static perturbations for EF correction, are exerted by non-axisymmetric control coils internal or external to the vessel, similar to DIII-D’s I- and C-coils depicted in figure 1. Entrainment is important because it prevents mode locking [4] and can assist the island stabilization by modulated Electron Cyclotron Current Drive [5]. In addition, mode entrainment at up to 300 Hz has led to the recovery of a pedestal in the edge pressure profile at DIII-D, for reasons yet to be understood [6]. Related to that, and as a possible interpretation of those observations, rapid entrainment is expected to stabilize the mode, either by flow shear effects [7, 8] or due to the interaction with the resistive wall [9]. Entrainment is also important for diagnostic purposes, as it allows to characterize a mode by toroidally steering it in front of toroidally localized diagnostics.
EFs are theoretically [10] and experimentally [4] known to affect mode entrainment. In particular, the mode rotates non-uniformly if the applied rotating Resonant Magnetic Perturbation (RMP) used for entrainment is stronger than the uncorrected EF ()[4]. Here resonant means having the same toroidal mode number . Rotations are incomplete if [4]. More generally, EFs affect the rotation of magnetohydrodynamic (MHD) modes in general (not restricted to islands), whether sustained by applied rotating fields or by other torques. This implies that the motion of MHD modes can be used as a tool to diagnose the EF. This has been accomplished for kink modes and tearing modes on EXTRAP-T2R [11, 12], and for locked or nearly locked tearing modes on DIII-D [13, 14].
In those previous works, though, the EF was diagnosed after the plasma discharge, and corrected in the following shot. In the present paper, instead, we show that it is possible to iteratively use the mode rotation (including an initially incomplete rotation) as a tool to diagnose the EF in real time. Each iteration corrects the EF and thus make the mode rotation more uniform, which results in an even more precise EF estimate and EF correction, even more uniform rotation, and so forth. By this method, EFs are characterized and corrected in as little as 4 mode rotation periods. This is faster than previous works and much faster than traditional “compass scans”, requiring 4 plasma discharges [1]. Once the EF has been made sufficiently small and the mode entrainment sufficiently uniform, one can increase the rotation frequencies to values that were not accessible before. In other words, mode entrainment is used to rapidly characterize the EF, and improved EF correction is used for more uniform, faster entrainment. Faster entrainment paves the way to rotational stabilization, improved mode control and reliable disruption avoidance.
The remainder of this paper is structured as follows: section 2 discusses how the error field is measured. The Iterative Learning Control (ILC) concept is introduced in section 3 and ILC simulations are shown in section 4. Section 5 summarizes the major conclusions and implications of this work.
2 Identifying error field
An accurate measurement of the EF is required in order to achieve good correction. This section details how the EF’s perturbative effect on an entrained island’s rotational motion can be used to diagnose the amplitude and phase of the EF.
2.1 Static or slowly rotating island
In a basic model, a locked mode (LM) is expected to align with the vector-sum of the EF and applied RMP. Namely, the toroidal phase is expected to equal the phase of the vector-sum of the RMP and EF field:
[TABLE]
This holds true when neglecting the effect of eddy currents in the wall and consequent “wall torque” acting on the island (which is a legitimate approximation for low frequencies), as well as other torques, imparted for example by the rotating plasma which the island is partly frozen in. Here “low frequencies” refers to lower than the inverse wall time.
Figure 2 illustrates the vector-sum of a fixed EF (red arrow) and rotating RMP (black arrow). Depending on whether the applied RMP magnitude is greater or smaller than the EF magnitude, the resultant vector (thus, the LM) performs full rotations (figure 2a), or oscillates between two values of (figure b). Note that, in the first case, as the RMP rotates uniformly, the resultant rotates non-uniformly.
Both cases are accurately described by
[TABLE]
where the subscripts x and y denote the and components in a frame whose axis is aligned with the axis of symmetry of the tokamak. Figure 2c presents plots of for the two cases. Again, in one case spans all values, in the other it spans a limited range.
Note that and are known and can be measured. Hence, equation 2 appears to offer a direct calculation of the two unknown EF components based on just two measurements of at different times. With noise included, however, this fitting function performs poorly when only two data-points are used, and more data is needed—from at least half a rotation period (Sec.4.4). Fitting over a longer time-interval improves the quality of the fit, but reduces the time-resolution of the EF identification.
Normally the phase in equation 2 is defined as taking values between -180∘ to 180∘. However, phase “jumps” from -180∘ to 180∘, or vice versa, are problematic to the fitting of equation 2. Thus, a continuous, unraveled was used for the fitting instead.
If the rotation is complete and just slightly non-uniform (due to a small EF), the fitting function can be replaced by an sinusoidal disturbance on top of a straight, constant frequency entrainment:
[TABLE]
Here and are fixed by the frequency of rotation, is an offset, and and are used to calculate the EF amplitude and phase respectively. and are related to the LM and EF phases, respectively, relative to the origin of the toroidal coordinate.
As for incomplete rotation, the amplitude of the EF can be derived from the spread of the locked mode phase (figure 2), and the EF phase is simply the mean value of a full period of mode phase.
2.2 Considerations for fast rotation
It was previously stated that these equations are only accurate at low frequency with respect to the inverse wall time, which on DIII-D is of the order of 50 Hz. For higher frequencies, eddy currents induced in the wall affect the results in several significant ways.
First and foremost, a rotating island induces currents in the wall that drag upon the island itself. Thus, in order to achieve torque balance, the phase of the applied RMP must necessarily lead the mode phase. The difference between the two depends on the desired frequency, wall frequency, mode amplitude and RMP amplitude.
Additionally, due to wall shielding, the RMP effectively applied at the mode location is reduced in amplitude. It also lags in phase when compared to the RMP applied by the coils.
The situation is further complicated with the inclusion of the error fields. When an uncorrected EF is added to an applied RMP of constant amplitude and frequency, the island will accelerate or decelerate as it approaches alignment with the EF or departs from it. The resultant motion of the island will necessarily be oscillatory (super-imposed to island rotation or not, depending on exceeding or not). The oscillatory motion of the island will induce time-dependent currents in the wall, causing further non-uniformities in the island motion.
Given the above considerations, equation 1 is only valid in the low-frequency limit (much lower than 50 Hz, at DIII-D). If that estimate is used at higher frequencies and without corrections for wall effects, there will likely be a small but non-zero residual EF that can continue to prevent smooth entrainment.
3 Iterative learning control
Iterative learning control (ILC) is a type of tracking control best suited for repetitive situations [15, 16, 17]. For locked mode entrainment, both the requested mode phase and the phase perturbation caused by the EF are periodic in nature, making this an appropriate application for ILC.
Figure 4 depicts the basic principles of an ILC designed for simultaneous mode entrainment and error field correction (EFC). Starting with a simple applied RMP rotating at constant frequency and amplitude, the mode phase will have some non-uniformity due to the error field. The ILC uses this information to quantify the EF, and apply the optimal correction to zero the measured EF. This modified control is added to the initial command, and the next iteration will have improved smoothness of rotation. The ILC retains the corrective behavior “learned” in previous iterations, and improves over time.
One advantage of ILC is the capability to accept rough estimates of EF instead of requiring precise measurements. As discussed in the previous section, wall shielding and other effects reduce the accuracy of EF measurements using equation 1. However, the ILC is able to use just the first order estimate of the EF within each iteration, improving its correction over several cycles and eventually approaching the exact currents needed to zero the EF.
4 Simulation results
This section demonstrates the capabilities of ILC using the cylindrical model described in [18]. This time-dependent code treats the island as a rigid body with a helical current pattern associated to it, rotating in the presence of a conductive wall. Realistic representation of DIII-D’s I-coils and typical error field values are included.
4.1 Entrainment limits without controller
A sufficiently strong rotating RMP can entrain a locked mode despite induced currents in the wall resisting the motion and despite the EF effects discussed in section 2.2. Equivalently, for a given RMP strength there is a maximum frequency at which torque balance can be established. This “critical entrainment frequency” depends on the various parameters affecting the RMP, EF and wall torques (and other torques considered, if any). Only few parameters, however, change significantly from one DIII-D discharge to the other and cause major changes in torques. The most prominent is the island width .
The critical frequency is contour-plotted in figure 5 as a function of and of the RMP strength. Figure 5a shows the maximum frequency at which the shielded rotating RMP and wall-drag can achieve torque balance in absence of any EF, previously reported in [18]. Figure 5b and c, on the other hand, show the maximum frequency at which stable entrainment can be established in the presence of a small (0.5 G) and typical, uncorrected (1 G) DIII-D error field, respectively. This frequency is defined as the limit beyond which the combination of EF and induced wall-currents makes the entrainment unstable, in the following sense: the instantaneous rotation frequency varies, within a rotation period, by a large amount that diverges with . The entraining frequency at which such divergence occurs is taken to be the critical frequency. This and other definitions of entrainment loss or far-from-ideal entrainment are discussed in the Appendix.
Figure 5 confirms that, as the EF amplitude increases, the minimum current at which entrainment is possible increases, as expected. The regions labeled “no entrainment” were estimated based on a conversion of using roughly 1.3 kA RMP to correct a 1 G EF. The parabolic shape of the “no EF” contours (figure 5a) is a result of the RMP torque and wall torque varying as and , respectively. It is worth noting that contours with EF “flatten the parabola” and are less sensitive to island width. As the EF increases, it is evident that the ratio of and plays the dominant role in determining the entrainment frequency limit. Thus, the EF must be corrected well below the opertationally accessible RMP amplitude in order to achieve high frequency entrainment.
4.2 Time-dependent simulation of ILC
A typical simulation is set up as follows: until ms, the fixed-width island is entrained to a constant amplitude rotating RMP, in the presence of a prescribed EF. The iterative learning controller is activated at 400 ms. Using the previous rotation period as input, the EF is estimated and partly corrected by d.c. offsets in the I-coil currents (those coils carry also the a.c. currents that exert the rotating RMP). Each iteration thereafter has a length of two rotation periods: the first to apply the EFC and allow the mode rotation to settle, the second to sense the mode rotation and deduce the EF.
Let us consider a 3 kA, 40 Hz RMP and 1 G EF. Figure 6a shows that in this case the EF is corrected in about two iterations. Iteration 0 refers to the rotation period immediately preceding 400 ms, and measurements from subsequent iterations are shifted backwards for direct comparison.
Figure 6b is an example of ILC correctly diagnosing the EF despite the applied RMP being small, resulting in incomplete rotation. After the first iteration, the EF is sufficiently well-corrected for the rotations to become complete, and the ILC converges quickly thereafter.
Entrainment at higher frequency is possible when the EF is sufficiently reduced. One method to achieve this is through a ramped frequency. Within the same discharge, one can start operating the ILC at lower frequency, to then increase the frequency after a few iterations, after the EF has been reduced. The example in figure 7 consists of 4 iterations at 40 Hz followed by a frequency ramp and another 4 iterations at 80 Hz. A direct attempt at 80 Hz entrainment would have resulted in completely inaccurate estimates of EF and failure to entrain, as 80 Hz exceeds the maximum entrainment frequency for that island width and the initial, uncorrected EF (figure 5). Subsequent “corrections” would have driven the system into dramatic oscillations in island motion and even more far-fetched estimates of EF.
4.3 Controller robustness
Robustness to a variety of initial conditions is an essential feature for any controller. Figure 8 shows that the ILC converges quickly for different EF amplitudes and phases (panel a) and entrainment frequencies (panel b). It should be noted that a 40 Hz entrainment frequency implies a 50 ms iteration period, which means that most cases achieve convergence in 200 ms (4 iterations).
A well-designed controller should also be robust against random noise in the measurement. When a normally distributed noise—with standard deviation of —is added to the measurement, the ILC still converges to the expected value within the first few iterations. Incidentally, is a realistic phase uncertainty for medium-to-large islands on DIII-D. However, if the noise-level exceeds a threshold located between and (orange and purple lines in figure 8c), the ILC converges initially to the correct EF estimate but eventually to an incorrect value, due to poor fitting of noisy phase data. Consequently, the applied EFC is incorrect and the EF is not zeroed. In fact, in the case in figure 8c, the effective EF actually increases, causing an even bigger rotation non-uniformity. It is then important to distinguish between these EFs misdiagnosed from noisy data and actual changes in the intrinsic EF (caused for example by changes in plasma conditions or coil-currents).
Note that a sufficiently large EF (that causes significant non-uniformity in rotation) can be correctly inferred from the fit, even when the phase data are noisy. The real issue is with small residual EFs: in that case the ILC can incorrectly estimate the EF. One solution is thus to add the following logic to the controller: an additional rotation-period can be used for a second fitting; any true changes in EF amplitude or phase should persist between the two measurements, while false EFs fitted from noise would not be repeatable.
4.4 Iteration period
The first version of the ILC uses two rotation periods per iteration. The reasoning is that the first period allows the motion to settle after applying the correction, and the second period is used as input for the next iteration. This helps to prevent a feedback scenario where the applied correction currents affects mode rotation, this temporary deviation is incorrectly attributed to the EF, and the next iteration will apply an undesired correction.
For faster convergence, the time per iteration can be shortened. It is necessary to accurately fit the non-uniform component of the fitting function, as it gives the error field amplitude and phase. Figure 9 shows that half a period of data is sufficient for a good fit using equation 3. This is supported by a symmetry argument, where oscillations of the mode rotation is mirrored at the EF phase. Further reducing the measurement window to less than half a period, however, no long guarantees that at least one minimum or maximum of the sinusoidal oscillation will be found in the interval examined.
The settling period of the island motion can also be reduced by gradually applying the needed correction in the coils. A step-function change (much faster than the wall time) in the applied currents induces strong eddy currents and causes unwanted oscillations in the rotation, as seen in figure 10a. While a slow ramp rate results in smoother motion, the trade-off is the longer time needed to reach the new EFC, which delays the measurement. The improved mode phase behavior, shown in figure 10b, reduces the settling time of the motion and allows the measurement window to begin earlier in the iteration period,
While the two methods discussed above can shorten iteration periods, overly compressing each iteration reduces its performance and thus requires a larger number of iterations to achieve convergence. The fastest error field corrections needs an optimal balance between shortest time per iteration and smallest number of iterations.
5 Conclusions
Error fields have long been known to prevent high plasma performance. Traditional methods of error field correction (EFC) typically involve a 4-discharge compass scan for a given configuration, then scaling the required correction for different plasma configurations.
The entrainment of magnetic islands by applied rotating magnetic fields has also long been known to have benefits for stability.
Here, an iterative learning control (ILC) algorithm has been developed to correct EFs and improve the quality of mode entrainment in real time. This is achieved by optimizing the EFC as to maximize the uniformity or “smoothness” of island rotation. In simulations, this controller has been shown to perform well regardless of the applied perturbation being larger or smaller than the initial EF. The only requisite is that the mode toroidal phase is measured in real time with a precision of about , which is fairly standard.
At the same time, by iteratively making the EF smaller and smaller, this method allows to ramp the island rotation-frequency to values that would not otherwise be accessible, paving the way to rotational stabilization, reliable disruption-avoidance and improved confinement.
Acknowledgements
The authors would like to thank Ted Strait for the fruitful discussions and Nikolas Logan for his stimulating questions. This work was realized under DOE Grants DE-SC0008520, DE-SC0016372, and DE-FC02-04ER54698.
DISCLAIMER: This report was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor any agency thereof, nor any of their employees, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately owned rights. Reference herein to any specific commercial product, process, or service by trade name, trademark, manufacturer, or otherwise, does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or any agency thereof. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or any agency thereof.
Appendix: critical frequencies for loss of entrainment
Perfect entrainment entails uniform mode rotation with an inevitable but easy-to-calculate phase-lag with respect to the rotating RMP, due to the wall (section 2.2). The rotation-frequency is constant even on short, sub-period timescales.
Three different definitions of imperfect entrainment are discussed below, for completeness. Only the first, most stringent criterion was adopted in the body of the paper, because preventing that imperfection automatically prevents the other two.
Diverging oscillations in rotation frequency
As discussed, EFs introduce non-uniformities in the mode rotation. As a result, the rotation-frequency is not constant. Rather, it varies between two extremes within every rotation-period. Said otherwise, no torque-balance can be established, in the presence of EFs, except for 2 instants in every rotation-period. This is due to the EF torque oscillating on a sub-rotation timescale. As a consequence, the mode repetitively accelerates and decelerates, as if trying to align with the EF.
As the applied rotation-frequency increases, the instantaneous mode-frequency oscillates by larger and larger amounts . Beyond a certain value of , is observed to diverge (figure 11). For brevity we call that value “critical entrainment frequency”. However, it should be clarified that the mode can be entrained—in the sense that its rotation is magnetically sustained—even for higher , and thus at higher , albeit subject to large oscillations .
Critical frequencies were plotted in figure 5 as functions of the EF and RMP amplitudes, as well as of the island width. They are the results of time-resolved simulations of interactions between a rigid island, a resistive wall, a known error field, and a rotating RMP applied by 3D coils.
Sub-periods of counter-rotation
As a consequence of the oscillations just discussed, can change sign for brief periods of time, shorter than a rotation period. That is, the mode can momentarily rotate opposite to the “average” direction of rotation (figure 12).
Figure 13 shows the critical value of , beyond which changes sign within a period, for similar RMP, island width, and EF strengths as in figure 5.
Complete loss of entrainment
In the two criteria considered so far, there was no instantaneous torque-balance sustained during one period. Despite that, the torque could be balanced in an average sense, over a rotation period. Also, rotations were complete, in the sense of spanning all values of . This is the minimum requirement for most applications of entrainment, e.g. to diagnostics or to modulated ECCD stabilization.
At high enough , that is not possible anymore: oscillates in a range (the turning points introduced in the last section are now global, not local) and we say that entrainment is completely lost.
Contours for this “hard limit” on entrainment were computed by means of time-resolved simulations of mode dynamics, similar to figure 5 and 13, and are shown in figure 14.
Due to the complex mutual dependence between island-dynamics and wall-currents, some simulations exhibited relatively long time-intervals of incomplete rotations (longer than a rotation period) alternated to several periods of full rotation. Those cases were categorized as complete losses of entrainment for the sake of preparing figure 14.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] H Reimerdes et al. “Error field tolerance and error field correction strategies and their applicability to ITER” In Fusion Science and Technology 59.3 Taylor & Francis, 2011, pp. 572–585 DOI: 10.13182/FST 11-A 11698 · doi ↗
- 2[2] Edward J Strait et al. “Measurement of tokamak error fields using plasma response and its applicability to ITER” In Nuclear Fusion 54.7 IOP Publishing, 2014, pp. 073004 DOI: 10.1088/0029-5515/54/7/073004 · doi ↗
- 3[3] AW Morris et al. “Feedback stabilization of disruption precursors in a tokamak” In Physical review letters 64.11 APS, 1990, pp. 1254 DOI: 10.1103/Phys Rev Lett.64.1254 · doi ↗
- 4[4] FA Volpe et al. “Advanced techniques for neoclassical tearing mode control in DIII-D a” In Physics of Plasmas 16.10 AIP, 2009, pp. 102502 DOI: 10.1063/1.3232325 · doi ↗
- 5[5] Wilkie Choi et al. “Feedforward and feedback control of locked mode phase and rotation in DIII-D with application to modulated ECCD experiments” In Nuclear Fusion 58.3 IOP Publishing, 2018, pp. 036022 DOI: 10.1088/1741-4326/aaa 6e 3 · doi ↗
- 6[6] Daisuke Shiraki and FA Volpe In MHD Control Workshop , 2013
- 7[7] XL Chen and PJ Morrison “The effect of viscosity on the resistive tearing mode with the presence of shear flow” In Physics of Fluids B: Plasma Physics 2.11 AIP, 1990, pp. 2575–2580 DOI: 10.1063/1.859382 · doi ↗
- 8[8] RJ La Haye and RJ Buttery “The stabilizing effect of flow shear on m/n= 3/2 magnetic island width in DIII-D” In Physics of Plasmas 16.2 AIP, 2009, pp. 022107 DOI: 10.1063/1.3077673 · doi ↗
