Hostname: page-component-6766d58669-l4t7p Total loading time: 0 Render date: 2026-05-16T21:01:51.699Z Has data issue: false hasContentIssue false

Reduction of the statistical error in electromagnetic gyrokinetic particle-in-cell simulations

Published online by Cambridge University Press:  20 February 2019

R. Hatzky*
Affiliation:
Max Planck Institute for Plasma Physics, Boltzmannstr. 2, 85748 Garching, Germany
R. Kleiber
Affiliation:
Max Planck Institute for Plasma Physics, Wendelsteinstr. 1, 17491 Greifswald, Germany
A. Könies
Affiliation:
Max Planck Institute for Plasma Physics, Wendelsteinstr. 1, 17491 Greifswald, Germany
A. Mishchenko
Affiliation:
Max Planck Institute for Plasma Physics, Wendelsteinstr. 1, 17491 Greifswald, Germany
M. Borchardt
Affiliation:
Max Planck Institute for Plasma Physics, Wendelsteinstr. 1, 17491 Greifswald, Germany
A. Bottino
Affiliation:
Max Planck Institute for Plasma Physics, Boltzmannstr. 2, 85748 Garching, Germany
E. Sonnendrücker
Affiliation:
Max Planck Institute for Plasma Physics, Boltzmannstr. 2, 85748 Garching, Germany
*
Email address for correspondence: roman.hatzky@ipp.mpg.de
Rights & Permissions [Opens in a new window]

Abstract

