AMSC 663 Project Proposal: Upgrade to the GSP Gyrokinetic Code

Similar documents
AMSC 664 Final Report: Upgrade to the GSP Gyrokinetic Code

Self-consistent particle tracking in a simulation of the entropy mode in a Z pinch

Multiscale, multiphysics modeling of turbulent transport and heating in collisionless, magnetized plasmas

Gyrokinetic simulations of magnetic fusion plasmas

TURBULENT TRANSPORT THEORY

Entropy evolution and dissipation in collisionless particle-in-cell gyrokinetic simulations

Gyrokinetic Simulations of Tearing Instability

Overview of Gyrokinetic Theory & Properties of ITG/TEM Instabilities

GA A27235 EULERIAN SIMULATIONS OF NEOCLASSICAL FLOWS AND TRANSPORT IN THE TOKAMAK PLASMA EDGE AND OUTER CORE

Energetic-Ion-Driven MHD Instab. & Transport: Simulation Methods, V&V and Predictions

Microtearing Simulations in the Madison Symmetric Torus

Accurate representation of velocity space using truncated Hermite expansions.

PLASMA: WHAT IT IS, HOW TO MAKE IT AND HOW TO HOLD IT. Felix I. Parra Rudolf Peierls Centre for Theoretical Physics, University of Oxford

Coarse-graining the electron distribution in turbulence simulations of tokamak plasmas

Research on Structure Formation of Plasmas Dominated by Multiple Hierarchical Dynamics

0 Magnetically Confined Plasma

Particle-in-cell (PIC) simulation output for the temporal evolution of magnetic fields.

Turbulence in Tokamak Plasmas

Plasma instabilities. Dr Ben Dudson, University of York 1 / 37

Finite-Orbit-Width Effect and the Radial Electric Field in Neoclassical Transport Phenomena

Neoclassical transport

Gyrokinetics an efficient framework for studying turbulence and reconnection in magnetized plasmas

Greg Hammett Imperial College, London & Princeton Plasma Physics Lab With major contributions from:

INTRODUCTION TO GYROKINETIC AND FLUID SIMULATIONS OF PLASMA TURBULENCE AND OPPORTUNITES FOR ADVANCED FUSION SIMULATIONS

Coupled radius-energy turbulent transport of alpha particles

GTC Simulation of Turbulence and Transport in Tokamak Plasmas

Waves in plasma. Denis Gialis

Single particle motion and trapped particles

Physics of fusion power. Lecture 13 : Diffusion equation / transport

A particle-in-cell method with adaptive phase-space remapping for kinetic plasmas

Global Nonlinear Simulations of Ion and Electron Turbulence Usintg a Particle-In-Cell Approach

Global particle-in-cell simulations of Alfvénic modes

Summer College on Plasma Physics August Introduction to Nonlinear Gyrokinetic Theory

The gyrokinetic turbulence code GENE - Numerics and applications

Gyrokinetic simulations with GYSELA: Main current issues in physics & numerics

Gyrokinetic Turbulence in Tokamaks and Stellarators

GA A25566 COUPLED ITG/TEM-ETG GYROKINETIC SIMULATIONS

SW103: Lecture 2. Magnetohydrodynamics and MHD models

Lectures on basic plasma physics: Introduction

Bounce-averaged gyrokinetic simulations of trapped electron turbulence in elongated tokamak plasmas

TRANSPORT PROGRAM C-MOD 5 YEAR REVIEW MAY, 2003 PRESENTED BY MARTIN GREENWALD MIT PLASMA SCIENCE & FUSION CENTER

What place for mathematicians in plasma physics

Models for Global Plasma Dynamics

Electromagnetic Turbulence Simulations with Kinetic Electrons from the the Summit Framework

Rotation and Neoclassical Ripple Transport in ITER

Gyrokinetic theory for particle transport in fusion plasmas

