Hostname: page-component-76d6cb85b7-jhrpq Total loading time: 0 Render date: 2026-07-14T20:12:43.050Z Has data issue: false hasContentIssue false

Constructing field-aligned coordinate systems for gyrokinetic simulations of tokamaks in X-point geometries

Published online by Cambridge University Press:  10 June 2026

Akash Shukla*
Affiliation:
Institute for Fusion Studies, University of Texas at Austin, 2515 Speedway, Austin, TX 78712, USA
Ammar Hakim
Affiliation:
Princeton Plasma Physics Laboratory, 100 Stellarator Rd, Princeton, NJ 08540, USA
James Juno
Affiliation:
Princeton Plasma Physics Laboratory, 100 Stellarator Rd, Princeton, NJ 08540, USA
Gregory W. Hammett
Affiliation:
Princeton Plasma Physics Laboratory, 100 Stellarator Rd, Princeton, NJ 08540, USA
Manaure Francisquez
Affiliation:
Princeton Plasma Physics Laboratory, 100 Stellarator Rd, Princeton, NJ 08540, USA
*
Corresponding author: Akash Shukla, akashukla@utexas.edu

Abstract

Structures in tokamak plasmas are elongated along the direction of the magnetic field and short in the directions perpendicular to the magnetic field. Many tokamak simulation codes take advantage of this by using a field-aligned coordinate system. However, field-aligned coordinate systems have a coordinate singularity at magnetic X-points where the poloidal magnetic field vanishes, which makes it difficult to use field-aligned coordinate systems when simulating the core and scrape-off layer simultaneously. Here, we present an algorithm for grid generation and computing geometric quantities in a standard field-aligned coordinate system that avoids the singularity and allows one to conduct two-dimensional gyrokinetic axisymmetric simulations in X-point geometries. Convergence tests of advection, boundary value problems and geometric quantities all show greater than first-order convergence even in the vicinity of the X-point. We also demonstrate the geometric consistency of our algorithm with an example simulation of the spherical tokamak for energy production, which shows machine-precision particle conservation.

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), 2026. Published by Cambridge University Press
Figure 0

Figure 1. Schematic for field-line tracing in a double-null (a) and single-null (b) configurations.

Figure 1

Figure 2. In (a) we show the interior, surface and corner points on the unit cell. In (b) we show these points mapped to the physical domain for cells abutting the X-point. The cell in physical space is not rectangular, allowing for an accurate representation of the flux-surface geometry. The surface and interior nodes used for the evaluation of geometric quantities do not lie directly on the X-point and are thus well defined.

Figure 2

Figure 3. Block layout and grid for the STEP in a double-null configuration with different colours indicating different blocks and a number 1–12 labelling each block. The full grid is shown in (a), (b) shows a close-up of the grid near the upper X-point and (c) shows a close-up of the grid near the upper outer divertor plate (red).

Figure 3

Figure 4. Grid for ASDEX-Upgrade in a single-null configuration with different colours indicating different blocks and a number 1–6 labelling each block. The full grid is shown in (a) and (b) shows a close-up of the grid near the X-point.

Figure 4

Figure 5. Double-null, SOL-only grids without the X-point (a) and including the X-point (b). These grids were used to test convergence of the enclosed volume.

Figure 5

Table 1. Relative error for enclosed volume of the double-null outer SOL grid away from the X-point (a) and touching the X-point (b). The average order of convergence without the X-point is 3.37 and with the X-point is 1.42.

Figure 6

Figure 6. Projections of the analytical bump solutions away from the X-point (a) and on the X-point (b) for the potential, $\phi$.

Figure 7

Table 2. Relative error from the Poisson solve for a potential located away from the X-point (a) and on the X-point (b). The average order of convergence is 1.42 for the potential centred away from the X-point and 1.71 for the potential centred on the X-point.

Figure 8

Table 3. Relative error from the advection test for a Gaussian bump advected in the $\hat {Z}$ direction just to the right of the X-point. The average order of convergence is 1.55.

Figure 9

Figure 7. Projection of the initial condition (a) and the analytical final solution (b) for the Gaussian bump advection test.

Figure 10

Figure 8. Simulation results from a 2-D, axisymmetric simulation of the STEP. The poloidal projection of the electron density and temperature are shown in (a) and (b), respectively. A close-up of the electron density is shown in (c) and a close-up of the electron temperature is shown in (d).

Figure 11

Figure 9. Particle balance (a) and relative error in the number of particles (b) for the STEP simulation. The balance includes the change in a single time step (solid blue) due to fluxes through the boundaries (dashed orange) and sources (dotted green), as well as the error in adding these up (purple dash-dot).