The simplified delta-f mixed-variable/pull-back electromagnetic simulation algorithm implemented in XGC for core plasma simulations by M. Cole et al. [Phys. Plasmas 28, 034501 (2021)] has been generalized to a total-f electromagnetic algorithm that can include, for the first time, the boundary plasma in diverted magnetic geometry with neutral particle recycling, turbulence and neoclassical physics. The delta-f mixed-variable/pull-back electromagnetic is based on the pioneering work by Kleiber and Mischenko et al. [R. Kleiber et al., Phys. Plasmas 23, 032501 (2016); A. Mishchenko et al., Comput. Phys. Commun. 238, 194 (2019)]. An electromagnetic demonstration simulation is performed in a DIII-D-like, H-mode boundary plasma, including a corresponding comparative electrostatic simulation, which confirms that the electromagnetic simulation is necessary for a higher fidelity understanding of the electron particle and heat transport even at the low-beta pedestal foot in the vicinity of the magnetic separatrix.
XGC (X-point Gyrokinetic Code) is a whole-volume, total-f gyrokinetic particle-in-cell code developed for modelling tokamaks. In recent work, XGC has been extended to model more general 3D toroidal magnetic configurations, such as stellarators. These improvements have resulted in the XGC-S version. In this paper, XGC-S is benchmarked for linear electrostatic ion temperature gradient-driven microinstabilities, which can underlie turbulent transport in stellarators. An initial benchmark of XGC-S in tokamak geometry shows good agreement with the XGC1, ORB5, and global GENE codes. A benchmark betw…
As an alternative option to kinetic electrons, the gyrokinetic total-f particle-in-cell (PIC) code XGC1 has been extended to the MHD/fluid type electromagnetic regime by combining gyrokinetic PIC ions with massless drift-fluid electrons analogous to Chen and Parker, Physics of Plasmas 8, 441 (2001). Two representative long wavelength modes, shear Alfvén waves and resistive tearing modes, are verified in cylindrical and toroidal magnetic field geometries.
A fully implicit particle-in-cell method for handling the $v_\parallel$-formalism of electromagnetic gyrokinetics has been implemented in XGC. By choosing the $v_\parallel$-formalism, we avoid introducing the non-physical skin terms in Ampère's law, which are responsible for the well-known ``cancellation problem" in the $p_\parallel$-formalism. The $v_\parallel$-formalism, however, is known to suffer from a numerical instability when explicit time integration schemes are used due to the appearance of a time derivative in the particle equations of motion from the inductive component of the elec…
Understanding the multi-scale neoclassical and turbulence physics in the edge region (pedestal + scrape-off layer) is required in order to reliably predict performance in future fusion devices. We explore turbulent characteristics in the edge region from a multiscale neoclassical and turbulent XGC1 gyrokinetic simulation in a DIII-D like tokamak geometry, here excluding neutrals and collisions. For an H-mode type plasma with steep pedestal, it is found that the electron density fluctuations increase towards the separatrix, and stay high well into the SOL, reaching a maximum value of $δn_e / \b…
Self-consistent simulations of neoclassical and electrostatic turbulent transport in a DIII-D H-mode edge plasma under resonant magnetic perturbations (RMPs) have been performed using the global total-f gyrokinetic particle-in-cell code XGC, in order to study density-pump out and electron heat confinement. The RMP field is imported from the extended magneto-hydrodynamics (MHD) code M3D-C1, taking into account the linear two-fluid plasma response. With both neoclassical and turbulence physics considered together, the XGC simulation reproduces two key features of experimentally observed edge tra…
The global total-$f$ gyrokinetic particle-in-cell code XGC, used to study transport in magnetic fusion plasmas, implements a continuum grid to perform the dissipative operations, such as plasma collisions. To transfer the distribution function between marker particles and a rectangular velocity-space grid, XGC employs a bilinear mapping. The conservation of particle density and momentum is accurate enough in this bilinear operation, but the error in the particle energy conservation can become undesirably large in special conditions. In the present work we update XGC to use a novel mapping tech…
Simulations using the fully kinetic neoclassical code XGCa were undertaken to explore the impact of kinetic effects on scrape-off layer (SOL) physics in DIII-D H-mode plasmas. XGCa is a total-f, gyrokinetic code which self-consistently calculates the axisymmetric electrostatic potential and plasma dynamics, and includes modules for Monte Carlo neutral transport. Previously presented XGCa results showed several noteworthy features, including large variations of ion density and pressure along field lines in the SOL, experimentally relevant levels of SOL parallel ion flow (Mach number~0.5), skewe…
A high-order extension is presented for the electromagnetic gyrokinetic formulation in which the parallel canonical momentum is taken as one of phase space coordinates. The high-order displacement vector associated with the guiding-center transformation should be considered in the long wavelength regime. This yields addtional terms in the gyrokinetic Hamiltonian which lead to modifications to the gyrokinetic Poisson and Ampère equations. In addition, the high-order piece of the guiding-center transformation for the parallel canonical momentum should be also kept in the electromagnetic model. T…
It is shown that a considerable improvement in the global gyrokinetic electromagnetic simulations can be achieved by a slight modification of the simulation scheme. The new scheme is verified, simulating a Toroidal Alfvén Eigenmode in tokamak geometry at low perpendicular mode numbers, the so-called "MHD limit". Also, an electromagnetic drift mode has been successfully simulated in a stellarator.
A new gauge-free electromagnetic gyrokinetic theory is developed, in which the gyrocenter equations of motion and the gyrocenter phase-space transformation are expressed in terms of the perturbed electromagnetic fields, instead of the usual perturbed potentials. Gyrocenter polarization and magnetization are derived explicitly from the gyrocenter Hamiltonian, up to first order in the gyrocenter perturbation expansion. Expressions for the sources in Maxwell's equations are derived in a form that is suitable for simulation studies, as well as kinetic-gyrokinetic hybrid modeling.
The nonlinear (full-$f$) electromagnetic gyrokinetic Vlasov-Maxwell equations are derived in the parallel-symplectic representation from an Eulerian gyrokinetic variational principle. The gyrokinetic Vlasov-Maxwell equations are shown to possess an exact energy conservation law, which is derived by Noether method from the gyrokinetic variational principle. Here, the gyrocenter Poisson bracket and the gyrocenter Jacobian contain contributions from the perturbed magnetic field. In the full-$f$ formulation of the gyrokinetic Vlasov-Maxwell theory presented here, the gyrocenter parallel-Ampère equ…
It's pointed out that the traditional gyrokinetic theory dealing with low frequency electromagnetic perturbation violates the near identity transformation, which is supposed to be obeyed by Lie perturbed transformation theory, if resonance happens between ωand k\cdot v. A modification is given to overcome this problem by not requiring all components in the first order Lagrangian 1-form equaling zero. A numerical example is given as an application of the new theory.
Detecting Shearless Phase-Space Transport Barriers in Global Gyrokinetic Turbulence Simulations with Test Particle Map Models
The University of Texas at Austin(德克萨斯大学奥斯汀分校);Zhejiang University(浙江大学);Princeton University(普林斯顿大学);University of São Paulo(圣保罗大学);Princeton Plasma Physics Laboratory(普林斯顿等离子体物理实验室)
This is a report about a comparison of collisionless simulations on global modes (i.e. low poloidal mode number) with gyrokinetic code NEMORB against analytical theory and other codes. Only axisymmetric modes, i.e. with toroidal mode number n=0, are considered, and flat equilibrium profiles. Benchmarks are performed for GAMs against local analytical theory. In the presence of energetic ions, local benchmarks of NEMORB are performed against semilagrangian gyrokinetic code GYSELA. The models of adiabatic vs trapped-kinetic- vs fully-kinetic-electrons and of electrostatic vs electromagnetic at ve…
This comment clarifies the relation of the research in a recently published article [Phys. Plasmas 14, 042503 (2007)] to other prior publications addressing the inclusion of electromagnetic and drift-kinetic electron physics in gyrokinetic simulation, raises a concern related to the inclusion of kinetic electrons in a system with magnetic shear, and discusses alternatives in the face of an important limitation on the general applicability of the algorithm described therein.
Gyrokinetic theory is arguably the most important tool for numerical studies of transport physics in magnetized plasmas. However, exact local energy-momentum conservation law for the electromagnetic gyrokinetic system has not been found despite continuous effort. Without such a local conservation law, energy-momentum can be instantaneously transported across spacetime, which is unphysical and casts doubt on the validity of numerical simulations based on the gyrokinetic theory. Standard Noether's procedure for deriving conservation laws from corresponding symmetries does not apply to gyrokineti…
A two-fold analysis of electromagnetic core tokamak instabilities in the framework of the gyrokinetic theory is presented. First principle theoretical foundations of the gyrokinetic theory are used to explain and justify the numerical results obtained with the global electromagnetic particle-in-cell code Orb5 whose model is derived from the Lagrangian formalism. The energy conservation law corresponding to the Orb5 model is derived from the Noether theorem and implemented in the code as a diagnostics for energy balance and conservation verification. An additional Noether theorem based diagnost…
Global simulations of electromagnetic turbulence, collisionless tearing modes, and Alfven Eigenmodes in the presence of fast particles are carried out using the gyrokinetic particle-in-cell codes ORB5 (E. Lanti et al, Comp. Phys. Comm., ${\bf 251}$, 107072 (2020)) and EUTERPE (V. Kornilov et al, Phys. Plasmas, ${\bf 11}$, 3196 (2004)) in tokamak and stellarator geometries. Computational feasibility of simulating such complex coupled systems is demonstrated.
We present a new model for simulating the electromagnetic fluctuations with frequencies much lower than the ion cyclotron frequency in plasmas confined in general magnetic configurations. This novel model (termed as GK-E&B) employs nonlinear gyrokinetic equations formulated in terms of electromagnetic fields along with momentum balance equations for solving fields. It, thus, not only includes kinetic effects, such as wave-particle interaction and microscopic (ion Larmor radius scale) physics; but also is computationally more efficient than the conventional formulation described in terms of pot…
Electromagnetic turbulence is addressed in tokamak and stellarator plasmas with the global gyrokinetic particle-in-cell codes ORB5 [E. Lanti et al, Comp. Phys. Comm, vol. 251, 107072 (2020)] and EUTERPE [V. Kornilov et al, Phys. Plasmas, vol. 11, 3196 (2004)]. The large-aspect-ratio tokamak, down-scaled ITER, and Wendelstein 7-X geometries are considered. The main goal is to increase the plasma beta, the machine size, the ion-to-electron mass ratio, as well as to include realistic-geometry features in such simulations. The associated numerical requirements and the computational cost for the ca…
The kinetic effects of electrons are important to long wavelength magnetohydrodynamic(MHD)instabilities and short wavelength drift-Alfvenic instabilities responsible for turbulence transport in magnetized plasmas, since the non-adiabatic electron can interact with, modify and drive the low frequency instabilities. A novel conservative split weight scheme is proposed for the electromagnetic simulation with drift kinetic electrons in tokamak plasmas, which shows great computational advantages that there is no numerical constrain of electron skin depth on the perpendicular grid size without sacri…
Understanding turbulent transport physics in the tokamak edge and scrape-off layer (SOL) is critical to developing a successful fusion reactor. The dynamics in these regions plays a key role in achieving high fusion performance by determining the edge pedestal that suppresses turbulence in H-mode. Additionally, the survivability of a reactor is set by the heat load to the vessel walls, making it important to understand turbulent spreading of heat as it flows along open magnetic field lines in the SOL. Large-amplitude fluctuations, magnetic X-point geometry, and plasma interactions with materia…
We demonstrate that cross-field transport in the scrape-off layer (SOL) can be moderately increased by electromagnetic effects in high-beta regimes, resulting in a broader electron heat-flux width on the endplates. This conclusion is taken from full-$f$ electromagnetic gyrokinetic simulations of a helical SOL model that roughly approximates the SOL of the National Spherical Torus Experiment (NSTX). The simulations have been performed with the Gkeyll code, which recently became the first code to demonstrate the capability to simulate electromagnetic gyrokinetic turbulence on open magnetic field…
We present a gyrokinetic theory for the electromagnetic waves and instabilities with frequencies much lower than the ion cyclotron frequency in finite-$β$ anisotropic uniform plasmas. Here, $β$ is the ratio between plasma and magnetic pressures. Kinetic effects due to both the finite Larmor radii and wave-particle resonances are fully kept in the analysis. Corresponding linear dispersion relation and wave polarizations, valid for general $β$ value and perpendicular wavelength, are then specifically derived for a bi-Maxwellian plasma. Analytic expressions for the criteria of kinetic firehose an…
We derive a gyrokinetic formalism which is very generally valid: the ordering allows both large inhomogeneities in plasma flow and magnetic field at long wavelength, like typical drift-kinetic theories, as well as fluctuations at the gyro-scale. The underlying approach is to order the vorticity to be small, and to assert that the timescales in the local plasma frame are long compared to the gyrofrequency. Unlike most other derivations, we do not treat the long and short wavelength components of the fluctuating fields separately; the single-field description defines the particle motion and thei…
A High-order piecewise field-aligned triangular finite element method for electromagnetic gyrokinetic particle simulations of tokamak plasmas with open field lines
Max Planck Institute for Plasma Physics(马克斯·普朗克等离子体物理研究所);Max Planck Computing and Data Facility(马克斯·普朗克计算与数据设施)
The SOL width is a parameter of paramount importance in modern tokamaks as it controls the power density deposited at the divertor plates, critical for plasma-facing material survivability. An understanding of the parameters controlling it has consequently long been sought (Connor et al. 1999 NF 39 2). Prior to Chang et al.(2017 NF 57 11), studies of the tokamak edge have been mostly confined to reduced fluid models and simplified geometries, leaving out important pieces of physics. Here, we analyze the results of a DIII-D simulation performed with the full-f gyrokinetic code XGC1 which includ…
The first linear global electromagnetic gyrokinetic particle simulation on the excitation of toroidicity induced Alfven eigenmode (TAE) by energetic particles is reported. With an increase in the energetic particle pressure, the TAE frequency moves down into the lower continuum.
This paper presents the current state of the global gyrokinetic code ORB5 as an update of the previous reference [Jolliet et al., Comp. Phys. Commun. 177 409 (2007)]. The ORB5 code solves the electromagnetic Vlasov-Maxwell system of equations using a PIC scheme and also includes collisions and strong flows. The code assumes multiple gyrokinetic ion species at all wavelengths for the polarization density and drift-kinetic electrons. Variants of the physical model can be selected for electrons such as assuming an adiabatic response or a ``hybrid'' model in which passing electrons are assumed adi…
The effect of varying magnetic shear on scrape-off layer turbulence and profiles is studied via electromagnetic gyrokinetic simulations of a helical scrape-off layer model. We develop a model helical geometry with magnetic shear and a corresponding field-aligned coordinate system, which is used for simulations with the Gkeyll code. We find that perpendicular transport is reduced in cases with stronger shear, resulting in higher peak particle and heat fluxes to the endplates. Electromagnetic effects slightly increase transport in strong shear cases.
Understanding and predicting divertor heat-load width $λ_q$ is a critically important problem for an easier and more robust operation of ITER with high fusion gain. Previous predictive simulation data for $λ_q$ using the extreme-scale edge gyrokinetic code XGC1 in the electrostatic limit under attached divertor plasma conditions in three major US tokamaks [C.S. Chang et al., Nucl. Fusion 57, 116023 (2017)] reproduced the Eich and Goldston attached-divertor formula results [formula #14 in T. Eich et al., Nucl. Fusion 53, 093031 (2013); R.J. Goldston, Nucl. Fusion 52, 013009 (2012)], and further…
Internal kink instabilities have been studied in straight tokamak geometry employing an electromagnetic gyrokinetic particle-in-cell (PIC) code. The ideal-MHD internal kink mode and the collisionless $m = 1$ tearing mode have been successfully simulated with the PIC code. Diamagnetic effects on the internal kink modes have also been investigated.
A gyrokinetic model is presented that can properly describe strong flows, large and small amplitude electromagnetic fluctuations occurring on scale lengths ranging from the electron Larmor radius to the equilibrium perpendicular pressure gradient scale length, and large deviations from thermal equilibrium. The formulation of the gyrokinetic model is based on a second order description of the single charged particle dynamics, derived from Lie perturbation theory, where the fast particle gyromotion is decoupled from the slow drifts, assuming that the ratio of the ion sound Larmor radius to the p…
ORB5X: a performance-portable global electromagnetic gyrokinetic PIC code in C++/Kokkos built using Agentic AI
Paul Scherrer Institute(保罗谢尔研究所);Department of Mechanical Engineering, MIT(麻省理工学院机械工程系);École Polytechnique Fédérale de Lausanne (EPFL)(洛桑联邦理工学院);Max-Planck-Institut für Plasmaphysik(马克斯·普朗克等离子体物理研究所)
We present an energy-conserving discontinuous Galerkin scheme for the full-$f$ electromagnetic gyrokinetic system in the long-wavelength limit. We use the symplectic formulation and solve directly for $\partial A_\parallel/\partial t$, the inductive component of the parallel electric field, using a generalized Ohm's law derived directly from the gyrokinetic equation. Linear benchmarks are performed to verify the implementation and show that the scheme avoids the Ampère cancellation problem. We perform a nonlinear electromagnetic simulation in a helical open-field-line system as a rough model o…
An accurate description of turbulence up to the transport time scale is essential for predicting core plasma profiles and enabling reliable calculations for designing advanced scenarios and future devices. Here, we exploit the gap separation between turbulence and transport time scales and couple the global gyrokinetic code GENE to the transport-solver Tango, including kinetic electrons, collisions, realistic geometries, toroidal rotation and electromagnetic effects for the first time. This approach overcomes gyrokinetic codes' limitations and enables high-fidelity profile calculations in expe…
The linear gyrokinetic stability properties of magnetically confined electron-positron plasmas are investigated in the parameter regime most likely to be relevant for the first laboratory experiments involving such plasmas, where the density is small enough that collisions can be ignored and the Debye length substantially exceeds the gyroradius. Although the plasma beta is very small, electromagnetic effects are retained, but magnetic compressibility can be neglected. The work of a previous publication (Helander, 2014) is thus extended to include electromagnetic instabilities, which are of imp…
The non-linear evolution of a magnetic island is studied using the Vlasov gyro-kinetic code GKW. The interaction of electromagnetic turbulence with a self-consistently growing magnetic island, generated by a tearing unstable $Δ' > 0$ current profile, is considered. The turbulence is able to seed the magnetic island and bypass the linear growth phase by generating structures that are approximately an ion gyro-radius in width. The non-linear evolution of the island width and its rotation frequency, after this seeding phase, is found to be modified and is dependent on the value of the plasma beta…
Global electromagnetic gyrokinetic simulations show the existence of near threshold conditions for both a high-$n$ kinetic ballooning mode (KBM) and an intermediate-$n$ kinetic version of peeling-ballooning mode (KPBM) in the edge pedestal of two DIII-D H-mode discharges. When the magnetic shear is reduced in a narrow region of steep pressure gradient, the KPBM is significantly stabilized, while the KBM is weakly destabilized and hence becomes the most-unstable mode. Collisions decrease the KBM's critical $β$ and increase the growth rate.
The exact energy and angular-momentum conservation laws are derived by Noether method for the Hamiltonian and symplectic representations of the gauge-free electromagnetic gyrokinetic Vlasov-Maxwell equations. These gyrokinetic equations, which are solely expressed in terms of electromagnetic fields, describe the low-frequency turbulent fluctuations that perturb a time-independent toroidally-axisymmetric magnetized plasma. The explicit proofs presented here provide a complete picture of the transfer of energy and angular momentum between the gyrocenters and the perturbed electromagnetic fields,…
Sub-Second Collisionless Gyrokinetic Eigenvalue Solutions via Orbit-Invariant Decomposition
Beijing VeloAlpha Technology Co., Ltd.(北京维洛阿尔法科技有限公司);School of Nuclear Science and Technology, University of Science and Technology of China(中国科学技术大学核科学与技术学院);School of Physics, Peking University(北京大学物理学院)
Linear and nonlinear benchmark of gyrokinetic simulation of energetic particle driven toroidal Alfven eigenmodes in ITPA TAE benchmark case
Institute of Plasma Physics, Hefei Institutes of Physical Science, Chinese Academy of Science(中国科学院合肥物质科学研究院等离子体物理研究所);Department of Physics, University of Colorado, Boulder(科罗拉多大学博尔德分校物理系)
The derivation of electromagnetic gyrofluid equations is made systematic by using the Hermite polynomial form of the underlying delta-f gyrokinetic distribution function. The gyrokinetic free-energy functional is explicitly used to set up the model. The gyrofluid free energy follows directly. The interaction term in the gyrokinetic Lagrangian is used to obtain the gyrofluid counterpart, from which the polarisation equation follows. One closure rule is decided for taking moments over the kinetic gyroaveraging operator. These steps fix the rest of the derivation of the conservative part of the g…
The global and electromagnetic gyrokinetic particle-in-cell code ORB5 is employed to investigate the self-consistent interactions between Alfvén modes (AM) and ion temperature gradient (ITG) turbulence in a magnetically confined plasma. Here, an axisymmetric magnetic equilibrium with reversed shear and large aspect ratio is considered. An AM with toroidal mode number n=5 is driven unstable by introducing a population of suprathermal ions. Once the AM saturates in the presence of the fully developed turbulence, the ion heat flux is dominated by the AM and its main harmonics. ITG-induced transpo…