Chapter 1. Introduction to Nonlinear Space Plasma Physics

Turbulence and Transport The Secrets of Magnetic Confinement

Gyrokinetic simulations including the centrifugal force in a strongly rotating tokamak plasma

Simple examples of MHD equilibria

Towards Multiscale Gyrokinetic Simulations of ITER-like Plasmas

Stochastic Particle Methods for Rarefied Gases

Fine-Scale Zonal Flow Suppression of Electron Temperature Gradient Turbulence

Kinetic theory of ions in the magnetic presheath

Monte-Carlo finite elements gyrokinetic simulations of Alfven modes in tokamaks.

Stability of a plasma confined in a dipole field

14. Energy transport.

Reduced MHD. Nick Murphy. Harvard-Smithsonian Center for Astrophysics. Astronomy 253: Plasma Astrophysics. February 19, 2014

TH/P6-14 Integrated particle simulation of neoclassical and turbulence physics in the tokamak pedestal/edge region using XGC a)

The Field-Reversed Configuration (FRC) is a high-beta compact toroidal in which the external field is reversed on axis by azimuthal plasma The FRC is

Space Plasma Physics Thomas Wiegelmann, 2012

Tokamak Edge Turbulence background theory and computation

Global gyrokinetic particle simulations with kinetic electrons

Friday Morning. 9! 5 Nonlinear Periodic Waves in Plasma E. R. TRACY, College of William and Mary.

Critical gradient formula for toroidal electron temperature gradient modes

Limitations of gyrokinetics on transport time scales

Z. Lin University of California, Irvine, CA 92697, USA. Supported by SciDAC GPS-TTBP, GSEP & CPES

Gyrokinetic Simulations of Tokamak Microturbulence

Berk-Breizman and diocotron instability testcases

Stabilization of a low-frequency instability inadipoleplasma

Overview of Accelerated Simulation Methods for Plasma Kinetics

Gyrokinetic Theory and Dynamics of the Tokamak Edge

Radiation belt particle dynamics

Turbulent Transport of Toroidal Angular Momentum in Low Flow Gyrokinetics

International Workshop on the Frontiers of Modern Plasma Physics July On the Nature of Plasma Core Turbulence.

EXAMINATION QUESTION PAPER

Gyrokinetic Transport Driven by Energetic Particle Modes

Turbulent Transport due to Kinetic Ballooning Modes in High-Beta Toroidal Plasmas

NIMEQ: MHD Equilibrium Solver for NIMROD

Simulation results for magnetized plasmas

DPG School The Physics of ITER Physikzentrum Bad Honnef, Energy Transport, Theory (and Experiment) Clemente Angioni

Linear stability of MHD configurations

A numerical instability in an ADI algorithm for gyrokinetics

Gyrokinetic Field Theory without Lie Transforms

Heat Transport in a Stochastic Magnetic Field. John Sarff Physics Dept, UW-Madison

Plasma-neutrals transport modeling of the ORNL plasma-materials test stand target cell

Introduction to MagnetoHydroDynamics (MHD) Antoine Cerfon, Courant Institute, New York University

Single Particle Motion in a Magnetized Plasma

PHYSICS OF HOT DENSE PLASMAS

Plasma Descriptions I: Kinetic, Two-Fluid

W.A. HOULBERG Oak Ridge National Lab., Oak Ridge, TN USA. M.C. ZARNSTORFF Princeton Plasma Plasma Physics Lab., Princeton, NJ USA

Continuum Edge Gyrokinetic Theory and Simulations 1

Properties of freely decaying and driven turbulence of fusion plasmas using gyrokinetic particle simulation

Electromagneic Waves in a non- Maxwellian Dusty Plasma

Particle-in-cell simulations of electron transport from plasma turbulence: recent progress in gyrokinetic particle simulations of turbulent plasmas

MHD-particle simulations and collective alpha-particle transport: analysis of ITER scenarios and perspectives for integrated modelling

