Hostname: page-component-6766d58669-zlvph Total loading time: 0 Render date: 2026-05-23T13:07:20.597Z Has data issue: false hasContentIssue false

Piecewise field-aligned finite element method for multi-mode nonlinear particle simulations in tokamak plasmas

Published online by Cambridge University Press:  31 March 2025

Zhixin Lu
Affiliation:
Max Planck Institute for Plasma Physics, Garching 85748, Germany
Guo Meng*
Affiliation:
Max Planck Institute for Plasma Physics, Garching 85748, Germany
Eric Sonnendrücker
Affiliation:
Max Planck Institute for Plasma Physics, Garching 85748, Germany
Roman Hatzky
Affiliation:
Max Planck Institute for Plasma Physics, Garching 85748, Germany
Alexey Mishchenko
Affiliation:
Max Planck Institute for Plasma Physics, Greifswald 17491, Germany
Fulvio Zonca
Affiliation:
Center for Nonlinear Plasma Science, CR ENEA Frascati, CP 65, Frascati 00044, Italy
Philipp Lauber
Affiliation:
Max Planck Institute for Plasma Physics, Garching 85748, Germany
Matthias Hoelzl
Affiliation:
Max Planck Institute for Plasma Physics, Garching 85748, Germany
*
Corresponding author: Guo Meng, guo.meng@ipp.mpg.de

Abstract

This paper presents a novel approach for simulating plasma instabilities in tokamak plasmas using the piecewise field-aligned finite element method in combination with the particle-in-cell method. Our method traditionally aligns the computational grid, but defines the basis functions in piecewise field-aligned coordinates to avoid grid deformation while naturally representing the field-aligned mode structures. This scheme is formulated and implemented numerically. It also applies to the unstructured triangular meshes in principle. We have conducted linear benchmark tests, which agree well with previous results and traditional schemes. Furthermore, multiple-$n$ simulations are also carried out as a proof of principle, demonstrating the efficiency of this scheme in nonlinear turbulence simulations within the framework of the finite element method.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press
Figure 0

Figure 1. Grids for simulations and the local supports where the basis functions are non-zero. The linear basis functions are adopted. Grey lines represent the $Y$ and $Z$ grids, while the dashed parallelograms, which match the colour of basis function $N_{j,k}$, represent the local supports. The overlaps between different basis functions are shown. The basis function $N_{j,k}$ overlaps with itself and two other functions $N_{j^{\prime},k^{\prime}}$ when $k^{\prime}=k$, as shown by the fact that $N_{0,0}$ overlaps with $N_{1,0}$ and $N_{-1,0}$. For $k^{\prime}=k-1$, $N_{j,k}$ overlaps with the other four basis functions (the overlap between $N_{1,1}$ with $N_{j^{\prime}=-1,0,1,2,k^{\prime}=0}$).

Figure 1

Figure 2. Tokamak geometry with the piecewise field-aligned basis functions. The directions of the magnetic field and the alignment of the basis functions are different from (left) the inner surface to (right) the outer surface. Along the toroidal direction, the red lines follow the magnetic field. The centre of local support is at the node of the traditional grid. Only the right/left half of the local support of the cubic basis function (the two middle sections in the poloidal direction) on the outer/inner surface is shown.

Figure 2

Table 1. Different choices of the Clebsch coordinates. For the sake of simplicity, we choose $\phi$ as the toroidal angle but adapt $\theta$ to $\bar \theta$ so that $(r,\bar \theta, \phi )$ is a straight field line coordinate system.

Figure 3

Figure 3. The numerical integral using the Gauss–Legendre quadrature when $k^{\prime}\ne k$, where $k$ and $k^{\prime}$ are the indices in the toroidal direction.

Figure 4

Table 2. Properties of different schemes for matrix construction.

Figure 5

Figure 4. (left) Two-dimensional mode structure and (right) the radial structure of the ITG mode for $n=25$.

Figure 6

Figure 5. Growth rate of ITG mode for different values of the toroidal mode number $n$.

Figure 7

Figure 6. Growth rate and frequency of ITG mode for different values of the toroidal mode number $n$, using the 2-D1F scheme and the 3-D field-aligned FEM.

Figure 8

Figure 7. (Left) Time evolution of the scalar potential at the probe position simulated using the 3-D field-aligned FEM solver. (Right) Zonal flow residual for different safety factor values $q$ calculated using the 2-D1F solver and the 3-D field-aligned FEM solver compared with the theoretical result (red dashed line).

Figure 9

Figure 8. Time evolution of (left) the total field energy and (right) the energy flux.

Figure 10

Figure 9. Standard deviation of the total perturbed density $\sigma _{\delta n}$ (red line) and current $\sigma _{\delta j}$ (black dashed line) ($32\times 10^6$ electrons and $4\times 10^6$ ions). A case with half the marker numbers ($16\times 10^6$ electrons and $2\times 10^6$ ions) is also shown, where $\sigma _{\delta n}$ is given by the blue dashed line and $\sigma _{\delta j}$ is given by the dashed magenta line.

Figure 11

Figure 10. Time evolution of field energy for multiple $n$ simulation using 3-D field-aligned FEM for nominal parameters ($\rho _N=0.0033422$ m) except $m_i/m_{\textrm {e}}=100$. The growth rates $\gamma$ of the zonal component ($n=0$) and the turbulent part ($n\ne 0$) of the total field energy are calculated using the linear fit of the time evolution of the logarithmic total field energy during the stable linear stage indicated by the two dashed red lines.

Figure 12

Figure 11. The 2-D mode structure (left) in the linear stage at $t=30R_N/v_N$ and (right) in the nonlinear saturated stage at $t=50R_N/v_N$.

Figure 13

Figure 12. (left) Mode structure $\delta \Phi (r_c,\theta, \phi )$ in the magnetic flux surface at $r=r_c$ and (right) the Fourier spectrum $\delta \Phi _{m,n}(r_c)$. The linear and nonlinear structures are shown in the upper frame and lower frame, respectively. Note that the maximum toroidal mode number $n$ in the simulation is limited by the poloidal grid number with the given profile of the safety factor $q$. However, for the Fourier decomposition of the mode structure, the field value $\delta \Phi$ is calculated in a denser grid in $(r,\theta, \phi )$ coordinates with 512 and 1024 grid points along $\phi$ and $\theta$, respectively. Thus, the Fourier component $\delta \Phi _{m,n}$ is less reliable for $n\gt 35$, but physically, its magnitude should be small due to the finite Larmor radius effect.

Figure 14

Figure 13. (left) Radial mode structure and (right) spectrum of the toroidal harmonics in the linear stage ($t=30R_N/v_N$) and nonlinear stage ($t=50R_N/v_N$).