Small hard to merge changed

abbreviations, whitespace, empty tex files, etc.
This commit is contained in:
Patrick Kilian
2021-02-27 13:18:23 -07:00
parent d8ab0b802c
commit 3e8f9fd1c7
11 changed files with 173 additions and 214 deletions
+2 -2
View File
@@ -10,7 +10,7 @@
%IVb instabilities
\input{instabilities} %%TODO schreiben und so.
% \input{lwfa}
% laser-wakefield acceleration?
%IVc shocks
\input{shocks}
@@ -18,4 +18,4 @@
%IVd reconnection
\input{reconnection}
% \input{pulsar}
% pulsar magnetospheres
-3
View File
@@ -1,3 +0,0 @@
\section*{Technical Implementation}
+15 -15
View File
@@ -5,7 +5,7 @@
Instabilities play a crucial role in space plasmas. Many of the application are discussed throughout this book starting with MHD instabilities like Kelvin-Helmholtz in the chapter \emph{Introduction to MHD simulation} to various kinetic instabilities (beam instability in \emph{Vlasov codes and simulation}, instabilities in reconnection and shocks in \emph{Hybrid codes} and Bunemann, Weibel, and magnetorotational instability in \emph{Application of particle-in-cell (PIC) simulations to astroplasma phenomena}).
PiC codes are able to reproduce kinetic instabilities that include but are not limited to cases with non-Maxwellian distribution functions, counter-streaming plasmas or currents in plasmas. This section serves as an hands-on example on how to initialize, run and evaluate PiC simulations of kinetic plasma instabilities.
PiC codes are able to reproduce kinetic instabilities that include but are not limited to cases with non-Maxwellian distribution functions, counter-streaming plasmas or currents in plasmas. This section serves as an hands-on example on how to initialize, run and evaluate PiC simulations of kinetic plasma instabilities.
@@ -23,7 +23,7 @@ for a very detailed overview of instabilities (more specifically beam-plasma ins
The classical approach to plasma instabilities is described in-depth in Chapter 11 of \cite{2002cra..book.....S}: For a given configuration of the distribution function the dielectric tensor of the plasma can be evaluated and the dispersion relation for that plasma configuration can be solved. This typically yields solutions of the form
\begin{align}
\omega (\vec k) = \omega_R (\vec k) + i \gamma(\vec k)
\omega (\vec k) = \omega_R (\vec k) + i \gamma(\vec k)
\end{align}
where $\omega_R$ is the real part of the frequency, $\gamma$ is the growth rate. Three different cases can be distinguished
\begin{itemize}
@@ -49,17 +49,17 @@ Analytic theory can answer the question how fast a given mode of the plasma is g
%Wie initialisiere ich das Ganze?
The first step in simulating instabilities is the initialization of the plasma configuration. Following the description in section \ref{subsec:num:init} particles will be injected. For simple scenarios like counter-streaming plasmas with identical densities this is a simple task. More involved cases are e.g. cosmic-ray induced instabilities with high density contrasts. In order to accommodate high contrast very high particle numbers can be used (which is discouraged by the computational cost) or the weight of macroparticles has to be changed.
The first step in simulating instabilities is the initialization of the plasma configuration. Following the description in Sect.~\ref{subsec:num:init} particles will be injected. For simple scenarios like counter-streaming plasmas with identical densities this is a simple task. More involved cases are e.g. cosmic-ray induced instabilities with high density contrasts. In order to accommodate high contrast very high particle numbers can be used (which is discouraged by the computational cost) or the weight of macroparticles has to be changed.
Care has to be taken also for instabilities caused by spatial inhomogeneities: As the number of particles per cell at the point of lowest density should fulfill the minimal criteria for numerical stability (at least one particle per cell, typically 10 or more), which in turn requires again either higher particle numbers or different particle weights in regions with higher density.
%%Bedingungen für Größe/Auflösung
%%Veränderte
%%Veränderte
A more important question is the correct resolution and size of the simulation. It is self-evident that the cell size has to resolve the Debye length in explicit PiC codes, on the other hand the total size of the simulation has to be large enough to contain the waves or structures that are excited. %This of course requires prior knowledge about the expected position of the instability in $k$-space from a analytical viewpoint - even if it is only approximate.
This yields a minimal size $L_\text{min} \geq 2\pi / k_\text{max}$, where $k_\text{max}$ is the wave number, where the maximum growth of an instability is expected. It has been argued \cite{2017ApJ...848...81S} that it is not sufficient to resolve $k_\text{max}$ but that it is necessary to resolve the width of the peak of the damping function $\gamma(k)$.
For most astrophysical plasmas the necessary cell number from the above condition is typically very large. Combined with the fact that growth rates are often very low compared to the plasma frequency $\omega_\text{pe}$ this yields typically rather long simulation times - usually beyond what is possible. In almost all simulations other parameters are altered to produce computationally viable, but still meaningful simulations. One of the most commonly used techniques is changing the mass ratio of protons and electrons. This reduces the time needed to see ion motion and therefore produces shorter simulations. Unfortunately not all physical effects scale in the same way with the electron proton mass ratio. It is advisable to examine the dependence of growth rates on the mass ratio closely \cite{2010ApJ...720.1318B,2018PhPl...25f2125M}. As a rule of thumb the change of mass ratio should not change the ordering of proton and electron gyro- and plasma frequencies.
For most astrophysical plasmas the necessary cell number from the above condition is typically very large. Combined with the fact that growth rates are often very low compared to the plasma frequency $\omega_\text{pe}$ this yields typically rather long simulation times - usually beyond what is possible. In almost all simulations other parameters are altered to produce computationally viable, but still meaningful simulations. One of the most commonly used techniques is changing the mass ratio of protons and electrons. This reduces the time needed to see ion motion and therefore produces shorter simulations. Unfortunately not all physical effects scale in the same way with the electron proton mass ratio. It is advisable to examine the dependence of growth rates on the mass ratio closely \cite{2010ApJ...720.1318B,2018PhPl...25f2125M}. As a rule of thumb the change of mass ratio should not change the ordering of proton and electron gyro- and plasma frequencies.
% Burkart_2010.pdf first acronym reference, mass ratio in filamentation instability
% Moreno_2018.pdf influence of mass ratio on instability growth times
@@ -73,7 +73,7 @@ For most astrophysical plasmas the necessary cell number from the above conditio
% \item Integrated energy of magnetic, field and particle energy over time
% \end{itemize}
Based on the output described in Sec.~\ref{subsec:num:diag} there are various ways to find instabilities in the simulation data. The primary hint for the existence of an instability is the rise of particle or electromagnetic energy. %Unfortunately this is not by any means a definite signal.
Based on the output described in Sect.~\ref{subsec:num:diag} there are various ways to find instabilities in the simulation data. The primary hint for the existence of an instability is the rise of particle or electromagnetic energy. %Unfortunately this is not by any means a definite signal.
In order to detect and distinguish different instabilities it is inevitable to use Fourier transforms of the electromagnetic field data. The following recipe has proven itself to be very helpful
\begin{enumerate}
\item Consider the transverse magnetic field as well as the curl-free longitudinal and divergence-free transverse components of the electric field.
@@ -88,13 +88,13 @@ An illustrative example is the instability caused by pair beams originating from
The simulations \cite{2014ApJ...787...49S} and \cite{2016A&A...585A.132K} show different approaches to adjusting physical parameters for a feasible simulation. While the simulations of Sironi et al. focus on achieving very high Lorentz factors for the beam, the simulations of Kempf et al. try to resemble the energy ratio of the beam to the background. Both simulations have in common that neither the real density contrast nor the Lorentz factor of the beam can be resembled.
% Due to the high Lorentz factors of the beam measures have to be taken, to avoid purely numerical instabilities. In this case a Friedmann filter has been used \cite{Greenwood_2004}.
% Due to the high Lorentz factors of the beam measures have to be taken, to avoid purely numerical instabilities. In this case a Friedmann filter has been used \cite{Greenwood_2004}.
% A necessary prerequisite for the use of such a filter is that the interesting physical effects occur in the low $k$ regime as the Friedmann filter dampens electromagnetic fields in the high $k$ regime, where the numerical Cerenkov instability occurs.
In the further course of the simulations two parameters have been defined: The mass density ratio $\alpha$ between a drifting species - denominated jet - and background, as well as the energy density ratio $\epsilon$
between jet and background. The physics case prompts for extremely small values of $\alpha$ and $\epsilon$ values well below one. An interesting test case is the $\epsilon=1,\ \gamma=50$ case, because it illustrates rather well the onset of the change of the distribution function that is one source of nonlinear development of the instability.
In Fig. \ref{fig:e1g50-energy} the electric field energy plotted over time is used as primary marker for the instability. The time is normalized to inverse plasma timescales (a sensible approach, when the relevant times are not depending on the magnetic field). During the first 500 inverse plasma timescales a sharp increase is seen, which is associated with the electrostatic instability. The growth rate decreases then considerably until at around 3000 inverse plasma time scales a further rise (associated presumably with the Weibel instability).
In Fig.~\ref{fig:e1g50-energy} the electric field energy plotted over time is used as primary marker for the instability. The time is normalized to inverse plasma timescales (a sensible approach, when the relevant times are not depending on the magnetic field). During the first 500 inverse plasma timescales a sharp increase is seen, which is associated with the electrostatic instability. The growth rate decreases then considerably until at around 3000 inverse plasma time scales a further rise (associated presumably with the Weibel instability).
% \begin{figure}
% \includegraphics[width=0.9\columnwidth]{figure/application/energy}
@@ -119,7 +119,7 @@ In Fig. \ref{fig:e1g50-energy} the electric field energy plotted over time is us
\caption{Simulation of propagating pair beams with $\epsilon = 1$, $\alpha= 2.5\cdot 10^{-5}$, $\gamma=50$}
\end{figure}
The energy plot gives a hint, at which times a detailed analysis is helpful. When looking at times, where the saturation has set in, the results may be ambiguous. Here a look at the Fourier transform will yield further insight. The 1D (Fig. \ref{fig:e1g50-E1d}) and 2D (Fig. \ref{fig:e1g50-E2d}) Fourier transform is plotted. The 1D Fourier transform shows a clear sign of the instability at $4\cdot 10^{-10}$ cm$^{-1}$ and another bump at $2.3\cdot 10^{-10}$ cm$^{-1}$. The 2D Fourier transform shows that the former peak is linked to a structure at fixed $k_\parallel$ over a wide range of $k_\perp$. The 2D transform highlights that a 2D simulation is necessary to capture the features not aligned with the magnetic field direction. Here the position in $k$-space is compatible with $k_\parallel u \approx k_\parallel c = \omega_{pe}$.
The energy plot gives a hint, at which times a detailed analysis is helpful. When looking at times, where the saturation has set in, the results may be ambiguous. Here a look at the Fourier transform will yield further insight. The 1D (Fig.~\ref{fig:e1g50-E1d}) and 2D (Fig.~\ref{fig:e1g50-E2d}) Fourier transform is plotted. The 1D Fourier transform shows a clear sign of the instability at $4\cdot 10^{-10}$ cm$^{-1}$ and another bump at $2.3\cdot 10^{-10}$ cm$^{-1}$. The 2D Fourier transform shows that the former peak is linked to a structure at fixed $k_\parallel$ over a wide range of $k_\perp$. The 2D transform highlights that a 2D simulation is necessary to capture the features not aligned with the magnetic field direction. Here the position in $k$-space is compatible with $k_\parallel u \approx k_\parallel c = \omega_{pe}$.
% \begin{figure}
% \includegraphics[width=0.9\columnwidth]{figure/application/E1d-11246}
@@ -150,7 +150,7 @@ The energy plot gives a hint, at which times a detailed analysis is helpful. Whe
\caption{Simulation of propagating pair beams with $\epsilon = 1$, $\alpha= 2.5\cdot 10^{-5}$, $\gamma=50$}
\end{figure}
When observing the change of the distribution function as outlined in Fig. \ref{fig:e1g50-histo}, it can be seen that the peak of the beam decreases in amplitude, but even after more than $10^4$ plasma timescales it just moves to a plateau. We conclude that the plateauing of the distribution function slows down the instability, which brings the system to an almost stable situation after around 7000 plasma timescales.
When observing the change of the distribution function as outlined in Fig.~\ref{fig:e1g50-histo}, it can be seen that the peak of the beam decreases in amplitude, but even after more than $10^4$ plasma timescales it just moves to a plateau. We conclude that the plateauing of the distribution function slows down the instability, which brings the system to an almost stable situation after around 7000 plasma timescales.
% \begin{figure}
% \includegraphics[width=0.9\columnwidth]{figure/application/histo}
@@ -166,12 +166,12 @@ While the latter example was from the class of beam-driven instabilities, there
The initialization of this family of instabilities is typically much simpler: As opposed to beam instabilities, there is usually not a large density contrast. Our example for the filamentation instability assumes a proton-pair plasma running into a proton-electron plasma.
The setup is realised as two counterstreaming plasma populations, one representing the background medium consisting of $6 e^-$ and $6 p^+$ per cell (proton stream) and the other incorporating the jet
The setup is realised as two counterstreaming plasma populations, one representing the background medium consisting of $6 e^-$ and $6 p^+$ per cell (proton stream) and the other incorporating the jet
containing $4 e^-$, $2 e^+$ and $2 p^+$ per cell (pair-proton stream), from which we find the background density ratio $n_{jet}/n_{bg} = 2/3$ and the ratio $n_{p^+}/n_{e^+} = 1$ in the pair-proton stream. In the lab frame (the rest frame of the simulation box) the two streams are counterstreaming along the z-direction with a Lorentz factor $\gamma = 10$ ($\beta = v/c = 0.995$) each, the electron distribution has a thermal velocity of $v_{th,e} = 0.1c$ in every direction in the restframe of the moving medium, the thermal velocity of the protons is $v_{th,p} = 0.1c \cdot (m_p/m_e)^{-1}$. The simulation is initialized by drawing random particles from the thermal distribution and boosting them into the frame of the respective streaming population.
Three-dimensional simulations with five different compositions of counterstreaming plasmas using $128 \times 128 \times 512$ cells with a total of 167 million particles (20 particles per cell) and mass-ratios $m_{p}/m_{e}$ between 1 and 100 have been performed.
Running and analysing the simulations is rather similar to the recipe described above. In first place the energy within the simulation should be carefully analyzed. This has been done for the transverse magnetic field energy in Fig. \ref{fig:B_vergleich}. The filamentation instability produces a magnetic field in an initially unmagnetized medium. This can be nicely observed here. The statement about linear and nonlinear stages of the instability is also true. In the first stage there is an almost exponential rise of the magnetic field energy (as expected for a constant growth rate), then a linear rise follows until the instability comes to a stop. The most interesting feature seen here is that the filaments decay and the another instability shows up.
Running and analysing the simulations is rather similar to the recipe described above. In first place the energy within the simulation should be carefully analyzed. This has been done for the transverse magnetic field energy in Fig.~\ref{fig:B_vergleich}. The filamentation instability produces a magnetic field in an initially unmagnetized medium. This can be nicely observed here. The statement about linear and nonlinear stages of the instability is also true. In the first stage there is an almost exponential rise of the magnetic field energy (as expected for a constant growth rate), then a linear rise follows until the instability comes to a stop. The most interesting feature seen here is that the filaments decay and the another instability shows up.
\begin{figure}[ht]
\rotatebox{270}{ \includegraphics[width=0.65\columnwidth]{figure/application/B_vergleich.pdf} }
@@ -179,14 +179,14 @@ Running and analysing the simulations is rather similar to the recipe described
\label{fig:B_vergleich}
\end{figure}
The corresponding filaments are shown in Fig. \ref{fig:filaments}. Quite nicely the fine filaments are seen at medium times. These decay at later times as expected. The filaments are best shown in a real space cut orthogonal to the streaming direction.
The corresponding filaments are shown in Fig.~\ref{fig:filaments}. Quite nicely the fine filaments are seen at medium times. These decay at later times as expected. The filaments are best shown in a real space cut orthogonal to the streaming direction.
\begin{figure}
\begin{center}
\includegraphics[width=0.9\columnwidth]{figure/application/filament.pdf}
\includegraphics[width=0.9\columnwidth]{figure/application/filament.pdf}
\end{center}
\caption{Development and merging of the flux tubes for a simulation with $m_p/m_e = 100.0$ and a resolution of $256 \times 256 \times 512$ cells. The colors pertain to the particle density (in particles per cell). In the three pictures it is to be seen that first the flux tubes develop, later they nearly vanish (which corresponds to the dip in the magnetic field energy in Fig. \ref{fig:B_vergleich} in the black curve at $80 \omega_p^{-1}$) and then the flux tube in the lower right corner grows stronger (lower set of pictures). This can be attributed to the independent instabilities at high mass-ratios. (Figure taken from \cite{2010ApJ...720.1318B})
\caption{Development and merging of the flux tubes for a simulation with $m_p/m_e = 100.0$ and a resolution of $256 \times 256 \times 512$ cells. The colors pertain to the particle density (in particles per cell). In the three pictures it is to be seen that first the flux tubes develop, later they nearly vanish (which corresponds to the dip in the magnetic field energy in Fig.~\ref{fig:B_vergleich} in the black curve at $80 \omega_p^{-1}$) and then the flux tube in the lower right corner grows stronger (lower set of pictures). This can be attributed to the independent instabilities at high mass-ratios. (Figure taken from \cite{2010ApJ...720.1318B})
}
\label{fig:filaments}
\end{figure}
-28
View File
@@ -1,28 +0,0 @@
\subsection{Laser Plasma Interaction}
\label{subsec:lwfa}
% LWFA
% Tajima_1979.pdf 1d3v em pic simulation of lawer wake field acceleration
% Katsouleas_1983.pdf surfatron acceleration in LWFA
% Guozheng_1987.pdf self-focusing of laser pulses in plasma
% Sprangle_1989.pdf LWFA, self guiding laser pulse
% Borisov_1992.pdf self channeling of laser pulses in LWFA
% Nakajima_1995.pdf laser self modulation
% Nakajima_1996.pdf experimental LWFA
% Ting_1997.pdf experimental LWFA
% Pukhov_1999.pdf Laser-Plasma simulation with open boundaries
% Tsakiris_2000.pdf LWFA with magnetic fields, single particle MC
% Bruhwiler_2001.pdf beam and laser driven plasma wakefile acceleration, moving window in XOOPIC
% Leemans_2002.pdf asymetric pulses in LWFA
% Malka_2002.pdf LWFA PiC / experiment
% Faure_2004.pdf experimental LWFA, mono-energetic electrons
% Geddes_2004.pdf LWFA plasma channel laser self-guiding
% Mangles_2004.pdf experimental lwfa, mono-energetic electrons
% Toth_2004.pdf LWFA for THz generation
% Tsung_2004.pdf first 3d PiC of LWFA
% Hosokai_2006.pdf experimental lwfa, comparisson with 2d pic
% Michel_2006.pdf numerical issues with PiC models of LWFA
% Burau_2010.pdf PiConGPU
+4 -6
View File
@@ -41,7 +41,7 @@
%Los Alamos National Laboratory,
%Los Alamos, NM 87545, USA \\
%\email{pkilian@lanl.gov}\\
%\and
%\and
%Institut f\"ur Kernphysik,
%Karlsruher Institut f\"ur Technologie,
%Hermann-von-Helmholtz-Platz 1,
@@ -49,7 +49,7 @@
%\email{felix@fspanier.de}}
%%%%New stylefile
%%%%New stylefile
\title*{Particle in Cell simulations\thanks{Supported by Verein zur F\"orderung der kinetischen Plasmaphysik.}}
% Use \titlerunning{Short Title} for an abbreviated version of
@@ -58,12 +58,12 @@
% Use \authorrunning{Short Title} for an abbreviated version of
% your contribution title if the original one is too long
\institute{Patrick Kilian \at Theoretical Astrophysics, T-2, MS B227, Los Alamos National Laboratory, Los Alamos, NM 87545, USA \email{pkilian@lanl.gov}
\and Felix Spanier \at Zentrum f\"ur Astronomie, Institut f\"ur Theoretische Astrophysik, Universit\"at Heidelberg, Albert-\"Uberle-Str. 2, D-69120 Heidelberg, Germany \email{felix@fspanier.de}}
\and Felix Spanier \at Zentrum f\"ur Astronomie, Institut f\"ur Theoretische Astrophysik, Universit\"at Heidelberg, Albert-\"Uberle-Str. 2, D-69120 Heidelberg, Germany \email{felix@fspanier.de}}
%
\maketitle % typeset the header of the contribution
\maketitle % typeset the header of the contribution
%
%\begin{abstract}
@@ -85,8 +85,6 @@ codes have successfully been used.}
\include{numerics}
% \include{implementation}
\include{application}
+93 -94
View File
@@ -12,9 +12,8 @@ fields on the grid for one time step. The simulation grid can resolve one, two o
This subsection discusses how electromagnetic fields are calculated from
source terms (moments of the distribution function of all charged particle
species). The source are assumed to be known on a uniform grid of rectangular
cells. How the source terms are calculated is discussed in section
\ref{subsec:num:depostion}. Non-rectangular grids are discussed in the
review \cite{Meierbachtol_2015}.
cells. How the source terms are calculated is discussed in Sect.~\ref{subsec:num:depostion}.
Non-rectangular grids are discussed in the review \cite{Meierbachtol_2015}.
%In this subsection we will assume that the source terms that are based on
@@ -33,7 +32,7 @@ given by the Yee lattice described in \cite{Yee_1966}. Component of the
electric field $E_i$ are located at the mid points of edges pointing in
coordinate direction $x_i$ whereas magnetic flux components $B_i$ are located
at the center of cell phases with have normal vectors pointing in direction
$x_i$, as shown in Figure~\ref{fig:num:rot_yee}.
$x_i$, as shown in Fig.~\ref{fig:num:rot_yee}.
In principle the two dual subgrids could be interchanged, but this
arrangement neatly follows the view of electromagnetism as a discrete exterior
calculus, where the electric field is a one-form that naturally lives on cell
@@ -41,8 +40,8 @@ edges. The magnetic flux is represented by two-forms assigned to cell phases.
This view of computational electrodynamics is rather recent but has proven
useful when designing field solvers on unstructured grids \cite{Rabina_2014, Na_2018}.
The staggered arrangement of components
%looks complicated as first and the reader might fear that it will require a lot of re-interpolation.
The staggered arrangement of components
%looks complicated as first and the reader might fear that it will require a lot of re-interpolation.
is non-trivial and it looks as if interpolation is needed to calculate derivatives
at the correct positions.
But the contrary is true as we will see in a moment. We start our consideration from
@@ -58,17 +57,17 @@ and $\vec{B}$.
\nabla \cdot \vec{E} &= 4 \pi\,\rho \label{eq:num:gauss}\\
\nabla \cdot \vec{B} &= 0 \label{eq:num:monopol}
\end{align}
Gauss's Law in Eq.~\eqref{eq:num:gauss} is the corner stone for electrostatic
Gauss's Law in equation~\eqref{eq:num:gauss} is the corner stone for electrostatic
Particle-in-cell codes, but we will ignore it for now. Its equivalent for the
magnetic field, Eq.~\eqref{eq:num:monopol}, that describes the absence of
magnetic field, equation~\eqref{eq:num:monopol}, that describes the absence of
monopoles is mostly relevant as an initial condition. Faraday's Law and Ampere's
law can be rewritten as evolution equations:
\begin{align}
\frac{\partial \vec{B}}{\partial t} &= -c \, \nabla \times \vec{E} \label{eq:num:Bevolution} \\
\frac{\partial \vec{E}}{\partial t} &= \phantom{-} c \nabla \times \vec{B} - \frac{4 \pi}{c} \vec{\jmath} \label{eq:num:Eevolution}
\end{align}
The time evolution given by these equations will not violate Eqs.~\eqref{eq:num:gauss} and \eqref{eq:num:monopol} if they were satisfied initially.
Eqs.~\eqref{eq:num:Bevolution} and \eqref{eq:num:Eevolution} imply that the curl of the electric field does not have to be known at
The time evolution given by these equations will not violate equations~\eqref{eq:num:gauss} and \eqref{eq:num:monopol} if they were satisfied initially.
Equations~\eqref{eq:num:Bevolution} and \eqref{eq:num:Eevolution} imply that the curl of the electric field does not have to be known at
the location of the electric field, but rather at the location of the dual,
magnetic field.
@@ -96,7 +95,7 @@ magnetic field.
%%\label{fig:num:rot_yee}
%%\end{figure}
%%
%%As figure \ref{fig:num:rot_yee} illustrates, there is an elegant finite
%%As Fig.~\ref{fig:num:rot_yee} illustrates, there is an elegant finite
%%difference approximation for the curl of the electric field at the location of
%%the magnetic flux, based on the four edges that surround the magnetic flux at
%%the center of the face. If we write this approximation carefully it reads
@@ -107,7 +106,7 @@ magnetic field.
%%\end{align}
%%This expression is of course rather unwieldy, so customarily the edge length as
%%well as the offsets required to center components along edges and on faces are
%%suppressed and Eq.~\eqref{eq:num:rot_yee_long} is simply written as
%%suppressed and equation~\eqref{eq:num:rot_yee_long} is simply written as
%%\begin{equation}
%%\left(\nabla \times \vec{E}\right)_x(i,j,k) \approx
%%\frac{E_y(i,j,k) - E_y(i,j,k+1)}{\Delta{z}} +
@@ -123,7 +122,7 @@ magnetic field.
The classical solution to store electric and magnetic fields on the grids that yields the curl of the fields at the required position is the Yee grid. Here e.g. $B_y$ is stored at cell face $(i+1/2,j,k+1/2)$, while $E_y$ is stored at $(i,j+1/2,k)$\footnote{The grid cells have edge length $\Delta{x}$, $\Delta{y}, \Delta{z}$ and any position can be given as $\vec{x} = \left(i\cdot\Delta{x}, j\cdot\Delta{y}, k\cdot\Delta{z}\right)$.}. Not only does this process result in curls calculated at the correct position without interpolation, but the curl is calculated in second order immediately.
The temporal derivative in Eqs.~\eqref{eq:num:Bevolution} and \eqref{eq:num:Eevolution} can be solved using the second-order spatial derivatives. The customary
The temporal derivative in equations~\eqref{eq:num:Bevolution} and \eqref{eq:num:Eevolution} can be solved using the second-order spatial derivatives. The customary
solution is to leap-frog the fields, i.e. use the curl of the electric field at
time $t\Delta{t}$ to update the magnetic field from time $(t-1/2)\Delta{t}$ to
$(t+1/2)\Delta{t}$ and then use the curl of the magnetic field at that time to
@@ -140,7 +139,7 @@ the magnetic field and use
\vec{E}^{t+1\phantom{/2}} &= \vec{E}^{t\phantom{-1/2}} + c \cdot \Delta t \cdot \nabla \times \vec{B}^{t+1/2} - 4 \pi \Delta t \cdot \vec{\jmath}^{t+1/2} \label{eq:num:Eupdate} \quad .
\end{align}
This solver is the most common method and is accurate to second order with respect to a given current. Since small numbers of macroparticles lead to an increased noise, solutions are sought after to remove the noise. Increasing particles numbers is typically not an option as the noise level decreases as $1/\sqrt{N}$. For the cause of the noise and properties thereof see for example \cite{Okuda_1972} and \cite[Appendix D]{Shalaby_2017}. Filtering can be applied to either the source term $\vec{\jmath}^{t+1/2}$ so avoid the production of noise or the fields themselves to dampen existing noise. The latter is possible since noise is concentrated at high $k$ values and numerical errors (e.g. dispersion errors) are largest there. This low-pass filtering is described in \cite{Friedman_1990} and changes Eqs.~\eqref{eq:num:B1update} and \eqref{eq:num:B2update}.
This solver is the most common method and is accurate to second order with respect to a given current. Since small numbers of macroparticles lead to an increased noise, solutions are sought after to remove the noise. Increasing particles numbers is typically not an option as the noise level decreases as $1/\sqrt{N}$. For the cause of the noise and properties thereof see for example \cite{Okuda_1972} and \cite[Appendix D]{Shalaby_2017}. Filtering can be applied to either the source term $\vec{\jmath}^{t+1/2}$ so avoid the production of noise or the fields themselves to dampen existing noise. The latter is possible since noise is concentrated at high $k$ values and numerical errors (e.g. dispersion errors) are largest there. This low-pass filtering is described in \cite{Friedman_1990} and changes equations~\eqref{eq:num:B1update} and \eqref{eq:num:B2update}.
Since we mentioned of CFL for the first time in the book just two paragraphs
ago and it appears in several other chapters let's take a quick look at this
@@ -161,7 +160,7 @@ Assuming that there is no initial $B_z^{t-1/2}$ and that $E_y^t$ has the form $A
So for the most unstable $k = \pi/\Delta{x}$ -- which is also the highest $k$
that can be supported by the grid -- the amplitude has grown after a single
timestep by a factor $c^2\,\Delta{t}^2/\Delta{x}^2$. If this factor is larger
than unity the time advance will amplify waves exponentially with time. To
than unity the time advance will amplify waves exponentially with time. To
avoid that we require $\Delta{t} \leq \Delta x/c$. Intuitively this requirement
say ``the time step should be short enough that waves don't travel further than
one grid cell per step''. Which makes sense since our numerical derivatives
@@ -189,12 +188,12 @@ the presence of the particles can be found in standard textbooks such as
%%The third option is to make use of the fact that most of that noise is
%%concentrated at high $k$ and modify the field solver to damp those modes. This
%%is exactly what the method described in \cite{Friedman_1990} does. It replaces
%%Eqs.~\eqref{eq:num:B1update} and \eqref{eq:num:B2update} by
%%equations~\eqref{eq:num:B1update} and \eqref{eq:num:B2update} by
%%\begin{align}
%%\vec{B}^{t+1/2} &= \vec{B}^{t-1/2} - c \cdot \Delta t \cdot \nabla \times \left[\left(1+\frac{\theta}{4}\right)\vec{E}^t-\frac{1}{2}\vec{E}^{t-1}+\left(\frac{1}{2}-\frac{\theta}{4}\right)\vec{\bar{E}}^{t-2}\right]\quad , \label{eq:num:Bupfriedman}\\
%%\vec{\bar{E}}^{t-2} &= \left(1-\frac{\theta}{2}\right)\vec{E}^{t-1} + \frac{\theta}{2}\vec{\bar{E}}^{t-3} \quad .
%%\end{align}
%%If desired Eq.~\eqref{eq:num:Bupfriedman} can be split into two steps to get
%%If desired equation~\eqref{eq:num:Bupfriedman} can be split into two steps to get
%%access to $\vec{B}^t$. The method allows tuneable damping by selecting $\theta$
%%between 0 and 1 at the extra expense of storing and updating $\vec{\bar{E}}$.
%%The damping rate $\gamma$ is given by
@@ -224,15 +223,15 @@ In other applications of finite-difference time-domain (FDTD) schemes the
solution would typically be to use a higher order approximation of the discrete
curl operator. Fig.~\ref{fig:num:rot_o4} shows how the straight forward
extension to $4^{th}$ order in space would look like.
% The equivalent to Eq.~\eqref{eq:num:rot_yee} reads
The right hand side of Eq.~\eqref{eq:num:Bevolution} now reads
% The equivalent to equation~\eqref{eq:num:rot_yee} reads
The right hand side of equation~\eqref{eq:num:Bevolution} now reads
\begin{align}
\left(\nabla \times \vec{E}\right)_x(i,j,k) \approx & \frac{27}{24}\frac{E_y(i,j,k) - E_y(i,j,k+1)}{\Delta{z}} \nonumber \\
& - \frac{E_y(i,j,k-1) - E_y(i,j,k+2)}{\Delta{z}} \nonumber \\
& + \frac{27}{24}\frac{E_z(i,j+1,k) - E_z(i,j,k)}{\Delta{y}} \nonumber \\
& - \frac{E_z(i,j+2,k) - E_z(i,j-1,k)}{\Delta{y}} \label{eq:num:rot_o4}
\end{align}
in this case. Also the temporal derivatives can be approximated in fourth order
in this case. Also the temporal derivatives can be approximated in fourth order
\cite{Fang_1989}. For typical PiC simulations with marginal stable time steps
the gain in accuracy is negligible compared to the computational cost.
@@ -303,7 +302,7 @@ So far all schemes only used grid locations at $i\Delta{x}$, but
\cite{Cole_2002} shows that using $(i\pm1)\Delta{x}$ can be useful, at least
for a narrow range of frequencies propagating on the grid. Subsequently
\cite{Karkkainen_2006} extended that to broad bandwidth.
Fig.\ref{fig:num:rot_ck} illustrates all the grid locations that are used in this
Fig.~\ref{fig:num:rot_ck} illustrates all the grid locations that are used in this
family of schemes. Choosing different relative weights between the different
grid locations allows to tune for different optimization goals. An overview is
given in \cite{Vay_2011}.
@@ -323,7 +322,7 @@ given in \cite{Vay_2011}.
% Blinne_2018.pdf optimized FTDT stencils
A different approach is the pseudo-spectral solution of the field equations.
As known from e.g. hydrodynamics the partial differential equations in real space
As known from e.g. hydrodynamics the partial differential equations in real space
are converted to ordinary equations in Fourier space. This eliminates finite stencils,
but requires a global FFT \cite{Haber_1973, Jalas_2017}. For constant current density
Maxwell's equations can be integrated analytically in time leading to pseudo-spectral
@@ -359,17 +358,17 @@ solvers (\cite{Vay_2013}).
%%to remove light waves completely from the plasma model and to reduce
%%computational expense. The straight forward way to do this is the electrostatic
%%plasma model, where the electric field is not updated using an evolution
%%equation based on Amperes Law (Eq.~\eqref{eq:num:Eevolution}), but is directly
%%calculated from Gauss Law (Eq.~\eqref{eq:num:gauss}). This of course limits the
%%equation based on Amperes Law (equation~\eqref{eq:num:Eevolution}), but is directly
%%calculated from Gauss Law (equation~\eqref{eq:num:gauss}). This of course limits the
%%electric field to is longitudinal, curl-free component. Bases on
%%Eq.~\eqref{eq:num:Bevolution} this tell us that the magnetic field will not
%%equation~\eqref{eq:num:Bevolution} this tell us that the magnetic field will not
%%evoluve in time, but is restricted to an initial magnetic field that stays
%%constant in time. Intuitively that makes sense as very slow (comparted to the
%%speed of light) particle motion implies very small currents. Historically some
%%of the first Particle-in-Cell codes were electrostatic (see e.g.
%%\cite{Hockney_1966, Gitomer_1972}) and very also the first to be expressed in
%%implicit form (\cite{Cohen_1989}). Numerically there is several options to
%%solve Eq.~\eqref{eq:num:gauss}. In one spatial dimension direct integration is
%%solve equation~\eqref{eq:num:gauss}. In one spatial dimension direct integration is
%%possible, in higher dimension two methods are worth considering. A basic
%%spectral solver is simple to implementr and the book \cite{Birdsall_2005} has a
%%good overview of the more subtil design trade-off one can make. The other
@@ -381,8 +380,8 @@ For the limit of very small particle velocities (as compared to the speed of lig
to remove light waves completely from the plasma model and to reduce
computational expense. The straight forward way to do this is the electrostatic
plasma model, where the electric field is not updated using an evolution
equation based on Amperes Law (Eq.~\eqref{eq:num:Eevolution}), but is directly
calculated from Gauss Law (Eq.~\eqref{eq:num:gauss}).
equation based on Amperes Law (equation~\eqref{eq:num:Eevolution}), but is directly
calculated from Gauss Law (equation~\eqref{eq:num:gauss}).
This of course limits the electric field to its longitudinal, curl-free component and magnetic fields are no longer time dependent. Intuitively that makes sense as very slow
particle motion implies very small currents. Historically some of the first Particle-in-Cell codes were electrostatic (see e.g. \cite{Hockney_1966, Gitomer_1972}). Gauss Law can be solved in higher dimensions using either spectral solvers \cite{Birdsall_2005} or multigrid solvers.
@@ -411,7 +410,7 @@ particle motion implies very small currents. Historically some of the first Part
%%can be formulated in a consistent manner (see \cite{Besse_2007}), but is rarely
%%used in practice.
Besides the domain of electrostatic and electromagnetic models there is another intermediate regime called Darwin approximation \cite{Darwin_1920} which includes magnetodynamic effects up to order $\mathcal{O}((v/c)^2)$, but which does not consider light waves. This equivalent to removing the divergence-free part of the displacement current. While time resolution constraints are relaxed since the speed of light is no longer present, the differential equations representing the electromagnetic field are now elliptic requiring a global field solver.
Besides the domain of electrostatic and electromagnetic models there is another intermediate regime called Darwin approximation \cite{Darwin_1920} which includes magnetodynamic effects up to order $\mathcal{O}((v/c)^2)$, but which does not consider light waves. This equivalent to removing the divergence-free part of the displacement current. While time resolution constraints are relaxed since the speed of light is no longer present, the differential equations representing the electromagnetic field are now elliptic requiring a global field solver.
\subsection{Interpolation}
\label{sec:num:interpol}
@@ -450,7 +449,7 @@ in each timestep, the integral over the shape function $S$ is not performed
numerically, but rather done analytically ahead of time to obtain the weight
function $W$:
\begin{equation}
W(x) = \int_{-\Delta{x}/2}^{\Delta{x}/2} S(x - x'), \mathrm{d}x' \quad .
W(x) = \int_{-\Delta{x}/2}^{\Delta{x}/2} S(x - x'), \mathrm{d}x' \quad .
\end{equation}
Using this and suppressing the explicit location of the gridded quantity in the
cell we can write the two-dimensional interpolation as
@@ -463,7 +462,7 @@ codes make different design choices here. B-Splines are commonly chosen, but is
The shape function should not include the statistical weight of the macro particle, but rather should to be normalized, i.e.
$\int_{-\infty}^{\infty}S(x)\,\mathrm{d}x = 1$ to ensure that the plasma density is correctly represented. The shape function should be symmetric, i.e.
$S(-x) = S(x)$, to avoid unphysical self-forces on the particles. To allow efficient evaluation of
Eq.~\eqref{eq:num:Bzinterpol}, the shape function should have compact support,
equation~\eqref{eq:num:Bzinterpol}, the shape function should have compact support,
i.e. be non-zero only up to some small $x_{max}$.
The \textit{Nearest Grip Point} or NGP scheme is the minimal example satisfying
@@ -561,7 +560,7 @@ by using the weight function $W$ for the previous order as the shape function
$S$ of the new, higher order. The next step after CIC in this chain is called
\textit{triangular shaped cloud} or TSC. This shape function has the advantage
of being continuous. This implies that the Fourier transform of it falls faster
towards higher $k$.
towards higher $k$.
%As \cite{Langdon_1970} showed this corresponded to reduced
%aliasing of higher $k$ to low $k$ that can be represented by the Eulerian grid
%and consequently a reduction of the finite grid instability. This numerical
@@ -606,7 +605,7 @@ enough that a consensus as to their names has emerged.
%that treats all dimensions the same.
So far only dimension-by-dimension interpolation has been discussed.
This construction leads to codes that
conserve total momentum, if the shape functions used during interpolation and deposition (see below in section~\ref{subsec:num:depostion}) are identical. Alternatively it is possible to combine shape function
conserve total momentum, if the shape functions used during interpolation and deposition (see below in Sect.~\ref{subsec:num:depostion}) are identical. Alternatively it is possible to combine shape function
of different orders to obtain a code that conserves total energy
\cite{Sokolov_2013}. A good example of this is the VPIC code (description in
\cite{Bowers_2008}) that mixed NGP and CIC shape functions. Magnetic field
@@ -650,7 +649,7 @@ When the force depends only on position, this can be solved straightforwardly.
For velocity dependent forces - magnetic fields are the most important case -
there is dependence on $\vec{x}(t)$, which is not known. The interpolation
$\vec{v}(t) \approx 1/2\left(\vec{v}(t-\Delta{t}/2)+\vec{v}(t+\Delta{t}/2)\right)$, but
this leads to an implicit dependence of Eq.~\eqref{eq:num:velupdate} on
this leads to an implicit dependence of equation~\eqref{eq:num:velupdate} on
$\vec{v}(t+\Delta{t}/2)$ on both sides.
%
@@ -660,7 +659,7 @@ $\vec{v}(t+\Delta{t}/2)$ on both sides.
%$\vec{v}(t)$ that we do not know. The straight forward next step is to approximate
%the velocity at this point in time by $\vec{v}(t) \approx
%1/2\left(\vec{v}(t-\Delta{t}/2)+\vec{v}(t+\Delta{t}/2)\right)$, but now
%Eq.~\eqref{eq:num:velupdate} has new new velocity $\vec{v}(t+\Delta{t}/2)$ on
%equation~\eqref{eq:num:velupdate} has new new velocity $\vec{v}(t+\Delta{t}/2)$ on
%both sides. The Boris push allows us to solve this implicit equation without
%matrix inversion or iteration.
@@ -670,7 +669,7 @@ $\vec{v}(t+\Delta{t}/2)$ on both sides.
%This quantity does not suffer from the problem that it has a fixed upper value
%and thus we avoid the loss of precision due to the finite resolution of
%floating point numbers close to the speed of light.
%Eqs.~\eqref{eq:num:velupdate} and \eqref{eq:num:posupdate} then read
%equations~\eqref{eq:num:velupdate} and \eqref{eq:num:posupdate} then read
The Boris push allows us to solve this directly and efficiently. The computation efficiency is important since typical simulations contain many more particles than grid cells.
@@ -679,7 +678,7 @@ versions, the formulation shall be done using relativistic momentum per rest mas
This quantity does not suffer from the problem that it has a fixed upper value
and thus we avoid the loss of precision due to the finite resolution of
floating point numbers close to the speed of light.
Eqs.~\eqref{eq:num:velupdate} and \eqref{eq:num:posupdate} then read
Equations~\eqref{eq:num:velupdate} and \eqref{eq:num:posupdate} then read
\begin{align}
\vec{u}(t+\Delta{t}/2) &= \vec{u}(t-\Delta{t}/2) + \vec{F}(x(t),v(t))\cdot\Delta{t}/m \label{eqn:macro_vel} \quad , \\
\gamma(t+\Delta{t}/2) &= \sqrt{1 + \frac{\vec{u}(t+\Delta{t}/2) \cdot \vec{u}(t+\Delta{t}/2)}{c^2}} \\
@@ -687,11 +686,11 @@ Eqs.~\eqref{eq:num:velupdate} and \eqref{eq:num:posupdate} then read
\vec{F}(x(t),v(t)) &= q \left(\vec{E}(x(t)) + \vec{v}(t) \times \vec{B}(x(t))\right) \label{eqn:macro_force} \quad .
\end{align}
One important thing to note is that the macrofactor $w_p$ cancels
Eq.~\eqref{eqn:macro_vel} and Eq.~\eqref{eqn:macro_force}, since both charge
between equation~\eqref{eqn:macro_vel} and equation~\eqref{eqn:macro_force}, since both charge
$q$ and mass $m$ of a macro particle are increased compared to $q_\alpha$ and
$m_\alpha$ of a single physical particle. Positions $\vec{x}$ and velocities
$\vec{v}$ are both unscaled. This mean that
Equations~\eqref{eqn:macro_vel}-\eqref{eqn:macro_force} apply to physical
equations~\eqref{eqn:macro_vel}-\eqref{eqn:macro_force} apply to physical
particles and phase space samples in the same way and the dynamics of macro
particles in the code can be intuitively interpreted as particle trajectories.
@@ -718,14 +717,14 @@ into two equal parts performed before and after handling the magnetic field. Usi
\end{align}
It is worth noting that the original algorithm by Boris contains the $\tan$ in
Eq.~\eqref{eq:num:tanrotation} and the suggestion to expand it at least up to
equation~\eqref{eq:num:tanrotation} and the suggestion to expand it at least up to
fourth order if it is too expensive to compute $\tan$ to machine precision. However many codes since then have made the
approximation $\vec{\Omega} \approx q/(\gamma\,m)\,\vec{B}(t)\,\Delta{t}/2$,
This produces only the correct gyro radius, not the correct gyro angle.
The Lorentz factor $\gamma$ in Eq.~\eqref{eq:num:tanrotation} is approximated by
The Lorentz factor $\gamma$ in equation~\eqref{eq:num:tanrotation} is approximated by
$\gamma = \sqrt{1 + \vec{u}_1\cdot\vec{u}_1 / c^2}$, which according to
\cite{Vay_2008} can lead to spurious forces.
\cite{Vay_2008} can lead to spurious forces.
%and he suggests a more complicated expression.
%
% He therefor suggests to use
@@ -839,9 +838,9 @@ violations of Gauss' Law is completely eliminated.
Somewhat more widely implemented in the scheme by \cite{Villasenor_1992}. The
downside of this scheme is the need to treat the particle motion differently
depending how many cell interfaces the particle interacts with. Since this
scheme needs to branch to different algorithms its use especially on GPU is
disadvantageous as branching computationally more expensive there.Additionally
depending how many cell interfaces the particle interacts with. Since this
scheme needs to branch to different algorithms its use especially on GPU is
disadvantageous as branching computationally more expensive there.Additionally
this scheme is tedious to extend to shape functions beyond CIC.
% \begin{figure}[htbp]
@@ -898,8 +897,8 @@ as illustrated in Fig.~\ref{fig:num:currentassignment_umeda}% illustrates this m
%requires some conditional code, but the upside is that the current deposition
%inside each cell is slightly simpler. Overall the computational cost and
%noise-properties between the two deposition schemes is similar.
Although the method requires some code depending on conditional branching the
computational cost and noise-properties between the two later deposition schemes
Although the method requires some code depending on conditional branching the
computational cost and noise-properties between the two later deposition schemes
is similar.
% \begin{figure}[htbp]
@@ -939,9 +938,9 @@ better performance.
%step by step.
So far we have described how the temporal evolution of particles and fields and
their interaction are done in PiC codes. Yet the initial conditions have to be
their interaction are done in PiC codes. Yet the initial conditions have to be
prescribed. For field quantities this is a straight forward procedure: Analytic
expressions for equilibria are used (typically the magnetic field is given and the
expressions for equilibria are used (typically the magnetic field is given and the
electric is assumed to be zero). Reproducing the desired
distribution function $f(\vec{x},\vec{v},t_0)$ is more complicated and the method
used may have a measurable impact on the noise level.
@@ -962,7 +961,7 @@ the cell size $\Delta{x}$.
For uniform densities there is also the possibility to use \textit{low
discrepancy series} such as the Halton sequence \cite{Halton_1964}. This
sequence distributes particles more uniformly in the
sequence distributes particles more uniformly in the
simulation domain. This reduces the noise level as
$\mathcal{O}(1/N)$ with the particle number. Adding more particles would reduce the noise level only like $\mathcal{O}(1/\sqrt{N})$ . This \textit{quiet start} has been successfully used e.g. in the study of instabilities (see \cite{Byers_1970} for an example). But beware the possibility of multi-beam and ring instabilities as analysed by \cite{Birdsall_2005}.
@@ -982,7 +981,7 @@ deviation is set by the thermal speed
Note that there is a second popular definition of the thermal speed that
includes a factor of square root two. When comparing with other codes and results this is a
point worth double-checking. Different species of different masses will have
different thermal speeds at the same temperature.
different thermal speeds at the same temperature.
%The extension of this method
%to include species of different temperatures for different species or spatial
%directions is straight forward.
@@ -1011,10 +1010,10 @@ interaction with existing fields in the domain \cite{Cartwright_2000}.
% particle splitting and merging
In many simulations particles are created once and afterwards their number
never changes. It can however be useful to split particles into particles with
smaller macrofactor. In regions of (phase-)space, where there is a low number
of particles, to get better statistics and reduce noise. Many of those particles
however leave the interesting region again and need to be merged together again
never changes. It can however be useful to split particles into particles with
smaller macrofactor. In regions of (phase-)space, where there is a low number
of particles, to get better statistics and reduce noise. Many of those particles
however leave the interesting region again and need to be merged together again
to avoid a ballooning of the computational cost.
Splitting particles in a way that conserves mass, momentum and energy is
@@ -1035,7 +1034,7 @@ In simulations where many new particles are created the algorithm by
particles and replaces them with $M$ ($2 \ll M < N$) new particles can be
useful. The method of \cite{Faghihi_2017} extends this to include also the
stress tensor. If we do not want to redraw the complete particle population,
e.g. because we want to preserve features in phase space that are not well
e.g. because we want to preserve features in phase space that are not well
described by the first few fluid moments, it is necessary to find particles of
similar speeds. The method by \cite{Martin_2012} to find such particle pairs or
groups can be useful for this task. The method by \cite{Vranic_2015} aims to
@@ -1092,12 +1091,12 @@ tangential components of the electric field are set to zero. Geometrically this
affects the three field components that are located at that face of the unit
cell. The two magnetic field components on the perpendicular faces and the
electric field on the edge normal to the boundary are not needed at the
boundary and are evolved freely, same as in the interior of the
boundary and are evolved freely, same as in the interior of the
domain. Vanishing electric field, even in the presence of an electric current
is typical for a \textit{perfect electric conductor} (PEC). This boundary
therefore mimics a metal wall with vanishing resistivity. If a realistic metal
boundary is required, much more effort is needed. This boundary condition does
reflect impinging electromagnetic waves. The PEC boundary is therefore often
reflect impinging electromagnetic waves. The PEC boundary is therefore often
coupled with a reflecting boundary condition for particles. When a particle
ends outside the boundary at the end
of the timestep, both the component of the position normal to the wall, as well
@@ -1162,7 +1161,7 @@ thermal plasma bath outside the simulation domain that can act as the source of
unperturbed upstream. This has been used in the simulation of
magnetic reconnection, where the removal of plasma in the outflow regions and
the injection of fresh upstream with not-yet-reconnected magnetic flux allows
for the study of larger systems (see \cite{Daughton_2006,
for the study of larger systems (see \cite{Daughton_2006,
Klimas_2008, Ohtani_2009}).
%Besides the injection of thermal plasma on the boundary
@@ -1187,8 +1186,8 @@ methods explained in this book: A huge number of particles and a large number
of time steps is required to simulate physically relevant systems. And even
then we are not covering macroscopic scales. To increase the maximum size of
the problem that can be studied and to reduce the time a scientist has to wait
before obtaining results that can be studied parallelization is extremly common
and has been used for a long time.
before obtaining results that can be studied parallelization is extremely
common and has been used for a long time.
This parallelization can make use of vectorization in the form of
single-instruction-multiple-data (SIMD) \cite{Bowers_2008}. Details of this
@@ -1213,34 +1212,34 @@ Since the compute power of a single machine is only sufficient for very
selected problems and the memory can only hold approximately one billion
particles in RAM, it is commonly required to parallelize the code over many
nodes. Each node runs one (or more) separate process that communicate with
eachother and share the simulation workload. For the communication MPI
\cite{Walker_1996} is the defacto standard but recently frameworks have started
each other and share the simulation workload. For the communication MPI
\cite{Walker_1996} is the de facto standard but recently frameworks have started
to appear that take care of threading and communication for the programmer.
The common way to distribute the workload is to split the simulation domain
into smaller local domains (also known as patches or blocks). Each process is
then responsible for the particles and fields in that local domain
\cite{Pfund_1998, Plimpton_2000, Qiang_2000, Messmer_2001, Qiang_2010}. The
state of the electromagnetic field in neighbouring domains is then copied into
state of the electromagnetic field in neighboring domains is then copied into
ghost zones that surround the local domain and act as boundary
conditions\footnote{The reason why this works efficiantly is that the the
conditions\footnote{The reason why this works efficiently is that the
particle shape function have only compact support and the field update only
requiring neighboring cells. However with extra effort domain decomposition can
also be applied to spectral solvers\cite{Vay_2013}.}. Particles that hit the
boundary of the local domain are communicated to the neighbouring process,
also be applied to spectral solvers\cite{Vay_2013}.}. Particles that hit the
boundary of the local domain are communicated to the neighboring process,
inject from the wall there and are removed from the local domain.
Particle-in-Cell codes tend to parallelize very efficiently using this method
since only communication with a handfull of neighbors is required and global
since only communication with a handful of neighbors is required and global
all-to-all messaging can be nearly completely avoided. The only caveat is that
efficiency only remains high as long as all processes have fairly balanced
workloads. If the setup starts unbalanced (e.g. because of a bad decomposition
or because of inhomogeneous plasma density) or develops load imbalances over
the course of the simulation (typically in reconnection simulations when
plasmoids are generated, or shock simulations where the downstream has higher
density than the upstream) the parallelization efficancy drops. One can attempt
to improve load balance the simulation by imoving the boundaries between local
density than the upstream) the parallelization efficiency drops. One can attempt
to improve load balance the simulation by moving the boundaries between local
domains and making additional grid cells and particles the responsibility of
less loaded processes, but this requires much more complicated code and incures
less loaded processes, but this requires much more complicated code and incurs
additional costs.
An alternative to splitting the global domain into rectangular or brick-shaped
@@ -1251,11 +1250,11 @@ the space filling curve has the properties that grid cells that are close to
each other along the curve are also mostly close to each other in the full 2d
or 3d space. When the curve is then cut into segments to be distributed across
processes the cells of each process tend to be close to each other. For most of
it's grid cells the process also owns the neighbouring field values and can use
it's grid cells the process also owns the neighboring field values and can use
those without additional communication. Moving particles that enter another
grid cell are likely to stay with the same process. If they do leave they are
communicated to the correct neighboruing process same as in the case with patch
based domain decomposition. The big upside is that the segments of the space
communicated to the correct neighboring process same as in the case with patch
based domain decomposition. The big upside is that the segments of the space
filling curve do not have to be equally long and can be rebalanced more easily.
\subsection{Diagnostics}
@@ -1277,24 +1276,24 @@ particles is several terabytes. Saving the simulation state for later analysis o
There are of course many high-level diagnostics and it is impossible to cover
all of them. This section will therefore mostly cover general-purpose output
that can be postprocessed further. To gain high-level insight into the
that can be post-processed further. To gain high-level insight into the
simulation at low I/O cost it is often useful to calculate a breakdown of
the energy content in the simulation in several rough categories, such as
the energy in the electric field, the energy in the magnetic field and in
the particles. The diagnostic is also very valuable to check conservation of total energy in a PiC code that conserves momentum by construction.
Another obvious candidate for output are gridded quantities, such as electric
Another obvious candidate for output are gridded quantities, such as electric
and magnetic field as well as current density. These quantities do not
require any extra calculation. The two most widely used choices are dumping
the memory of every local domain (in a simulation that uses domain decomposition and MPI) to a separate binary file or writing a global
view to a structured format such as HDF5\footnote{other formats are available,
but HDF5 is widely supported by many post-processing tools}. The first choice
has the advantage of low overhead as nearly no metadata is saved. The downside
is that the separate views of the different local domains need to be combined for
further analysis. The overhead of creating many files at once and the tedious
file handling make this alternative a poor choice for more than a few hundred
cores. Parallel I/O to HDF5 requires slightly more complicated I/O code and
introduces some overhead, but allows for the inclusion of meta-data and easy
require any extra calculation. The two most widely used choices are dumping
the memory of every local domain (in a simulation that uses domain decomposition and MPI) to a separate binary file or writing a global
view to a structured format such as HDF5\footnote{other formats are available,
but HDF5 is widely supported by many post-processing tools}. The first choice
has the advantage of low overhead as nearly no metadata is saved. The downside
is that the separate views of the different local domains need to be combined for
further analysis. The overhead of creating many files at once and the tedious
file handling make this alternative a poor choice for more than a few hundred
cores. Parallel I/O to HDF5 requires slightly more complicated I/O code and
introduces some overhead, but allows for the inclusion of meta-data and easy
loading into analysis tool, independent of programming language and CPU architecture.
Other field data that need to be computed just for diagnostic purposes such as
@@ -1315,7 +1314,7 @@ low-pass filter -- such as a Kaiser window \cite{Kaiser_1980} -- before the
decimation to avoid aliasing.
In some cases it is necessary to restart the simulation, either due to reaching a
wallclock limit, or due to a compute node crashing. Also some analysis can
wall-clock limit, or due to a compute node crashing. Also some analysis can
only be performed as post-processing, either due to poor scalability or because
it is actively being developed based on the simulation results. In this case,
the full particle information needs to be stored. Again direct binary dumps or
@@ -1357,12 +1356,12 @@ Compared to fluid codes that easily develop instabilities e.g. through
negative densities or numerical instabilities, PiC codes are rather robust.
This numerical stability is sometimes mistaken as physical plausibility.
It is therefore important that the researcher employs a healthy skepticism
towards the code and that the code is tested. Other communities like the
fluid simulation community. have a large number of test cases for which
analytic solutions are known, or at least results from other codes are
available. In the Particle-in-Cell community validation efforts (making
sure that the employed plasma model is adequate and that the underlying
assumptions are met), benchmarking (comparison with other codes) and
towards the code and that the code is tested. Other communities like the
fluid simulation community. have a large number of test cases for which
analytic solutions are known, or at least results from other codes are
available. In the Particle-in-Cell community validation efforts (making
sure that the employed plasma model is adequate and that the underlying
assumptions are met), benchmarking (comparison with other codes) and
validation (testing proper implementation) are relatively new
and rare. One of the reasons is that the number of test problems with known,
analytic solutions is rather small.
@@ -1397,7 +1396,7 @@ analytic solutions is rather small.
But there are some test cases that can be recommended. The paper by
\cite{Jacobs_2006} introduced a discontinuous Galerkin code on unstructured
mesh, but also includes several useful test cases. The study of
Kelvin-Helmholtz instability in Saturn's magnetopause \cite{Delamere_2011}
Kelvin-Helmholtz instability in Saturn's magnetopause \cite{Delamere_2011}
has been used by several hybrid codes. Code description paper such as the one
for the Apart-T code \cite{Melzani_2013} or the SHARP code \cite{Shalaby_2017}
lists several test problems that are solvable with that code and offers
+26 -22
View File
@@ -43,7 +43,7 @@ archivePrefix = "arXiv",
}
@ARTICLE{2013A&A...553A.129L,
author = {{Lange}, S. and {Spanier}, F. and {Battarbee}, M. and {Vainio}, R. and
author = {{Lange}, S. and {Spanier}, F. and {Battarbee}, M. and {Vainio}, R. and
{Laitinen}, T.},
title = "{Particle scattering in turbulent plasmas with amplified wave modes}",
journal = {\aap},
@@ -85,12 +85,13 @@ archivePrefix = "arXiv",
keywords = {COSMIC RAY ASTROPHYSICS, PLASMA, cosmic rays, particle astrophysics, plasma waves},
booktitle = {Cosmic ray astrophysics / Reinhard Schlickeiser, Astronomy and Astrophysics Library; Physics and Astronomy Online Library.~Berlin: Springer.~ISBN 3-540-66465-3, 2002, XV + 519 pp.},
year = 2002,
publisher = {Springer},
adsurl = {http://esoads.eso.org/abs/2002cra..book.....S},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
@ARTICLE{1999PhPl....6..751B,
author = {{Biskamp}, D. and {Schwarz}, E. and {Zeiler}, A. and {Celani}, A. and
author = {{Biskamp}, D. and {Schwarz}, E. and {Zeiler}, A. and {Celani}, A. and
{Drake}, J.~F.},
title = "{Electron magnetohydrodynamic turbulence}",
journal = {Physics of Plasmas},
@@ -121,7 +122,7 @@ booktitle = {Cosmic ray astrophysics / Reinhard Schlickeiser, Astronomy and Astr
@ARTICLE{2017JPlPh..83b7002C,
author = {{Cerri}, S.~S. and {Franci}, L. and {Califano}, F. and {Landi}, S. and
author = {{Cerri}, S.~S. and {Franci}, L. and {Califano}, F. and {Landi}, S. and
{Hellinger}, P.},
title = "{Plasma turbulence at ion scales: a comparison between particle in cell and Eulerian hybrid-kinetic approaches}",
journal = {Journal of Plasma Physics},
@@ -141,8 +142,8 @@ archivePrefix = "arXiv",
}
@ARTICLE{2017ApJ...847...28G,
author = {{Gro{\v s}elj}, D. and {Cerri}, S.~S. and {Ba{\~n}{\'o}n Navarro}, A. and
{Willmott}, C. and {Told}, D. and {Loureiro}, N.~F. and {Califano}, F. and
author = {{Gro{\v s}elj}, D. and {Cerri}, S.~S. and {Ba{\~n}{\'o}n Navarro}, A. and
{Willmott}, C. and {Told}, D. and {Loureiro}, N.~F. and {Califano}, F. and
{Jenko}, F.},
title = "{Fully Kinetic versus Reduced-kinetic Modeling of Collisionless Plasma Turbulence}",
journal = {\apj},
@@ -161,7 +162,7 @@ archivePrefix = "arXiv",
}
@ARTICLE{2017PhRvL.118e5103Z,
author = {{Zhdankin}, V. and {Werner}, G.~R. and {Uzdensky}, D.~A. and
author = {{Zhdankin}, V. and {Werner}, G.~R. and {Uzdensky}, D.~A. and
{Begelman}, M.~C.},
title = "{Kinetic Turbulence in Relativistic Plasma: From Thermal Bath to Nonthermal Continuum}",
journal = {Physical Review Letters},
@@ -181,12 +182,12 @@ archivePrefix = "arXiv",
@ARTICLE{2018arXiv180804430C,
author = {{Chen}, L.~E. and {Bott}, A.~F.~A. and {Tzeferacos}, P. and
{Rigby}, A. and {Bell}, A. and {Bingham}, R. and {Graziani}, C. and
{Katz}, J. and {Koenig}, M. and {Li}, C.~K. and {Petrasso}, R. and
{Park}, H.-S. and {Ross}, J.~S. and {Ryu}, D. and {Ryutov}, D. and
{White}, T.~G. and {Reville}, B. and {Matthews}, J. and {Meinecke}, J. and
{Miniati}, F. and {Zweibel}, E.~G. and {Sarkar}, S. and {Schekochihin}, A.~A. and
author = {{Chen}, L.~E. and {Bott}, A.~F.~A. and {Tzeferacos}, P. and
{Rigby}, A. and {Bell}, A. and {Bingham}, R. and {Graziani}, C. and
{Katz}, J. and {Koenig}, M. and {Li}, C.~K. and {Petrasso}, R. and
{Park}, H.-S. and {Ross}, J.~S. and {Ryu}, D. and {Ryutov}, D. and
{White}, T.~G. and {Reville}, B. and {Matthews}, J. and {Meinecke}, J. and
{Miniati}, F. and {Zweibel}, E.~G. and {Sarkar}, S. and {Schekochihin}, A.~A. and
{Lamb}, D.~Q. and {Froula}, D.~H. and {Gregori}, G.},
title = "{Stochastic transport of high-energy particles through a turbulent plasma}",
journal = {arXiv e-prints},
@@ -220,7 +221,7 @@ archivePrefix = "arXiv",
@ARTICLE{2019PhPl...26a2306G,
author = {{Gonz{\'a}lez}, C.~A. and {Parashar}, T.~N. and {Gomez}, D. and
author = {{Gonz{\'a}lez}, C.~A. and {Parashar}, T.~N. and {Gomez}, D. and
{Matthaeus}, W.~H. and {Dmitruk}, P.},
title = "{Turbulent electromagnetic fields at sub-proton scales: Two-fluid and full-kinetic plasma simulations}",
journal = {Physics of Plasmas},
@@ -257,7 +258,7 @@ archivePrefix = "arXiv",
}
@ARTICLE{2018arXiv180605741G,
author = {{Groselj}, D. and {Chen}, C.~H.~K. and {Mallet}, A. and {Samtaney}, R. and
author = {{Groselj}, D. and {Chen}, C.~H.~K. and {Mallet}, A. and {Samtaney}, R. and
{Schneider}, K. and {Jenko}, F.},
title = "{Kinetic Turbulence in Astrophysical Plasmas: Waves and/or Structures?}",
journal = {arXiv e-prints},
@@ -273,7 +274,7 @@ archivePrefix = "arXiv",
@ARTICLE{2019ApJ...870...52P,
author = {{Papini}, E. and {Franci}, L. and {Landi}, S. and {Verdini}, A. and
author = {{Papini}, E. and {Franci}, L. and {Landi}, S. and {Verdini}, A. and
{Matteini}, L. and {Hellinger}, P.},
title = "{Can Hall Magnetohydrodynamics Explain Plasma Turbulence at Sub-ion Scales?}",
journal = {\apj},
@@ -484,8 +485,9 @@ archivePrefix = "arXiv",
ISSN = {0093-3813},
}
@article{Rabina_2014,
@phdthesis{Rabina_2014,
author = {R{\"a}bin{\"a}, Jukka},
school = {University of Jyv{\"a}skyl{\"a}},
journal = {Jyv{\"a}skyl{\"a} studies in computing},
number = {200},
publisher = {University of Jyv{\"a}skyl{\"a}},
@@ -519,7 +521,7 @@ archivePrefix = "arXiv",
address = {Berkely},
author = {Fang, Jiayuan},
month = 12,
school = {University pof California},
school = {University of California},
title = {Time Domain finite difference computation for Maxwell's equations},
year = 1989,
}
@@ -1270,6 +1272,7 @@ archivePrefix = {arXiv},
publisher = {IEEE},
title = {Absorbing boundary conditions for the finite-difference approximation of the time-domain electromagnetic-field equations},
year = {1981},
volume = {EMC-23},
}
@article{Pasik_1999,
@@ -1468,6 +1471,7 @@ archivePrefix = {arXiv},
month = jun,
title = "{Waves in homogeneous, anisotropic multicomponent plasmas (WHAMP)}",
year = 1982,
institution = {Kiruna Geophysical Institute},
}
@article{Dawson_1961,
@@ -1642,7 +1646,7 @@ Rmanelli},
}
@ARTICLE{2017ApJ...848...81S,
author = {{Shalaby}, M. and {Broderick}, A.~E. and {Chang}, P. and {Pfrommer}, C. and
author = {{Shalaby}, M. and {Broderick}, A.~E. and {Chang}, P. and {Pfrommer}, C. and
{Lamberts}, A. and {Puchwein}, E.},
title = "{Importance of Resolving the Spectral Support of Beam-plasma Instabilities in Simulations}",
journal = {\apj},
@@ -1897,12 +1901,12 @@ pages="350--355",
isbn="978-3-540-70734-9"
}
@article{Plimpton_2000,
@techreport{Plimpton_2000,
title = {Load-balancing techniques for a parallel electromagnetic particle-in-cell code},
author = {Plimpton, Steven J and Seidel, David B and Pasik, Michael F and Coats, Rebecca S},
doi = {10.2172/751032},
url = {https://www.osti.gov/biblio/751032},
journal = {},
institution = {Sandia National Labs},
place = {United States},
year = {2000},
month = {1}
@@ -1945,8 +1949,8 @@ author = {Ji Qiang and Xiaoye Li},
@article{Dagum_1998,
author={L. {Dagum} and R. {Menon}},
journal={IEEE Computational Science and Engineering},
title={OpenMP: an industry standard API for shared-memory programming},
journal={IEEE Computational Science and Engineering},
title={OpenMP: an industry standard API for shared-memory programming},
year={1998},
volume={5},
number={1},
-11
View File
@@ -1,11 +0,0 @@
\subsection{Pulsar Magnetospheres}
\label{subsec:pulsar}
% pulsar
% Lyutikov_2007.pdf Crab pulses through resonance with L-O mode
% Brambilla_2017.pdf ab initio pulsar magneto sphere using PiC
% Kalapotharakos_2017.pdf 3d pulsar magnetospheres
% Philppov_2017.pdf pulsar magnetospheres
% Venter_2017.pdf test particle simulation of pulsar light curves
% Kalapotharakos_2018.pdf 3d pulsar magnetosphere, load balancing, radiation reaction force
+12 -12
View File
@@ -22,10 +22,10 @@ The Vlasov equation can be derived easily from a set of particles through the Kl
\end{align}
Here each particle $k$ of the $N_0$ particles of species $\alpha$ have discrete positions $\vec{x}_k(t)$ and velocities $\vec{v}_k(t)$ in phase space. The particles with charge $q_\alpha$ and $m_\alpha$ are affected by electromagnetic fields and their motion is governed (in the non-relativistic limit) by the set of differential equations (in CGS)
\begin{align}
\dv{\vec{x}_k(t)}{t} &= \vec{v}_k(t), \
\dv{\vec{x}_k(t)}{t} &= \vec{v}_k(t), \
\dv{\vec{v}_k(t)}{t} &= \frac{q_\alpha}{m_\alpha} \left( \vec{E}^m(\vec{x}_k(t),t)+\vec{v}_k(t) \times \vec{B}^m(\vec{x}_k(t),t) \right) \label{eq:theory:dv}
\end{align}
The Klimontovich equation can then be derived by taking the time derivative of Eq.~\ref{eq:theory:phasespace} and using Eqs.~\ref{eq:theory:dv}.
The Klimontovich equation can then be derived by taking the time derivative of equation~\eqref{eq:theory:phasespace} and using equation~\eqref{eq:theory:dv}.
\begin{align}
\pdv{N_\alpha(\vec x, \vec v, t)}{t} &=& \pdv{}{t} \sum_{k=1}^{N_0} \delta\left(\vec x - \vec{x}_k(t) \right) \delta\left(\vec{v}- \vec{v}_k(t)\right)\\
&=& -\vec v \cdot\pdv{N_\alpha(\vec x, \vec v, t)}{\vec x}\nonumber\\ & & - \frac{q_\alpha}{m_\alpha}\left( \vec{E}^m(\vec{x}(t),t)+\vec{v}(t) \times \vec{B}^m(\vec{x}(t),t) \right) \cdot\pdv{N_\alpha(\vec x, \vec v, t)}{\vec v}
@@ -39,29 +39,29 @@ This can be rewritten as
\end{align}
This is the Klimontovich equation that describes the microphysical distribution function. In conjunction with the Maxwell equations this equation describes a collisionless plasma completely. Given that $N$ is large, the Klimontovich equation is unusable for any practical purpose.
A better description is achieved by going to the ensemble average, which includes all physical identical realizations of the plasma. The phase space density of the ensemble average is given by
A better description is achieved by going to the ensemble average, which includes all physical identical realizations of the plasma. The phase space density of the ensemble average is given by
\begin{align}
f_\alpha(\vec x, \vec v, t) = \langle N_\alpha(\vec x, \vec v, t) \rangle \label{eq:theory:fdef}
\end{align}
The microscopic quantities of $N_\alpha$, $\vec{B}^m$ and $\vec{E}^m$ can be written as a sum of ensemble average and perturbation.
The microscopic quantities of $N_\alpha$, $\vec{B}^m$ and $\vec{E}^m$ can be written as a sum of ensemble average and perturbation.
\begin{align}
N_\alpha(\vec x, \vec v, t) &= f_\alpha(\vec x, \vec v, t) + \delta N_\alpha(\vec x, \vec v, t) \label{eq:theory:Nadef} \\
\vec{E}^m (\vec x, \vec v, t) &= \vec E(\vec x, \vec v, t) +\delta \vec{E}^m (\vec x, \vec v, t) \label{eq:theory:Emdef}\\
\vec{B}^m (\vec x, \vec v, t) &= \vec B(\vec x, \vec v, t) +\delta \vec{B}^m (\vec x, \vec v, t) \label{eq:teory:Bmdef}
\end{align}
%Now the ensemble average of Eq. \ref{eq:theory:klimontovich} can be calculated
%Now the ensemble average of equation~\eqref{eq:theory:klimontovich} can be calculated
%\begin{align}
% \left\langle \pdv{N_\alpha(\vec x, \vec v, t)}{t}+ \vec{v}\cdot \pdv{N_\alpha(\vec x, \vec v, t)}{\vec x} \right. & & \nonumber \\ \left.+ \frac{q_\alpha}{m_\alpha}\left( \vec{E}^m(\vec{x}(t),t)+\vec{v}(t) \times \vec{B}^m(\vec{x}(t),t) \right) \cdot\pdv{N_\alpha(\vec x, \vec v, t)}{\vec v} \right\rangle & = & 0
%\end{align}
%The ensemble average can now be taken for each term separately
We can substitute the definitions in Eqs.~\eqref{eq:theory:Nadef}-\eqref{eq:teory:Bmdef} into Eq.~\eqref{eq:theory:klimontovich} and take the ensemble average. Making use of the linearity of the averaging to split the equation into terms that can be averaged individually and applying definition \eqref{eq:theory:fdef} we obtain:
We can substitute the definitions in equations~\eqref{eq:theory:Nadef}-\eqref{eq:teory:Bmdef} into equation~\eqref{eq:theory:klimontovich} and take the ensemble average. Making use of the linearity of the averaging to split the equation into terms that can be averaged individually and applying definition~\eqref{eq:theory:fdef} we obtain:
\begin{align}
\pdv{f_\alpha(\vec x, \vec v, t)}{t}+ \vec{v}\cdot \pdv{f_\alpha(\vec x, \vec v, t)}{\vec x} + \nonumber \\ + \frac{q_\alpha}{m_\alpha}\left( \vec{E}(\vec{x}(t),t)+\vec{v}(t) \times \vec{B}(\vec{x}(t),t) \right) \cdot\pdv{f_\alpha(\vec x, \vec v, t)}{\vec v} =\nonumber\\ = - \frac{q_\alpha}{m_\alpha}\left\langle
\left( \delta \vec{E}^m(\vec{x}(t),t)+\vec{v}(t) \times \delta\vec{B}^m(\vec{x}(t),t) \right)
\cdot\pdv{\delta N_\alpha(\vec x, \vec v, t)}{t}
\pdv{f_\alpha(\vec x, \vec v, t)}{t}+ \vec{v}\cdot \pdv{f_\alpha(\vec x, \vec v, t)}{\vec x} + \nonumber \\ + \frac{q_\alpha}{m_\alpha}\left( \vec{E}(\vec{x}(t),t)+\vec{v}(t) \times \vec{B}(\vec{x}(t),t) \right) \cdot\pdv{f_\alpha(\vec x, \vec v, t)}{\vec v} =\nonumber\\ = - \frac{q_\alpha}{m_\alpha}\left\langle
\left( \delta \vec{E}^m(\vec{x}(t),t)+\vec{v}(t) \times \delta\vec{B}^m(\vec{x}(t),t) \right)
\cdot\pdv{\delta N_\alpha(\vec x, \vec v, t)}{t}
\right\rangle
\end{align}
The term on the RHS is the ensemble average of a second-order product of perturbations in different realizations of a plasma state. This quantity is negligibly small. The LHS of the equation then yields the Vlasov equation
The term on the RHS is the ensemble average of a second-order product of perturbations in different realizations of a plasma state. This quantity is negligibly small. The LHS of the equation then yields the Vlasov equation
% \begin{align}
% \pdv{f_\alpha(\vec x, \vec v, t)}{t}+ \vec{v}\cdot \pdv{f_\alpha(\vec x, \vec v, t)}{\vec x} +\nonumber\\ \frac{q_\alpha}{m_\alpha}\left( \vec{E}(\vec{x}(t),t)+\vec{v}(t) \times \vec{B}(\vec{x}(t),t) \right) \cdot\pdv{f_\alpha(\vec x, \vec v, t)}{\vec v} = 0 \label{eq:theory:vlasov}
% \end{align}
@@ -77,7 +77,7 @@ From the viewpoint of physics the Vlasov equation is the representation of the t
%Vlasov lösen ist doof
Formally a large set of methods exist to solve a set of hyperbolic conservation laws (even for the six-dimensional phase space) and a number of solutions for lower dimensional systems has been implemented. %%TODO Zitate Vlasov mit Fluidmethoden
Direct numerical simulation is severely limited: In first place it requires a solution on a six-dimensional grid, on the other hand the requirement to have constantly positive phase-space density leads to strong diffusion. These two problems together cause a massive computational overhead that only very special cases justifies the use of Vlasov methods. One such case is when low numerical noise is needed. %with no clear advantage in the solution of the Vlasov equation.
Direct numerical simulation is severely limited: In first place it requires a solution on a six-dimensional grid, on the other hand the requirement to have constantly positive phase-space density leads to strong diffusion. These two problems together cause a massive computational overhead that only very special cases justifies the use of Vlasov methods. One such case is when low numerical noise is needed. %with no clear advantage in the solution of the Vlasov equation.
%Sampling des Phasenraums
@@ -89,7 +89,7 @@ The distinction made here is between the Euler and Lagrange picture: The Vlasov
There are still different possibilities for the implementation of a Lagrangian picture: As discussed above there is PiC and N-body codes. The N-body method is a particle-particle method, where the particles are treated in a Lagrangian way and the inter-particle forces are calculated directly. The PiC method on the other hand is a particle-mesh (PM) method, where particles are Lagrangian, but their inter-particle forces are calculated via a grid, which stores fields.
%Wir folgen den Phasenraumelementen -> Lagrangebild. Was macht Mehdi anders?
%Wir folgen den Phasenraumelementen -> Lagrangebild. Was macht Mehdi anders?
%PiC ist eine Lösung der Vlasovgleichung, welchen Teil des Plasmas beschreibt das?
+9 -9
View File
@@ -26,13 +26,13 @@
% Teilchentransport ist ein Phänomen kinetischer Plasmaphysik
High-energy astrophysics does not only cover the acceleration of particles to highest energies at their source, but includes also the transport of energetic particles to the observer. Observations of energetic particles can in fact only be understood, when their transport is understood.
High-energy astrophysics does not only cover the acceleration of particles to highest energies at their source, but includes also the transport of energetic particles to the observer. Observations of energetic particles can in fact only be understood, when their transport is understood.
Although the plasma background and the energy of particles differs drastically between intergalactic, interstellar, and interplanetary medium, the governing physics behind all three scenarios is kinetic plasma physics. This does not only mean that the spectrum of particles is non-Maxwellian, but it can also mean that the plasma background includes dispersive waves.
The theory of wave-particle interaction and the resulting transport parameters has been discussed extensively in the past three decades and the reader is directed to the text book by \cite{2002cra..book.....S} for a detailed introduction. The quintessence of theoretical efforts is that any analytical calculation is limited to simple cases. Numerical models have evolved over time to fill this gap: Starting with simple test particle models with single wave modes to models with artificial turbulent spectra leading to full MHD models \cite{2012ApJ...750..150W,2013A&A...553A.129L,2016ApJ...833..223I}.
Using PiC it is possible to assume non-test particles in kinetic turbulence. As it will be shown this approach is allowed within the PiC framework, but not (yet) feasible. To study the interaction of particles with a single wave these waves have to be initialized in first place. The process of wave creation has been discussed in detail in Sec. \ref{subsubsec:init}. Which waves or more specifically which wave spectrum is going to be initialized depends on the scientific question:
Using PiC it is possible to assume non-test particles in kinetic turbulence. As it will be shown this approach is allowed within the PiC framework, but not (yet) feasible. To study the interaction of particles with a single wave these waves have to be initialized in first place. The process of wave creation has been discussed in detail in Sect.~\ref{subsubsec:init}. Which waves or more specifically which wave spectrum is going to be initialized depends on the scientific question:
\begin{itemize}
\item Single waves can be used to compare analytic results with numerical experiments. Some benchmark results will be shown below.
\item A spectrum of waves with random phases can be used to study transport in artificial turbulence.
@@ -46,9 +46,9 @@ Using PiC it is possible to assume non-test particles in kinetic turbulence. As
In order to study the transport a species of particles whose transport properties are to be examined will be injected. Typically suprathermal particles are used. %In most of the transport studies with MHD plasmas a test particle approach is used. Using the PiC method allows for the implementation of interacting particles.
Here care has to be taken, which physical effect should be studied:
\begin{itemize}
\item Test particles (or typically for the sake of simplicity: particles with very small macrofactor) can be used to study the passive transport in a kinetic plasma. This is also the approach used in MHD plasmas.
\item Test particles (or typically for the sake of simplicity: particles with very small macrofactor) can be used to study the passive transport in a kinetic plasma. This is also the approach used in MHD plasmas.
\item Full particles (along with the correct physical distribution) can be used to study transport of particles in a plasma, where instabilities are excited by the particles.
Here the considerations discussed in Sec. \ref{subsec:instability} have to be taken account regarding the time scales and the necessary simulation size.
Here the considerations discussed in Sect.~\ref{subsec:instability} have to be taken account regarding the time scales and the necessary simulation size.
\end{itemize}
Regardless of the approach the transported particles should be marked as a separate species for later analysis purposes.
@@ -62,17 +62,17 @@ $ %\begin{equation}
$ %\end{equation}
individually for every particle for long enough times $t$. The transport coefficient can then be binned in pitch-angle $\mu$ and/or momentum $p$ according to the scientific question. It should be noted however that this method called ``running diffusion coefficient'' is error prone - especially for the pitch-angle and for strong turbulence: Only for very small change in the pitch-angle $D_{\mu\mu}$ can be calculated as a function of $\mu$. The reader is referred to \cite{2016ApJ...833..223I} for an advanced analysis method based on the change of particle distribution functions.
Fig. \ref{fig:trans:mass_ratio} shows the transport of energetic protons interacting with a single wave. The amplitude of the wave is between $0.021 < \delta B/B_0 < 0.048$. The expected behaviour is the resonance of particles with
Fig.~\ref{fig:trans:mass_ratio} shows the transport of energetic protons interacting with a single wave. The amplitude of the wave is between $0.021 < \delta B/B_0 < 0.048$. The expected behaviour is the resonance of particles with
\begin{equation}
k_\parallel ~ v_\parallel - \omega_0 + n ~ \Omega_\text{T} = 0.
\label{eq:trans:res_con}
\end{equation}%
The change of pitch-angle can be calculated
The change of pitch-angle can be calculated
\begin{eqnarray}
\Delta \mu^\pm(t,\psi) =& \Omega_\text{T} ~ \sqrt{1 - \mu^2} ~ \dfrac{\delta B}{B_\text{ext}} \times
\nonumber
\\
&\dfrac{\cos{\psi} - \cos{((\pm k_\parallel \, v_\text{T} \, \mu - \Omega_\text{T}) ~ t + \psi)}}{\pm k_\parallel \, v_\text{T} \, \mu - \Omega_\text{T}}.
&\dfrac{\cos{\psi} - \cos{((\pm k_\parallel \, v_\text{T} \, \mu - \Omega_\text{T}) ~ t + \psi)}}{\pm k_\parallel \, v_\text{T} \, \mu - \Omega_\text{T}}.
\label{eq:trans:qlt}
\end{eqnarray}%
The observable tilt between theory and numerical experiment is an artifact of defining the $\mu$-axis: The tilt can be removed when choosing $1/2(\mu_\text{end}+\mu_0)$ on the $\mu$-axis.
@@ -99,7 +99,7 @@ The observable tilt between theory and numerical experiment is an artifact of de
% \caption{S\textrm{III}.}
% \label{fig:trans:mpzume428}
%\end{subfigure}
\caption{Pitch angle scatter plots present the change $\Delta\mu$ of a particle's pitch angle at time $t$ depending on its initial $\mu$ at $t_0=0$, where $t_1$ and $t_2$ are intervals of two and four gyroperiods, respectively. Color coding indicates the number of particles at a given point $(\mu, \Delta\mu)$ normalized to the total number of test protons. The dashed lines show the position of the resonant pitch angle $\mu_\text{res}$ given by Eq.~\eqref{eq:trans:res_con}. The curves represent QLT predictions for the maximum scattering amplitude according to Eq.~\eqref{eq:trans:qlt}. Figure reproduced from \cite{2014CoPhC.185.1981S}}
\caption{Pitch angle scatter plots present the change $\Delta\mu$ of a particle's pitch angle at time $t$ depending on its initial $\mu$ at $t_0=0$, where $t_1$ and $t_2$ are intervals of two and four gyroperiods, respectively. Color coding indicates the number of particles at a given point $(\mu, \Delta\mu)$ normalized to the total number of test protons. The dashed lines show the position of the resonant pitch angle $\mu_\text{res}$ given by equation~\eqref{eq:trans:res_con}. The curves represent QLT predictions for the maximum scattering amplitude according to equation~\eqref{eq:trans:qlt}. Figure reproduced from \cite{2014CoPhC.185.1981S}}
\label{fig:trans:mass_ratio}
\end{figure}
@@ -123,4 +123,4 @@ The observable tilt between theory and numerical experiment is an artifact of de
% Analyse interessanter Parameter
% Probleme: Testteilchen vs. echte Teilchen
% Probleme: Kinetische Turbulenz
% Probleme: Kinetische Turbulenz
+12 -12
View File
@@ -51,8 +51,8 @@ The necessary initial conditions for L-waves (R-waves are analogous) are derived
k_L = \pm \dfrac{\omega}{c} ~ \sqrt{1 - \frac{\omega_\text{p}^2}{(\omega + \Omega_\text{e}) ~ (\omega - \Omega_\text{p})}},
\label{eq:trans:disp_rel}
\end{equation}%
The wave number $k_0$ for the excited wave has to be chosen as an integer multiple of $2\pi/L$. Now Eq. \ref{eq:trans:disp_rel} has to be solved for the frequency $\omega_0$ associated with $k_0$.
%to be chosen such that an integer number of waves fits into the simulation volume. Here the case of a parallel wave along the magnetic field in $x$ direction is discussed. With the choice of $k_0$ Eq. \ref{eq:trans:disp_rel} has to be solved for the associated frequency $\omega_0$.
The wave number $k_0$ for the excited wave has to be chosen as an integer multiple of $2\pi/L$. Now equation~\eqref{eq:trans:disp_rel} has to be solved for the frequency $\omega_0$ associated with $k_0$.
%to be chosen such that an integer number of waves fits into the simulation volume. Here the case of a parallel wave along the magnetic field in $x$ direction is discussed. With the choice of $k_0$ equation~\eqref{eq:trans:disp_rel} has to be solved for the associated frequency $\omega_0$.
The amplitude of the wave is defined by the absolute of the electric field fluctuation $\delta E$:
\begin{subequations}
\begin{alignat}{2}
@@ -66,20 +66,20 @@ The amplitude of the wave is defined by the absolute of the electric field fluct
\end{subequations}
The magnetic field fluctuation is calculated directly from Maxwell's equations. The choice of the left-handed L-wave determines the polarization and in turn the relation of the $y$ and $z$ component of electric and magnetic field.
%EM fields will be written to the cells at the beginning of the simulation following Eq. \ref{eq:trans:excitation}.
%EM fields will be written to the cells at the beginning of the simulation following equation~\eqref{eq:trans:excitation}.
At the start of the simulation the electromagnetic fields are stored in the cells according to Eq. \ref{eq:trans:excitation}. The initially thermal distribution of ions and electrons has to be boosted to match the currents associated with the transverse wave.
At the start of the simulation the electromagnetic fields are stored in the cells according to equation~\eqref{eq:trans:excitation}. The initially thermal distribution of ions and electrons has to be boosted to match the currents associated with the transverse wave.
%
%For the background plasma ions and electrons are injected with a thermal distribution. In order to fulfill the dispersion relation of the wave, these particles have to be boosted. For transversal waves the current perpendicular to the magnetic field associated with the wave has to be matched, which results in a simple boost in velocity space. For the implementation of longitudinal waves a displacement in space has to be taken account.
%For the background plasma ions and electrons are injected with a thermal distribution. In order to fulfill the dispersion relation of the wave, these particles have to be boosted. For transversal waves the current perpendicular to the magnetic field associated with the wave has to be matched, which results in a simple boost in velocity space. For the implementation of longitudinal waves a displacement in space has to be taken account.
%
The boost velocity $\delta v$ for the L wave can be calculated as well:
\begin{equation}
% \delta v_y = \phantom{-}\frac{q_\text{s} \, c \, \delta E_z}{q_\text{s} \, B_\text{ext} - c \, m_\text{s} \, \omega_0}, ~~~~~ \delta v_z = - \frac{q_\text{s} \, c \, \delta E_y}{q_\text{s} \, B_\text{ext} - c \, m_\text{s} \, \omega_0}.
\delta v_y = \frac{q_\alpha \, c \, \delta E_z}{q_\alpha \, B_\text{ext} - c \, m_\alpha \, \omega_0}, ~~~ \delta v_z = \frac{- q_\alpha \, c \, \delta E_y}{q_\alpha \, B_\text{ext} - c \, m_\alpha \, \omega_0}.
% \delta v_y = \phantom{-}\frac{q_\text{s} \, c \, \delta E_z}{q_\text{s} \, B_\text{ext} - c \, m_\text{s} \, \omega_0}, ~~~~~ \delta v_z = - \frac{q_\text{s} \, c \, \delta E_y}{q_\text{s} \, B_\text{ext} - c \, m_\text{s} \, \omega_0}.
\delta v_y = \frac{q_\alpha \, c \, \delta E_z}{q_\alpha \, B_\text{ext} - c \, m_\alpha \, \omega_0}, ~~~ \delta v_z = \frac{- q_\alpha \, c \, \delta E_y}{q_\alpha \, B_\text{ext} - c \, m_\alpha \, \omega_0}.
\label{excitation_boost}
\end{equation}
The boost velocities for species $\alpha$, electrons or protons, depends on their charge $q_\alpha$ and mass $m_\alpha$.
%The index s in Eqs.~\eqref{excitation_boost} denotes a specific species of particles -- electron or proton.
%The index s in equations~\eqref{excitation_boost} denotes a specific species of particles -- electron or proton.
%Charge $q_\text{s}$ and mass $m_\text{s}$ have to be adjusted accordingly.
%
%This yields well defined waves above the thermal background noise.
@@ -155,7 +155,7 @@ Simulations of kinetic turbulence differ in a large number of input parameters.
\includegraphics[width=0.9\linewidth]{figure/application/turbulence_gary_2d_late.pdf}
\caption{
Magnetic energy spectrum at two points in time.
The energy is normalized to the background magnetic field.
The energy is normalized to the background magnetic field.
}
\label{fig:turbulence_gary_2d_late}
\end{figure}
@@ -190,16 +190,16 @@ Here we will show only few sketches to highlight how a possible setup of turbule
%Liefert irgendwie ein -2.9 Teilchenspektrum
%Ist das jetzt Turb oder Transport?
The physical and numerical parameters of the simulation presented here are given in Tables \ref{tab:simulation_turbulence_gary_phys} and \ref{tab:simulation_turbulence_gary_num} respectively. A central problem in finding a suitable parameter set is the balance between the requirement to resolve the Debye length and the onset of cyclotron damping. Energy will not be transferred to large parts of $k$ space due to damping processes.
The physical and numerical parameters of the simulation presented here are given in Tables~\ref{tab:simulation_turbulence_gary_phys} and \ref{tab:simulation_turbulence_gary_num} respectively. A central problem in finding a suitable parameter set is the balance between the requirement to resolve the Debye length and the onset of cyclotron damping. Energy will not be transferred to large parts of $k$ space due to damping processes.
The simulation is initialized with waves at small $k$ around $k=0$. The distribution of energy in the 2-dimensional $k$ space is then depicted in Fig. \ref{fig:turbulence_gary_2d_late}. Here a picture very similar to the Goldreich-Sridhar theory emerges: Energy is transferred primarily perpendicular to the magnetic field (further simulations not shown here, show that even for initial energy distributions elongated parallel to the magnetic field show a similar picture).
The simulation is initialized with waves at small $k$ around $k=0$. The distribution of energy in the 2-dimensional $k$ space is then depicted in Fig.~\ref{fig:turbulence_gary_2d_late}. Here a picture very similar to the Goldreich-Sridhar theory emerges: Energy is transferred primarily perpendicular to the magnetic field (further simulations not shown here, show that even for initial energy distributions elongated parallel to the magnetic field show a similar picture).
The 1D Fourier spectra parallel and perpendicular to the magnetic field shown in Fig. \ref{fig:turbulence_gary_2d_spectrum} provided different pictures. The general spectrum is much steeper than expected from classic theories.
The 1D Fourier spectra parallel and perpendicular to the magnetic field shown in Fig.~\ref{fig:turbulence_gary_2d_spectrum} provided different pictures. The general spectrum is much steeper than expected from classic theories.
As discussed before these simulations can only give insight into a small part of the very large parameter space of kinetic turbulence. While more simulations are required the computational cost for any interesting physical parameter set is mostly extreme. Only time and more computer power can give more insight.