Hostname: page-component-74656f9884-npj9w Total loading time: 0 Render date: 2026-11-09T14:20:06.736Z Has data issue: false hasContentIssue false

Electrostatic gyrokinetic simulations in Wendelstein 7-X geometry: benchmark between the codes stella and GENE

Published online by Cambridge University Press:  10 June 2022

A. González-Jerez*
Affiliation:
Laboratorio Nacional de Fusión, CIEMAT, 28040 Madrid, Spain
P. Xanthopoulos
Affiliation:
Max-Planck Institut für Plasmaphysik, 17491 Greifswald, Germany
J.M. García-Regaña
Affiliation:
Laboratorio Nacional de Fusión, CIEMAT, 28040 Madrid, Spain
I. Calvo
Affiliation:
Laboratorio Nacional de Fusión, CIEMAT, 28040 Madrid, Spain
J. Alcusón
Affiliation:
Max-Planck Institut für Plasmaphysik, 17491 Greifswald, Germany
A. Bañón Navarro
Affiliation:
Max-Planck Institut für Plasmaphysik, 85748 Garching, Germany
M. Barnes
Affiliation:
Rudolf Peierls Centre for Theoretical Physics, University of Oxford, Oxford OX1 3PU, UK
F.I. Parra
Affiliation:
Rudolf Peierls Centre for Theoretical Physics, University of Oxford, Oxford OX1 3PU, UK
J. Geiger
Affiliation:
Max-Planck Institut für Plasmaphysik, 17491 Greifswald, Germany
*
†Email address for correspondence: AntonioG@ciemat.es
Rights & Permissions [Opens in a new window]

Abstract

The first experimental campaigns have proven that, due to the optimization of the magnetic configuration with respect to neoclassical transport, the contribution of turbulence is essential to understand and predict the total particle and energy transport in Wendelstein 7-X (W7-X). This has spurred much work on gyrokinetic modelling for the interpretation of the available experimental results and for the preparation of the next campaigns. At the same time, new stellarator gyrokinetic codes have just been or are being developed. It is therefore desirable to have a sufficiently complete, documented and verified set of gyrokinetic simulations in W7-X geometry against which new codes or upgrades of existing codes can be tested and benchmarked. This paper attempts to provide such a set of simulations in the form of a comprehensive benchmark between the recently developed code stella and the well-established code GENE. The benchmark consists of electrostatic gyrokinetic simulations in the W7-X magnetic geometry and includes different flux tubes, linear ion-temperature-gradient (ITG) and trapped-electron-mode stability analyses, computation of linear zonal-flow responses and calculation of ITG-driven heat fluxes.

Information

Type
Research Article
Copyright
Copyright © The Author(s), 2022. Published by Cambridge University Press
Figure 0

Table 1. Basic quantities of the magnetic configuration and the flux surface selected for the simulations. From left to right: minor radius, major radius, selected flux surface, reference magnetic field given by (2.5), rotational transform and global magnetic shear.

Figure 1

Figure 1. Schematic view of the magnetic field lines $\alpha _0=0$ (solid black line) and $\alpha _0=-\iota {\rm \pi}/5$ (solid green line) extended along the five field periods of W7-X. The magnetic field strength is represented in the background.

Figure 2

Figure 2. Three-dimensional view of the surface $r_0/a=0.8$ (a), together with the field line $\alpha _0=0$ (solid black line), the field line $\alpha _0=-\iota {\rm \pi}/5$ (solid green line) and the last closed flux surface $r_0=a$ as a semi-transparent halo. Details of two toroidal cuts of the flux surface $r_0/a=0.8$ are also given, showing a bean-shaped section (b) and a triangular section (c).

Figure 3

Figure 3. Normalized geometric quantities in the range $\zeta -\zeta _0=[-2{\rm \pi},2{\rm \pi} ]$ for the surface $r_0/a=0.8$ along the field lines $\alpha _0=0$ (solid black line) and $\alpha _0=-\iota {\rm \pi}/5$ (dashed green line). The magnetic field strength is represented in (a); the projections of $\boldsymbol {\hat {b}}\times \boldsymbol {\nabla } B$ and $\boldsymbol {B}\times \boldsymbol {\kappa }$ along the binormal direction are represented in (b,c), respectively; the projections of $\boldsymbol {\hat {b}}\times \boldsymbol {\nabla } B$ and $\boldsymbol {B}\times \boldsymbol {\kappa }$ along the radial direction are represented in (d,e), respectively.

Figure 4

Table 2. Set of parameters used in each test. From left to right: flux tube, minimum and maximum number of $N_{\theta }$, normalized ion temperature and density gradients, number of divisions in the grid of $v_{\|}$ and $\mu$, presence of nonlinear term, time step size and quantities compared with both codes.

Figure 5

Figure 4. ITG stability map corresponding to test 1. It shows the growth rate computed with the code stella in the bean flux tube as a function of $k_x$ and $k_y$.

Figure 6