The $\unicode[STIX]{x1D6FF}f$-PIC method is widely used for electrostatic particle-in-cell (PIC) simulations. Its basic idea is the ansatz $f=f_{0}+\unicode[STIX]{x1D6FF}f$ ($\unicode[STIX]{x1D6FF}f$-ansatz) where the particle distribution function $f$ is split into a usually time-independent background $f_{0}$ and a time-dependent perturbation $\unicode[STIX]{x1D6FF}f$. In principle, it can also be used for electromagnetic gyrokinetic PIC simulations, but the required number of markers can be so large that PIC simulations become impractical. The reason is a decreasing efficiency of the $\unicode[STIX]{x1D6FF}f$-ansatz for the so-called ‘Hamiltonian formulation’ using $p_{\Vert }$ as a dynamic variable. As a result, the density and current moment of the distribution function develop large statistical errors. To overcome this obstacle we propose to solve the potential equations in the symplectic formulation using $v_{\Vert }$ as a dynamic variable. The distribution function itself is still evolved in the Hamiltonian formulation which is better suited for the numerical integration of the parallel dynamics. The contributions from the full Jacobian of phase space, a finite velocity sphere of the simulation domain and a shifted Maxwellian as a background are considered. Special care has been taken at the discretisation level to make damped magnetohydrodynamics (MHD) mode simulations within a realistic gyrokinetic model feasible. This includes devices like e.g. large tokamaks with a small aspect ratio.

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 (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution, and reproduction in any medium, provided the original work is properly cited.
Copyright
© Cambridge University Press 2019
Figure 0

Figure 1. (a) The distribution function $f^{\text{s}}$ (solid red line), the background distribution function $f_{0}$ (dashed blue line) and the perturbation to the distribution function, $\unicode[STIX]{x1D6FF}f^{\text{s}}$, (dotted green line) as a function of $v_{\Vert }$ normalised to the thermal velocity $v_{\text{th}}$. (b) The distribution function $f^{\text{h}}$ (solid red line), the background distribution function $f_{0}$ (dashed blue line) and the perturbation to the distribution function, $\unicode[STIX]{x1D6FF}f^{\text{h}}$, (dotted green line) as a function of $\tilde{p}_{\Vert }$ normalised to the thermal velocity $v_{\text{th}}$. Due to the coordinate transformation (3.28) the distribution function $f^{\text{h}}$ is shifted compared to $f^{\text{s}}$ (arrow at maximum). As a consequence, $\unicode[STIX]{x1D6FF}f^{\text{h}}$ becomes asymmetric which leads to a non-physical current in the Hamiltonian formulation, the so-called ‘adiabatic current’.

Figure 1

Figure 2. A simulation of a shear Alfvén wave in a slab using exclusively electrons. (a,b) The standard deviation of the total particle number $\unicode[STIX]{x1D70E}_{\text{n}_{\text{tot}}}$ and the standard deviation of the total current $\unicode[STIX]{x1D70E}_{\text{j}_{\Vert \text{tot}}}$ as a function of time. The standard deviation of the perturbed electron markers in the Hamiltonian formulation (dashed red line) and in the symplectic formulation (solid blue line). The simulation has been performed with $N_{\text{pe}}=10^{6}$ electron markers and $N_{z}=16$ B-splines in the parallel field direction (see § 12.1).

Figure 2

Figure 3. The quantity $1/(ak_{\bot })^{2}$ for various poloidal modes $m$ as a function of the normalised minor radius $r/a$.

Figure 3

Figure 4. (a,b) The damping rate and the angular frequency of a shear Alfvén wave in a slab as a function of the number of electron markers $N_{\text{pe}}$ (solid line). For comparison, the result of the dispersion relation (dashed-dotted horizontal line). Discretisation of $\unicode[STIX]{x1D6FF}\unicode[STIX]{x1D719}$ and $\unicode[STIX]{x1D6FF}A_{\Vert }$ uses quadratic B-splines including the correction term $\unicode[STIX]{x0394}E_{\Vert }$. The simulation has been performed with $N_{z}=16$ B-splines in the parallel $z$-direction.

Figure 4

Figure 5. (a,b) The damping rate and the angular frequency of a shear Alfvén wave in a slab as a function of the number of B-splines $N_{z}$. Discretisation of $\unicode[STIX]{x1D6FF}\unicode[STIX]{x1D719}$ and $\unicode[STIX]{x1D6FF}A_{\Vert }$ with quadratic B-splines (dashed blue line), including the correction term $\unicode[STIX]{x0394}E_{\Vert \text{e}}$ (solid red line), with cubic B-splines for discretisation of $\unicode[STIX]{x1D6FF}\unicode[STIX]{x1D719}$ and quadratic B-splines for discretisation of $\unicode[STIX]{x1D6FF}A_{\Vert }$ (dotted green line). For comparison, the result of the dispersion relation (dashed-dotted horizontal line). The simulation has been performed with $N_{\text{pe}}=10^{6}$ electron markers.

Figure 5

Figure 6. (a,b) The damping rate and the angular frequency of the GAE in a screw pinch as a function of the time-step size $\unicode[STIX]{x0394}t$. The simulation has been performed with $N_{\text{pi}}=N_{\text{pe}}=4\times 10^{6}$ ion and electron markers.

Figure 6

Figure 7. (a,b) The damping rate and the angular frequency of the GAE in a screw pinch as a function of the ion markers $N_{\text{pi}}$. The simulation has been performed with a time-step size of $\unicode[STIX]{x0394}t=10^{-9}$ s and $N_{\text{pe}}=32\times 10^{6}$ electron markers.

Figure 7

Figure 8. (a,b) The damping rate and the angular frequency of the GAE in a screw pinch as a function of the electron markers $N_{\text{pe}}$. The dashed blue lines depict simulations without gyro-averaging, i.e. with a vanishing gyro-ring in the charge and current assignments and in the equations of motion respectively, and the solid red lines depicts simulations with gyro-averaging. The simulation has been performed with a time-step size of $\unicode[STIX]{x0394}t=10^{-9}$ s and $N_{\text{pi}}=4\times 10^{6}$ ion markers.

Figure 8

Figure 9. (a,b) The damping rate and the angular frequency of the TAE in a tokamak as a function of the time-step size $\unicode[STIX]{x0394}t$. The simulation has been performed with $N_{\text{pi}}=4\times 10^{6}$ ion markers and $N_{\text{pe}}=64\times 10^{6}$ electron markers.

Figure 9

Figure 10. (a,b) The damping rate and the angular frequency of the TAE in a tokamak as a function of the electron markers $N_{\text{pe}}$. The dashed blue lines depict simulations without gyro-averaging, i.e. with a vanishing gyro-ring in the charge and current assignments and in the equations of motion, respectively and the solid red lines simulations with gyro-averaging. The simulation has been performed with a time-step size of $\unicode[STIX]{x0394}t=5\times 10^{-9}$ s and $N_{\text{pi}}=4\times 10^{6}$ ion markers.

Figure 10

Figure 11. (a,b) The damping rate and the angular frequency of the GAE in a tokamak as a function of the time-step size $\unicode[STIX]{x0394}t$. The simulation has been performed with $N_{\text{pi}}=4\times 10^{6}$ ion markers and $N_{\text{pe}}=32\times 10^{6}$ electron markers.

Figure 11

Figure 12. (a,b) The damping rate and the angular frequency of the GAE in a tokamak as a function of the electron markers $N_{\text{pe}}$. The dashed blue lines depict simulations without gyro-averaging, i.e. with a vanishing gyro-ring in the charge and current assignments and in the equations of motion, respectively and the solid red lines simulations with gyro-averaging. The simulation has been performed with a time-step size of $\unicode[STIX]{x0394}t=2\times 10^{-9}$ s and $N_{\text{pi}}=4\times 10^{6}$ ion markers.

Figure 12

Figure 13. (a,b) The radially averaged perturbed electrostatic and magnetic potential of the nonlinear tearing mode as a function of time. The linearised pull-back transformation of the moments (solid blue line) is compared with the consistent nonlinear one (dotted red line).

Figure 13

Figure 14. Poloidal view of a circular tokamak. A cylindrical coordinate system $(R,\unicode[STIX]{x1D711},Z)$ and a magnetic coordinate system $(s,\unicode[STIX]{x1D711},\unicode[STIX]{x1D717})$ are depicted. In case of the screw pinch, we have $R_{0}=0$.