1 THC/P4-01. Shear flow suppression of turbulent transport and self-consistent profile evolution within a multi-scale gyrokinetic framework

Modelling of JT-60U Detached Divertor Plasma using SONIC code

Gyrokinetic simulation of entropy cascade in two-dimensional electrostatic turbulence

Impact of neutral atoms on plasma turbulence in the tokamak edge region

Transcription:

AMSC 663 Project Proposal: Upgrade to the GSP Gyrokinetic Code George Wilkie (gwilkie@umd.edu) Supervisor: William Dorland (bdorland@umd.edu) October 11, 2011 Abstract Simulations of turbulent plasma in a strong magnetic field can take advantage of the gyrokinetic approximation, the result of which is a closed set of equations that can be solved numerically. An existing code, GSP, uses a novel and highly efficient solution method. In this project, we will seek to change the velocity-space representation in GSP. This transformation will simplify the inclusion of a new collision operator and make the algorithm more suitable for simulations of turbulence in Tokamak plasmas, while retaining the efficiency and accuracy of the original code. 1 Background Plasma physics concerns the collective dynamics of collections of many charged particles interacting self-consistently with their respective electromagnetic fields. In a uniform magnetic field, the motion of a charged particle (we are usually referring to ions unless otherwise specified) in the plane perpendicular to the magnetic field is a circle whose radius (the gyroradius ρ) depends on its velocity in that plane: ρ = v Ω (Ω is the gyrofrequency). If this radius is much smaller than the characteristic size of the plasma, we can use that ratio as an expansion parameter. Gyrokinetics specifically is the regime in which turbulent fluctuations can be of a size on the order of this gyroradius. This is in contrast to drift-kinetic theory (and by extension, MHD), where the gyroradius needs to be much smaller than the size of the fluctuations. In order to get a closed theory in gyrokinetics, we demand 2k B T m. that the drift velocity be small compared to the thermal velocity v t Such drifts come about when there is curvature or a gradient in the magnetic field or if there exists another force field (such as the electric field). We can summarize the gyrokinetic assumptions thusly: ρ L v E v t ω Ω ν Ω ɛ 1 1

Here, v E = ce B 0 is the E B drift speed, ω is the frequency of turbulent fluctuations, and ν is the characteristic collision frequency. These assumptions are well justified in a wide range of plasmas found in magnetic fusion confinement devices and in astrophysical plasmas. The gyrokinetic equation results from expanding the distribution function in the small parameter ɛ: f(r, v, t) = F 0 + δf +... Where δf ɛf 0 represents the fluctuations in the distribution function. If we transform coordinates to the center of the gyromotion R, we can write ( ) qφ δf = F 0 exp + h(r, v, v ) k B T The latter function h in the coordinates of the gyrocenter position is what we will be solving for. 2 Approach The form of the gyrokinetic equation (in unconventional notation) is: h t + A[h] Rh + D [h] h + D [h] h = S[h] v v Where the coefficients A, D, and D are functions of the local potential χ, which in turn depends on integrals of h in velocity space. This is due to the fact that the fields are calculated from the density and flux of charges, for which the velocity dependence in h must be integrated out. The right hand side S[f] includes, among other terms, the collision operator, which is also in general an integral over h. Such nonlinearities make the gyrokinetic equation very difficult to solve even numerically. The approach we will be taking is a δf particle-in-cell (δf-pic) algorithm (see [Aydemir, 1994]) that models the gyroaveraged fluctuations from equilibrium as a collection of Lagrangian markers. These are, in a sense, twice removed from the physical particles that make up the plasma, and is more accurately thought of as a Monte-Carlo representation of δf. Each marker has a position and a velocity, and a weight w i δf F 0. The latter is the function δf s value as represented by a particle of its position and velocity. The particles follow characteristic trajectories defined by: R t = A v t = D v = D t 2

