diff --git a/currentassignment_esirkepov.pdf b/currentassignment_esirkepov.pdf new file mode 100644 index 0000000..418ad81 Binary files /dev/null and b/currentassignment_esirkepov.pdf differ diff --git a/currentassignment_naive.pdf b/currentassignment_naive.pdf new file mode 100644 index 0000000..8c0c2d1 Binary files /dev/null and b/currentassignment_naive.pdf differ diff --git a/currentassignment_umeda.pdf b/currentassignment_umeda.pdf new file mode 100644 index 0000000..719e2fe Binary files /dev/null and b/currentassignment_umeda.pdf differ diff --git a/numerics.tex b/numerics.tex index caab1a7..4e1c059 100644 --- a/numerics.tex +++ b/numerics.tex @@ -1,7 +1,65 @@ \section*{Numerical Implementation} +Particle-in-Cell codes are semi-Lagrangian in that they follow a Langrangian +description of phase space samples represented as macro particles coupled to +electromagnetic fields descriped in an Eulerian way on a grid. Connecting the +two parts correctly is crutial in the numerical implementation, but let us +start with the relatively simple step of evolving the electric and magnetic +fields on the grid for one time step. + \subsection*{Field Solvers} +In this subsection we will assume that the source terms that are based on +moments of the distribution function of all charged species are known on the +grid. How this is actually acomplished will be discussed in the next +subsection. We will further more assume that we have a uniform grid of +rectangular or cubid cells. Triangular or tetrahedral cells are much more +complicated to deal with and are typically only used when a body-fitted mesh +around or inside a metal body is needed. More details can be found in the +review \cite{Meierbachtol_2015}. + +Particle-in-Cell codes commonly use a finite difference formulation based on +the electromagentic fields (as opposed to scalar electrostatic potential and +magnetic vector potential). The typical arrangement of field samples is then +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$. 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 +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. But the +contrary is true as we will see in a moment. We start our consideration from +Maxwell's equation in CGS units. These are still customarily used in +Particle-in-Cell codes as the make the magnitude of electric and magnetic +componenst similar. Since we treat all material effects due to the plasma +explicitly by havong particles react to the fields $\vec{E}$ and $\vec{H}$, +there can use them interchangably with the respective flux densities $\vec{D}$ +and $\vec{B}$. +\begin{align} + \nabla \times \vec{E} &= - \frac{1}{c} \frac{\partial \vec{B}}{\partial t} \label{eq:num:faraday}\\ + \nabla \times \vec{B} &= \phantom{-} \frac{1}{c} \frac{\partial \vec{E}}{\partial t} + \frac{4 \pi}{c} \vec{\jmath} \label{eq:num:ampere} \\ + \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 +Particle-in-cell codes, but we will ignore it for now. It's equivalent for the +magnetic field, Eq.~\eqref{eq:num:monopol}, that describes the absence of +monopole 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} +This implies 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. + \begin{figure}[h!] \centering \includegraphics[width=0.5\hsize]{figure/numerics/rotation_yee.png} @@ -9,29 +67,81 @@ \label{fig:num:rot_yee} \end{figure} -% FDTD -% Yee_1966.pdf Yee lattice, FDTD -% Godfrey_1974.pdf Numerical Cherenkov Instability -% Friedman_1990.pdf Friedman damping -% Shlager_1993.pdf Dispersion error of FDTD schemes -% Garcia_1996.pdf construction of high order FDTD in anisotropic dielectrica -% Hadi_1997.pdf Modified FDTD -% Pukhov_1999.pdf Laser-Plasma simulation with tuned Maxwell solver, open boundaries -% Greenwood_2004.pdf Review on modified FDTD stencils to remove NCI -% Finkelstein_2006.pdf M24 scheme for low dispersion FDTD -% Karkkainen_2006.pdf low dispersion FDTD -% Yang_2006.pdf nummerically tuned FDTD solvers -% Hadi_2007.pdf finite volume based low dispersion FDTD -% Vay_2011.pdf tuned maxwell solvers -% Smith_2012.pdf low-dispersion and low-anisotropy FDTD -% Jung_2013.pdf optimized 2,4 FDTD scheme -% Lehe_2013.pdf NCI suppression with tuned FDTD -% Jalas_2017.pdf pseudo spectral analytic time domain -% Li_2017.pdf local FFT correction to FTDT to remove NCI -% Yu_2017.pdf yee-fft -% Blinne_2018.pdf optimized FTDT stencils -% Na_2018.pdf FTDT via Discrete exterior calculus -% Na_2018b.pdf diagnosing NCI on general meshes +As figure \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 +\begin{align} + \left(\nabla \times \vec{E}\right)_x&(i\Delta{x},(j+1/2)\Delta{y},(k+1/2)\Delta{z}) \approx \nonumber \\ + &\frac{E_y(i\Delta{x},(j+1/2)\Delta{y},k\Delta{z}) - E_y(i\Delta{x},(j+1/2)\Delta{y},(k+1)\Delta{z})}{\Delta{z}} + \nonumber \\ + &\frac{E_z(i\Delta{x},(j+1)\Delta{y},(k+1/2)\Delta{z}) - E_z(i\Delta{x},j\Delta{y},(k+1/2)\Delta{z})}{\Delta{y}} \quad . \label{eq:num:rot_yee_long} +\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 +\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}} + + \frac{E_z(i,j+1,k) - E_z(i,j,k)}{\Delta{y}} \quad . \label{eq:num:rot_yee} +\end{equation} +When presented with such an expression the reader needs to know that the use of +the electric field at locations $k\Delta{z}$ and $(k+1)\Delta{z}$ implies that +the magnetic flux (where the curl is used) is located at $(k+1/2)\Delta{z}$. +This can make reading papers tedious, but is much more compact and closer to +the actual implementation where the array indices into the arrays holding the +values of the field components are naturally integers. + +With the spatial derivatives neatly handled using second order accurate finite +difference approximations, we still need to handle the temporal derivative in +Eqs.~\eqref{eq:num:Bevolution} and \eqref{eq:num:Eevolution}. The customary +solution is to leaf-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 +update the electric field to $(t+1)\Delta{t}$. This leads to a scheme that is +also second order accurate in time. However to update the particle position and +location it is useful to have electric and magnetic fields at the position of +the particle at the same time. The solution to this is to split the update of +the magnetic field and use +\begin{align} + \vec{B}^{t\phantom{+1/2}} &= \vec{B}^{t-1/2} - \frac{1}{2} c \cdot \Delta t \cdot \nabla \times \vec{E}^{t} \label{eq:num:B1update} \quad ,\\ + \vec{B}^{t+1/2} &= \vec{B}^{t\phantom{-1/2}} - \frac{1}{2} c \cdot \Delta t \cdot \nabla \times \vec{E}^{t} \label{eq:num:B2update} \quad ,\\ + \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 works well and is implemented in many codes. However the +electromagnetic fields can be rather noise in Particle-in-cell simulations. +There is a limited number of options to combat this. Increasing the number of +macro particles to bring it close to the number of physical particles works, +but is rather expensive as the noise level only goes down as $1/sqrt{N}$. +Another commonly used method is to filter the the source term +$\vec{\jmath}^{t+1/2}$. +%FIXME do that below and reference here +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 +\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 +access to $\vec{B}^t$. The method allows tuneable damping be selecting $\theta$ +between 0 and 1 at the extra expense of storing and updating $\vec{\bar{E}}$. +The damping rate $\gamma$ is given by +\begin{equation} + \gamma\Delta{t} = - \frac{8\,\theta}{(2-\theta)^2} \left(\frac{c\,\Delta{t}}{\Delta{x}}\right)^4\sin^4\left(\frac{k\,\Delta{x}}{2}\right) \quad . +\end{equation} + +The one instability that plagues electromagnetic Particle-in-Cell codes and is +the main driver to go beyond the simple and robust field solver described above +is the Numerical Cherenkov Instability. This long known instability (see +\cite{Godfrey_1974}) occures when particles move close to the speed of light +and couple to light waves. In reality this only happens when then influence of +a medium reduces the speed of light below the vaccum value and particle can +reach the local phase velocity. Nummerically this can happen when the numerical +scheme introduces a dispersion error which reduces the speed of light. The +Maxwell solver presented above does that, expecially for short wavelength +comparable to the length of the cell edges. \begin{figure}[h!] \centering @@ -40,12 +150,29 @@ \label{fig:num:rot_o4} \end{figure} -\begin{figure}[h!] - \centering - \includegraphics[width=0.5\hsize]{figure/numerics/rotation_nsfd.png} - \caption{Finite difference approximation in Cole-Karkkainen schemes} - \label{fig:num:rot_ck} -\end{figure} +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 +\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. It is also possible to make the approximation of the temporal +derivative accurate to $4{th}$ order in the timestep $\Delta{t}$ as shown in +\cite{Fang_1989}. The problem is that Particle-in-Cell simulation tend to use +space and time steps that are just sufficient to get stable results. Using +substantially smaller steps is usually prohibitively expensive. This means that +$\lambda/\Delta{x}$ or $\omega \Delta{t}$ tend to be close to unity and the +difference between second and fourth order is small. + +The way forward has therefore been to use schemes that are still ``only'' +second order, but with a small constant in front of the error term. Many such +non-standard finite-difference (NSFD) schemes have been investigated over the +years. \begin{figure}[h!] \centering @@ -54,23 +181,119 @@ \label{fig:num:rot_m24} \end{figure} +One such scheme, proposed by \cite{Hadi_1997} under the name ``M24'' makes use +of the grid locations used by the standard Yee scheme, the locations used by +the fourth order scheme and additional locations that close a larger loop +around the mid point. The relative weights of the three loops are in principle +arbitrary, subject to the constraint that they have to sum to one. The +remaining two free parameters can be tuned to optimize the dispersion +properties of the scheme. The original paper suggests some values, but more +intersting is \cite{Greenwood_2004} that shows how these parameters can be +chosen to reduce NCI. + +\begin{figure}[h!] + \centering + \includegraphics[width=0.5\hsize]{figure/numerics/rotation_nsfd.png} + \caption{Finite difference approximation in Cole-Karkkainen schemes} + \label{fig:num:rot_ck} +\end{figure} + +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} illutrates 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}. Of course the development did not stop at this point, but to keep the page number limited, the interested reader is referred to \cite{Shlager_1993, Garcia_1996, Pukhov_1999, Finkelstein_2006, Yang_2006, Hadi_2007, Smith_2012, Lehe_2013, Blinne_2018} as entry points to further reading on this fascinating topic. + +% Shlager_1993.pdf Dispersion error of FDTD schemes +% Garcia_1996.pdf construction of high order FDTD in anisotropic dielectrica +% Pukhov_1999.pdf Laser-Plasma simulation with tuned Maxwell solver, open boundaries +% Finkelstein_2006.pdf M24 scheme for low dispersion FDTD +% Yang_2006.pdf nummerically tuned FDTD solvers +% Hadi_2007.pdf finite volume based low dispersion FDTD +% Smith_2012.pdf low-dispersion and low-anisotropy FDTD +% Jung_2013.pdf optimized 2,4 FDTD scheme +% Lehe_2013.pdf NCI suppression with tuned FDTD +% Blinne_2018.pdf optimized FTDT stencils + +An old idea that has recently gained traction again is to try field solvers +that are not based on FDTD schemes, but based on solving Maxwell's equations in +the spectral domain (\cite{Haber_1973, Jalas_2017}). This requires global FFTs +to convert the fields between real space and the spectral domain. The upside +is that there is no need to use a finite stencil that approximates the curl to +some low order. Instead the differential operator can be expressed as a +multiplication by $\imath k$ which gives rise to the class of pseudo-spectral +time domain solvers which have basically infinite stencil order. Under the +assumption of fixed source terms, i.e. constant current density, is is +additionally possible to integrate Maxwell's equation analytically in time and +derive pseudo-spectral analytic time domain (PDATD) schemes that are completly +free of numerical dispersion. Since global FFTs require a lot of communication +and can limited scalability, there have been some attempts to avoid them and +instead use local FFTs to build field solvers (\cite{Vay_2013}) or correction +methods for more conservative FDTD schemes (\cite{Yu_2016, Li_2017}). + +% Jalas_2017.pdf pseudo spectral analytic time domain +% Li_2017.pdf local FFT correction to FTDT to remove NCI +% Yu_2017.pdf yee-fft +% Na_2018b.pdf diagnosing NCI on general meshes + % electrostatic -% Hockney_1966.pdf 2d electrostatic PiC -% Gitomer_1972.pdf 2d3v electrostatic simulation of temperature anisotropy instability including collisions -% Cohen_1989.pdf implicit electrostatic PiC (direct implicit) +If all particle motion is slow compared to the speed of light life is much +easier. Not only do all NCI related problems go away, but it might be possible +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 +electric field to is longitudinal, curl-free component. Bases on +Eq.~\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 +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 +option is a multigrid solver. This is somewhat harder to implement but has the +possibility for better parallelisation for large systems, when the FFTs are +communication limited. +% darwin +Between the electrostatic and electromagnetic plasma model that is rarely +considered, but can be very effective and successfull in its domain of +application. In the Darwin approximation \cite{Darwin_1920}, effects up to +order $\mathcal{O}((v/c)^2)$ are retained, which allows for magnetic field +fluctuations but removes light waves. Alternatively it can be though of the +approximation where the time retardation due to the finite speed of light is +removed. Aquivalently the divergence-free part of the displacement current is +removed, which explicitly removes lightwaves from the problem. Interestingly +all these approximation turn out to be identically as demonstrated by +\cite{Krause_2007}. Some codes have been implemented in this approximation (see +e.g. \cite{Eremin_2013}). The approximation does however change the natural of +the system of differential equations to elliptic, requiring a global field +solve in every time step. This makes the timestep more expensive and can limit +scalability. Thus the Darwin approximation only results in a net speed up if +the time step covers a much longer duration then the CFL limit for an +electromagnetic code. Another limitation to keep in mind is that some low +frequency modes that are not ordered out are still modified as demonstrated by +\cite{Xie_2014}. -% Darwin -% Darwin_1920.pdf Lagrangian to order (v/c)^2 orders out light waves -% Besse_2007.pdf valsov-darwin and vlasov-poisswell model, semi-langrange simulations -% Krause_2007.pdf shows that different methods to get the darwin approximation are identical -% Eremin_2013.pdf Darwin fluid code for Capacity coupled discharges -% Xie_2014.pdf problems with low frequency mode structure in darwin +The Vlasov-Poiswell model that only retains effects up to $\mathcal{O}(v/c)$ +can be formulated in a consistent manner (see \cite{Besse_2007}), but is rarely +used in practice. +\subsection*{Interpolation} - -\subsection*{Interpolation and Deposition} - +The previous section only discussed Eulerian quantities on the regular grid. +But the electromagnetic fields act on the Lagranian particles, which requires +knowledge of the field strength at the location of the particle, not just at +the regular grid locations. This crutial switch in view point is done by means +of an interpolation that we will discuss next. \begin{figure}[h!] \centering @@ -79,6 +302,72 @@ \label{fig:num:interpolation} \end{figure} +Fig.~\ref{fig:num:interpolation} illustrates how the interpolation from grid +quantities (magnetic field $B_z$ in this case) to the particle location is +done. The computational macro-particle represents a large number of physical +particles and is thus seen as a chunk of phase space with a density +distribution over a finite extend. The fraction of particle that fall in the +cell are used as a weigth to multiply the field strength at the center of that +cell. Contributions from different cells are then added up to compute the mean +magnetic field strength at the particle location. In a single dimension, this calculation can be expressed by +\begin{equation} +\bar{B}_z(x_p) = \sum_{i} B_z((i+1/2)\Delta{x}) \cdot \int_{i\Delta{x}}^{(i+1)\Delta{x}} S(x - x_p)\, \mathrm{d}x \quad . +\end{equation} +Since this calculation is required for all particles and all field components +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 . +\end{equation} +Using this and suppressing the explicit location of the gridded quantity in the +cell we can write the two-dimensional interpolation as +\begin{equation} +\bar{B}_z(\vec{x}_p) = \sum_{i,j} B_z(i,j) \cdot W(x_p-(i+1/2)\Delta{x}) \cdot W(y_p - (j+1/2)\Delta{y}) \label{eq:num:Bzinterpol}\quad . +\end{equation} + +Many different choices for the shape function $S$ are possible and different +codes make different design choices here. Some properties are however required. +The shape function has to be normalized, i.e. +$\int_{-\infty}^{\infty}S(x)\,\mathrm{d}x = 1$ and should be symmetric, i.e. +$S(-x) = S(x)$. To allow efficient evaluation of +Eq.~\eqref{eq:num:Bzinterpol}, the shape function should have compact support, +i.e. be non-zero only up to some small $x_{max}$. + +In principle all these properties are satiesfied by a $\delta$-function. This +use of $S9x) = \delta(x)$ is also refered to as \textit{Nearest Grip Point} or +NGP scheme. Computationally it is very cheap, as no interpolation or summation +has to be done, we just assume that the field at the particle location is +identical to nearest available field on a grid locaton. The downside however is +that the field that particles see is non-contiguous and the current induced by +particles using this shape function switches from one cell to another when an +interface is crossed. This leads to a high level of numerically induced +fluctuations in the source terms and consequently the fields. + +The Cloud-in-Cell efficiently the algorithm by \cite{Birdsall_1968} has a major +step forward in the performance and usefulness of Particle-in-Cell codes. Here +each particle is viewed as a cloud of constant density and with the same size +as a grid cell (but freely movable relative to the grid). The shape function +that generates that view is given by +\begin{equation} + S_{CIC}(x) = \left\{ +\begin{array}{ll} + 1 & |x|\leq 1/2 \\ + 0 & \mathrm{else} +\end{array} +\right. +\end{equation} +and illustrated in Fig.~\ref{fig:num:S_CIC}. The associated weight function $W_{CIC}$ is +straight forward to calculate and given by +\begin{equation} + W_{CIC}(x) = \left\{ +\begin{array}{ll} + 1-|x| & |x|\leq 1 \\ + 0 & \mathrm{else} +\end{array} +\right. +\end{equation} + \begin{figure}[h!] \centering \begin{subfigure}{0.25\hsize} @@ -122,72 +411,572 @@ \label{fig:num:shape_function} \end{figure} +This simple shape function is not only a major step forward, but has the added +benefit of generating an entire family of shape function of increasing order, +by using the weight function $W$ for the previous order as the shape function +$S$ of the new, higer 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 continous. This implies that the Fourier transform of it falls faster +towards higher $k$. As \cite{Langdon_1970} showed this correspondes 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 +instability heats the plasma when the numerical grid does not resolve the Debye +length and can outgrow the physical processes the simulation is supposed to +study. Using higher order shape function suppress the instability and allows +the use of (slightly) larger grid cells or alternatively a better conservation +of the plasma thermal energy at identical resolution \cite{Shadwick_2009}. A +similar [problem exists when the cell size does not resolve the gyro radius of +electrons, as shown by \cite{Horky_2017}, and again higher order shape function +can help. The downside is that the finite support of the shape function is +larger and more grid cells are involved in both the interpolation of the fields +to the particle location as well as the deposition. -% Shape functions -% Birdsall_1969.pdf Cloud in cell, advantage of particle shape function -% Langdon_1970.pdf Finite Grid Instability, aliasing, particle shapes -% Kruer_1973.pdf Subtracted dipole shape function -% Abe_1986.pdf comparison of splines as particle shapes -% Ruyten_1993.pdf particle shape functions in cylindrical / spherical coordinates -% Shadwick_2009.pdf heating due to underresolved Debye length for differnt shape functions -% Sokolov_2011.pdf energy conserving half-order interpolation in pic -% Kilian_2012.pdf different form factors -% Horky_2017.pdf numerical heating when not resolving gyroradius -% Wu_2018.pdf dynamic particle width to minimize noise +Higher order shape function from the same family such as \textit{Piecewise +Quadratic Shape} PQS illustrated in Fig.~\ref{fig:num:S_PQS} have been used. +Higher order have an increasing number of continous derivatives and therefore +quicker drop off in Fourier space, but at the cost of each particle interacting +with an increasing number of cells. The smoother fields generated by higher +order shape functions reduce unphysical binary forces between nearby particles +and therefore numerical collisionallity (see \cite{Eastwood_1974, +Matsuda_1975}). The EPOCH code \cite{} might be the most widely used code to +use high order shape function. Otherwise order beyond TSC are not used widely +enough that a consensus as to their names has emerged. -% current deposition and filtering -% Villasenor_1992.pdf charge conserving current deposition -% Esirkepov_2001.pdf charge conserving current deposition -% Umeda_2003.pdf charge conserving current deposition (zig-zag) -% Kazeminezhad_2003.pdf semi-langrange vlasov code depositing samples onto phase space grid (1d1v to 2d3v) -% Vay_2011.pdf current filtering and compensation -% Moon_2016.pdf charge conserving current deposition on unstructured grid using discrete exterior algebra +Historically another family of shape function was used, the so-called +subtracted dipole shapes, see \cite{Kruer_1973} for more detail. If the code +uses cylindrical or spherical coordinates one can either use unmodified shape +function in ``index space'' that look cartician, just like the grids we discuss +here. Or one can take into account that grid cells become smaller and +eventually have a singularity as they approch $r=0$ and follow the approach by +\cite{Ruyten_1993} to obtain a correct density representation, even at the +symmetry axis. +So far only interpolation in one dimension has been discussed or interpolation +that treats all dimensions the same. This construction leads to codes that +conserve total momentum. 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 +components $B_i$ are interpolated using linear interpolation in the $x_i$ +coordinate and NGP in the other two coordinates. Electric field components +$E_i$ use NGP in the $x_i$ coordinate and CIC for the other two directions. +The use of only six locations to obtain the local magnetic field and twelve for +the electric field allows to handle larger numbers of particles efficiently. +The downside is of course that hundreds or thousands of particles per species +are required to bring down the noise level. +Since many different choices for shape functions are possible, many +comparisions have been made, including \cite{Abe_1986,Kilian_2013} and +\cite{Munoz_2014}. No universal winner has emerged and it is advisable to test +different shape function to make sure that physical results are insensitive to +the choices made. A recent idea by \cite{Wu_2018} is to use adaptive width per +particle and update them during the course of the simulation to reduce overall +noise. Other schemes that pick or modify the width of the shape function to +reduce known numerical problems might follow. \subsection*{Particle Motion} +Once the electromagnetic fields have been interpolated to the locaton of the +particle, it is necessary to update the position and velocity of the particle +accordingly. Since the first publication of the particle push by +\cite{Boris_1970} bascially all codes use this method, possibly with minor +adjustments. + +Similar to the leap-frog procedure for the electromagnetic fields the particle +is updated according to +\begin{align} + \vec{v}(t+\Delta{t}/2) &= \vec{v}(t-\Delta{t}/2) + \vec{F}(x(t),v(t))\cdot\Delta{t}/m \quad , \label{eq:num:velupdate}\\ + \vec{x}(t+\Delta{t})\phantom{/2} &= \vec{x}(t)\phantom{-\Delta{t}/2}\,\,\, + \vec{v}(t+\Delta{t}/2)\cdot\Delta{t} \quad . \label{eq:num:posupdate} +\end{align} + +Without magnetic field, when the force $\vec{F}$ only depends on the particle +position $x(t)$, this is straight forward to solve. If there is however a +magnetic field, the Lorentz force introduces a dependance on the velocity +$\vec(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 +both sides. The Boris push allows us to solve this implicit equation without +matrix inversion or iteration. + +Since different modifications of the Boris push differ in how they handle the +relativistic case it is worthwhile to switch from velocities $\vec{v}$ to the +relativistic momentum per rest mass $\vec{u} = \vec{p}/m = \gamma\vec{v}$. +This quantity does not suffer from the problem that it has a fixed upper value +and thus we avoid the loss of precission 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 +\begin{align} + \vec{u}(t+\Delta{t}/2) &= \vec{u}(t-\Delta{t}/2) + \vec{F}(x(t),v(t))\cdot\Delta{t}/m \quad , \\ + \gamma(+\Delta{t}/2) &= \sqrt{1 + \frac{\vec{u}(t+\Delta{t}/2) \cdot \vec{u}(t+\Delta{t}/2)}{c^2}} \\ + \vec{x}(t+\Delta{t})\phantom{/2} &= \vec{x}(t)\phantom{-\Delta{t}/2}\,\,\, + \vec{u}(t+\Delta{t}/2)\cdot\Delta{t}/\gamma(+\Delta{t}/2) \quad . \\ +\end{align} + \begin{figure}[h!] \centering \includegraphics[width=0.5\hsize]{figure/numerics/boris_push.pdf} - \caption{Illustration of the Boris push} + \caption{Illustration of the Boris push: The red arrows in the velocity diagram indicate the additional velocity $q/m \vec{E}(t) \Delta{t}/2$ that comes from the acceleration caused by the electric field $E(t)$ acting on the particle at the beginning and end of the Boris push. The vector $\vec{\Omega}$ is obtained by scaling the magnetic field $\vec{B}$ such that a crossproduct with it produces half the final rotation. This allows the construction of $\vec{v}_2$ that bisects the rotation and thus a accurate solution.} \label{fig:num:boris_push} \end{figure} +The major insight that allows to solve the problem is that the magnetic field +can only change the direction of the velocity vector. It is therefore possible +to construct a suitable rotation using geometric considerations. The effect of +the electric field is purely an accceleration in the direction of the electric +field. To maintain reversability in time and second order accuracy it is split +into two equal parts perform before and after handling the magentic field. Using this insight we can perform the following steps: +\begin{align} + \vec{u}_1 &= \vec{u}(t-\Delta{t}/2) + \frac{q}{m}\vec{E}(t)\frac{\Delta{t}}{2} \\ + \vec{\Omega} &= \tan{\left(\frac{q}{\gamma\,m}|B(t)|\frac{\Delta{t}}{2}\right)}\frac{\vec{B}}{|\vec{B}|} \label{eq:num:tanrotation} \\ + \vec{t} &= \frac{2}{1 + \vec{\Omega}\cdot\vec{\Omega}} \vec{\Omega}\\ + \vec{u}_2 &= \vec{u}_1 + \vec{u}_1 \times \vec{\Omega} \\ + \vec{u}_3 &= \vec{u}_1 + \vec{u}_2 \times \vec{t} \\ + \vec{u}(t+\Delta{t}/2) &= \vec{u}_3 + \frac{q}{m}\vec{E}(t)\frac{\Delta{t}}{2} +\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 use to power series +expansion at least up to fourth order. Many codes since then have made the +approximation $\vec{\Omega} \approx q/(\gamma\,m)\,\vec{B}(t)\,\Delta{t}/2$, +This is cheaper, but only produces the correct gyro radius, not the correct +gyro angle. +\textbf{Spanier: der alorithmus von Vay ist schrecklich. soll ich die folgenden +Details lieber weglassen und Vay 2008, Higuera 2017 und Umeda 2018 lieber nur +mit je zwei Sätzen beschreiben? Als ich angefangen habe dachte ich dass man nur +das ver\"anderte $\gamma$ braucht, aber tatsächlich hat Vay sich ein $\tau$ +definiert, was $\Omega$ ohne $\gamma(t=\Delta{t}/2)$ ist und alles kaputt +macht....} -% Boris push -% Boris_1970.pdf Boris Push, hybrid code in cylindrical coordinates -% Qian_1999.pdf exact relativistic solution to particle motion -% Vay_2008.pdf modified boris push -% Dalena_2012.pdf testparticle tracking code -% Higuera_2017.pdf particle pusher preserving phase space volume and ExB drift -% Ripperda_2017.pdf comparisson of particle pushers -% Umeda_2018.pdf three-step Boris integrator -% Zenitani_2018.pdf review of variants of Boris Push +The Lorentz factor $\gamma$ in Eq.~\eqref{eq:num:tanrotation} is given by +$\gamma = \sqrt{1 + \vec{u}_1\cdot\vec{u}_1 / c^2}$. According to +\cite{Vay_2008} this approximation can lead to spurious forces. He therefor +suggests to use +\begin{align} + \vec{u}_1 &= \vec{u}(t-\Delta{t}/2) + \frac{q}{m}\vec{E}(t)\frac{\Delta{t}}{2} \\ + \vec{\tau} &= \frac{q}{m}\vec{B}(t)\frac{\Delta{t}}{2} \\ + \vec{u}' &= \vec{u}_2 + \frac{q}{m}\vec{E}(t)\frac{\Delta{t}}{2} \\ + u^{*} &= \left(\vec{u}' \cdot \vec{\tau}\right) / c \\ + \gamma' &= \sqrt{1 + \frac{\vec{u}' \cdot \vec{u}'}{c^2}} \\ + \sigma &= \gamma'^2 - \vec{\tau} \cdot \vec{\tau} \\ + \gamma &= \sqrt{\frac{\sigma+\sqrt{\sigma^2 + 4(\vec{\tau}\cdot\vec{\tau} + u^{*2})}}2{}}\\ + s &= \frac{1}{1 + \vec{\tau}\cdot\vec{\tau}}\\ + \vec{u}(t+\Delta{t}/2) &= s\left( \vec{u}' + (\vec{u}' \cdot \vec{\tau})\vec{\tau} + \vec{u}' \times \vec{\tau}\right) +\end{align} + +Other modifications of the Boris push, such as \cite{Higuera_2017} and +\cite{Umeda_2018} exist as well. Some comparision between different variants +can be found in \cite{Ripperda_2018} or \cite{Zenitani_2018}. + +All of these algorithm assume that the electric and magnetic fields do not +change during the time step $\Delta{t}$, nor is the field reinterpolated to the +changing position of the particle. The particle therefore effectively +experiences a constant and homogenous field. The solution to the (relativistic) +equation of motion is in principle known analytically (see e.g. +\cite{Hyman_1997}), but no particle pusher based on this analytic solution is +in widespread use. + +\subsection*{Deposition and Filtering} + +Now that the electromagnetic field has acted on the particle we need to +calculate -- in the case of an electrostatic code -- the charge density +distribution resulting from the new locations of the particles, or -- in the +case of an electromagnetic code -- the current density distribution. This +requires interpolation from the particle locations back to the grid. As +\cite{Birdsall_2005} shows it is desirable to use the same interpolation method +for both the interpolation from the grid to the particle location as well as +the deposition of the particle quantities $\rho$ and $\vec{\jmath}$ onto the +grid to avoid spurious self-forces. + +The deposition of $\rho(t+\Delta{t})$ based on the newly calcuated +$\vec{x}(t+\Delta{t}$ is straight forward and simply given by +\begin{equation} + \rho(i\Delta{x},j\Delta{y} = \sum_{p} q_p W(x_p - i\Delta{x}) \cdot W(y_p - j\Delta{y}) \quad . +\end{equation} +The sum is taken over all particles, multiplying their charge with the weight +function based on the distance between the particle position +$\vec{x}_p(t+\Delta{t})$ and the origin of the grid cell, where the charge +density is located. One might be tempted to locate the charge density at the +center of the cell, to allow for the nice interpretation as the charge +contained in the cell, but typically the field solver calculates the +electrostatic potential at the location where the charge density is located. +Picking the corners of the cell allows to use a straight forward finite +difference approximiation to calculate the electric field at the midpoint of +the edges. + +Calculating the current $\vec{\jmath}(t+\Delta{t}/2)$ based on the old location +$\vec{x}(t)$, the new location $\vec{x}(t+\Delta{t})$ and the velocity +$\vec{v}(t+\Delta{t}/2)$ is slightly more complicated. + +\begin{figure}[htbp] + \begin{center} + \includegraphics[width=0.5\textwidth]{currentassignment_naive.pdf} + \caption{Naive current deposition for a charged particle moving as indecated by the black arrow and deposition current density onto the grid as shown in green. Solid black lines indicate grid cells, dashed line illustrate midplanes of cell faces.} + \label{fig:num:currentassignment_naive} + \end{center} +\end{figure} + +The current carried by a particle with charge $q_p$ moving at velocity +$\vec{v}(t+\Delta{t}/2)$ is given by $\vec{\jmath} = q_p +\vec{v}(t+\Delta{t}/2)$ and it is located around the position at this time, +$\vec{x}(t+\Delta{t}/2)$ that can be approximated by +$\left(\vec{x}(t)+\vec{x}(t+\Delta{t})\right)/2$. +Fig.~\ref{fig:num:currentassignment_naive} illustrates that this current can +simply be interpolated onto the grid using the weight functions, just as for +the charge density. The current on a cell edge is then simply the charge +floowing through the associated cell face over the course of a time step. + +The problem with this straightforward procedure is that the current deposited +in this way does not satiesfies the discrete continuity equation given by +\begin{align} +&\frac{\rho(i\Delta{x},j\Delta{y},t+\Delta{t})-\rho(i\Delta{x},j\Delta{y},t)}{\Delta{t}} \nonumber \\ +&\quad + \frac{j_x((i+1/2)\Delta{x},j\Delta{y},t+\Delta{t}/2) - j_x((i-1/2)\Delta{x},j\Delta{y},t+\Delta{t}/2)}{\Delta{x}} \nonumber \\ +&\quad + \frac{j_y(i\Delta{x},(j+1/2)\Delta{y},t+\Delta{t}/2) - j_y(i\Delta{x},(j-1/2)\Delta{y},t+\Delta{t}/2)}{\Delta{y}} = 0 \quad . +\end{align} + +Since this current enters Maxwells' equations as a source term it will lead to +an electric field that does not actually satisfy Gauss' Law. In other words the +curl-free component of the electric field in an electromagnetic code using this +current deposition scheme will differ from the electric field in an +electrostatic code with the same particle distribution. This is clearly not +desireable and different methods have been used to correct the problem. One is +deposit the charge density deparately and to solve a Poisson equation to get +the longitudinal part of the electric field correct. Computationally cheaper +and very effective is to make use of the fact that the electric field is nearly +correct and to clean up the remaining error using a correction scheme, such as +the one by \cite{Marder_1987}. + +This problem is solved all-together by current deposition schemes that +depositing a current that satiesfies the discrete continuity equation directly. +The first of these so called \textit{charge conserving} schemes is by +\cite{Eastwood_1991}\footnote{this paper is probably better known for the novel +Maxwell solver described therein, not the current deposition algorithm.}, but +several others have been developed since. The deposition in these schemes is +slightly more expensive than in the naive algorithm, but the the need to remove +violations of Gauss' Law is completely eliminated. + +Somewhat more widely implemented in the scheme by \cite{Villasenor_1992}. The +down side of this scheme is the need to threat the particle motion differently +depending how many cell interfaces the particle interacts with. The need to +branch to different sub-algorithms for each particle is computationally not +optimal on pipelined CPUs or GPUs where divergent branches incure large costs. +Additionally this scheme is tedious to extend to shape functions beyond CIC. + +\begin{figure}[htbp] + \begin{center} + \includegraphics[width=0.5\textwidth]{currentassignment_esirkepov.pdf} + \caption{Current deposition using the algorithm by \cite{Esirkepov_2001}. The particle motion is decomposed into axis-parallel segments that are individually weighted.} + \label{fig:num:currentassignment_esirkepov} + \end{center} +\end{figure} + +A scheme that works with arbitray shape functions (as long as they are products +of separate one-dimensional shape functions) and without the need for different +treatment of special cases is the current deposition by \cite{Esirkepov_2001}. +Fig.~\ref{fig:num:currentassignment_esirkepov} illustrates the current density +that is deposited using this algorithm for the same particle move as used in +Fig.~\ref{fig:num:currentassignment_naive}. The reader can verify that the +total current is identical, but the distribution onto the different grid points +is different. In this algorithm the motion of the particle is decomposed into +separate displacements parallel to the grid axis that are weighted +individually. Readers that are interested in implementing this algorithm are +refered back to the excellent original paper. + +The other widely used scheme in modern codes is the Zig-Zag scheme described in +\cite{Umeda_2003}. In this scheme particles can only cross between cells at the +midpoint of the interface. A particle that does not naturally go through that +point has it's motion split into a motion from the starting position to the mid +point, followed by a separate motion from the midpoint to the final location, +resulting in a Zig-Zag trajectory that gave the scheme it's name. +Fig.~\ref{fig:num:currentassignment_umeda} illustrates this motion and the +resulting current for the same particle trajectory we have used before. Finding +the midpoints for the fraction of particles that does not stay in the same cell +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. + +\begin{figure}[htbp] + \begin{center} + \includegraphics[width=0.5\textwidth]{currentassignment_umeda.pdf} + \caption{Current deposition using the Zig-Zag algorithm by \cite{Umeda_2003}. As the particle closes from one cell to another (across the solid black line indicating the cell interface), it's trajectory is modified to go via the midpoint.} + \label{fig:num:currentassignment_umeda} + \end{center} +\end{figure} + +Even in the case of unstructed grids, a charge-conserving current deposition +method has been developed by \cite{Moon_2015}, that makes use of the +discrete exterior algebra in its derivation. + +Once the current is deposited on the grid it can be filtered to remove unwanted +noise. The paper by \cite{Vay_2011} has an introduction to some digital filters +and the associated terminology. Many codes simply use one or more passes of a +simple binomial filter to reduce high frequency fluctuactions, but it is +possible to tune filters specifically to the problem at hand and get much +better performance. + +\subsection*{Initalization and Particle Handling} + +We can now covered how the particle based source terms are incorporated in the +evolution of the gridded electromagnetic quantities, how those act on the +particles and how new source terms are deposited onto the grid based on the +updated particle properties. An important part that is still undescribed is the +setup of the initial conditions. For the field quantities on the grid these are +usually simply set base on analytic expression for known equalibria. Most of +them only require an inital magnetic field and have vanishing electric field. +Creating the inital particle population is a little bit more complicated and +can have an important influence on the noise level in the simulation. +The difficulty is to create a number of particles that represent the desired +distribution function $f(\vec{x},\vec{v},t_0)$. We will approach this problem +step by step. + +The easiest case (and not actually uncommon) is constant spatial density and +and a velocity distribution that follows a non-relativistic Maxwellian. In this +case we can pick the initial position of the particle at random using +\begin{equation} + \vec{x} = \left(L_x\cdot \mathcal{U}(0,1), L_y \cdot \mathcal{U}(0,1), L_z \cdot \mathcal{U}(0,1)\right) \quad, +\end{equation} +where the three calls to the random generator using +the function $\mathcal{U}$ produce three independent (pseudo-)random numbers, +uniformly distributed between zero and one. Some cells might receive more then +the expected number of \textit{particles per cell} -- often denoted as +\textit{ppc} --, while others receive slightly more. Given that our system has +much fewer macro particles then there are physcial particles in the scenario we +aim to simulate and each macro particles carries the charge of many physical +particles, this can lead to fluctuations in the charge density that are larger +than in the physical system. One easy step to remidy this to some extend is to +create exactly the expected number of macro particles per cell and only choose +the position inside the cell at random. This also makes it easy to represent +spatially changing densities, be computing the number of particles in each cell +from a known analytic function $n(\vec{x})$. This works well as long as the +scale length $l_n = n / \frac{\partial\, n}{\partial{x}}$ is large compared to +the cell size $\Delta{x}$. + +Fpr uniform densities there is also the possibility to use \textit{low +discrepancy series} such as the Halton sequence \cite{Halton_1964}, a straight +forward extension of the van der Corput sequence to multiple dimensions. This +sequence distributes particles less randomly, but more uniformly in the +simulation domain. This leads to a reduced noise level that scales as +$\mathcal{O}(1/N)$ with the particle number. This is much cheaper than reducing +the noise using the $\mathcal{O}(1/\sqrt{N})$ scaling of adding more particles +randomly. This \textit{quiet start} has successfully used e.g. in the study of +instabilities (see \cite{Byers_1970} for an example). + +The non-relativistic Maxwellian distribution is simply the composition of three +velocity components that individually follow a normal distribution. We can +therefore simply pick random velocities +\begin{equation} + \vec{v} = \left(\mathcal{N}(u_x, v_{th}), \mathcal{N}(u_y, v_{th}), \mathcal{N}(u_z,v_{th})\right) \quad. +\end{equation} +The call to $\mathcal{N}(\mu,\sigma)$ produced a random number from a normal +distribution with mean $\mu$ and standard deviation $\sigma$. The mean can be +the average drift velocity of that species (and can depend on position and +particle species, e.g. in the setup of a current sheet) and the standard +deviation is set by the thermal speed +\begin{equation} + v_{th} = \sqrt{\frac{k_B T}{m}} \quad . +\end{equation} +Note that there is a second popular definition of the thermal speed that +includes a factor of 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. The extension of this method +to include species of different temperatures for different species or spatial +directions is straight forward. + +Some early simulations used other methods to approximate a Maxwellian +distribution, but on modern machines the generation of $\mathcal{N}$ using the +Box-Muller method or the ziggurat algorithm is sufficiently fast that a +straight-forward approach performs well. This is both thanks to the fast +evaluation of $\log$ and trigonometric functions and to the increased +performance of the underlying generators producing pseudo-random integers. + +If the drift speed $\vec{u}$ approaches relativistic speeds, but the thermal +speeds are still sufficiently low, some accuracy can be gained by generating a +non-drifting distribution and boosting it with a Lorentz boost. If the thermal +speed is large as well, it is necessary to generate a proper Maxwell-J\"uttner +distribution. This used to be problematic and many older codes neglect this, +however this leads to problematic deviations from the correct distribution as +demonstrated in \cite{Melzani_2013}. Fortunately an efficient algorithm is +described in \cite{Zenitani_2015}. + +Sometimes it is desired to generate new particles from a given distribition +during initalization, but also later in the simulation, e.g. to fill a portion +of newly expanded simulation space or to inject plasma through an inflow +boundary. This is possibly, but some subtelies need to be considered due to the +interaction with existing fields in the domain \cite{Cartwright_2000}. % particle splitting and merging -% Lapenta_1994.pdf particle splitting and merging -% Shon_2001.pdf Particle merging -% Welch_2007.pdf particle splitting and merging, conserving energy -% Martin_2012.pdf momentum conserving particle merge -% Vranic_2014.pdf n:2 particle merging conserving charge, momentum and energy -% Faghihi_2017.pdf particle merging conserving charge, momentum, energy and stress -% Drouin_2018.pdf particle splitting for AMR PiC +In many simulations particles are created once and afterwards their number +never changes. It can however be useful to split particles 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 +balloning of the computational cost. + +Splitting particles in a way that conserved mass, momentum and energy is +straight forward, as we can simply pick a source particle, split it into two +equal parts of half the statistical weigth and displace them slightly from the +centre mass to ensure that the following plasma dynamics will transport them +separately. Some care can be taken that the displacement does not change the +energy in the electromagnetic fields, but even without that the naive algorithm +works well. The main problem is particle merging, as we will never find two +particles of exactly equal velocities close to each other. Combining two +particles of unequal speeds however can not conserve both momentum and energy +at the same time \cite{Lapenta_1994}. + +A first solution was offered by \cite{Shon_2001}, combining several particles +into several new particles to conserve charge density, momentum and energy. In +simulations where many new particles are created the algorithm by +\cite{Welch_2007} that estimates the distribution function from $N >> 2$ +particles and replaces them with $M$ ($2 << 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 +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 +merge $N$ exisiting particles into two new particles while conserving charge, +momentum and energy. If the reason for splitting particles is mesh-refinement +in one of the rate AMR codes, the method by \cite{Drouin_2018} can help with +splitting, but merging remains a problem. + +Handling of dynamic particle numbers in a way that covers phase space well, is +numerically efficient and conserves all global quantities remains a problem, +despite all the described attempts and many others in recent year. + +\subsection*{Boundary Conditions} + +As mentioned before it might be desireable to create new particles at the +boundary and proper care has to be taken for to match the existing fields +there. This is a generell problem with boundary conditions in Particle-in-cell +codes. One has to handle both the fields and the particles there and should do +so in a consistent way to avoid problems. + +Nummerically easiest are periodic boundary conditions where the cell at the +upper end of a coordinate is logically wrapped around to be just below the +lower end of the coordinate. Particles that leave through one side are +reinjected unmodified at the other end. Periodic boundary conditions mimic +infinite space resomably well, as there are no fixed walls or ends to the +simulations. The periodic nature of the simulation does however select a finite +number of modes -- out of the inifinite possibilities that exist in free space +-- that have an integer number of wavelength in the simulation box. If the +number of grid cells is small, so is the number of allowed wave modes and the +quantization of the spectrum can have visible, undesirable effects. + +Another set of boundary conditions that are resonably popular is a version of +Dirichlet boundary conditions for some field components. More specifically the +normal component of the magnetic field is held fixed in time and the two +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 not modified by 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 conductivity. 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 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 +as the normal component of the velocity are flipped. This results in a particle +that is at the same position and velocity as if it had undergone specular +reflection when reaching the boundary. +\textbf{ich koennte hier formeln und ein bildchen einbringen, bin mir aber unsicher ob der platz rentiert.} +More complicated boundary conditions for particles might absorb the particle or +emit one or more new particles drawn from some distribution function, possibly +depending on the energy of the incoming particle. This can simulate more or +less realistic metal wall including effects such as wall charging or secondary +electron emission. + +While physcially not a boundary condition, moving simulation domains are often +implemented in terms of boundary conditions. One example is the moving window +in the XOOPIC code \cite{Bruhwiler_2001}. Here the Eulerian mesh it not moving, +but instead new grid cells are created on one side and populated with +background magnetic field and fresh thermal particles. On the other side the +grid is truncated and particles removed. If the window happens to move at the +speed of light -- common in simulation that follow the path of a laser pulse +through a plasma (see e.g. \cite{Yu_2016}) -- no perturbation caused by the +downstream boundary can reach the interior of the simulation domain, greatly +simplying the implementation. If the window is moving slower, a boundary that +absorbes waves and does not reflect them back into the interior is needed at +the lower end of the moving window. -\subsection*{Initalization} -% particle loading -% Halton_1964.pdf Low discrepance series by bit inversion -% Byers_1970.pdf 1d3v cyclotron instability, low noise particle loading -% Cartwright_2000.pdf particle loading -% Melzani_2013.pdf Apar-T, loading of relativistic maxwellian -% Zenitani_2015.pdf initalizing relativistic maxwellian and maxwell-jüttner +This brings us to the topic of absorbing boundary conditions. These have been a +problem for a long time. Initially Liao boundary conditions \cite{Liao_1984} +and Mur \cite{Mur_1981} have been used. These boundary condition (and others) +are described in detail in the great book on FDTD methods by +\cite{Taflove_2000}. The problem with these boundary conditions is that they +rely on fixed waves speeds. The presence of the plasma changes the wave speed +from the speed of light to a lower speed that might depend on wavelength, +incident angle and plasma parameters such as the magnetizations. This makes is +very hard to absorb all wave modes that reach the boundary sufficiently well. +A great step forward was the development of the \textit{Perfectly Matched +Layer} (PML) by \cite{Berenger_1994}. This layer is technically not a boundary +condition, but rather a region of space with modified permeability and +permitivity. These material properties are choosen such that the impedance of +the material is identical to the adject free space. Therefore the refractive +index does not change from free space to the material layer and now waves are +reflected. Inside the material the wave is however damped, attenuating before +it reaches the actual boundary. There a simple boundary condition such as PEC +can be choosen. And wave that does reach the boundary and gets reflected is +attenuated a second time on the way out, greatly improving performance of this +scheme. Several different formulations of PML have been developed such as +split-PML (where each electric and magnetic field component inside the boundary +is split into two independent, unphysical fields that are damped separately), +uniaxial PML (UPML) and more general stretched-coordinate PML wave been +developed. One version known as convolutional PML (CPML) has been used +successfully in multiple coes. The book \cite{Berenger_2007} explains the +different methods and their connections. +Even before the development of these methods was completed, PML conditions were +used in Particle-in-Cell simulations, see e.g. \cite{Pasik_1999, Pukhov_1999}. +PML boundary conditions are often combined with particle boundaries that absorb +outgoing particles and replace them in some scheme to simuate the presence of a +thermal plasma bath outside the simulation domain that can act as the source of +unperturbed upstream. This has been used in particular 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 and long time effects (see \cite{Daughton_2006, +Klimas_2008, Ohtani_2009}). + +Besides the injection of thermal plasma on the boundary it is also possible to +inject electromagnetic waves to study their propagation. This can either be +achieved by the means of an artifical current, acting as an antenna or by +manipulating the electromagnetic field directly. More complicated inject +schemes that allow for the injection of realistic laser pulses +(\cite{Thiele_2016,}), of oblique waves with arbitray envelops +(\cite{Perez_2018}) or of magnetized plasma without unwanted numerical noise +(\cite{Kilian_2018}) are possible as well, but require a bit of care. + +% Eliasson_2002.pdf outflow condition for fourier transformed vlasov-poison system \subsection*{Diagnostics} + +As much fun as it can be to write and run a Particle-in-Cell code, the ultimate +goal is to produce output that can be used to gain understanding of the +physical system. This requires the calculation of diagnostic quantities and +storing them in a way that persists beyond the duration of the simulation. As +tempting as it might be to simply save the complete state of the simulation and +use later post-processing to produce higher-level diagnostics and plots, it is +usally a bad idea from a performance standpoint. Whenever possible the +simulation code should calculate diagnositics as close to the final plots and +output only them. After all, a simple histogram for a velocity distribution +might only be a few kilobytes, where the dump of all particles is serval +terabytes. Saving the simulation state for later analysis or restart might +still be necessary but should be performed as rarely as possible. + +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 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. + % radiation reaction % Pausch_2013.pdf verification of radiation diagnostics % Nerush_2017.pdf PiC including gamma ray priduction and pair production @@ -197,21 +986,6 @@ -\subsection*{Boundary Conditions} -% boundaries -% wagner_1995.pdf Liao absorbing boundaries -% Pasik_1999.pdf PML for PiC -% Pukhov_1999.pdf Laser-Plasma simulation with open boundaries -% Cartwright_2000.pdf particle injection -% Bruhwiler_2001.pdf moving window in XOOPIC -% Eliasson_2002.pdf outflow condition for fourier transformed vlasov-poison system -% daughton_2006.pdf open boundaries for particles and fields for reconnection simukations -% Berenger_2007.pdf THE book on PML -% Klimas_2008.pdf reconnection simulations with open boundaries -% Ohtani_2009.pdf inflow and outflow boundaries for reconnection -% Kilian_2017b.pdf injection without precursor -% Yu_2017.pdf Moving window -% Perez_2018.pdf oblique arbitray-wave injection of em PiC diff --git a/pic.bib b/pic.bib index fb653cb..5c719aa 100644 --- a/pic.bib +++ b/pic.bib @@ -309,7 +309,1063 @@ archivePrefix = "arXiv", adsnote = {Provided by the SAO/NASA Astrophysics Data System} } +@article{Yee_1966, + author = {Kane Yee}, + journal = {Antennas and Propagation, IEEE Transactions on}, + month = {May}, + number = 3, + pages = { 302-307}, + title = {Numerical solution of inital boundary value problems involving Maxwell's equations in isotropic media}, + volume = 14, + year = 1966, + issn = {0018-926X}, +} + +@article{Friedman_1990, + author = "Alex Friedman", + journal = "Journal of Computational Physics", + number = "2", + pages = "292--312", + title = "A second-order implicit particle mover with adjustable damping", + volume = "90", + year = "1990", + doi = "http://dx.doi.org/10.1016/0021-9991(90)90168-Z", + issn = "0021-9991", + url = "http://www.sciencedirect.com/science/article/pii/002199919090168Z", +} + +@article{Hadi_1997, + author = {Hadi, M.F. and Piket-May, M.}, + journal = {Antennas and Propagation, IEEE Transactions on}, + month = {Feb}, + number = {2}, + pages = {254-264}, + title = {A modified FDTD (2, 4) scheme for modeling electrically large structures with high-phase accuracy}, + volume = {45}, + year = {1997}, + doi = {10.1109/8.560344}, + issn = {0018-926X}, +} + +@article{Greenwood_2004, + author = "Andrew D. Greenwood and Keith L. Cartwright and John W. Luginsland and Ernest A. Baca", + journal = "Journal of Computational Physics", + number = "2", + pages = "665 -- 684", + title = "On the elimination of numerical Cerenkov radiation in PIC simulations", + volume = "201", + year = "2004", + doi = "http://dx.doi.org/10.1016/j.jcp.2004.06.021", + issn = "0021-9991", + url = "http://www.sciencedirect.com/science/article/pii/S0021999104002608", +} + +@article{Cole_2002, + author = {Cole, J.B.}, + journal = {Antennas and Propagation, IEEE Transactions on}, + number = {9}, + pages = {1185-1191}, + title = {High-accuracy Yee algorithm based on nonstandard finite differences: new developments and verifications}, + volume = {50}, + year = {2002}, + doi = {10.1109/TAP.2002.801268}, + ISSN = {0018-926X}, +} + +@inproceedings{Karkkainen_2006, + address = {Chamonix, France}, + author = {Kärkkäinen, Mikko and Gjonaj, Erion and Lau, Thomas and Weiland, Thomas}, + booktitle = {Proceedings of ICAP 2006}, + pages = 35, + publisher = {Joint Accelerator Conferences Website}, + title = {Low-Dispersion Wake Field Calculation Tools}, + volume = 1, + year = 2006, +} + +@article{Vay_2011, + author = {Vay, J.-L. and Geddes, C.G.R. and Cormier-Michel, E. and Grote, D.P.}, + journal = {Journal of Computational Physics}, + number = 15, + pages = {5908 - 5929}, + title = {Numerical methods for instability mitigation in the modeling of laser wakefield accelerators in a Lorentz-boosted frame}, + volume = 230, + year = 2011, + doi = {10.1016/j.jcp.2011.04.003}, + issn = {0021-9991}, + url = {http://www.sciencedirect.com/science/article/pii/S0021999111002270}, +} + +@article{Shlager_1993, + author = {Shlager, K.~L. and Maloney, J.~G. and Ray, S.~L. and Peterson, A.~F.}, + journal = {IEEE Transactions on Antennas and Propagation}, + month = {Dec.}, + publisher = {IEEE}, + title = {Relative accuracy of several finite-difference time-domain methods in two and three dimensions}, + volume = {41}, + year = {1993}, + doi = {10.1109/8.273296}, + issue = {12}, + page = {1732--1737}, +} + +@article{Garcia_1996, + author = {Garcia, S.G. and Hung-Bao, T.M. and Martin, R.G. and Olmedo, B.G.}, + journal = {IEEE Transactions on Microwave Theory and Techniques}, + month = {December}, + note = {0018-9480(96)08486-4}, + number = {12}, + pages = {2195 -- 2206}, + title = {On the Application of Finite Methods in Time Domain to Anisotropic Dielectric Waveguides}, + volume = {44}, + year = {1996}, + doi = {10.1109/22.556447}, + issn = {0018-9480}, + url = {http://ieeexplore.ieee.org/iel1/22/12131/00556447.pdf}, +} + +@article{Finkelstein_2006, + author = "Bezalel Finkelstein and Raphael Kastner", + journal = "Journal of Computational Physics ", + number = "1", + pages = "422--438", + title = "Finite difference time domain dispersion reduction schemes ", + volume = "221", + year = "2007", + doi = "http://dx.doi.org/10.1016/j.jcp.2006.06.016", + issn = "0021--9991", + url = "http://www.sciencedirect.com/science/article/pii/S0021999106002932", +} + +@article{Yang_2006, + author = {Yang, B. and Balanis, C.~A.}, + journal = {Antennas and Wireless Propagation Letters, IEEE}, + month = {Dec}, + number = {1}, + pages = {450--453}, + title = {Least Square Method to Optimize the Coefficients of Complex Finite-Difference Space Stencils}, + volume = {5}, + year = {2006}, + doi = {10.1109/LAWP.2006.885012}, + ISSN = {1536--1225}, +} + +@article{Hadi_2007, + author = {Hadi, M.~F.}, + journal = {Antennas and Propagation, IEEE Transactions on}, + month = {Aug}, + number = {8}, + pages = {2287--2293}, + title = {A Finite Volumes-Based 3-D Low Dispersion FDTD Algorithm}, + volume = {55}, + year = {2007}, + doi = {10.1109/TAP.2007.901996}, + ISSN = {0018-926X}, +} + +@article{Smith_2012, + author = {Smith, W.~S. and Razmadze, A. and Xuan-Min Shao and Drewniak, J.~L.}, + journal = {Antennas and Propagation, IEEE Transactions on}, + month = {Dec}, + number = {12}, + pages = {5787--5800}, + title = {A Hierarchy of Explicit Low-Dispersion FDTD Methods for Electrically Large Problems}, + volume = {60}, + year = {2012}, + doi = {10.1109/TAP.2012.2209860}, + ISSN = {0018-926X}, +} + +@Article{Meierbachtol_2015, + author = {C. S. {Meierbachtol} and A. D. {Greenwood} and J. P. {Verboncoeur} and B. {Shanker}}, + doi = {10.1109/TPS.2015.2487522}, + journal = {IEEE Transactions on Plasma Science}, + month = {Nov}, + number = {11}, + pages = {3778-3793}, + title = {Conformal Electromagnetic Particle in Cell: A Review}, + volume = {43}, + year = {2015}, + ISSN = {0093-3813}, +} + +@article{Rabina_2014, + author = {R{\"a}bin{\"a}, Jukka}, + journal = {Jyv{\"a}skyl{\"a} studies in computing}, + number = {200}, + publisher = {University of Jyv{\"a}skyl{\"a}}, + title = {On a numerical solution of the Maxwell equations by discrete exterior calculus}, + year = {2014}, +} + +@article{Na_2018, + author = "Dong-Yeop Na and Ben-Hur V. Borges and Fernando L. Teixeira", + doi = "https://doi.org/10.1016/j.jcp.2018.09.024", + issn = "0021-9991", + journal = "Journal of Computational Physics", + pages = "249 - 275", + title = "Finite element time-domain body-of-revolution Maxwell solver based on discrete exterior calculus", + url = "http://www.sciencedirect.com/science/article/pii/S0021999118306247", + volume = "376", + year = "2019", +} + +@article{Godfrey_1974, + author = {Godfrey, Brendan B}, + journal = {Journal of Computational Physics}, + number = {4}, + pages = {504--521}, + publisher = {Elsevier}, + title = {Numerical Cherenkov instabilities in electromagnetic particle codes}, + volume = {15}, + year = {1974}, +} + +@phdthesis{Fang_1989, + address = {Berkely}, + author = {Fang, Jiayuan}, + month = 12, + school = {University pof California}, + title = {Time Domain finite difference computation for Maxwell's equations}, + year = 1989, +} + +@article{Pukhov_1999, + author = {Pukhov, A.}, + journal = {Journal of Plasma Physics}, + number = {3}, + pages = {425–433}, + publisher = {Cambridge University Press}, + title = {Three-dimensional electromagnetic relativistic particle-in-cell code VLPL (Virtual Laser Plasma Lab)}, + volume = {61}, + year = {1999}, +} + +@article{Lehe_2013, + author = {Lehe, R. and Lifschitz, A. and Thaury, C. and Malka, V. and Davoine, X.}, + doi = {10.1103/PhysRevSTAB.16.021301}, + issue = {2}, + journal = {Phys. Rev. ST Accel. Beams}, + month = {Feb}, + pages = {021301}, + publisher = {American Physical Society}, + title = {Numerical growth of emittance in simulations of laser-wakefield acceleration}, + url = {https://link.aps.org/doi/10.1103/PhysRevSTAB.16.021301}, + volume = {16}, + year = {2013}, +} + +@article{Blinne_2018, + author = "Alexander Blinne and David Schinkel and Stephan Kuschel and Nina Elkina and Sergey G. Rykovanov and Matt Zepf", + doi = "https://doi.org/10.1016/j.cpc.2017.10.010", + issn = "0010-4655", + journal = "Computer Physics Communications", + pages = "273 - 281", + title = "A systematic approach to numerical dispersion in Maxwell solvers", + url = "http://www.sciencedirect.com/science/article/pii/S0010465517303508", + volume = "224", + year = "2018", +} + +@inproceedings{Haber_1973, + author = {Haber, I and Lee, R and Klein, H and Boris, J}, + booktitle = {Proc. Sixth Conf. Num. Sim. Plasmas, Berkeley, CA}, + pages = {46--48}, + title = {Advances in electromagnetic simulation techniques}, + year = {1973} +} + +@article{Vay_2013, + author = "Jean-Luc Vay and Irving Haber and Brendan B. Godfrey", + doi = "https://doi.org/10.1016/j.jcp.2013.03.010", + issn = "0021-9991", + journal = "Journal of Computational Physics", + pages = "260 - 268", + title = "A domain decomposition method for pseudo-spectral electromagnetic simulations of plasmas", + url = "http://www.sciencedirect.com/science/article/pii/S0021999113001873", + volume = "243", + year = "2013", +} + +@article{Li_2017, + author = "Fei Li and Peicheng Yu and Xinlu Xu and Frederico Fiuza and Viktor K. Decyk and Thamine Dalichaouch and Asher Davidson and Adam Tableman and Weiming An and Frank S. Tsung and Ricardo A. Fonseca and Wei Lu and Warren B. Mori", + doi = "https://doi.org/10.1016/j.cpc.2017.01.001", + issn = "0010-4655", + journal = "Computer Physics Communications", + pages = "6 - 17", + title = "Controlling the numerical Cerenkov instability in PIC simulations using a customized finite difference Maxwell solver and a local FFT based current correction", + url = "http://www.sciencedirect.com/science/article/pii/S0010465517300012", + volume = "214", + year = "2017", +} + +@article{Jalas_2017, + author = {Jalas,S. and Dornmair,I. and Lehe,R. and Vincenti,H. and Vay,J.-L. and Kirchen,M. and Maier,A. R. }, + doi = {10.1063/1.4978569}, + journal = {Physics of Plasmas}, + number = {3}, + pages = {033115}, + title = {Accurate modeling of plasma acceleration with arbitrary order pseudo-spectral particle-in-cell methods}, + url = {https://doi.org/10.1063/1.4978569}, + volume = {24}, + year = {2017}, +} + +@article{Yu_2016, + author = "Peicheng Yu and Xinlu Xu and Asher Davidson and Adam Tableman and Thamine Dalichaouch and Fei Li and Michael D. Meyers and Weiming An and Frank S. Tsung and Viktor K. Decyk and Frederico Fiuza and Jorge Vieira and Ricardo A. Fonseca and Wei Lu and Luis O. Silva and Warren B. Mori", + doi = "https://doi.org/10.1016/j.jcp.2016.04.014", + issn = "0021-9991", + journal = "Journal of Computational Physics", + pages = "747 - 759", + title = "Enabling Lorentz boosted frame particle-in-cell simulations of laser wakefield acceleration in quasi-3D geometry", + url = "http://www.sciencedirect.com/science/article/pii/S0021999116300468", + volume = "316", + year = "2016", +} + +@article{Hockney_1966, + author = {R. W. Hockney}, + journal = {Physics of Fluids}, + number = {9}, + pages = {1826--1835}, + publisher = {American Institute of Physics}, + title = {Computer Experiment of Anomalous Diffusion}, + volume = {9}, + year = {1966}, + doi = {10.1063/1.1761939}, + url = {http://link.aip.org/link/?PFL/9/1826/1}, +} + +@article{Cohen_1989, + author = "Bruce I. Cohen and A. Bruce Langdon and Dennis W. Hewett and Richard J. Procassini", +journal = "Journal of Computational Physics", + number = "1", + pages = "151 - 168", + title = "Performance and optimization of direct implicit particle simulation", + volume = "81", + year = "1989", + doi = "DOI: 10.1016/0021-9991(89)90068-5", + issn = "0021-9991", + url = "http://www.sciencedirect.com/science/article/B6WHY-4DD1SH2-D2/2/a88b39a6697f7f3b8fa96d9cf189d816", +} + +@book{Birdsall_2005, + author = {C. K. {Birdsall} and A. B. {Langdon}}, + edition = {First}, + month = oct, + publisher = {New York: Taylor and Francis}, + title = {Plasma physics via computer simulation}, + year = 2005, + isbn = {0750310251}, +} + +@article{Darwin_1920, + author = {Darwin, Charles~Galton}, + journal = {Philosophical Magazine Series 5}, + title = {The dynamical motions of charged particles}, + year = {1920}, + volume = {39}, + doi = {10.1080/14786440508636066}, + issue = {233}, + page = {537--551}, +} + +@article{Krause_2007, + author = {Todd B. Krause and A. Apte and P. J. Morrison}, + journal = {Physics of Plasmas}, + number = {10}, + pages = {102112}, + publisher = {AIP}, + title = {A unified approach to the Darwin approximation}, + volume = {14}, + year = {2007}, + doi = {10.1063/1.2799346}, + eid = {102112}, + url = {http://link.aip.org/link/?PHP/14/102112/1}, +} + +@article{Eremin_2013, + author = {Denis Eremin and Torben Hemke and Ralf Peter Brinkmann and Thomas Mussenbrock}, + journal = {Journal of Physics D: Applied Physics}, + number = {8}, + pages = {084017}, + title = {Simulations of electromagnetic effects in high-frequency capacitively coupled discharges using the Darwin approximation}, + volume = {46}, + year = {2013}, + url = {http://stacks.iop.org/0022-3727/46/i=8/a=084017}, +} + +@article{Besse_2007, + author = {Besse, Nicolas and Mauser, Norbert and Sonnendrücker, Eric}, + journal = {International Journal of Applied Mathematics and Computer Science}, + month = oct, + number = 3, + pages = {361--374}, + title = {Numerical Approximation of Self-Consistent Vlasov Models for Low-Frequency Electromagnetic Phenomena}, + volume = 17, + year = 2007, + doi = {10.2478/v10006-007-0030-3}, + url = {http://dx.doi.org/10.2478/v10006-007-0030-3}, +} + +@article{Gitomer_1972, + author = {Gitomer,S. J. }, + doi = {10.1063/1.1693791}, + journal = {The Physics of Fluids}, + number = {10}, + pages = {1861-1863}, + title = {Numerical Simulation of the Harris Instability with Collisions}, + volume = {15}, + year = {1972}, +} + +@article{Xie_2014, + author = {Huasheng Xie and Jia Zhu and Zhiwei Ma}, + doi = {10.1088/0031-8949/89/10/105602}, + journal = {Physica Scripta}, + month = {aug}, + number = {10}, + pages = {105602}, + publisher = {{IOP} Publishing}, + title = {Darwin model in plasma physics revisited}, + volume = {89}, + year = 2014, +} + +@article{Birdsall_1968, + author = "Birdsall, Charles~K. and Fuss, Dieter", + journal = "Journal of Computational Physics", + number = "2", + pages = "141 - 148", + title = "Clouds-in-Clouds, Clouds-in-Cells Physics for Many-Body Plasma Simulation", + volume = "135", + year = "1968", + doi = "10.1006/jcph.1997.5723", + url = "http://www.sciencedirect.com/science/article/pii/S0021999197957235", + issn = "0021-9991", +} + +@article{Shadwick_2009, + author = {B. A. Shadwick and C. B. Schroeder}, + editor = {Carl B. Schroeder and Wim Leemans and Eric Esarey}, + title = {Physical Fidelity in Particle-In-Cell Modeling of Small Debye-Length Plasmas}, + publisher = {AIP}, + year = {2009}, + journal = {AIP Conference Proceedings}, + volume = {1086}, + number = {1}, + pages = {321-327}, + doi = {10.1063/1.3080926}, + url = {http://link.aip.org/link/?APC/1086/321/1}, +} + +@article{Kruer_1973, + author = "W.L Kruer and J.M Dawson and B Rosen", + journal = "Journal of Computational Physics", + number = "1", + pages = "114 - 129", + title = "The dipole expansion method for plasma simulation", + volume = "13", + year = "1973", + doi = "10.1016/0021-9991(73)90129-0", + issn = "0021-9991", + url = "http://www.sciencedirect.com/science/article/pii/0021999173901290", +} + +@article{Ruyten_1993, + author = "Wilhelmus M. Ruyten", + journal = "Journal of Computational Physics", + note = "", + number = "2", + pages = "224 -- 232", + title = "Density-Conserving Shape Factors for Particle Simulations in Cylindrical and Spherical Coordinates", + volume = "105", + year = "1993", + doi = "10.1006/jcph.1993.1070", + issn = "0021-9991", + url = "http://www.sciencedirect.com/science/article/pii/S0021999183710703", +} + +@article{Abe_1986, + author = "Hirotade Abe and Natsuhiko Sakairi and Ryohei Itatani and Hideo Okuda", + journal = "Journal of Computational Physics ", + number = "2", + pages = "247--267", + title = "High-order spline interpolations in the particle simulation ", + volume = "63", + year = "1986", + doi = "http://dx.doi.org/10.1016/0021-9991(86)90193-2", + issn = "0021--9991", +} + +@article{Munoz_2014, + author = {{Mu{\~n}oz}, P.~A. and {Kilian}, P. and {B{\"u}chner}, J.}, + journal = {Physics of Plasmas}, + month = nov, + number = 11, + pages = {112106}, + title = "{Instabilities of collisionless current sheets revisited: The role of anisotropic heating}", + volume = 21, + year = 2014, + doi = {10.1063/1.4901033}, +} + +@article{Langdon_1970, + author = "A.Bruce Langdon", + doi = "https://doi.org/10.1016/0021-9991(70)90024-0", + issn = "0021-9991", + journal = "Journal of Computational Physics", + number = "2", + pages = "247 - 267", + title = "Effects of the spatial grid in simulation plasmas", + url = "http://www.sciencedirect.com/science/article/pii/0021999170900240", + volume = "6", + year = "1970", +} + +@article{Horky_2017, + author = {Hork\'y, M. and Miloch, W. J. and Delong, V. A.}, + doi = {10.1103/PhysRevE.95.043302}, + issue = {4}, + journal = {Phys. Rev. E}, + month = {Apr}, + pages = {043302}, + publisher = {American Physical Society}, + title = {Numerical heating of electrons in particle-in-cell simulations of fully magnetized plasmas}, + url = {https://link.aps.org/doi/10.1103/PhysRevE.95.043302}, + volume = {95}, + year = {2017}, +} + +@article{Eastwood_1974, + author = "J.W Eastwood and R.W Hockney", + doi = "https://doi.org/10.1016/0021-9991(74)90044-8", + issn = "0021-9991", + journal = "Journal of Computational Physics", + number = "4", + pages = "342 - 359", + title = "Shaping the force law in two-dimensional particle-mesh models", + volume = "16", + year = "1974", +} + +@article{Matsuda_1975, + author = {Matsuda,Y. and Okuda,H. }, + doi = {10.1063/1.861092}, + journal = {The Physics of Fluids}, + number = {12}, + pages = {1740-1747}, + title = {Collisions in multi‐dimensional plasma simulations}, + url = {https://aip.scitation.org/doi/abs/10.1063/1.861092}, + volume = {18}, + year = {1975}, +} + +@article{Sokolov_2013, + author = "Igor V. Sokolov", + doi = "https://doi.org/10.1016/j.cpc.2012.09.015", + issn = "0010-4655", + journal = "Computer Physics Communications", + number = "2", + pages = "320 - 328", + title = "Alternating-order interpolation in a charge-conserving scheme for particle-in-cell simulations", + url = "http://www.sciencedirect.com/science/article/pii/S0010465512003013", + volume = "184", + year = "2013", +} + +@article{Bowers_2008, + author = {Bowers,K. J. and Albright,B. J. and Yin,L. and Bergen,B. and Kwan,T. J. T. }, + doi = {10.1063/1.2840133}, + journal = {Physics of Plasmas}, + number = {5}, + pages = {055703}, + title = {Ultrahigh performance three-dimensional electromagnetic relativistic kinetic plasma simulation}, + url = {https://doi.org/10.1063/1.2840133}, + volume = {15}, + year = {2008}, +} + +@inproceedings{Kilian_2013, + author = {{Kilian}, P. and {Ganse}, U. and {Spanier}, F.}, + booktitle = {Numerical Modeling of Space Plasma Flows (ASTRONUM2012)}, + editor = {{Pogorelov}, N.~V. and {Audit}, E. and {Zank}, G.~P.}, + month = apr, + pages = {208}, + series = {Astronomical Society of the Pacific Conference Series}, + title = "{Different Choices of the Form Factor in Particle-in-Cell Simulations}", + volume = 474, + year = 2013, +} + +@article{Wu_2018, + author = {Wu,Wentao and Qin,Hong }, + doi = {10.1063/1.5038039}, + journal = {Physics of Plasmas}, + number = {10}, + pages = {102107}, + title = {Reducing noise for PIC simulations using kernel density estimation algorithm}, + url = {https://doi.org/10.1063/1.5038039}, + volume = {25}, + year = {2018}, +} + +@inproceedings{Boris_1970, + address = "Washington DC", + author = "J. P. Boris", + booktitle = "Proceedings of the Fourth Conference on the Numerical Simulation of Plasmas, Washington DC", + editor = "J. Boris and R. Shanny", + pages = "3--67", + publisher = "Naval Research Laboratory", + title = "Relativistic Plasma Simulation---Optimization of a Hybrid Code", + year = "1970", +} + +@article{Vay_2008, + author = {{Vay}, {J.-L.}}, + journal = {Physics of Plasmas}, + month = may, + number = 5, + pages = {056701-+}, + title = {Simulation of beams or plasmas crossing at relativistic velocity}, + volume = 15, + year = 2008, + doi = {10.1063/1.2837054}, +} + +@article{Hyman_1997, + author = {Hyman,Andrew T. }, + doi = {10.1119/1.18529}, + journal = {American Journal of Physics}, + number = {3}, + pages = {195-198}, + title = {Relativistic charged-particle motion in a constant field according to the Lorentz force law}, + url = {https://doi.org/10.1119/1.18529}, + volume = {65}, + year = {1997}, +} + +@article{Umeda_2018, + author = "Takayuki Umeda", + doi = "https://doi.org/10.1016/j.cpc.2018.03.019", + issn = "0010-4655", + journal = "Computer Physics Communications", + pages = "1 - 4", + title = "A three-step Boris integrator for Lorentz force equation of charged particles", + volume = "228", + year = "2018", +} + +@article{Ripperda_2018, + author = {B. Ripperda and F. Bacchini and J. Teunissen and C. Xia and O. Porth and L. Sironi and G. Lapenta and R. Keppens}, + doi = {10.3847/1538-4365/aab114}, + journal = {The Astrophysical Journal Supplement Series}, + month = {mar}, + number = {1}, + pages = {21}, + publisher = {American Astronomical Society}, + title = {A Comprehensive Comparison of Relativistic Particle Integrators}, + volume = {235}, + year = 2018, +} + +@article{Zenitani_2018, + author = {Zenitani,Seiji and Umeda,Takayuki}, + doi = {10.1063/1.5051077}, + journal = {Physics of Plasmas}, + number = {11}, + pages = {112110}, + title = {On the Boris solver in particle-in-cell simulation}, + url = {https://doi.org/10.1063/1.5051077}, + volume = {25}, + year = {2018}, +} + +@article{Higuera_2017, + author = {Higuera,A. V. and Cary,J. R. }, + doi = {10.1063/1.4979989}, + journal = {Physics of Plasmas}, + number = {5}, + pages = {052104}, + title = {Structure-preserving second-order integration of relativistic charged particle trajectories in electromagnetic fields}, + url = {https://doi.org/10.1063/1.4979989}, + volume = {24}, + year = {2017}, +} + +@article{Marder_1987, + author = {{Marder}, B.}, + journal = {Journal of Computational Physics}, + month = jan, + pages = {48}, + title = "{A Method for Incorporating Gauss' Law into Electromagnetic PIC Codes}", + volume = 68, + year = 1987, + doi = {10.1016/0021-9991(87)90043-X}, +} + +@article{Villasenor_1992, + author = "John Villasenor and Oscar Buneman", + doi = "10.1016/0010-4655(92)90169-Y", + journal = "Computer Physics Communications", + number = "2--3", + pages = "306 -- 316", + title = "Rigorous charge conservation for local electromagnetic field solvers", + volume = "69", + year = "1992", + issn = "0010-4655", +} + +@article{Esirkepov_2001, + author = {T. Zh. Esirkepov}, + journal = {Computer Physics Communications}, + number = 2, + pages = {144 - 153}, + title = {Exact charge conservation scheme for Particle-in-Cell simulation with an arbitrary form-factor}, + volume = 135, + year = 2001, + doi = {10.1016/S0010-4655(00)00228-9}, + issn = {0010-4655}, +} + +@article{Umeda_2003, + author = "T Umeda and Y Omura and T Tominaga and H Matsumoto", + journal = "Computer Physics Communications", + note = "", + number = "1", + pages = "73 - 85", + title = "A new charge conservation method in electromagnetic particle-in-cell simulations", + volume = "156", + year = "2003", + doi = "10.1016/S0010-4655(03)00437-5", + issn = "0010-4655", + url = "http://www.sciencedirect.com/science/article/pii/S0010465503004375", +} + +@article{Moon_2015, + author = "Haksu Moon and Fernando L. Teixeira and Yuri A. Omelchenko", + doi = "https://doi.org/10.1016/j.cpc.2015.04.014", + issn = "0010-4655", + journal = "Computer Physics Communications", + pages = "43 - 53", + title = "Exact charge-conserving scatter–gather algorithm for particle-in-cell simulations on unstructured grids: A geometric perspective", + url = "http://www.sciencedirect.com/science/article/pii/S0010465515001460", + volume = "194", + year = "2015", +} + +@article{Eastwood_1991, + author = "James W. Eastwood", + doi = "https://doi.org/10.1016/0010-4655(91)90036-K", + issn = "0010-4655", + journal = "Computer Physics Communications", + number = "2", + pages = "252 - 266", + title = "The virtual particle electromagnetic particle-mesh method", + volume = "64", + year = "1991", +} + +@article{Halton_1964, + author = {Halton, J. H.}, + title = {Algorithm 247: Radical-inverse quasi-random point sequence}, + journal = {Commun. ACM}, + volume = {7}, + number = {12}, + month = dec, + year = {1964}, + pages = {701--702}, + doi = {10.1145/355588.365104}, + publisher = {ACM}, + address = {New York, NY, USA}, + issn = {0001-0782}, + url = {http://doi.acm.org/10.1145/355588.365104}, +} + +@article{Byers_1970, + author = {Jack A. Byers and Mahesh Grewal}, + journal = {Physics of Fluids}, + number = {7}, + pages = {1819-1830}, + publisher = {AIP}, + title = {Perpendicularly Propagating Plasma Cyclotron Instabilities Simulated with a One-Dimensional Computer Model}, + volume = {13}, + year = {1970}, + doi = {10.1063/1.1693160}, + url = {http://link.aip.org/link/?PFL/13/1819/1}, +} + +@article{Melzani_2013, + author = {{Melzani}, Micka{\"e}l and {Winisdoerffer}, Christophe and + {Walder}, Rolf and {Folini}, Doris and {Favre}, Jean M. and + {Krastanov}, Stefan and {Messmer}, Peter}, + doi = {10.1051/0004-6361/201321557}, + journal = {Astronomy and Astrophysics}, + month = "Oct", + pages = {A133}, + title = "{Apar-T: code, validation, and physical interpretation of particle-in-cell results}", + year = "2013", + volume = {558}, +} + +@article{Zenitani_2015, + author = {Zenitani,Seiji}, + doi = {10.1063/1.4919383}, + journal = {Physics of Plasmas}, + number = {4}, + pages = {042116}, + title = {Loading relativistic Maxwell distributions in particle simulations}, + volume = {22}, + year = {2015}, +} + +@article{Cartwright_2000, + author = "K.L. Cartwright and J.P. Verboncoeur and C.K. Birdsall", + journal = "Journal of Computational Physics", + number = "2", + pages = "483--513", + title = "Loading and Injection of Maxwellian Distributions in Particle Simulations ", + volume = "162", + year = "2000", + doi = "http://dx.doi.org/10.1006/jcph.2000.6549", + issn = "0021-9991", + url = "http://www.sciencedirect.com/science/article/pii/S0021999100965495", +} + +@article{Lapenta_1994, + author = {Giovanni Lapenta and Jeremiah U. Brackbill}, + journal = {Journal of Computational Physics }, + number = {1}, + pages = {213 - 227}, + title = {Dynamic and Selective Control of the Number of Particles in Kinetic Plasma Simulations }, + volume = {115}, + year = {1994}, + doi = {10.1006/jcph.1994.1188}, + issn = {0021-9991}, + url = {http://www.sciencedirect.com/science/article/pii/S0021999184711880}, +} + +@article{Shon_2001, + author = "C.H. Shon and H.J. Lee and J.K. Lee", + journal = "Computer Physics Communications ", + number = "3", + pages = "322 - 329", + title = "Method to increase the simulation speed of particle-in-cell (PIC) code ", + volume = "141", + year = "2001", + doi = "10.1016/S0010-4655(01)00417-9", + issn = "0010-4655", + url = "http://www.sciencedirect.com/science/article/pii/S0010465501004179", +} + +@article{Welch_2007, + author = "D.R. Welch and T.C. Genoni and R.E. Clark and D.V. Rose", + journal = "Journal of Computational Physics ", + number = "1", + pages = "143 - 155", + title = "Adaptive particle management in a particle-in-cell code ", + volume = "227", + year = "2007", + doi = "10.1016/j.jcp.2007.07.015", + issn = "0021-9991", + url = "http://www.sciencedirect.com/science/article/pii/S0021999107003245", +} + +@article{Faghihi_2017, + author = {{Faghihi}, Danial and {Carey}, Varis and {Michoski}, Craig and + {Hager}, Robert and {Janhunen}, Salomon and {Chang}, Choong-Seock and + {Moser}, Robert}, + title = "{Moment Preserving Constrained Resampling with Applications to Particle-in-Cell Methods}", + journal = {arXiv e-prints}, + keywords = {Physics - Plasma Physics}, + year = "2017", + month = "Feb", + eid = {arXiv:1702.05198}, + pages = {arXiv:1702.05198}, +archivePrefix = {arXiv}, + eprint = {1702.05198}, + primaryClass = {physics.plasm-ph}, +} + +@inproceedings{Martin_2012, + address = {Zaragoza, Spain}, + author = {Martin, {Robert Scott} and Cambier, Jean-Luc}, + booktitle = {28th International Symposium on Rarefied Gas Dynamics}, + month = {9 -- 13 July}, + publisher = {AIP Publishing}, + series = {AIP Conference Proceedings}, + title = {Moment preserving adaptive particle weights using octree velocity distributions for PIC simulations}, + year = {2012}, + doi = {10.1063/1.4769634}, + page = {872--879}, +} + +@article{Vranic_2015, + author = "M. Vranic and T. Grismayer and J.L. Martins and R.A. Fonseca and L.O. Silva", + doi = "https://doi.org/10.1016/j.cpc.2015.01.020", + issn = "0010-4655", + journal = "Computer Physics Communications", + pages = "65 - 73", + title = "Particle merging algorithm for PIC codes", + url = "http://www.sciencedirect.com/science/article/pii/S0010465515000405", + volume = "191", + year = "2015", +} + +@article{Drouin_2018, + author = {{Drouin}, Mathieu}, + title = "{An exact particle splitting algorithm for PIC codes}", + journal = {arXiv e-prints}, + keywords = {Physics - Computational Physics}, + year = "2018", + month = "May", + eid = {arXiv:1805.06540}, + pages = {arXiv:1805.06540}, +archivePrefix = {arXiv}, + eprint = {1805.06540}, + primaryClass = {physics.comp-ph}, +} + +@article{Bruhwiler_2001, + author = {Bruhwiler, David and Giacone, Rodolfo and Cary, John and Verboncoeur, John and Mardahl, Peter and Esarey, Eric and Leemans, W and Shadwick, B}, + journal = {Physical Review Special Topics Accelerators and Beams}, + number = {10}, + pages = {1--13}, + publisher = {American Physical Society}, + title = {Particle-in-cell simulations of plasma accelerators and electron-neutral collisions}, + volume = {4}, + year = {2001}, +} + +@article{Liao_1984, + author = {{Liao}, Z. P. and {Wong}, H. L. and {Yang}, B. P. and {Yuan}, Y. F.}, + journal = "Scienta Sinica (series A)", + pages = "1063 -- 1076", + title = "A transmitting boundary for transient wave analyses", + volume = "17", + year = "1984", +} + +@book{Taflove_2000, + address = {Boston, London}, + author = {{Taflove}, Allan and {Hagness}, Susan C.}, + edition = {2}, + publisher = {Artech House, Inc.}, + title = {Computational Electrodynamics: The Finite-Differences Time-Domain Method}, + year = {2000}, + isbn = {1-58053-076-1}, +} + +@article{Berenger_1994, + author = {Berenger, Jean-Pierre}, + journal = {Journal of Computational Physics}, + number = {2}, + pages = {185--200}, + title = {A Perfectly Matched Layer for the Absorption of Electromagnetic-Waves}, + volume = {114}, + year = {1994}, +} +@article{Berenger_2007, + author = {Berenger, Jean-Pierre}, + journal = {Synthesis Lectures on Computational Electromagnetics}, + number = {1}, + pages = {1-117}, + title = {Perfectly Matched Layer (PML) for Computational Electromagnetics}, + volume = {2}, + year = {2007}, + doi = {10.2200/S00030ED1V01Y200605CEM008}, +} +@article{Daughton_2006, + author = "Daughton, William and Scudder, Jack and Karimabadi, Homa", + journal = "Physics of Plasmas", + number = "7", + title = "Fully kinetic simulations of undriven magnetic reconnection with open boundary conditions", + volume = "13", + year = "2006", + eid = 072101, + doi = "http://dx.doi.org/10.1063/1.2218817" +} +@article{Klimas_2008, + author = {{Klimas}, A. and {Hesse}, M. and {Zenitani}, S.}, + journal = {Physics of Plasmas}, + month = aug, + number = 8, + pages = {082102}, + title = "{Particle-in-cell simulation of collisionless reconnection with open outflow boundaries}", + volume = 15, + year = 2008, + doi = {10.1063/1.2965826}, +} + +@article{Mur_1981, + author = {Mur, Gerrit}, + journal = {IEEE transactions on Electromagnetic Compatibility}, + number = {4}, + pages = {377--382}, + publisher = {IEEE}, + title = {Absorbing boundary conditions for the finite-difference approximation of the time-domain electromagnetic-field equations}, + year = {1981}, +} + +@article{Pasik_1999, + author = "Michael F Pasik and David B Seidel and Raymond W Lemke", + doi = "https://doi.org/10.1006/jcph.1998.6107", + issn = "0021-9991", + journal = "Journal of Computational Physics", + number = "1", + pages = "125 - 132", + title = "A Modified Perfectly Matched Layer Implementation for Use in Electromagnetic PIC Codes", + volume = "148", + year = "1999", +} + +@article{Ohtani_2009, + author = {Hiroaki Ohtani and Ritoku Horiuchi}, + doi = {10.1585/pfr.4.024}, + journal = {Plasma and Fusion Research}, + number = { }, + pages = {024-024}, + title = {Open Boundary Condition for Particle Simulation in Magnetic Reconnection Research}, + volume = {4}, + year = {2009}, +} + +@article{Thiele_2016, + author = "Illia Thiele and Stefan Skupin and Rachel Nuter", + doi = "https://doi.org/10.1016/j.jcp.2016.06.004", + issn = "0021-9991", + journal = "Journal of Computational Physics", + pages = "1110 - 1119", + title = "Boundary conditions for arbitrarily shaped and tightly focused laser pulses in electromagnetic codes", + volume = "321", + year = "2016", +} + +@Article{Perez_2018, + author = {{P{\'e}rez}, Fr{\'e}d{\'e}ric and {Grech}, Mickael}, + title = "{Oblique-incidence, arbitrary-profile wave injection for electromagnetic simulations}", + journal = {arXiv e-prints}, + keywords = {Physics - Computational Physics}, + year = "2018", + month = "Sep", + eid = {arXiv:1809.04435}, + pages = {arXiv:1809.04435}, +archivePrefix = {arXiv}, + eprint = {1809.04435}, + primaryClass = {physics.comp-ph}, +} + +@article{Kilian_2018, + author = "Patrick Kilian and Felix Spanier", + doi = "https://doi.org/10.1016/j.jcp.2017.10.012", + issn = "0021-9991", + journal = "Journal of Computational Physics", + pages = "258 - 263", + title = "Simulating the injection of magnetized plasma without electromagnetic precursor wave", + volume = "353", + year = "2018", +} diff --git a/theory.tex b/theory.tex index 5ede590..62c747a 100644 --- a/theory.tex +++ b/theory.tex @@ -5,7 +5,7 @@ The definition of a plasma as a quasi-neutral gas with collective behavior covers a wide range of very different physical scenarios. The number of mathematical and numerical descriptions is accordingly very large. An important point for the distinction of plasma behavior is the collisionality: In the limit of very high collision frequencies the plasma is mostly described as fluid. The opposite limit of no collisions at all is the kinetic regime. The adequate description for this regime is a single particle description. -A kinetic plasma could be described by taking all plasma particles and their pairwise forces into account (this would equal an N-body code). This approach is however neither feasible nor sensible: The number of particles is extremely large and the runtime with $N$ particles is $O(N^2)$ at worst or $O(N \log N)$ at best. +A kinetic plasma could be described by taking all plasma particles and their pairwise forces into account (this would equal an N-body code). This approach is however neither feasible nor sensible: The number of particles is extremely large and the runtime with $N$ particles is $\mathcal{O}(N^2)$ at worst or $\mathcal{O}(N \log N)$ at best. The Particle-in-Cell (PiC) approach avoids the use of particle-particle forces and their inherent computational need. Instead the interaction of particles with the electromagnetic field generated by moving charges is considered. Also not single particles, but particle bunches are used.