Figure 5. Linear growth rate (a) and real frequency (b) as a function of $k_y$ obtained for the ITG scenario studied in test 1 using stella (open circles linked by a solid red line) and GENE (open triangles linked by a dashed blue line) in the bean flux tube. The inset of (b) shows the structure of the modes $(k_x\rho _i,k_y\rho _i)=(0,1.3)$ (green line) and $(k_x\rho _i, k_y\rho _i)=(0,2.1)$ (black line) together with some bad curvature regions (shaded in red).

Figure 7

Figure 6. Linear growth rate (a) and real frequency (b) as a function of $k_x$ obtained for the ITG scenario studied in test 1 using stella (open circles linked by a solid red line) and GENE (open triangles linked by a dashed blue line) in the bean flux tube. The inset of figure (b) shows the structure of the modes $(k_x\rho _i,k_y\rho _i)=(0.2,2.1)$ (green line) and $(k_x\rho _i, k_y\rho _i)=(1.7,2.1)$ (black line), together with a bad curvature region (shaded in red).

Figure 8

Figure 7. ITG stability map corresponding to test 2. It shows the growth rate computed with the code stella in the triangular flux tube as a function of $k_x$ and $k_y$.

Figure 9

Figure 8. Linear growth rate (a) and real frequency (b) as a function of $k_x$ obtained for the ITG scenario studied in test 2 using stella (open circles linked by a solid red line) and GENE (open triangles linked by a dashed blue line) in the triangular flux tube. The inset of figure (b) shows the structure of the mode $(k_x\rho _i,k_y\rho _i)=(1.2,2.1)$ (green line) together with a bad curvature region (shaded in red).

Figure 10

Figure 9. Linear growth rate (a) and real frequency (b) as a function of $k_y$ obtained for the instabilities studied in test 3 using stella (open circles linked by a solid red line) and GENE (open triangles linked by a dashed blue line) in the bean flux tube.

Figure 11

Figure 10. Normalized modulus of the electrostatic potential computed with stella (solid red line) and GENE (dashed blue line) as a function of $z$ over the entire length of the flux tube for some modes simulated in test 3; specifically, we are representing the modes $(k_x\rho _i, k_y\rho _i)= (0,{0.7})$ (a), $(0,1.2)$ (c) and $(0,4.7)$ (e). The structures calculated with stella are shown as solid green lines in narrower $z$ ranges in (b,d,f), respectively, together with the normalized magnetic field strength (grey line) and the bad curvature regions (shaded in red).

Figure 12

Figure 11. For test 4, time trace of the line-averaged electrostatic potential normalized to its maximum value computed with stella (solid red line) and with GENE (dashed blue line) for the pairs $(k_x\rho _i,k_y\rho _i)=(0.05,0)$ (a), $(k_x\rho _i,k_y\rho _i)=(0.07,0)$ (b), $(k_x\rho _i,k_y\rho _i)=(0.1,0)$ (c) and $(k_x\rho _i,k_y\rho _i)=(0.3,0)$ (d). The insets show a detail of each trace at large times.

Figure 13

Table 3. Parameters used by stella and GENE to define the flux tube in test 5. From left to right: normalized flux-tube size in the radial ($l_x$) and binormal ($l_y$) directions; number of modes in the radial ($N_{k_x}$) and binormal ($N_{k_y}$) directions; smallest positive wavenumber in the radial ($|k_{x}|_{\mathrm {min}}$) and binormal ($k_{y,\mathrm {min}}$) directions.

Figure 14

Figure 12. Time trace of the normalized ITG-driven heat flux computed with stella (solid red line) and GENE (dashed blue line) in the bean flux tube for the test 5 ITG scenario. The inset shows a detail of the time interval $tv_{{\rm th},i}/a=[1500, 1900]$, with the heat flux time average given by the black dashed lines.

Figure 15

Figure 13. Normalized nonlinear ITG-driven heat flux computed with stella in the bean flux tube, averaged over the time interval $tv_{{\rm th},i}/a=[1500, 1900]$ and represented as a function of $k_x$ and $k_y$.

Figure 16

Figure 14. Normalized ITG-driven heat flux averaged over the time interval $tv_{{\rm th},i}/a=[1500, 1900]$ computed with stella (open circles linked by a solid red line) and GENE (open triangles linked by a dashed blue line) in the bean flux tube. It is represented as a function of $k_y$, summing over $k_x$ (a) and as a function of $k_x$, summing over $k_y$ (b).

Figure 17

Figure 15. Time trace of the normalized ITG-driven heat flux computed with stella in the triangular flux tube, together with the heat flux time average over $tv_{{\rm th},i}/a=[1200,1500]$, represented with a black dashed line (a). This time-averaged ITG-driven heat flux is also represented as a function of $k_x$ and $k_y$ (b).

Figure 18

Table 4. Time required to run the nonlinear simulations with GENE in the bean flux tube and with stella in the bean and triangular flux tubes. From left to right: simulation wall-clock time in hours, number of processors and total CPU time in hours.

Supplementary material: File

González-Jerez et al. supplementary material

González-Jerez et al. supplementary material

Download González-Jerez et al. supplementary material(File)
File 197.9 KB