1. Introduction
The application of non-axisymmetric magnetic fields in tokamak devices is a major field of plasma control research. The research in this field has progressed along two primary directions. The first research direction focuses on using non-axisymmetric magnetic fields to stabilize resistive wall modes [
1,
2] and edge-localized modes [
3,
4]. For example, ITER has a set of rectangular coils to mitigate edge-localized modes [
5,
6], while JT-60SA employs two sets of rectangular coils, error field correction coils [
7,
8], and resistive wall mode control coils [
9]. The other research direction is to passively stabilize the vertical position of vertically high-elongated plasmas by applying strong non-axisymmetric fields without feedback control systems. Experiments on devices such as CTH [
10], JIPP T-II [
11], PHiX [
12], and TOKASTAR-2 [
13] have demonstrated the stabilizing effect with helical or local coils. These examples highlight that tokamak control requires non-axisymmetric magnetic fields.
The plasma control system of a tokamak is designed to maintain equilibrium during discharge. As is well known, increasing the elongation ratio of the plasma cross section improves energy confinement [
14], while it enhances vertical instability. To solve this trade-off, magnetic fields generated by the external coils must be precisely regulated to control plasma shape and position. Conductive structures with finite electrical resistance can mitigate the unstable modes, whereas they prevent the rapid plasma response. Therefore, the design of tokamaks requires control models that can simulate the time evolution of the entire system, including the core plasma, conducting structures, coils, and power supplies.
Conventionally, axisymmetric simulation codes, such as TSC [
15] and DINA [
16], have been used for the tokamak control. Recently, three-dimensional (3-D) equilibrium solvers originally developed for stellarator research, such as VMEC [
17] and HINT [
18], have been applied to tokamaks with non-axisymmetric coils. However, these codes have limitations: they do not account for conducting structures such as vacuum vessels, which are essential for tokamak control studies, and VMEC, which is formulated on a magnetic coordinate system, cannot represent equilibria with a separatrix. Consequently, no control simulation code incorporates both the effects of non-axisymmetric magnetic fields and conducting structures.
To realize the requirements, the goal of this research is to develop a 3-D control simulation code for tokamak plasma that incorporates non-axisymmetric magnetic field effects. To achieve this goal, the 3-D Multi-Layers Method (MLM) has been proposed and is currently under development as an extension of the previously developed axisymmetric version by Tsutsui et al. [
19,
20]. In the MLM, a tokamak is modeled as an electric circuit system consisting of magnetic field coils with current sources representing the power supplies, conducting structures, and core plasma represented by multiple current layers coinciding with the magnetic surfaces. In this formulation, the 3-D MLM assumes the existence of nested closed magnetic surfaces in the plasma region, similar to the assumption in VMEC, with plasma current flows only on the prescribed current layers. The 3-D MLM can include separatrix and open magnetic surfaces in the vacuum region, whereas VMEC cannot. Based on the variational principle, MHD equilibria are obtained as a minimum energy state of the free energy function.
This circuit-based formulation allows for straightforward coupling among the plasma, magnetic coils, and vacuum vessel by mutual inductance. In the 3-D MLM, the plasma currents distributed on the current layers are represented by imaginary filament currents to simplify the calculations of inductances, and the time evolution of the system is then obtained by solving circuit equations. In this framework, plasma and vacuum vessel fluxes, together with coil currents, are updated at each time step, and the equilibrium is recalculated at each step through free energy minimization. In this formulation, the time step in numerical calculations is determined by the resistivity of the current-carrying regions, such as the core plasma and the vacuum vessel. This allows for faster time evolution computation than TSC, which is constrained by the Alfvén time scale and the magnetic diffusive time scale of the vacuum region where low-temperature plasma is filled [
15]. DINA adopts a similar approach to the MLM for computing the time evolution, where the equilibrium is recomputed at each time step. However, DINA evaluates the equilibrium from the Grad–Shafranov equation and the time evolution from magnetic diffusion equations, which are not solved in the vacuum region [
16].
The goal of this research is to develop the 3-D MLM as a control simulation tool for tokamaks with non-axisymmetric field effects. This paper describes the first stage of the 3-D MLM development, focusing on the equilibrium calculation. The validity of the 3-D MLM is demonstrated by comparing its equilibrium results with those of vacuum magnetic fields and VMEC. Future work will extend the method to dynamic simulations, enabling its application to non-axisymmetric control studies, including the effects of eddy currents and feedback control systems. In
Section 2, the details of 3-D MLM are presented. A free energy function of the MLM is defined by including the work by current sources. In order to apply the MLM to the tokamak, it is modeled as an electric circuit system. Taking the variation of the free energy, the relationship between the free energy and the MHD equilibrium equation is derived. After this derivation, the numerical procedure of the 3-D MLM is presented. In order to confirm the validity of 3-D MLM, two numerical examples of the 3-D MLM calculations are demonstrated in
Section 3. Finally, conclusions are drawn in
Section 4.
2. 3-D Multi-Layers Method
In the early stages of plasma control research, the ring model was commonly used [
21], in which the plasma was represented as a single current loop. Since this model could not reproduce plasma deformation, the axisymmetric MLM was developed [
19,
20]. To realize the requirements of tokamak control simulation that include the effects of non-axisymmetric magnetic fields and conducting structures, the 3-D MLM has been extended from its axisymmetric version. The MLM models a magnetic confinement fusion device as an electric circuit system consisting of plasma, magnetic field coils, and conducting shells, as shown in
Figure 1a. In the MLM model, the magnetic field
is generated only by the electric currents of all the circuits, with no additional external fields included. In this work, the cylindrical coordinate system
in
Figure 1a,
is used. In the MLM, the plasma is modeled as a set of current layers (
Figure 1a) that coincide with magnetic surfaces, with prescribed toroidal and poloidal fluxes conserved against plasma deformation. The 3-D MLM assumes the existence of nested closed magnetic surfaces in the plasma region, similar to the assumption in VMEC. Plasma current flows only on these layers, and current distributions are determined from the condition that the current layers coincide with the magnetic surfaces. These distributed toroidal and poloidal currents on the current layers are replaced by deformable toroidal and poloidal filamentary circuits, as illustrated in
Figure 1b,c. In this model, the magnetic field components parallel to the current layers are discontinuous across the front and back of the layers, since current flows only on the layers. The imaginary plasma filaments couple with the conducting structures, modeled as circuits, as well as with the external coils through mutual inductance. Unlike other 3-D equilibrium solvers developed for stellarators, the 3-D MLM can be used in control simulations because it includes conducting structures.
In this model, the plasma and conducting structures, such as the vacuum vessel, are assumed to be flux conserving, while the magnetic field coils, such as the toroidal field coils (TFCs) and poloidal field coils (PFCs), are assumed to have constant current. Moreover, the plasma is assumed to be deformed under the adiabatic condition. Considering an electric circuit system with the flux conservation segments and the current conservation segments, the energy conservation law of the circuit system is [
22]
where the variables are defined as follows. Here,
t denotes time. The parameter
represents the current flowing in the
ith circuit, and
is the magnetic flux linkage associated with the
ith circuit. The variable
denotes the force acting on the
ith circuit, and
is the displacement of the
ith circuit. Finally,
indicates the applied voltage to keep the coil current constant, and the last term on the right-hand side of Equation (
4) is the work by the current sources (power supplies). When the free energy function of the electromagnetic circuit system is defined as follows,
the force
can be expressed as
from Equation (5).
To apply the electric circuit system to a tokamak plasma, the internal energy of the plasma must be included. In the MLM model, since only the current layers support pressure differences, the pressure between layers is assumed to be uniform. Consequently, the pressure distribution takes the form of a step function. As the number of current layers becomes sufficiently large, this stepwise distribution converges to a continuous distribution. Because the adiabatic condition is assumed in our model, the entropy parameter
in the region
k,
is kept constant for the deformations of current layers. Here,
is the volume between the
kth and
th current layers with the magnetic axis labeled as
, as shown in
Figure 1a. The pressure in region
k is denoted by
, and
is the ratio of specific heats whose value is
in this work. Then the internal energy is
from Equation (
8), where
N is the number of current layers.
In general, the force
to the
th degree of freedam is evaluated by
by use of the free energy
, where
’s are parameters that determine the shape and volume of the plasma. The free energy function
can be obtained from Equations (
6) and (
9) as follows:
Since the equilibrium state of the plasma, coil, and conducting shell system is achieved at
for all
,
(
11) can be used to find the equilibrium of the system.
Although the free energy function
is defined for circuit systems, it can be extended to continuum systems as follows:
where
,
,
p, and
are vector potential, current density, plasma pressure, and vacuum permeability, respectively.
,
,
,
, and
are the plasma region, the conducting shells region, the vacuum region, the magnetic field coils region, and the entire region, as shown in
Figure 2, respectively. The first and second terms on the right-hand side of Equation (
12) are assumed to be flux conserving and correspond to the first term on the right-hand side of Equation (
11). The third term on the right-hand side of Equation (
12) is assumed to have constant current and corresponds to the second term on the right-hand side of Equation (
11). The last term on the right-hand side of Equation (
12) corresponds to the last term on the right-hand side of Equation (
11), and the adiabatic condition is assumed. The plasma surface
is assumed to coincide with the magnetic surface, and the corresponding toroidal and poloidal magnetic fluxes are given.
Taking the variations of Equation (
12) under the constraints of adiabatic condition and magnetic flux conservation of plasma, magnetic flux conservation of conducting shells, and the current conservation of coils, the following two equations are obtained as the Euler–Lagrange equations, which are derived in
Appendix A,
where
is the jump of
f at the boundary of the two regions and is given by
where the subscripts “ex” and “in” mean the outside and the inside of the boundary, respectively. Equation (
13) is the MHD equilibrium equation and Equation (
14) shows the pressure balance at the plasma surface. Therefore, the state that minimizes the energy functional (
12) is the equilibrium state of the ideal MHD equation. Since the energy function (
11) is a discrete approximation of the functional (
12), the numerical solution of the MLM that minimizes the free energy
(
11) coincides with the equilibrium solution of the ideal MHD equation.
Next consider the energy conservation. The total system energy of the MLM model including current sources is conserved, as shown in
Appendix B,
where
and
are mass density and plasma velocity, respectively. Therefore, the total system energy of plasma kinetic energy and the free energy
, which includes work by current sources, is conserved, as is expected from Equation (
4). Since the sum of free energy
and kinetic energy is conserved, the application to MHD stability analysis is expected by the use of free energy
instead of potential energy. The third term on the right-hand side of Equation (
12) apparently resembles the vacuum magnetic energy term in the VMEC free boundary problem [
17], where its variation keeps the plasma current constant, while variation of
changes plasma current under the constraint of constant magnetic flux.
Since the magnetic flux and current in the circuit system are related by inductance matrix
,
and
of the right-hand side in Equation (
11) are evaluated by Equation (
17). Equation (
17) can be rewritten as
where the subscript specifies the flux conservation system (
) or the current constant system (
).
,
,
, and
in Equation (
11) are elements of
,
,
, and
, respectively. Although plasma displacement changes the values of
,
, and
, the valudes of
and
are determined from the given values of
and
using the simultaneous linear Equation (
18).
In the 3-D MLM, the mutual inductance
of the
ith and
jth coils is given by the Neumann formula,
where
and
are the position vector and its trajectory of the
ith filament shown in
Figure 1c, respectively. Since Equation (
19) cannot be used to calculate self-inductance, the self-inductance of a circular filament is employed as an approximation. For a circular filament,
D is the radius of the circular loop, while
d denotes the radius of the filament’s cross section. When the condition
is satisfied, the self-inductance
L can be approximated by the following expression [
23],
where
is internal inductance, which is determined by the current distribution within the cross section of the conductor. In this study,
is chosen, which means the uniform current density. Then the self-inductance
is obtained from Equation (
20),
where
and
are the length and radius of the
ith filamentary circuit, respectively. Here
D in Equation (
20) is replaced by the length of filaments
. In this study, Equation (
21) is used for imaginary filaments of plasma shown in
Figure 1c because those filaments are sufficiently thin and similar to circular circuits. For simplicity, the magnetic field coils also employ Equation (
21) since their values do not affect the plasma equilibrium. As was explained in this section, the filaments are introduced to simulate the current distribution on the current layers. Therefore, the filament radius
is determined so that their combined inductance coincides with the self-inductance of the current layer.
As the matrix
is determined by the configuration of the coil and plasma, the free energy is also a function of the configurations of the plasma, which are represented by
in Equation (
10). Here, the shape of each current layer
k (
Figure 1a) is represented by the next Fourier series.
where
and
denote the cylindrical coordinates in Equations (
1)–() of the
kth current layer, and
,
,
, and
are their cosine and sine Fourier coefficients. Here,
m and
n denote the poloidal and toroidal mode numbers, respectively, and
is the toroidal angle. The geometrical axis of
kth current layer is determined by Equations (
22) and (
23) with
. Using the axis, the poloidal angle
on the
kth layer is determined as the angle around the axis. Although our model does not prescribe a current layer to the magnetic axis, the axis of the innermost current layer corresponds to the magnetic axis. Since, in this work,
is chosen as the set of Fourier coefficients
,
,
, and
in Equations (
22) and (
23), the inductance matrix
is a function of variable
.
Finally, the computational procedure of the 3-D MLM is summarized as follows. The continuous model requires the coil orbits and currents, poloidal flux distribution
as a function of toroidal flux
, entropy parameter distribution
, and initial geometrical configuration of plasma. In the descret model of the 3-D MLM, the coil orbits and currents, toroidal and poloidal fluxes
and
of each plasma current layer, entropy parameters
, and the initial plasma shape
are required for the minimization of the free energy
(
11). The coil currents,
,
, and
, are fixed during the minimization process, whereas the plasma configuration parameters
are updated at every iteration. The 3-D MLM assumes the existence of nested closed magnetic surfaces in the plasma region, as VMEC. The toroidal and poloidal plasma current distributions on the current layers are then determined under the assumption that the current layers coincide with magnetic surfaces. These distributed currents are represented by toroidal and poloidal filamentary circuit currents. The inductance matrix is evaluated by Equations (
19) and (
21), based on the plasma filaments and the coils orbits. In the axisymmetric MLM, mutual inductances in the toroidal direction can be calculated using incomplete elliptic integrals, whereas they are evaluated by Equations (
19) and (
21) in the 3-D MLM. Moreover, the poloidal current can be represented as a surface current in the axisymmetric version, and mutual inductances between toroidal and poloidal systems are exactly zero. Since these relations are not used in non-axisymmetric configurations, the plasma current distribution and the flux linkage of the coils are then obtained by Equation (
18). In addition, the volume between plasma current layers is a function of
, and the pressure distribution is determined by Equation (
8). These procedures are repeated to search for the plasma configuration that minimizes the free energy, which represents the equilibrium solution. In this study, the simplex method [
24] is used in the minimization.