Constructing Field Aligned Coordinate Systems for Gyrokinetic Simulations of Tokamaks in X-point Geometries
Akash Shukla, Ammar Hakim, James Juno, Gregory Hammett, Manaure Francisquez
TL;DR
This work addresses the challenge of applying field-aligned coordinates to tokamak geometries with magnetic X-points, where the poloidal field vanishes and the coordinate Jacobian diverges. It introduces a multi-block field-aligned grid anchored in Clebsch coordinates $(\psi,\alpha,\theta)$ with a carefully chosen Jacobian $J_c$ that aligns the magnetic field with the $z^3$ direction and avoids computing geometric quantities at the X-point, enabling stable 2D axisymmetric GK simulations. A Discontinuous Galerkin discretization is used to advance the GK equation, with interior and surface quadrature points ensuring geometric consistency across block interfaces and excluding the X-point from flux evaluations. The grid is generated from G-EQDSK equilibrium data, mapping a rectangular computational grid to physical space, and the approach is demonstrated in a STEP geometry, showing well-behaved core-SOL dynamics near the X-point and setting the stage for future 3D extensions and integrating more physics such as turbulenc e and neutrals.
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 (SOL) simultaneously. Here we present an algorithm for computing geometric quantities in a standard field aligned coordinate system that avoids the singularity and allows one to conduct 2D axisymmetric simulations in X-point geometries. We demonstrate the efficacy of this algorithm with an example simulation of the Spherical Tokamak for Energy Production (STEP).
