scieee AI-readable full text Open interactive document viewer

Real-time control for the EHU stellarator

Garrido Hernández, Izaskun,Maseda Rego, Francisco Javier,Martija López, Itziar,Garrido Hernández, Aitor Josu

Abstract

This work was supported in part by the Basque Government, through project IT1207-19 and by the MCIU/MINECO (Ministerio de Ciencia, Innovación y Universidades/Ministerio de Economía y Empresa) through RTI2018-094902-B-C22 (MCIU/AEI/FEDER,UE)/DPI2015-70075-R (MINECO/FEDER,EU).

Full text

symmetry S S Article Real-Time Control for the EHU Stellarator Izaskun Garrido * , Javier Maseda, Itziar Martija and Aitor J. Garrido Automatic Control Group—ACG, Department of Automatic Control and Systems Engineering, Faculty of Engineering of Bilbao, University of the Basque Country(UPV/EHU), Po Rafael Moreno no3, 48013 Bilbao, Spain; fcjavier[email protected] (J.M.); itziar[email protected] (I.M.); aitor[email protected] (A.J.G.) *Correspondence: [email protected] Received: 24 November 2019; Accepted: 17 December 2019; Published: 19 December 2019   Abstract: At present, two main magnetic confinement fusion devices exist: tokamaks and stellarators. Moreover, stellarators have been demonstrated to be a good alternative to tokamaks, due to their ability to operate in continuous mode, which eventually translates into a higher commercial profitability. In stellarators, the magnetic confinement of the plasma is achieved exclusively by the coils, thus no electric current through the plasma is needed. In particular, this article presents the Columbia Non-Neutral Torus stellarator that is located in the Automatic Control Group of Euskal Herriko Unibertsitatea (EHU). This EHU stellarator maintains symmetry in its structure due to the topology of the mesh that is formed by its coils. A cornerstone of future fusion reactors is to obtain real-time control that enables a sustained reaction. In this article, a control-oriented model for the installed magnetic confinement coils is presented. The model is based on matrices that preserve symmetry, which is defined from physical principles and then validated by different sets of experimental data. Then, based on this model, a novel predictive control suited to this particular model with symmetric objective function is implemented in the numerical simulations, and its response is compared to that of traditional controllers. Finally, this control is implemented in a real plant and the satisfactory experiment results provide validation of both the numerical model and proposed controller. Keywords: nuclear fusion energy; magnetic confinement; real-time control; predictive control 1. Introduction In recent years, there has been an international effort to develop clean energy production technology based on fusion energy, such as =the International Thermonuclear Experimental Reactor (ITER) [1]. The energy generation involves nuclear fusion reactions, where two or more light element’s atomic nuclei, usually from deuterium and tritium (two different hydrogen isotopes), combine to form different atomic nuclei and subatomic particles. The reaction implies a net loss of mass that is transformed into energy in the form of gamma rays and kinetic energy emitted by the aforementioned particles, as shown in Equation (1) [ 2 ]. A typical deuterium–tritium reaction is supposed to be in the form: 2D+3T→4He +n+17.58 MeV (1) The final objective is to achieve a state of sustained continuous nuclear fusion reaction. This objective represents a large number of scientific and technical challenges. In particular, the real-time control of the plasma by means of the confinement coils plays a key role in the performance of the process and the feasibility of the clean fusion technology. It this sense, it must be considered that the main limiting phenomenon in fusion devices is the premature reaction decay due to plasma instabilities. Nowadays, two principal approaches coexist that try to achieve successful and commercially competitive fusion processes: inertial confinement-based and magnetic confinement-based approaches. Inertial confinement fusion attempts to achieve the reaction by compressing and heating a fuel target, Symmetry 2020,12, 11; doi:10.3390/sym12010011 www.mdpi.com/journal/symmetry Symmetry 2020,12, 11 2 of 15 and it is being studied in several U.S. facilities. Magnetic confinement attempts to achieve and maintain the reaction by using magnetically confined fuel within vacuum chambers, and it is the topology perused in ITER (International Thermonuclear Experimental Reactor), TCV (Tokamak à Configuration Variable), or JET (Joint European Torus). It is still not clear which approach will lead to the desired results. At present, two main magnetic confinement topologies exist for fusion devices: tokamaks and stellarators. On the one hand, tokamak devices confine plasma in a toroidal region using compound magnetic fields. The principal magnetic field is usually toroidal, while a poloidal magnetic field induces a current into the plasma that acts as the secondary circuit of an electrical transformer. The poloidal field lines created around the plasma current are combined with the toroidal field producing helical field lines, which wrap around the torus, preventing the plasma displacement towards the vessel walls [ 3 ]. On the other hand, stellarators consist of a more complex helical symmetric coil system, in such a way that the plasma follows twisting magnetic beam line paths. In these kinds of devices, the magnetic confinement is fully achieved by the coils, so no induced current is needed to confine the plasma, although ohmic, non-inductive, and bootstrap currents may also be present [ 4 ]. In this sense, stellarators are a great alternative to tokamaks, with significant research progress taking place regarding the study of magnetically confined plasma physics on these devices during recent years. Additionally, the ability of stellarators to operate in continuous mode would allow higher commercial profitability. In this context, this article studies a real-time control strategy for the coils of the EHU (Euskal Herriko Unibertsitatea)stellerator name the ultra-low-iota super elongated stellarator (ULISES), fully designed and built by the Automatic Control Group (ACG) at the Engineering Faculty of the Basque Country University (UPV/EHU) in collaboration with CIEMAT (Centro de Investigaciones Energ é ticas, Medioambientales y Tecnol ó gicas) (see Figures 1and 2). The numerical plant model will be formulated based on the symmetry of the system due to the plant topology and derived from physical principles coupled with parameter estimation. The success of the initial simulations paved the way for the real-time experimental implementation, which demonstrates the effectiveness of both the model and the control strategies [5]. Symmetry 2020, 12, 11 2 of 15 Nowadays, two principal approaches coexist that try to achieve successful and commercially competitive fusion processes: inertial confinement-based and magnetic confinement-based approaches. Inertial confinement fusion attempts to achieve the reaction by compressing and heating a fuel target, and it is being studied in several U.S. facilities. Magnetic confinement attempts to achieve and maintain the reaction by using magnetically confined fuel within vacuum chambers, and it is the topology perused in ITER (International Thermonuclear Experimental Reactor), TCV (Tokamak à Configuration Variable), or JET (Joint European Torus). It is still not clear which approach will lead to the desired results. At present, two main magnetic confinement topologies exist for fusion devices: tokamaks and stellarators. On the one hand, tokamak devices confine plasma in a toroidal region using compound magnetic fields. The principal magnetic field is usually toroidal, while a poloidal magnetic field induces a current into the plasma that acts as the secondary circuit of an electrical transformer. The poloidal field lines created around the plasma current are combined with the toroidal field producing helical field lines, which wrap around the torus, preventing the plasma displacement towards the vessel walls [3]. On the other hand, stellarators consist of a more complex helical symmetric coil system, in such a way that the plasma follows twisting magnetic beam line paths. In these kinds of devices, the magnetic confinement is fully achieved by the coils, so no induced current is needed to confine the plasma, although ohmic, non-inductive, and bootstrap currents may also be present [4]. In this sense, stellarators are a great alternative to tokamaks, with significant research progress taking place regarding the study of magnetically confined plasma physics on these devices during recent years. Additionally, the ability of stellarators to operate in continuous mode would allow higher commercial profitability. In this context, this article studies a real-time control strategy for the coils of the EHU (Euskal Herriko Unibertsitatea)stellerator name the ultra-low-iota super elongated stellarator (ULISES), fully designed and built by the Automatic Control Group (ACG) at the Engineering Faculty of the Basque Country University (UPV/EHU) in collaboration with CIEMAT (Centro de Investigaciones Energéticas, Medioambientales y Tecnológicas) (see Figures 1 and 2). The numerical plant model will be formulated based on the symmetry of the system due to the plant topology and derived from physical principles coupled with parameter estimation. The success of the initial simulations paved the way for the real-time experimental implementation, which demonstrates the effectiveness of both the model and the control strategies [5]. Figure 1. EHU (Euskal Herriko Unibertsitatea) stellerator located in the Automatic Control Group (ACG) at the Engineering Faculty of the Basque Country University (UPV/EHU). Symmetry 2020,12, 11 3 of 15 Symmetry 2020, 12, 11 3 of 15 Figure 1. EHU (Euskal Herriko Unibertsitatea) stellerator located in the Automatic Control Group (ACG) at the Engineering Faculty of the Basque Country University (UPV/EHU). Figure 2. Dimensions of the reaction chamber and the coils: the left the vacuum chamber and exterior coils; the right the inner coils, shown in a 90° setting for visualization purposes. The rest of the manuscript is organized as follows. Section 2 describes three different strategies to construct the numerical models of the EHU stellarator. Section 3 describes the novel advanced predictive control laws. Section 4 presents the real-time experimental performance of the proposed controllers. Finally, concluding remarks are given in Section 5. 2. Data Acquisition System and Model Statement In this section, three different modeling approaches are employed to obtain a reliable model of the magnetic coils system of the EHU stellarator. An analytical model obtained by means of parameter identification techniques is compared to the proposed physical equivalent system, a pure black box model, and a hybrid grey box model, in which the preliminary structure of the system is first established and then identified. After the models have been constructed, these numerical systems will be validated experimentally. That is, real experiments will be carried out on the real plant for different study cases, so that the obtained measured output data can be compared with those of the numerical model response for the same study cases. In order to control the EHU stellarator, a feedback loop must be provided. In this case, the feedback consists of the voltage output V Out and current I signal measurements, while the input signal V In is also being monitored. Note that the main actuator of the system is composed of a coil system consisting of two external and two internal coils connected to a real-time fully controllable power source, as shown in Figures 1 and 2. The resulting output voltage and currents are, therefore, the controlled variables, and are measured directly from the coils’ copper wires by means of physical resistance-based and Ohmic inductive sensors, respectively, providing the input for the control feedback loop through the corresponding conditioning circuits shown in Figures 3 and 4 and the DAQ (Data acquisition) connected to the real-time target. For this purpose, a data acquisition system has been built. Using a National Instruments PCI-6221 instrument for data acquisition, as well as the necessary electronic components to condition the circuit, as seen in Figure 3 for the output voltage, Figure 4 for the input voltage, and Figure 5 for the output current. Figure 2. Dimensions of the reaction chamber and the coils: the left the vacuum chamber and exterior coils; the right the inner coils, shown in a 90◦setting for visualization purposes. The rest of the manuscript is organized as follows. Section 2describes three different strategies to construct the numerical models of the EHU stellarator. Section 3describes the novel advanced predictive control laws. Section 4presents the real-time experimental performance of the proposed controllers. Finally, concluding remarks are given in Section 5. 2. Data Acquisition System and Model Statement In this section, three different modeling approaches are employed to obtain a reliable model of the magnetic coils system of the EHU stellarator. An analytical model obtained by means of parameter identification techniques is compared to the proposed physical equivalent system, a pure black box model, and a hybrid grey box model, in which the preliminary structure of the system is first established and then identified. After the models have been constructed, these numerical systems will be validated experimentally. That is, real experiments will be carried out on the real plant for different study cases, so that the obtained measured output data can be compared with those of the numerical model response for the same study cases. In order to control the EHU stellarator, a feedback loop must be provided. In this case, the feedback consists of the voltage output V Out and current Isignal measurements, while the input signal V In is also being monitored. Note that the main actuator of the system is composed of a coil system consisting of two external and two internal coils connected to a real-time fully controllable power source, as shown in Figures 1and 2. The resulting output voltage and currents are, therefore, the controlled variables, and are measured directly from the coils’ copper wires by means of physical resistance-based and Ohmic inductive sensors, respectively, providing the input for the control feedback loop through the corresponding conditioning circuits shown in Figures 3and 4and the DAQ (Data acquisition) connected to the real-time target. Symmetry 2020, 12, 11 4 of 15 Figure 3. Output voltage signal conditioning circuit. Figure 4. Input voltage signal conditioning circuit. As can be seen in the figures above, the voltage output signal is driven through a voltage divider due to the high voltage values in the output point, which could destroy the PCI (Peripheral Component Interconnect) card. Additionally, all of the signals are driven through a voltage limiter, and finally through an op amp in buffer configuration before they reach the target. With this configuration, the op amp is capable of following the original signal with no attenuation, while staying below the maximum voltage value. All the additional components are installed in order to protect the data acquisition card, while maintaining adequate signal tracking and without interference with the main circuit of the system. Figure 5. Current signal conditioning circuit. 2.1. Analytical Model From the basic physical design of the ULISES described in Figure 6, an analytical plant model is created. In particular, based on the electrical elements that compose the device, a numerical model is obtained by fitting the parameters to a control-oriented space–state representation. Additionally, the parameters are defined in Table 1. Figure 3. Output voltage signal conditioning circuit. Symmetry 2020,12, 11 4 of 15 Symmetry 2020, 12, 11 4 of 15 Figure 3. Output voltage signal conditioning circuit. Figure 4. Input voltage signal conditioning circuit. As can be seen in the figures above, the voltage output signal is driven through a voltage divider due to the high voltage values in the output point, which could destroy the PCI (Peripheral Component Interconnect) card. Additionally, all of the signals are driven through a voltage limiter, and finally through an op amp in buffer configuration before they reach the target. With this configuration, the op amp is capable of following the original signal with no attenuation, while staying below the maximum voltage value. All the additional components are installed in order to protect the data acquisition card, while maintaining adequate signal tracking and without interference with the main circuit of the system. Figure 5. Current signal conditioning circuit. 2.1. Analytical Model From the basic physical design of the ULISES described in Figure 6, an analytical plant model is created. In particular, based on the electrical elements that compose the device, a numerical model is obtained by fitting the parameters to a control-oriented space–state representation. Additionally, the parameters are defined in Table 1. Figure 4. Input voltage signal conditioning circuit. For this purpose, a data acquisition system has been built. Using a National Instruments PCI-6221 instrument for data acquisition, as well as the necessary electronic components to condition the circuit, as seen in Figure 3for the output voltage, Figure 4for the input voltage, and Figure 5for the output current. Symmetry 2020, 12, 11 4 of 15 Figure 3. Output voltage signal conditioning circuit. Figure 4. Input voltage signal conditioning circuit. As can be seen in the figures above, the voltage output signal is driven through a voltage divider due to the high voltage values in the output point, which could destroy the PCI (Peripheral Component Interconnect) card. Additionally, all of the signals are driven through a voltage limiter, and finally through an op amp in buffer configuration before they reach the target. With this configuration, the op amp is capable of following the original signal with no attenuation, while staying below the maximum voltage value. All the additional components are installed in order to protect the data acquisition card, while maintaining adequate signal tracking and without interference with the main circuit of the system. Figure 5. Current signal conditioning circuit. 2.1. Analytical Model From the basic physical design of the ULISES described in Figure 6, an analytical plant model is created. In particular, based on the electrical elements that compose the device, a numerical model is obtained by fitting the parameters to a control-oriented space–state representation. Additionally, the parameters are defined in Table 1. Figure 5. Current signal conditioning circuit. As can be seen in the figures above, the voltage output signal is driven through a voltage divider due to the high voltage values in the output point, which could destroy the PCI (Peripheral Component Interconnect) card. Additionally, all of the signals are driven through a voltage limiter, and finally through an op amp in buffer configuration before they reach the target. With this configuration, the op amp is capable of following the original signal with no attenuation, while staying below the maximum voltage value. All the additional components are installed in order to protect the data acquisition card, while maintaining adequate signal tracking and without interference with the main circuit of the system. 2.1. Analytical Model From the basic physical design of the ULISES described in Figure 6, an analytical plant model is created. In particular, based on the electrical elements that compose the device, a numerical model is obtained by fitting the parameters to a control-oriented space–state representation. Additionally, the parameters are defined in Table 1. Symmetry 2020,12, 11 5 of 15 Symmetry 2020, 12, 11 5 of 15 Figure 6. Parametric electrical equivalent circuit for the coil system of the EHU stellarator. Figure 6. Parametric electrical equivalent circuit for the coil system of the EHU stellarator. Table 1. Parameters of the electrical equivalent circuit of the EHU stellarator. Parameter Physical Meaning SI unit VIN Input DC voltage Volt (V) VOUT Measured DC voltage Volt (V) R1Resistance of first outer and inner coil, plus second inner coil Ohm (Ω) R2Resistance of second outer coil Ohm (Ω) Le1Inductance of the first outer coil Henry (H) Le2Inductance of the second outer coil Henry (H) Li1 Inductance of the first inner coil Henry (H) Li2 Inductance of the second inner coil Henry (H) M Mutual inductance (between inner coils) Henry (H) Merging the inductances and resistances leads to a simplified circuit with reduced parameters. These new parameters are shown in the following respective equations for the total circuit inductance and resistance: K=Le1+Li1+Le2+Li2±M(2) RT=R1+R2(3) In order to analyze the circuit behavior, the equations that govern the circuit are considered: VIN =I(R1+R2)+KdI dt (4) VOUT =I·R2+Le2 dI dt (5) where I(t) represents the current through the circuit. Note that both Kirchhoff’s laws and Ohm’s law particularized for the different lumped-parameter circuit elements are used in Equations (2)–(5). In order to obtain a space–state representation, the following state variables are chosen, where the usual space–state variable nomenclature is employed. In this sense, note that x1 and x2 , the components of the state vector, have different dimensions: x1=I(6) x2=. x1=dI dt (7) Replacing Equation (4) with Equation (7), the following expression is obtained: . x1=dI dt =−(R1+R2) KI+1 KVIN (8) Symmetry 2020,12, 11 6 of 15 and the time derivative of Equation (8) leads to the expression: . x2=−(R1+R2) K dI dt =−(R1+R2) Kx2(9) Thus, all the space–state variables and their respective derivatives have been defined. Neglecting the mutual inductance, the reduced space–state model can be established, where the state variables are decoupled: ". x1 . x2#= −(R1+R2) K0 0−(R1+R2) K"x1 x2#+"1 K 0#VIN (10) "IOUT VOUT #="1 0 R2Le2#" x1 x2#(11) Once the analytical state–space model form is defined in Equations (10) and(11), it is necessary to identify the values of the parameters from the real experimental system. These parameters are described and defined in Figure 5and Table 1. For parameter identification, multiple experimental tests are performed on the real plant, collecting output data through the installed data acquisition system. Besides, an analytical solution for Equations (10) and (11) is computed to facilitate the parameter identification process: x1(t)=VIN K1−e−RT Kt(12) x2(t)=VIN Ke−RT Kt(13) Taking into account the expressions given in Equations (6) and (7), for each given input their resulting output will be compare with the data output from the real EHU stellarator. Bearing this objective in mind, a series of experimental tests are carried out. The experiments consisting of applying different voltage test input signals to the real system. The resulting data from the experiments are then retrieved by the instrumentation, as detailed in the previous section. Then, the values of the parameters of the space–state system are approximated by system identification. Following this procedure for different experiments and different voltage input values, the results presented in Table 2are achieved: Table 2. Parameter value identification for the electrical equivalent circuit. Parameter R1R2Le1(=Le2)Li1+Li2+M Value 426.870 mΩ57.626 mΩ509.990 µH3.268 µH Even when this identification process of the analytical model is performed based on the system physical equations, other approaches such as pure black box or grey box methods may be also used to determine the model of the system. These will be further explained in the following subsections. 2.2. Black Box Model The black box models represent an unknown system, where only inputs and outputs are known. By analyzing these signals, a transfer function or a space–state system that represents the unknown plant may be created. However, the states of the system do not usually correspond with any physical variables of the real system [ 6 ]. In particular, considering the same input and output signals as in Section 2.1, the corresponding black box model of the EHU stellarator is: ". x1 . x2#="−18.67 −17.07 58.12 −43.91 #" x1 x2#+"0.001124 0.535700 #VIN (14) Symmetry 2020,12, 11 7 of 15 "IOUT VOUT #="−472.70 −10.260 −18.53 7.471 #" x1 x2#(15) 2.3. Grey Box Model Analogous to the black box models, grey box models represent an unknown system. However, in this case the input and output signals are known, as well as the structure of the space–state system. This means that the dimensions of the matrices and some physical restrictions on the parameters are considered during the identification [ 7 ]. However, some perturbations from higher order dynamics that were not previously taken into account in Section 2.1 are now allowed into the system. In particular, considering the same input and output signals as in Section 2.1, the corresponding grey box model of the EHU stellarator is: ". x1 . x2#="−25.90 0 0−1#" x1 x2#+"58.93 0#VIN (16) "IOUT VOUT #="−1 0 0.06 1 #" x1 x2#(17) 2.4. Model Validation via Experimentation In Sections 2.1–2.3, three different numerical models have been presented. In this section, the response of these estimated models will be compared to the experimental response of the real EHU stellarator. This comparison, as seen in Figure 7, serves to verify which one of these models is the best match for the EHU stellarator [8,9]. Symmetry 2020, 12, 11 8 of 15 𝐼 𝑉=󰇣−1 0 0.06 1󰇤󰇣𝑥 𝑥󰇤 (17) 2.4. Model Validation via Experimentation In Subsections 2.1–2.3, three different numerical models have been presented. In this section, the response of these estimated models will be compared to the experimental response of the real EHU stellarator. This comparison, as seen in Figure 7, serves to verify which one of these models is the best match for the EHU stellarator [8,9]. Figure 7. Comparison of the analytical model, black box model, and the grey box model responses in real time: comparison for voltage (top) and current (bottom). Taking into account the voltage output signal, the black box model is outperformed by both the analytical model and grey box model responses, since both of them provide an accurate estimation of the system response. On the other hand, looking into the current output signal, the analytical model shows some steady-state error. In this sense, we note that the steady-state error represents the difference between the output signal and the reference desired one once the system has reached a state where the output variations remains bounded and limited to 2%–5% of its value, where the time tends to be infinite, considering that the controlled system is stable, and thus convergent. Therefore, it may be concluded that the grey box model is the most accurate model that has been estimated for the EHU stellarator. Nevertheless, it must be considered that the differences between the grey box and the analytical model are not remarkable, while the analytical model allows identification of physical magnitudes corresponding to its different parameter components. In order to further confirm these results, the same input signal is driven to the experimental system and both the black box model and the grey box model. The results of these comparisons are shown in Figure 8. Figure 7. Comparison of the analytical model, black box model, and the grey box model responses in real time: comparison for voltage (top) and current (bottom). Symmetry 2020,12, 11 8 of 15 Taking into account the voltage output signal, the black box model is outperformed by both the analytical model and grey box model responses, since both of them provide an accurate estimation of the system response. On the other hand, looking into the current output signal, the analytical model shows some steady-state error. In this sense, we note that the steady-state error represents the difference between the output signal and the reference desired one once the system has reached a state where the output variations remains bounded and limited to 2%–5% of its value, where the time tends to be infinite, considering that the controlled system is stable, and thus convergent. Therefore, it may be concluded that the grey box model is the most accurate model that has been estimated for the EHU stellarator. Nevertheless, it must be considered that the differences between the grey box and the analytical model are not remarkable, while the analytical model allows identification of physical magnitudes corresponding to its different parameter components. In order to further confirm these results, the same input signal is driven to the experimental system and both the black box model and the grey box model. The results of these comparisons are shown in Figure 8. Symmetry 2020, 12, 11 9 of 15 Figure 8. Comparison between the real system and the theoretical model output signals: comparison with the black box model (left) and grey box model (right). As can be seen in Figure 7, the proposed models yield outputs that match those of the real system with an accuracy of approximately 50%–60% for voltage output and 94%–95% for current output. The larger error in the voltage response is due to the unfiltered noise created by the magnetic fields that interfere with the instrumentation. Therefore, as the magnitude of the noise is around 200 mV, both the responses in voltage and current signals are a good match for the experimental signal output. Therefore, both the black box and the grey box models are valid, and the experimental tests also show that the grey box model presents a better match with the real system output, although the parameter representativeness is inherent to the analytical model. 3. Control Design Once the grey system model is established and verified as the most suitable fit with the EHU stellarator, an adequate control may be designed. The main objective of the control in the platform is to ensure that the plasma inside the ULISES device chamber follows the desired trajectory so that the fusion reaction does not degenerate by regulating the coil input voltage. The control of the plasma current is indirectly achieved by controlling the input voltage, as both are directly related. For this purpose, different controlling techniques have been tested. First, a traditionally used PID (Proportional Integral Derivative) control is implemented and tuned in order to verify whether the system can be controlled by a rather simple controller. Next, a more complex controller is developed, namely a model predictive control (MPC), in order to investigate their advantages with respect to the traditional controllers. The development, implementation, and the system output for these controls will be explained in further detail in the following subsections. 3.1. PID Controller Implementation PID controllers are very common, as they are simple yet effective in minimizing the error signal in addition to stabilizing the system [10]. Different methods exist to tune the controller [11–13]. In this particular example, the PID has been tuned using the closed-loop principle of Ziegler–Nichols, where the tuning process is subjected to the constraints of closed-loop stability and large bandwidth while maintaining disturbance rejection, and enough phase margin and gain margin to allow for disturbances and unmodelled dynamics. A proprietary tuning procedure tries to compromise between those constraints. In order to implement the resulting PID into the system, a closed-loop block diagram is designed that sends signals to the actuators and collects signals from the sensors through a DAQ NI-6221 instrument, as shown in Figure 9. Considering that only the input voltage is controlled, the output voltage signal located between the second set of coils (see Figure 6) will be used as feedback for the controllers. Figure 8. Comparison between the real system and the theoretical model output signals: comparison with the black box model (left) and grey box model (right). As can be seen in Figure 7, the proposed models yield outputs that match those of the real system with an accuracy of approximately 50%–60% for voltage output and 94%–95% for current output. The larger error in the voltage response is due to the unfiltered noise created by the magnetic fields that interfere with the instrumentation. Therefore, as the magnitude of the noise is around 200 mV, both the responses in voltage and current signals are a good match for the experimental signal output. Therefore, both the black box and the grey box models are valid, and the experimental tests also show that the grey box model presents a better match with the real system output, although the parameter representativeness is inherent to the analytical model. 3. Control Design Once the grey system model is established and verified as the most suitable fit with the EHU stellarator, an adequate control may be designed. The main objective of the control in the platform is to ensure that the plasma inside the ULISES device chamber follows the desired trajectory so that the fusion reaction does not degenerate by regulating the coil input voltage. The control of the plasma current is indirectly achieved by controlling the input voltage, as both are directly related. For this purpose, different controlling techniques have been tested. First, a traditionally used PID (Proportional Integral Derivative) control is implemented and tuned in order to verify whether the system can be controlled by a rather simple controller. Next, a more complex controller is developed, namely a model predictive control (MPC), in order to investigate their advantages with respect to the traditional controllers. Symmetry 2020,12, 11 9 of 15 The development, implementation, and the system output for these controls will be explained in further detail in the following subsections. 3.1. PID Controller Implementation PID controllers are very common, as they are simple yet effective in minimizing the error signal in addition to stabilizing the system [ 10 ]. Different methods exist to tune the controller [ 11 – 13 ]. In this particular example, the PID has been tuned using the closed-loop principle of Ziegler–Nichols, where the tuning process is subjected to the constraints of closed-loop stability and large bandwidth while maintaining disturbance rejection, and enough phase margin and gain margin to allow for disturbances and unmodelled dynamics. A proprietary tuning procedure tries to compromise between those constraints. In order to implement the resulting PID into the system, a closed-loop block diagram is designed that sends signals to the actuators and collects signals from the sensors through a DAQ NI-6221 instrument, as shown in Figure 9. Considering that only the input voltage is controlled, the output voltage signal located between the second set of coils (see Figure 6) will be used as feedback for the controllers. Symmetry 2020, 12, 11 10 of 15 Figure 9. PID (Proportional Integral Derivative) closed-loop block diagram. Once the closed loop has been designed and established, a series of behavior conditions will be imposed, which the controller must fulfil [14]. For this setting, the PID parameter values will be tuned to achieve the following conditions: • Quick response. Since the system will have to handle the confinement of a rapidly varying plasma current, the control over the coil voltage will have to be as fast as possible. • Low overshoot. Excessive overshoot translates into a more powerful magnetic field, which can lead to unexpected behavior and ultimately cause internal damage to the device, which must be avoided. • Minimal steady-state error. A varying signal for voltage applied to coils creates magnetic fields that can change both in direction and in magnitude. This variable magnetic field will induce a leaking voltage into the conductive materials. The leaking currents can interfere with the plasma inside the device chamber and the instrumentation signals, and can also alter the temperature conditions. Using the robust step-response optimization algorithm for a target phase margin of 60°, the values for the PID parameters are obtained. The PID controller with the values shown in Table 3 does achieve the desired performance, as will be seen in Section 4. Table 3. Tuned PID parameters. Parameter 𝑲𝒑 𝑲𝒊 𝑲𝒅 Value 14.7180 357.55 0.0018 3.2. Model Predictive Control Design Model predictive control (MPC) relies on the idea of a more complex optimization-based scheme, which takes into account the future states of the system. In a few words, using an accurate dynamic mathematical model of the real system and different measurements of the system, this controller predicts the future behavior of the system in order to grant the best control signal [15–16]. The real system has a time constant in the order of milliseconds, so that system equations (Equations (16) and (17) are discretized with a time step of that order of magnitude to obtain an acceptable difference between the continuous and the discretized optimal control profiles. However, such a small discretization time step creates a need to significantly reduce the computation time at Figure 9. PID (Proportional Integral Derivative) closed-loop block diagram. Once the closed loop has been designed and established, a series of behavior conditions will be imposed, which the controller must fulfil [ 14 ]. For this setting, the PID parameter values will be tuned to achieve the following conditions: • Quick response. Since the system will have to handle the confinement of a rapidly varying plasma current, the control over the coil voltage will have to be as fast as possible. • Low overshoot. Excessive overshoot translates into a more powerful magnetic field, which can lead to unexpected behavior and ultimately cause internal damage to the device, which must be avoided. • Minimal steady-state error. A varying signal for voltage applied to coils creates magnetic fields that can change both in direction and in magnitude. This variable magnetic field will induce a leaking voltage into the conductive materials. The leaking currents can interfere with the plasma inside the device chamber and the instrumentation signals, and can also alter the temperature conditions.