While in recent years, gyrokinetic simulations have become the workhorse for theoretical turbulence and transport studies in the plasma core, their application to the edge and scrape-off layer (SOL) region presents significant challenges. In particular, steep density and temperature gradients as well as large fluctuation amplitudes call for a "full-f" treatment. To specifically study problems in the SOL region, the gyrokinetic particle-in-cell (PIC) code PICLS has been developed. The code is based on an electrostatic full-f model with linearised field equations and uses kinetic electrons. Here, the well-studied parallel transport problem during an edge-localized mode (ELM) in the SOL shall be investigated for one spatial dimension. The results are compared to previous gyrokinetic continuum and fully kinetic PIC simulations and show good agreement.
Applying gyrokinetic simulations for theoretical turbulence and transport studies to the plasma edge and scrape-off layer (SOL) presents significant challenges. To in particular account for steep density and temperature gradients in the SOL, the "full-f" code PICLS was developed. PICLS is a gyrokinetic particle-in-cell (PIC) code and is based on an electrostatic model with a linearized field equation and uses kinetic electrons. In previously published results we were applying PICLS to the well-studied 1D parallel transport problem during an edge-localized mode (ELM) in the SOL without collisio…
We introduce and derive the Fourier-enhanced 3D electrostatic field solver of the gyrokinetic full-f PIC code PICLS. The solver makes use of a Fourier representation in one periodic direction of the domain to make the solving of the system easily parallelizable and thus save run time. The presented solver is then verified using two different approaches of manufactured solutions. The test setup used for this effort is a pinch geometry with ITG-like electric potential, containing one non-periodic and two periodic directions, one of which will be discrete Fourier transformed. The results of these…
Gyrokinetic codes in plasma physics need outstanding computational resources to solve increasingly complex problems, requiring the effective exploitation of cutting-edge HPC architectures. This paper focuses on the enabling of ORB5, a state-of-the-art, first-principles-based gyrokinetic code, on modern parallel hybrid multi-core, multi-GPU systems. ORB5 is a Lagrangian, Particle-In-Cell (PIC), finite element, global, electromagnetic code, originally implementing distributed parallelism through MPI-based on domain decomposition and domain cloning. In order to support multi/many cores devices, t…
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.
Solid-density plasmas driven by intense x-ray free-electron laser (XFEL) radiation are seeded by sources of non-thermal photoelectrons and Auger electrons that ionize and heat the target via collisions. Simulation codes that are commonly used to model such plasmas, such as collisional-radiative (CR) codes, typically assume a Maxwellian distribution and thus instantaneous thermalization of the source electrons. In this study, we present a detailed description and initial applications of a collisional particle-in-cell code, PICLS, that has been extended with a self-consistent radiation transport…
The main idea of Gyrokinetic dynamical reduction consists in systematical removing of fastest scale of motion (the gyro motion) from plasma's dynamics, resulting in a considerable model simplification and gain of computing time. Gyrokinetic Maxwell-Vlasov system is broadly implemented in nowadays numerical experiments for modeling strongly magnetized plasma (both laboratory and astrophysical). Different versions of reduced set of equations exist depending on the construction of the Gyrokinetic reduction procedure and approximations assumed while their derivation. The purpose of this paper is t…
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.
The reduced-particle model is the central element for the systematic derivation of the gyrokinetic Vlasov-Maxwell equations from first principles. Coupled to the fields inside the gyrokinetic field-particle Lagrangian, the reduced-particle model defines polarization and magnetization effects appearing in the gyrokinetic Maxwell equations. It is also used for the reconstruction of the gyrokinetic Vlasov equation from the particle characteristics. Various representations of reduced-particle models are available according to the choice of the gyrokinetic phase space coordinates. In this paper, th…
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 linear dynamics of Alfven modes in tokamaks is investigated here by means of the global gyrokinetic particle-in-cell code NEMORB. The model equations are shown and the local shear Alfven wave dispersion relation is derived, recovering the continuous spectrum in the incompressible ideal MHD limit. A verification and benchmark analysis is performed for continuum modes in a cylinder and for toroidicity-induced Alfven Eigenmodes. Modes in a reversed-shear equilibrium are also investigated, and the dependence of the spatial structure in the poloidal plane on the equilibrium parameters is descri…
A 1-D linear gyrokinetic code called AWECS is developed to study the kinetic excitation of Alfvenic instabilities in a high-beta tokamak plasma, with beta being the ratio of thermal to magnetic pressure. It is designed to describe physics associated with a broad range of frequencies and wavelengths. For example, AWECS is capable of simulating kinetic ballooning modes, Alfvenic ion-temperature-gradient-driven modes, as well as Alfven instabilities due to energetic particles. In addition, AWECS may be used to study drift-Alfven instabilities in the low-beta regime. Here, the layout of the code a…
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…
Results of the first validation of large guide field, $B_g / δB_0 \gg 1$, gyrokinetic simulations of magnetic reconnection at a fusion and solar corona relevant $β_i = 0.01$ and solar wind relevant $β_i = 1$ are presented, where $δB_0$ is the reconnecting field. Particle-in-cell (PIC) simulations scan a wide range of guide magnetic field strength to test for convergence to the gyrokinetic limit. The gyrokinetic simulations display a high degree of morphological symmetry, to which the PIC simulations converge when $β_i B_g / δB_0 \gtrsim 1$ and $B_g / δB_0 \gg 1$. In the regime of convergence, …
The Gyrokinetic Toroidal Code at Princeton (GTC-P) is a highly scalable and portable particle-in-cell (PIC) code. It solves the 5D Vlasov-Poisson equation featuring efficient utilization of modern parallel computer architectures at the petascale and beyond. Motivated by the goal of developing a modern code capable of dealing with the physics challenge of increasing problem size with sufficient resolution, new thread-level optimizations have been introduced as well as a key additional domain decomposition. GTC-P's multiple levels of parallelism, including inter-node 2D domain decomposition and …
TRIMEG-GKX: an electromagnetic gyrokinetic particle code with a Piecewise Field-Aligned Finite Element Method for Micro- and Macro-Instability Studies in Tokamak Core Plasmas
An electrostatic gyrokinetic-based model is applied to simulate parallel plasma transport in the scrape-off layer to a divertor plate. The authors focus on a test problem that has been studied previously, using parameters chosen to model a heat pulse driven by an edge-localized mode (ELM) in JET. Previous work has used direct particle-in-cell equations with full dynamics, or Vlasov or fluid equations with only parallel dynamics. With the use of the gyrokinetic quasineutrality equation and logical sheath boundary conditions, spatial and temporal resolution requirements are no longer set by the …
In this work, we compare gyrokinetic (GK) and fully kinetic Particle-in-Cell (PIC) simulations of magnetic reconnection in the limit of strong guide field. In particular, we analyze the limits of applicability of the GK plasma model compared to a fully kinetic description of force free current sheets for finite guide fields ($b_g$). Here we report the first part of an extended comparison, focusing on the macroscopic effects of the electron flows. For a low beta plasma ($β_i=0.01$), it is shown that both plasma models develop magnetic reconnection with similar features in the secondary magnetic…
Geodesic acoustic modes (GAMs) are studied by means of the gyrokinetic global particle-in-cell code ORB5. Linear electromagnetic simulations in the low electron beta limit have been performed, in order to separate acoustic and Alfvénic time scales and obtain more accurate measurements. The dependence of the frequency and damping rate on several parameters such as the safety factor, the GAM radial wavenumber and the plasma elongation is studied. All simulations have been performed with kinetic electrons with realistic electron/ion mass ratio. Interpolating formulae for the GAM frequency and dam…
The linear destabilization and nonlinear saturation of energetic-particle driven Alfvénic instabilities in tokamaks strongly depend on the damping channels. In this work, the collisionless damping mechanisms of Alfvénic modes are investigated within a gyrokinetic framework, by means of global simulations with the particle-in-cell code ORB5, and compared with the eigenvalue code LIGKA and reduced models. In particular, the continuum damping and the Landau damping (of ions and electrons) are considered. The electron Landau damping is found to be dominant on the ion Landau damping for experimenta…
With the advent of the gyrokinetic formalism, recent developments in low-noise nonlinear $δf$ methods, and enormous gains in computing power, large-scale gyrokinetic simulations have become an important tool for improved understanding of anomalous transport in tokamaks. Simulating the non-linear behaviour requires solving for the perturbations of distrbution function in five dimensions. We use a particle-in-cell approach to solve the equations via the non-linear characteristic method. The code has been parallelized for a variety of architecures (C90, CM-5, T3D) using a 1-D domain decomposition…
In the present paper, the evolution of the Alfvén modes is studied in a realistic ASDEX Upgrade equilibrium by analysing the results of simulations with the global, electromagnetic, gyrokinetic particle-in-cell code ORB5. The energetic particles are modelled both via the newly implemented isotropic slowing-down and with Maxwellian distribution functions. The comparison of the numerical results shows that modelling the energetic particles with the equivalent Maxwellian rather than with the slowing-down, does not affect the frequency of the driven Alfvén mode, while its growth rate appears to be…
Energetic particles produced by neutral beams are observed to excite energetic-particle-driven geodesic acoustic modes (EGAMs) in tokamaks. We study the effects of anisotropy of distribution function of the energetic particles on the excitation of such instabilities with ORB5, a gyrokinetic particle-in-cell code. Numerical results are shown for linear electrostatic simulations with ORB5. The growth rate is found to be sensitively dependent on the phase-space shape of the distribution function. The behavior of the instability is qualitatively compared to the theoretical analysis of dispersion r…
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…
Long global gyrokinetic turbulence simulations are particularly challenging in situations where the system deviates strongly from its initial state and when fluctuation level are high e.g. in strong gradient regions. For Particle-in-Cell simulations, statistical sampling noise accumulation from large marker weights due to large deviations from the control variate of a delta-f scheme make such simulations often impractical. An adaptive control variate in the form of a flux-surface-averaged Maxwellian with a time-dependent temperature profile is introduced in an attempt to alleviate the former p…
In this work, the first nonlinear particle-in-cell simulations carried out in a stellarator with the global gyrokinetic code EUTERPE using realistic plasma parameters are reported. Several studies are conducted with the aim of enabling reliable nonlinear simulations in stellarators with this code. First, EUTERPE is benchmarked against ORB5 in both linear and nonlinear settings in a tokamak configuration. Next, the use of noise control and stabilization tools, a Krook-type collision operator, markers weight smoothing and heating sources is investigated. It is studied in detail how these tools i…
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(马克斯·普朗克计算与数据设施)
Nonlinear generation of global zonal structures in gyrokinetic simulations of TCV and ASDEX Upgrade magnetic configurations
Max-Planck-Institut für Plasmaphysik(马克斯·普朗克等离子体物理研究所);De Vinci Higher Education, De Vinci Research Center(德芬奇高等教育,德芬奇研究中心);Institute of Physics, University of Greifswald(格赖夫斯瓦尔德大学物理研究所);École Polytechnique Fédérale de Lausanne, Swiss Plasma Center(洛桑联邦理工学院,瑞士等离子体中心)
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(普林斯顿等离子体物理实验室)
The pullback scheme is implemented in the global gyrokinetic particle-in-cell code ORB5 [S. Jolliet et al, Comp. Phys. Comm., 177, 409 (2007)] to mitigate the cancellation problem in electromagnetic simulations. The equations and the discretisation used by the code are described. Numerical simulations of the Toroidal Alfven Eigenmodes are performed in linear and nonlinear regimes to verify the scheme. A considerable improvement in the code efficiency is observed. For the internal kink mode, it is shown that the pullback mitigation efficiently cures a numerical instability which would make the …
In this work, we focus on the development of the particle-in-cell scheme and the application to the studies of Alfvén waves and energetic particle physics in tokamak plasmas. The $δf$ and full $f$ schemes are formulated on the same footing adopting mixed variables and the pullback scheme for electromagnetic problems. The TRIMEG-GKX code [Lu et al. J. Comput. Phys. 440 (2021) 110384] has been upgraded using cubic spline finite elements and full $f$ and $δf$ schemes. The EP-driven TAE has been simulated for the ITPA-TAE case featured by a small electron skin depth $\sim 1.18\times10^{-3}\;{\rm m…
Minute-Scale High-Fidelity Gyrokinetic Simulations with Portability from Laptop to Supercomputer
Beijing VeloAlpha Technology Co., Ltd.(北京维奥阿尔法科技有限公司);Future Energy Institute, Shanghai Jiao Tong University(上海交通大学未来能源学院);Max Planck Institut für Plasmaphysik(马克斯·普朗克等离子体物理研究所)
Observations of ion-scale (k_y*rho_i <= 1) density turbulence of relative amplitude dn_e/n_e <= 0.2% are available on the Mega Amp Spherical Tokamak (MAST) using a 2D (8 radial x 4 poloidal channel) imaging Beam Emission Spectroscopy (BES) diagnostic. Spatial and temporal characteristics of this turbulence, i.e., amplitudes, correlation times, radial and perpendicular correlation lengths and apparent phase velocities of the density contours, are determined by means of correlation analysis. For a low-density, L-mode discharge with strong equilibrium flow shear exhibiting an internal transport b…
This paper contributes new insights into discretizing Coulomb collisions in kinetic plasma models. Building on the previous works [Carrillo et al. J. Comp. Phys. X 7:100066 (2020), Hirvijoki and Burby Phys. Plasmas 27(8):082307 (2020)], I propose deterministic discrete-time energy- and positivity-preserving, entropy-dissipating marker-particle schemes for the standard Landau collision operator and the electrostatic gyrokinetic Landau operator. In case of the standard Landau operator, the scheme preserves also the discrete-time kinetic momentum. The improvements, the extensions of the structure…
In simulations of partial differential equations using particle-in-cell (PIC) methods, it is often advantageous to resample the particle distribution function to increase simulation accuracy, reduce compute cost, and/or avoid numerical instabilities. We introduce an algorithm for particle resampling called Moment Preserving Contrained Resampling (MPCR). The general algorithm partitions the system space into smaller subsets and is designed to conserve any number of particle and grid quantities with a high degree of accuracy (i.e. machine accuracy). The resampling scheme can be integrated into a…
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…
The $δf$ particle-in-cell algorithm has been a useful tool in studying the physics of plasmas, particularly turbulent magnetized plasmas in the context of gyrokinetics. The reduction in noise due to not having to resolve the full distribution function indicates an efficiency advantage over standard ("full-$f$") particle-in-cell. Despite its successes, the algorithm behaves strangely in some circumstances. In this work, we document a fully-resolved numerical instability that occurs in the simplest of multiple-species test cases: the electrostatic $Ω_H$ mode. There is also a poorly-understood nu…
Ion orbit loss is considered important for generating the radially inward electric field $E_r$ in a tokamak edge plasma. In particular, this effect is emphasized in diverted tokamaks with a magnetic X point. In neoclassical equilibria, Coulomb collisions can scatter ions onto loss orbits and generate a radially outward current, which in steady state is balanced by the radially inward current from viscosity. To quantitatively measure this loss-orbit current in an edge pedestal, an ion-orbit-flux diagnostic has been implemented in the axisymmetric version of the gyrokinetic particle-in-cell code…