In many solutions of the gyrokinetic equation, it is assumed that the equilibrium distribution F 0 and the background field B 0 is uniform and stationary. This simplifies the analysis because the equation that results is: h t + v h z + c ẑ ( R χ R h) = C[h] + q B 0 T F χ 0 t Note that there are no terms like h v. This simplifies the characteristics so that all markers have the same gyroradius. This is the approach of the current GSP code (see [Broemstrup, 2008]). 3 Implementation Our implementation seeks to generalize the GSP algorithm to handle conditions where there are gradients in the equilibrium distribution function and field. If we follow the same analysis as before, the resulting gyrokinetic equation does have terms like h v. If this were allowed, the integration of h over velocity space (as required to compute the fields) would be significantly slowed down since the particles velocities are mixed and would require random-access. This is a weakness of the current GSP code since this mixing of particles in velocity space also occurs as a result of collisions. We seek to improve this situation by transforming velocity coordinates. Instead of v and v, we will instead represent velocity space with: and µ = mv2 2B 0 E = 1 2 m (v 2 + v 2 the magnetic moment and kinetic energy, respectively. This is a particularly wise choice because both E and µ are constants of motion, so that dµ dt = de dt = 0. Now the velocity derivatives do not appear in the gyrokinetic equation whether there are gradients or not. Let us now discuss the collision operator. It consists of two terms: C[h] = C ξ [h] + C E [h], each of which discribes the diffusion through the velocity polar angle ξ and through energy E respectively. The latter process is relatively very slow and will not be part of our overall analysis. This is justified by considering the dynamics of two-body interactions: when there is a large disparity in masses (such as between an electron and an ion), the transfer of energy E = 2me M i is very small. Furthermore, when the colliding partners masses are identical, they exchange momenta and the collision can be represented by a different scattering angle of particles with the same energy. Therefore, in plasmas with only one ion species de dt = 0 is a good approximation. The collision operator is expected to be diffusive in velocity space, serving to smooth out fine structure in h. However, in evaluating the collision operator, an interpolation in velocity space onto a polar grid is required. This results in an ) 3

artificial diffusion that does not follow the proper physics that the true collision operator does. The fact that the interpolation is two-dimensional exacerbates this effect. Therefore, by choosing our velocity grid to be polar to begin with, this interpolation is only one dimensional. We conclude that successfully making this change of velocity coordinates in GSP will result in a code that is more accurate (by minimizing artificial diffusion) and more efficient (by minimizing random access) when generalized to systems with background gradients. The algorithm implemented in GSP is illustrated here: 1. Initialization Place particles as sampled from the equilibrium distribution function Integrate to obtain initial potential χ 2. Simulation For each particle i: R n+ 1 2 i = R n i + t 2 vn i χ n+ 1 2 calculated on a grid in Fourier space, using R n+ 1 2 j S n+ 1 2 i [h] (RHS of GK equation) calculated from χ n+ 1 2 and w n j ( j) w n+1 i = wi n + 1 tsn+ 2 i [h] v n+ 1 2 i calculated from χ n+ 1 2 R n+1 i = R n i + tvn+ 1 2 i χ n+1 calculated on a grid in Fourier space, using R n+1 j v n+1 i calculated from χ n+1 3. Repeat Step 2 as needed 4. Obtain moments of δf such as density, temperature, and flux A crucial step of the algorithm is where the fields are computed. current implemention of GSP, this is done in Fourier space with: ( ) k v φ J 0 δf Ω R v dv dv In the The Bessel function J 0 comes from the calculation of the gyroaverage in Fourier space. Translating this integral into a suitable, equally efficient method to calculate the potential when using the transformed velocity coordinates E and µ represents the most significant challenge of this project. Failure to do so is a risk and would will result in a code that does not retain the efficiency of the original GSP. Considering the complexity of the code, it is also possible that the student fails to sufficiently grasp the algorithm to make and debug the needed changes. 4

