1. Introduction
To optimize the plasma parameters and the design of scenarios for tokamak operations, significant scientific efforts have been focused on experimental and theoretical studies of the tokamak power exhaust. One of the main challenges in this domain lays in the harsh tokamak environment for direct measurements and in simplifying the hypotheses made for the numerical simulations of plasma. In this context, synthetic diagnostics are the main tool able to confront plasma transport codes and experimental data from the full set of plasma diagnostics.
Numerous studies have been conducted in the field of plasma modeling for the description, prediction, and understanding of the evolution of plasma. The most common 2D transport codes use field-aligned meshes, as in SolEdge2D-Eirene [
1] and SOLPS [
2]. Despite the remarkable level of development, this approach still has several problems. First of all, it is not a straightforward way to describe the complex details of the tokamak vessel and plasma-facing compoments (PFCs). To deal with this issue, 3D SOL codes using Monte Carlo methods can be employed, such as in EMC3-Eirene [
3]. In addition, singularities occur in the vicinity of X-points of the magnetic field and, more importantly, in the center of the plasma column. Therefore, it is not possible to perform simulations for the whole plasma domain, and such codes as SOLPS do not consider the center region at all. The key plasma parameters at the last closed magnetic flux surface are matched with other simulations, for example, by using the ASTRA [
4] simulation. Moreover, if there is a need to change the magnetic field configuration, one should redefine the mesh, which is extremely time-consuming. Consequently, it is almost impossible to perform 2D simulations for full discharges with evolving magnetic equilibrium.
Recently, a novel approach was introduced for fusion plasma modeling by using the hybridized discontinous Galerkin (HDG) method [
5]. It employs non-aligned, non-structured meshes which allow us to not only precisely describe the PFCs geometry and the evolving magnetic field, but also to refine some mesh domains locally. This approach provides a better plasma description together with good time performance. The application of the HDG code led to the state-of-the-art 2D simulation of the entire discharge in the WEST tokamak from the plasma start-up to its ramp-down [
6]. It also demonstrated the difference of such an approach compared with the usual steady-state ones. The plasma density in the latter case is shown to be lower than in a full discharge simulation, which cannot be covered by the commonly used codes. However, despite the promising qualitative agreement of the evolving plasma parameters with the experimental values, quantitative comparison with the integrated electron density from interferometry measurements shows discrepancies [
6]. This means that the HDG code still needs more improvements and investigations, as well as benchmarking with both experiments and other existing codes.
The tokamak environment with its high temperatures (of the order of 10
–10
K) and low pressures (few Pa) usually leads to indirect measurements of macroscopic plasma parameters, which are typically compared with the outputs of the transport codes. Each measurement then needs to be interpreted, applying a set of assumptions in the physical model of a diagnostic and often using hypotheses on the plasma state and its equillibrium. For example, the phase shift of a passing laser beam can stand for the line-integrated density, supposing that electron temperature does not affect the measurement, or the intensity and the wavelength spectrum of the light can give information about density and temperature of radiating plasma species if we assume a certain model for the ionization states distribution [
7], etc. Synthetic diagnostics are used to verify such relations. In addition to the evaluation of the fidelity of the imposed simplifications, it can also be employed for the benchmarking of the transport codes.
One of the widest family of the tokamak diagnostics are the ones dealing with plasma radiation. The Cherab [
8] Python library, which is based on the Raysect [
9] ray-tracing framework, was designed specifically to describe plasma radiation diagnostic systems. Raysect is a 3D spectral geometric ray tracer, which does not cover dispersion and dissipative effects. It has a collection of observers and, so-called primitives ranging from simple geometric shapes to detailed meshes for sophisticated computer-aided design (CAD) models. The user can specify surface and volume properties of the primitives such as bidirectional reflectance distribution function (BRDF) or anisotropic volumetric radiation. With the help of the Cherab library, various plasma parameters, such as magnetic configuration or particle distributions can be associated with the primitives. The more detailed description of the libraries with the underlying equations can be found in [
8]. All in all, the Cherab–Raysect framework allows us to comprehensively describe both plasma radiation and optical properties of PFCs in the common fashion for different diagnostics. Here are only a few of its applications: bolometry on JET [
10], charge exchange recombination spectroscopy (CXRS) diagnostics on COMPASS upgrade [
11], and design of H
emission diagnostics on ITER [
12]. Moreover, SolEdge3X-HDG has the potential to cover the 3D plasma domain as well as the details of the tokamak PFCs. Even though toroidal symmetry is usually supposed, localised tokamak elements will cause the simulated plasma parameters to vary not only in poloidal cross-section, but also with toroidal angle, as in the real devices. Moreover, visible diagnostics are influenced by reflections on the vessel elements. Hence, employing a 3D ray-tracing tool will lead to a more realistic description for the synthetic diagnostics.
The development of synthetic diagnostics using Cherab–Raysect framework is now ongoing for the WEST tokamak and is improving both the measurement quality and its interpretation. For example, bolometer cameras are used for radiated power measurement. On the one hand, this diagnostic can be used to evaluate the power radiated by heavy impurities in the core, which is not favorable for fusion reaction. On the other hand, it can be used to control the particle heat flux on the divertor plates by following the light impurity injection. Although the bolometry system is well-designed and operational on the WEST tokamak [
13], the synthetic diagnostic code SYNDI [
13] currently used to predict bolometry signals is not able to handle non-axysimmetric geometries of PFCs and the tokamak vessel. Moreover, because bidirectional BRDF is still under investigation for the WEST PFCs [
14], one can use the Cherab library to adjust optical properties in the model by using a similar approach to that used in [
8] and investigating the influence of different materials on the signals.
Another form of diagnostics which are still not widely used on the WEST tokamak are visible cameras, which are now operated for observation purposes. This instrument could be a powerful tool for numerous tasks such as plasma boundary or last-closed flux surface (LCFS) detection [
15,
16], attention-needed area detection and localization (which also can employ neural networks) [
17,
18], or even for tomographic inversion of detected radiation [
19] and calculation of the sources of particles from these. However, visible cameras are struggling with the poor description of the reflection properties of the PFCs [
8], which can lead to misinterpreting of the experimental images. Cherab and Raysect allow us to deal with this issue, introducing flexible ways to describe optical properties of the surfaces and to implement visible cameras’ technical characteristics. Together with simulation in SolEdge3X-HDG, this can lead us to the design of novel, more comprehensive ways to exploit such diagnostics on the WEST tokamak.
All in all, novel codes, such as SolEdge3X-HDG, as well as the physical models of the experimental diagnostics are the subject of validation and benchmarking. This could be done in the framework of the Cherab and Raysect Python libraies. Moreover, the co-use of transport codes and synthetic diagnostics will be beneficial for the experimental diagnostics setup of the WEST tokamak. Therefore, in this paper we introduce the development of a Cherab machine-specific package for the WEST tokamak and SolEdge3X-HDG codes. It contains the description of the first synthetic diagnostics, namely for bolometry and visible camera. The benchmark between the existing WEST ray-tracing code SYNDI, experimental signals, and the developed synthetic one is provided. The influence of the roughness of the material and reflections model on the simulated signals is also shown. Finally, the ability to simulate visible camera images for different phases of the plasma discharge is demonstrated.
We organize this paper as follows. In
Section 2, we briefly discuss the SolEdge3X-HDG and ERO2.0 code, the Cherab–Raysect framework and describe the discharge parameters used for simulation. Moreover, the WEST bolometer system is introduced.
Section 3 is dedicated to the performance of the synthetic diagnostics, including bolometer system benchmarking and demonstrating the images for the visible camera. We discuss our results and show possible further extensions of the work in
Section 4.
2. Synthetic Diagnostics and Simulation Data
The data used for generation of the synthetic diagnostic signals was taken from Ref. [
6] and obtained by SolEdge3X-HDG simulation. The model is based on the Braginskii conservative equations for density, parallel momentum, total energy for singly charged ions, and electrons for the entire plasma volume. Neutral dynamics by simple diffusion model as well as Ohmic heating are also considered in the code. The latter one is calculated based on the current profile, obtained from the experimental data. Here, we will briefly describe only the simulation parameters. For a more detailed description of the code, the reader can refer to [
5,
6].
The WEST discharge #54487 was chosen for simulation of the diagnostics in this paper and the results are taken from [
6]. There are 403 different time steps with an interval of
= 0.02 s. Perpendicular diffusion coefficients
(for particle, momentum and ion and electron energy transport, respectively, across the magnetic field) are constant and equal to 0.5 m
s
. Parallel diffusion coefficients for ion and electron energy transport along the magnetic field lines are equal to
= 60 [Wm
V
,
= 2000 [Wm
V
. The neutrals diffusion coefficient
is set to 2000 m
s
. The values of the transport coefficients were adjusted in a way to achieve the best possible match between line-integrated density in simulation with the interferometer data. Neutral sources are defined by pumping rates and recycling. The former was obtained from the WEST experimental database. The Eirene code was not used in this simulation in contrast to [
1]. The recycling coefficient
R is equal to 0.998. The mesh used in the SolEdge3X-HDG as well as in Cherab is shown in
Figure 1.
In addition, tungsten erosion was calculated with the Monte Carlo code ERO2.0 [
20,
21] with a SolEdge3X-HDG output as a plasma background. The latter one provides spatial distribution of
(equal to the ion density),
, the main ion temperature
, the main ion parallel velocity
and the magnetic field
. ERO2.0 is a 3D code; however, the discussed simulation was 2D, and therefore the wall geometry was just an axial extrusion of 2D poloidal section used in SolEdge3X-HDG. Such an assumption leads to the antenna-limiter being axysimmetric rather than a set of toroidally distributed antennae, as in the experiment. As was discussed in [
22,
23], this implies a slight shift of the antenna off the plasma. Therefore, the erosion of tungsten is less compared with using the real 3D geometry of these PFCs [
23]. This might be one of the reasons of bolometer signal descrepancy, as will be discussed in
Section 3.3. Oxygen is used as a proxy for light impurities in the ERO2.0 simulation, which are the main source for the tungsten sputtering. Its concentration was set to be constant at 3% over the plasma domain with fractional abundances, corresponding to [
24] at the targets (
= 0.4:0.15:0.15:0.07:0.1:0.015:0.015). The more precise ERO2.0 model description can be found in [
22,
23]. The output of the code provide us with a map of tungsten densities
, where Z corresponds to the charge of the ion (or 0 in case of the atom).
Obtained from SolEdge3X-HDG maps of the
,
,
,
,
(equal for all of the neutrals and ions), and
from ERO2.0, are used to reproduce plasma radiation by using Cherab and Raysect. A constant concentration of oxygen of 3% as in ERO2.0 simulation is used as a light impurity proxy. Fractional abundances are calculated with ionisation, recombination, and thermal charge exchange rate coefficients. The parameter grid and interpolation on the HDG values are rough, so oxygen concentration is employed only to show qualitative sensitivity of the method to the presence of light impurities. Four time moments, corresponding to the limiter, ramp-up, flat-top, and ramp-down stages with
t = 0.26, 1, 4.48, and 7.52 s are chosen. The mentioned maps are interpolated by using built-in functions, and the 2D profiles on corresponding meshes are shown in
Figure 2 and
Figure 3. Plasma is modeled as an axysimmetric volume emitter. OpenADAS [
25] is used for atomic data.
To calculate the bolometer signals, the TotalRadiatedPower model from Cherab is applied. It uses the ADF11 subpackage of ADAS, PLT files for line excitation radiation, and PRB for continuum and line recombination and bremsstrahlung power losses. Moreover, the bolometer, bolometer slit and foils classes from Cherab are employed to describe the system. The horizontal WEST tokamak bolometer system with two cameras, each with eight fan-spanned channels, which was operated in previous campaigns, is used in this article. Each of the two horizontal cameras contains of slits of dimension
mm positioned at
R = 4.482 m,
Z = ± 0.336 m, and toroidal angle
= 84.88
. Ten centimeters behind the slit, eight bolometer foils of dimension
mm are positioned vertically every 5 mm. The LOS are shown in
Figure 1. The error, associated with the experimental data are in the range from 1 to a few %, linked to calibration procedures and subtraction of low-frequency integration drift [
26].
The PinholeCamera Raysect class with 512 × 512 pixels was used to introduce the availability and performance of the synthetic visible camera. It is positioned at equatorial plane R = 3.085 m, Z = −0.2 m, = −139.6, and 20 from the Y-axis in the clockwise direction. The field of view was set to 45. For visible camera image generation WI 401.22 nm, deuterium Balmer series recombination and excitation lines, as well as bremsstrahlung are used.
Simplified models of the WEST vessel and PFCs were obtained from the ToFu library [
27]. As this vessel model lacks port descriptions, the walls were omitted, and only PFCs were taken into account while calculating the bolometer signal. To avoid double counting of the plasma signal for central channels (when a ray can pass through plasma twice due to the absence of the wall) an absorbing proxy cylinder was placed in the center of the scene. At this stage of the work, we assume all of the WEST components to be made of the same material. Where the material is not mentioned, an absorbing surface was used. This approach provides enough accuracy for the initial benchmark and does not require much effort. However, in the dedicated
Section 3.2, we compare several methods of PFC description, which include the JET description for bulk tungsten and for PFCs, coated with tungsten [
8] and a specular tungsten. These assumptions, probably being not exactly correct, still cover a significant range of possible optical properties and, therefore, they influence the diagnostics.
4. Discussion
In this paper, we demonstrated the first results of synthetic diagnostics Cherab package development for usage with SolEdge3X-HDG code and WEST tokamak. It includes bolometer and visible camera simulated signals as well as a comparison of the 2D transport code results with experimental data.
At first, the bolometer submodule was verified with an existing ray-tracing code SYNDI. Even with a simplified tokamak PFCs model in the absence of reflections, the comparison is almost perfect. This means that the geometry set in both codes, as well as line integration, are identical. However, later, a more detailed WEST CAD model will be used, and this will give more relevant synthetic signals compared to the experimental ones. Moreover, when the new vertical bolometer systems are commissioned, Cherab–WEST package might be used to check the geometry and relative position of both cameras and tokamak elements.
Another useful implementation of these WEST digital twin will be a proper selection of surface material model. As was shown in
Section 3.2, there might be a difference of order of magnitude in the case of different optical PFC properties. Not only the value of the modeled signal, but also the shape of the bolometer signals profile can change significantly. This may cause a systematic error while interpreting experimental results in terms of the locations of the highest radiation. Together with the BRDF measurements [
14], a better refined CAD model, and better Cherab and Raysect libraries, a physically reliable WEST tokamak model should be implemented.
In comparison with the experimental data, using deuterium, tungsten, and proxy oxygen showed the sensitivity of our bolometer digital twin to the different sources of radiation. However, it also revealed discrepancies, which were caused by the model’s simplicity and uncertainties. Nonetheless, having such a confrontation tool will allow us to more easily improve the model in SolEdge3X-HDG, as well as in ERO2.0.
In addition, the very availability of a full-discharge, entire-plasma-domain simulation with SolEdge3X-HDG allows us to perform benchmarking for the diagnostics which use line-integrated signals, i.e., cover the core plasma. Consequently, there is a possible co-use of synthetic diagnostics and this novel code dedicated to improvement of the existing experimental tools. For example, bolometers are not yet able to perform real-time tomography measurements during discharge. For these purposes, machine learning can be used [
31,
32]. At the same time, SolEdge3X-HDG could be utilized to obtain the training set as the vertical bolometer system was not in use before. Therefore, there is no opportunity to get the 2D radiation profiles from only horizontal systems without strict assumptions on its distribution. Profiles obtained from simulation have another advantage over experimental ones; they are less noisy, and the code can cover more regimes in less time than in desired experiments. Among these applications, Cherab can be also employed for performing the conventional tomography inversions, which also should be implemented for the upcoming campaign. Moreover, it is a very straightforward tool with which to obtain geometry matrices for further usage with other software, for example, ToFu [
27], which is designed for tomography inversions.
The filtered visible camera demonstration shows the ability to use such a device in the real experiments. In the easiest case, it can show the approximate location of the particle sources. However, it is possible to make a tomographic inversion into the 2D radiation profile [
8], which can further be interpreted in terms of particle fluxes. Moreover, the limiter and divertor phases are clearly distinguished on the visible images, as well as locations of the highest radiation. This might also be employed in the discharge state control system. On the top of that, visible cameras can be a useful tool for the LCFS detection, which was not investigated yet on the WEST tokamak.
Among the mentioned applications, the family of synthetic diagnostics will be expanded by at least visible spectroscopy diagnostics. Having digital twins of refractometry, soft-xray diagnostics, Langmuire probes, and interferometers, one will have a powerful tool with which to make a comprehensive confrontation of the transport code with the experimental data.