4 Databases GSP Source code: http://gyrokinetics.svn.sourceforge.net/viewvc/gyrokinetics/gsp/ Article with analytic result: Ricci, et al, Gyrokinetic linear theory of the entropy mode in a Z pinch. Physics of Plasmas, 13: 062102 Article with computational benchmark: Dimits, et al, Comparisons and physics basis of tokamak transport models and turbulence simulations. Physics of Plasmas, 7: 969 5 Validation To ensure we have built a code that gives physical results, we will compare results obtained from both the old version of GSP and the update. Both should agree remarkably well in regimes in which the original GSP is accurate since a coordinate change shall not change the physics being simulated. A standard computational benchmark for gyrokinetics is given in [Dimits et al, 2000]. We will use this reference to compare results obtained from GSP. Furthermore, an analytical condition necessary for stability in a gyrokinetic plasma has been obtained in Appendix B of [Ricci et al, 2006]. Comparing this to the conditions at which the code predicts an unstable plasma would provide a good test of the physical fidelity of the code. Application of this test would require a translation in position coordinates as well, which is beyond the immediate scope of this project, although it is hoped to be accomplished. 6 Testing Even if we have built a code with robust physics, it is possible that such an effort may be in vain. This would occur if the updated version of GSP is not an update at all and instead is considerably less efficient than the original code. Therefore, we shall benchmark the performance of the update against the original code and ensure that it scales well from a parallelization standpoint. 7 Schedule and Milestones Phase I: Analytics September - October 2011 Understand rigorous derivation of the gyrokinetic equation Become familiar with analytical aspects of the gyrokinetic equation Make velocity coordinate change 5

Understand algorithm used by GSP to solve GK equation Understand Abel collision operator and how it is to be implemented in GSP Milestone: Derive GK equation in velocity coordinates E and µ. Phase II: Numerics October 2011 - January 2012 Become familiar with GSP code Make proposed changes to the code Ensure code still runs Milestone: GSP Code updated with new velocity coordinates. Phase III: Testing and Validation February - April 2012 Debug updated GSP code Validate and test against previous version and known results Run test cases, organize results Milestone: GSP code in new velocity coordinates validated and tested Phase IV: Communication April - May 2012 Prepare final presentation Milestone: Final presentation given 8 Deliverables Updated GSP source code Sample input files of test cases Test case comparison data Mid-year progress report Final presentation 9 Bibliography Abel, et al. Linearized model Fokker-Planck collision operators for gyrokinetic simulations. 1. Theory. Physics of Plasmas, 15:122509 (2008) Antonsen and Lane, Kinetic equations for low frequency instabilities in inhomogeneous plasmas. Physics of Fluids, 23:1205 (1980) Aydemir, A unified Monte Carlo interpretation of particle simulatinos and applications to non-neutral plasmas. Physics of Plasmas, 1:822 (1994) Barnes, Trinity: A Unified Treatment of Turbulence, Transport, and Heating in Magnetized Plasmas. PhD Thesis, University of Maryland Department of Physics (2009) 6

Broemstrup, Advanced Lagrangian Simulations Algorithms for Magnetized Plasma Turbulence. PhD Thesis, University of Maryland Department of Physics (2008) Catto, Linearized gyro-kinetics. Plasma Physics, 20:719 (1978) Dimits, et al, Comparisons and physics basis of tokamak transport models and turbulence simulations. Physics of Plasmas, 7: 969 (2000) Frieman and Chen, Nonlinear gyrokinetic equations for low-frequency electromagnetic waves in general plasma equilibria. Physics of Fluids, 25:502 (1982) Howes, et al. Astrophysical gyrokinetics: basic equations and linear theory. The Astrophysical Journal, 651: 590 (2006) Ricci, et al, Gyrokinetic linear theory of the entropy mode in a Z pinch. Physics of Plasmas, 13: 062102 (2006) 7