Small fixes. 39 pages
This commit is contained in:
+14
-17
@@ -3,21 +3,21 @@
|
||||
\label{subsec:instability}
|
||||
|
||||
|
||||
One of the key applications for PiC codes is the study of instabilites. The wide range of kinetic instabilites includes but is not limited to cases with non-Maxwellian distribution functions, counter-streaming plasmas or currents in plasmas.
|
||||
One of the key applications for PiC codes is the study of instabilities. The wide range of kinetic instabilities includes but is not limited to cases with non-Maxwellian distribution functions, counter-streaming plasmas or currents in plasmas.
|
||||
|
||||
PiC simulations of plasma instabilities date back to the early 70s \cite{1971PhFl...14..830M}
|
||||
% Morse_1971.pdf electromagnetic 2d simulation of weibel instability in fields and potentials
|
||||
where a prime example of a purely kinetic instability has been analyzed: the Weibel instability. As it turns out a very large number of distinct instabilities can be found in kinetic plasmas. The fact that different instabilities can occur simultaneously in one plasma
|
||||
% Morse_1971.pdf electromagnetic 2d simulation of Weibel instability in fields and potentials
|
||||
where a prime example of a purely kinetic instability has been analyzed: the Weibel instability. As it turns out a very large number of distinct instabilities can be found in kinetic plasmas. The fact that different instabilities can occur simultaneously in one plasma
|
||||
\cite{2009ApJ...699..990B}
|
||||
% Bret_2009.pdf competing weibel, two-stream, filamentaion, bell, buneman instabilities
|
||||
is an important reason to use numerical experiments to study them. The complicated interplay of the instabilities and the late-time nonlinear behavior cannot be understood from analytical calculations. The reader is referred to
|
||||
% Bret_2009.pdf competing Weibel, two-stream, filamentation, bell, Buneman instabilities
|
||||
is an important reason to use numerical experiments to study them. The complicated interplay of the instabilities and the late-time nonlinear behavior cannot be understood from analytical calculations. The reader is referred to
|
||||
\cite{2010LPB....28..491B}
|
||||
% Bret_2010.pdf review of beam-plasma instabilities
|
||||
for a very detailed overview of instabilities (more specifically beam-plasma instabilities).
|
||||
|
||||
%Theorie: Was ist eine Wachstumsrate? PiC kann nicht nur den linearen Teil
|
||||
|
||||
The classical approach to plasma instabilities is described in-depth in Chapter 11 of \cite{2002cra..book.....S}: For a given configuration of the distribution function the dielectricity tensor of the plasma can be evaluated and the dispersion relation for that plasma configuration can be solved. This typically yields solutions of the form
|
||||
The classical approach to plasma instabilities is described in-depth in Chapter 11 of \cite{2002cra..book.....S}: For a given configuration of the distribution function the dielectric tensor of the plasma can be evaluated and the dispersion relation for that plasma configuration can be solved. This typically yields solutions of the form
|
||||
\begin{align}
|
||||
\omega (\vec k) = \omega_R (\vec k) + i \gamma(\vec k)
|
||||
\end{align}
|
||||
@@ -47,7 +47,7 @@ Analytic theory can answer the question how fast a given mode of the plasma is g
|
||||
|
||||
The first step in simulating instabilities is the initialization of the plasma configuration. Following the description in section \ref{subsec:num:init} particles will be injected. For simple scenarios like counter-streaming plasmas with identical densities this is a simple task. More involved cases are e.g. cosmic-ray induced instabilities with high density contrasts. In order to accommodate high contrast very high particle numbers can be used (which discouraged by the computational cost) or the weight of macroparticles has to be changed.
|
||||
|
||||
Care has to be taken also for instabilities caused by spatial inhomogenities: As the number of particles per cell at the point of lowest density should fulfill the minimal criteria for numerical stability, which in turn requires again either higher particle numbers or different particle weights in regions with higher density.
|
||||
Care has to be taken also for instabilities caused by spatial inhomogeneities: As the number of particles per cell at the point of lowest density should fulfill the minimal criteria for numerical stability, which in turn requires again either higher particle numbers or different particle weights in regions with higher density.
|
||||
|
||||
%%Bedingungen für Größe/Auflösung
|
||||
%%Veränderte
|
||||
@@ -55,7 +55,7 @@ Care has to be taken also for instabilities caused by spatial inhomogenities: As
|
||||
A more important question is the correct resolution and size of the simulation. It is self-evident that the cell size has to resolve the Debye length, on the other hand the total size of the simulation has to be large enough to contain the waves or structures that are excited. %This of course requires prior knowledge about the expected position of the instability in $k$-space from a analytical viewpoint - even if it is only approximate.
|
||||
This yields a minimal size $L_\text{min} \geq 2\pi / k_\text{max}$, where $k_\text{max}$ is the wave number, where the maximum growth of an instability is expected. It has been argued \cite{2017ApJ...848...81S} that it is not sufficient to resolve $k_\text{max}$ but that it is necessary to resolve the width of the peak of the damping function $\gamma(k)$.
|
||||
|
||||
For most astrophysical plasmas the necessary cell number is typically very large. Combined with the fact that growth rates are often very low compared to the plasma frequency $\omega_\text{pe}$ this yields typically rather long simulation times - usually beyond the computational possible. In almost all simulations other parameters are altered to produce computationally viable, but still meaningful simulations. One of the most commonly used techniques is changing the mass ratio of protons and electrons. This reduces the time needed to see ion motion and therefore produces shorter simulations. Unfortunately not all physical effects scale in the same way with the electron proton mass ratio. It is advisable to examine the dependence of growth rates on the mass ratio closely \cite{2010ApJ...720.1318B,2018PhPl...25f2125M}. As a rule of thumb the change of mass ratio should not change the ordering of proton and electron gyro- and plasmafrequencies.
|
||||
For most astrophysical plasmas the necessary cell number is typically very large. Combined with the fact that growth rates are often very low compared to the plasma frequency $\omega_\text{pe}$ this yields typically rather long simulation times - usually beyond what is possible. In almost all simulations other parameters are altered to produce computationally viable, but still meaningful simulations. One of the most commonly used techniques is changing the mass ratio of protons and electrons. This reduces the time needed to see ion motion and therefore produces shorter simulations. Unfortunately not all physical effects scale in the same way with the electron proton mass ratio. It is advisable to examine the dependence of growth rates on the mass ratio closely \cite{2010ApJ...720.1318B,2018PhPl...25f2125M}. As a rule of thumb the change of mass ratio should not change the ordering of proton and electron gyro- and plasma frequencies.
|
||||
|
||||
% Burkart_2010.pdf first acronym reference, mass ratio in filamentation instability
|
||||
% Moreno_2018.pdf influence of mass ratio on instability growth times
|
||||
@@ -72,14 +72,11 @@ For most astrophysical plasmas the necessary cell number is typically very large
|
||||
Based on the output described in Sec.~\ref{subsec:num:diag} there are various ways to find instabilities in the simulation data. The primary hint for the existence of an instability is the rise of particle or electromagnetic energy. %Unfortunately this is not by any means a definite signal.
|
||||
In order to detect and distinguish different instabilities it is inevitable to use Fourier transforms of the electromagnetic field data. The following recipe has proven itself to be very helpful
|
||||
\begin{enumerate}
|
||||
%\item Project electromagnetic field data to the transversal magnetic field and longitudinal as well transversal electric field
|
||||
\item Consider the transverse magnetic field as well as the curl-free longitudinal and divergence-free transverse components of the electric field.
|
||||
%\item Plot the above fields in two dimensions (either the simulation is two dimensional or two plots with both directions perpendicular to the mean magnetic field or one perpendicular and one parallel direction have to performed)
|
||||
\item Plot the energy density of these fields in the 2d-dimensional Fourier domain. If the simulation was done in 3d, plot both the plane of $k_\parallel-k_\perp$ as well as the plane with both directions perpendicular to the mean magnetic field.
|
||||
%\item The energy plot gives a hint on which time scale changes happen in the simulation, the above plots should be produced for these characteristic time scales
|
||||
\item The energy plot give a hint at which points in time large changes happen in the simulation. For each of these times the spectrum of fluctuations should be plotted and examined separately.
|
||||
\end{enumerate}
|
||||
Following this recipe will provide an increase of energy as a function of the position in $k$-space. Together with the information whether this is an transversal or longitudinal instability it should be possible to compare with theoretical predictions. By plotting field energy in e.g. longitudinal and transversal electric field at a given wavenumber $\vec k$ over time yields the growth rate.
|
||||
Following this recipe will provide an increase of energy as a function of the position in $k$-space. Together with the information whether this is an transverse or longitudinal instability it should be possible to compare with theoretical predictions. By plotting field energy in e.g. longitudinal and transverse electric field at a given wavenumber $\vec k$ over time yields the growth rate.
|
||||
|
||||
As the simulations resemble the realistic, nonlinear behavior of the instability a comparison of growth rates with analytical theory is only possible for small times, where the instability is still in the linear regime.
|
||||
|
||||
@@ -88,12 +85,12 @@ An illustrative example is the instability caused by pair beams originating from
|
||||
The simulations \cite{2014ApJ...787...49S} and \cite{2016A&A...585A.132K} show different approaches to adjusting physical parameters for a feasible simulation. While the simulations of Sironi et al. focus on achieving very high Lorentz factors for the beam, the simulations of Kempf et al. try to resemble the energy ratio of the beam to the background. Both simulations have in common that neither the real density contrast nor the Lorentz factor of the beam can be resembled.
|
||||
|
||||
% Due to the high Lorentz factors of the beam measures have to be taken, to avoid purely numerical instabilities. In this case a Friedmann filter has been used \cite{Greenwood_2004}.
|
||||
% A necessary prerequisite for the use of such a filter is that the interesting physical effects occur in the low $k$ regime as the Friedmann filter dampens electromagnetic fields in the high $k$ regime, where the numerical cerenkow instability occurs.
|
||||
% A necessary prerequisite for the use of such a filter is that the interesting physical effects occur in the low $k$ regime as the Friedmann filter dampens electromagnetic fields in the high $k$ regime, where the numerical Cerenkov instability occurs.
|
||||
|
||||
In the further course of the simulations two parameters have been defined: The mass density ratio $\alpha$ between jet and background, as well as the the energy density ratio $\epsilon$
|
||||
In the further course of the simulations two parameters have been defined: The mass density ratio $\alpha$ between jet and background, as well as the energy density ratio $\epsilon$
|
||||
between jet and background. The physics case prompts for extremely small values of $\alpha$ and $\epsilon$ values well below one. An interesting test case is the $\epsilon=1,\ \gamma=50$ case, because it illustrates rather well the onset of the change of the distribution function that is one source of nonlinear development of the instability.
|
||||
|
||||
In Fig. \ref{fig:e1g50-energy} the electric field energy plotted over time is used as primary marker for the instability. The time is normalized to inverse plasma timescales (a sensible approach, when the relevant times are not depending on the magnetic field). During the first 500 inverse plasma timescales a sharp increase is seen, which is associated with the electrostatic instability. The growth rate decreases then considerably until at around 3000 inverse plasma timscales a further rise (associated presumably with the Weibel instability).
|
||||
In Fig. \ref{fig:e1g50-energy} the electric field energy plotted over time is used as primary marker for the instability. The time is normalized to inverse plasma timescales (a sensible approach, when the relevant times are not depending on the magnetic field). During the first 500 inverse plasma timescales a sharp increase is seen, which is associated with the electrostatic instability. The growth rate decreases then considerably until at around 3000 inverse plasma time scales a further rise (associated presumably with the Weibel instability).
|
||||
|
||||
% \begin{figure}
|
||||
% \includegraphics[width=0.9\columnwidth]{figure/application/energy}
|
||||
@@ -157,6 +154,6 @@ When observing the change of the distribution function as outlined in Fig. \ref{
|
||||
% \label{fig:e1g50-histo}
|
||||
% \end{figure}
|
||||
|
||||
It is interesting to note that a clear nonlinear behaviour can be observed even when the distribution function does not drastically change over time. The root cause for this is the possible nonlinear interaction of waves and structures excited by the instability itself. In lowest order this would be three-wave interaction that can easily occur.
|
||||
It is interesting to note that a clear nonlinear behavior can be observed even when the distribution function does not drastically change over time. The root cause for this is the possible nonlinear interaction of waves and structures excited by the instability itself. In lowest order this would be three-wave interaction that can easily occur.
|
||||
|
||||
In a longer parameter study of this instability it could be shown that the size of the simulation box has in fact an effect on the instability: It is a good practise to run such simualations at double resolution to see whether at least the energy gain converges.
|
||||
In a longer parameter study of this instability it could be shown that the size of the simulation box has in fact an effect on the instability: It is a good practice to run such simulations at double resolution to see whether at least the energy gain converges.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
%Die Welt will kinetische Plasmaphysik
|
||||
|
||||
It has become a common lore that the universe consists to 99\% of plasma. While this statement is overly generalized and somewhat misleading, it has to be noted that interplanetary, interstellar, and intergalactic medium are in plasma state and all interesting sources in space and astrophysics are also dominated by plasmas. It should be noted however that all these plasmas are to some degree ``nonthermal'', i.e., their particle distribution has a seizable fraction of particles beyond the Maxwell distribution.
|
||||
It has become a common lore that the universe consists to 99\% of plasma. While this statement is overly generalized and somewhat misleading, it has to be noted that interplanetary, interstellar, and intergalactic medium are in plasma state and all interesting sources in space and astrophysics are also dominated by plasmas. It should be noted however that all these plasmas are to some degree ``nonthermal'', i.e., their particle distribution has a sizable fraction of particles beyond the Maxwell distribution.
|
||||
|
||||
While plasmas with a nonthermal component could be described using numerical standard techniques for hyperbolic conservation laws, the so-called Particle-in-Cell (PiC) technique has become the standard technique for many plasma simulations.
|
||||
|
||||
@@ -12,4 +12,4 @@ This chapter shall give a brief introduction in to the physics of kinetic plasma
|
||||
|
||||
%Tolle Computer machen tolle Simulationen
|
||||
|
||||
%Sinn des Kapitels
|
||||
%Sinn des Kapitels
|
||||
|
||||
@@ -71,12 +71,12 @@
|
||||
\abstract{This chapter will introduce the Particle-in-Cell method, that
|
||||
connects Eulerian field quantities on a grid with the Lagrangian description of
|
||||
freely moving particles to simulate the evolution of a collisionless plasma. We
|
||||
motivate this description based on the Klimontovitch and Maxwell equations and,
|
||||
motivate this description based on the Klimontovich and Maxwell equations and,
|
||||
before explaining the basic building block in a numerical implementation.
|
||||
Advanced methods and their tradeoffs are mentioned and good references that
|
||||
Advanced methods and their trade-offs are mentioned and good references that
|
||||
contain explanations of implementation details are referenced. The chapter
|
||||
closes with an (incomplete) list of applications for which Particle-in-Cell
|
||||
codes have sucessfully been used.}
|
||||
codes have successfully been used.}
|
||||
|
||||
%\include{intro}
|
||||
|
||||
|
||||
+113
-106
@@ -5,14 +5,14 @@ description of phase space samples represented as macro particles coupled to
|
||||
electromagnetic fields described in an Eulerian way on a grid. Connecting the
|
||||
two parts correctly is crucial 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.
|
||||
fields on the grid for one time step. The simulation grid can resolve one, two or three dimensions, but typically vector quantities such as fields vectors or particle velocities retain all three components.
|
||||
|
||||
\subsection{Field Solvers}
|
||||
\label{sec:num:field}
|
||||
This subsection discusses how electromagnetic fields are calculated from
|
||||
source terms (moments of the distribution function of all charged particle
|
||||
This subsection discusses how electromagnetic fields are calculated from
|
||||
source terms (moments of the distribution function of all charged particle
|
||||
species). The source are assumed to be known on a uniform grid of rectangular
|
||||
cells. How the source terms are calculated is discussed in section
|
||||
cells. How the source terms are calculated is discussed in section
|
||||
\ref{subsec:num:depostion}. Non-rectangular grids are discussed in the
|
||||
review \cite{Meierbachtol_2015}.
|
||||
|
||||
@@ -33,7 +33,7 @@ given by the Yee lattice described in \cite{Yee_1966}. Component of the
|
||||
electric field $E_i$ are located at the mid points of edges pointing in
|
||||
coordinate direction $x_i$ whereas magnetic flux components $B_i$ are located
|
||||
at the center of cell phases with have normal vectors pointing in direction
|
||||
$x_i$.
|
||||
$x_i$, as shown in Figure~\ref{fig:num:rot_yee}.
|
||||
%In principle the two dual subgrids could be interchanged, but this
|
||||
%arrangement neatly follows the view of electromagnetism as a discrete exterior
|
||||
%calculus, where the electric field is a one-form that naturally lives on cell
|
||||
@@ -59,13 +59,14 @@ and $\vec{B}$.
|
||||
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
|
||||
monopoles is mostly relevant as an initial condition. Faraday's Law and Ampere's
|
||||
law can be rewritten as evolution equations:
|
||||
\begin{align}
|
||||
\frac{\partial \vec{B}}{\partial t} &= -c \, \nabla \times \vec{E} \label{eq:num:Bevolution} \\
|
||||
\frac{\partial \vec{E}}{\partial t} &= \phantom{-} c \nabla \times \vec{B} - \frac{4 \pi}{c} \vec{\jmath} \label{eq:num:Eevolution}
|
||||
\end{align}
|
||||
This implies that the curl of the electric field does not have to be known at
|
||||
The time evolution given by these equations will not violate Eqs.~\eqref{eq:num:gauss} and \eqref{eq:num:monopol} if they were satisfied initially.
|
||||
Eqs.~\eqref{eq:num:Bevolution} and \eqref{eq:num:Eevolution} implie 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.
|
||||
|
||||
@@ -118,14 +119,16 @@ magnetic field.
|
||||
%%values of the field components are naturally integers.
|
||||
%%
|
||||
|
||||
The classical solution to store electric and magnetic fields on the grids that yields the curl of the fields at the required position is the Yee grid. Here e.g. $B_y$ is stored at cell face $(i+1/2,j,k+1/2)$, while $E_y$ is stored at $(i,j+1/2,k)$. Not only does this process result in curls calculated at the correct position without interpolation, but the curl is calculated in second order immediately.
|
||||
The classical solution to store electric and magnetic fields on the grids that yields the curl of the fields at the required position is the Yee grid. Here e.g. $B_y$ is stored at cell face $(i+1/2,j,k+1/2)$, while $E_y$ is stored at $(i,j+1/2,k)$\footnote{The grid cells have edge length $\Delta{x}$, $\Delta{y}, \Delta{z}$ and any position can be given as $\vec{x} = \left(i\cdot\Delta{x}, j\cdot\Delta{y}, k\cdot\Delta{z}\right)$.}. Not only does this process result in curls calculated at the correct position without interpolation, but the curl is calculated in second order immediately.
|
||||
|
||||
The temporal derivative in Eqs.~\eqref{eq:num:Bevolution} and \eqref{eq:num:Eevolution} can be solved using the second-order spatial derivatives. The customary
|
||||
solution is to leap-frog the fields, i.e. use the curl of the electric field at
|
||||
time $t\Delta{t}$ to update the magnetic field from time $(t-1/2)\Delta{t}$ to
|
||||
$(t+1/2)\Delta{t}$ and then use the curl of the magnetic field at that time to
|
||||
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
|
||||
also second order accurate in time. The timestep $\Delta{t}$ can not be larger than the CFL limit $\Delta{t} < \sqrt{\Delta{x}^2 + \Delta{y}^2 + \Delta{z}^2} / c$ to avoid instability.
|
||||
|
||||
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
|
||||
@@ -163,7 +166,7 @@ This solver is the most common method and is accurate to second order with respe
|
||||
|
||||
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
|
||||
is the Numerical Cherenkov Instability (NCI). This long known instability (see
|
||||
\cite{Godfrey_1974}) occurs 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 vacuum value and particle can
|
||||
@@ -265,7 +268,7 @@ for a narrow range of frequencies propagating on the grid. Subsequently
|
||||
Fig.\ref{fig:num:rot_ck} illustrates all the grid locations that are used in this
|
||||
family of schemes. Choosing different relative weights between the different
|
||||
grid locations allows to tune for different optimization goals. An overview is
|
||||
given in \cite{Vay_2011}.
|
||||
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.
|
||||
|
||||
%%Das ist fast eine halbe Seite an Referenzen, die sich daraus ergeben...
|
||||
@@ -282,13 +285,13 @@ given in \cite{Vay_2011}.
|
||||
% Blinne_2018.pdf optimized FTDT stencils
|
||||
|
||||
A different approach is the pseudo-spectral solution of the field equations.
|
||||
As known from e.g. hydrodynamics the partial differential equations in real space
|
||||
are converted to ordinary equations in Fourier space. This eliminates finite stencils,
|
||||
but requires a global FFT \cite{Haber_1973, Jalas_2017}. For constant current density
|
||||
As known from e.g. hydrodynamics the partial differential equations in real space
|
||||
are converted to ordinary equations in Fourier space. This eliminates finite stencils,
|
||||
but requires a global FFT \cite{Haber_1973, Jalas_2017}. For constant current density
|
||||
Maxwell's equations can be integrated analytically in time leading to pseudo-spectral
|
||||
analytic time domain (PDATD) schemes that are completely 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
|
||||
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}).
|
||||
|
||||
%An old idea that has recently gained traction again is to try field solvers
|
||||
@@ -336,7 +339,7 @@ solvers (\cite{Vay_2013}).
|
||||
%%possibility for better parallelisation for large systems, when the FFTs are
|
||||
%%communication limited.
|
||||
|
||||
For the limit of very small particle velocities (as compared to the speed of light) the situation becomes much simpler. This is the electrostatic limit, where electric fields are calculated using Gauss Law (Eq.~\eqref{eq:num:gauss}) and magnetic fields are no longer time dependent. This of course limits the electric field to is longitudinal, curl-free component. Historically some of the first Particle-in-Cell codes were electrostatic (see e.g. \cite{Hockney_1966, Gitomer_1972}). Gauss Law can be solved in higher dimensions using either spectral solvers \cite{Birdsall_2005} or multigrid solvers.
|
||||
For the limit of very small particle velocities (as compared to the speed of light) the situation becomes much simpler. This is the electrostatic limit, where electric fields are calculated using Gauss Law (Eq.~\eqref{eq:num:gauss}) and magnetic fields are no longer time dependent. This of course limits the electric field to its longitudinal, curl-free component. Historically some of the first Particle-in-Cell codes were electrostatic (see e.g. \cite{Hockney_1966, Gitomer_1972}). Gauss Law can be solved in higher dimensions using either spectral solvers \cite{Birdsall_2005} or multigrid solvers.
|
||||
|
||||
|
||||
% darwin
|
||||
@@ -383,15 +386,15 @@ of an interpolation that we will discuss next.
|
||||
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. As discussed in the last chapter the numerical macroparticle represents
|
||||
a sample of the phase space with finite extent..
|
||||
a sample of the phase space with finite extent and a macro factor, or (statistical) weight) given by the number of physical particles it represents.
|
||||
%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 the phase space volume that is located in the cell is used as
|
||||
a weight for the field strength contribution from that cell.
|
||||
%The fraction of particle that fall in the cell are used as a weight to multiply
|
||||
%the field strength at the center of that cell.
|
||||
Contributions from different
|
||||
%distribution over a finite extend.
|
||||
The fraction of the phase space volume that is located in the cell is used as
|
||||
a interpolation weight for the field strength contribution from that cell.
|
||||
%The fraction of particle that fall in the cell are used as a weight 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}
|
||||
@@ -412,7 +415,7 @@ cell we can write the two-dimensional interpolation as
|
||||
|
||||
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.
|
||||
The shape function does not include the statistical weight of the macro pareticle, but rather 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,
|
||||
@@ -420,8 +423,8 @@ i.e. be non-zero only up to some small $x_{max}$.
|
||||
|
||||
The \textit{Nearest Grip Point} or NGP scheme is the minimal example satisfying
|
||||
all requirements: The shape function is the $\delta$-function $S(x) = \delta(x)$.
|
||||
This choice is simple to implement and computationally cheap, but the field that
|
||||
particles see is non-contiguous and the current induced by particles using this
|
||||
This choice is simple to implement and computationally cheap, but 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.
|
||||
|
||||
%In principle all these properties are satisfied by a $\delta$-function. This
|
||||
@@ -434,25 +437,25 @@ shape function switches from one cell to another when an interface is crossed.
|
||||
%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
|
||||
The Cloud-in-Cell
|
||||
%efficiently the
|
||||
algorithm by \cite{Birdsall_1968} was 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 and weight function
|
||||
that generate that view are given by
|
||||
\begin{equation}
|
||||
S_{CIC}(x) =
|
||||
S_{CIC}(x) =
|
||||
\begin{cases}
|
||||
1 & |x|\leq 1/2 \\
|
||||
0 & \text{else}
|
||||
\end{cases},\quad W_{CIC}(x) =
|
||||
\end{cases},\quad W_{CIC}(x) =
|
||||
\begin{cases}
|
||||
1-|x| & |x|\leq 1 \\
|
||||
0 & \text{else}
|
||||
\end{cases}
|
||||
\end{equation}
|
||||
and illustrated in Fig.~\ref{fig:num:S_CIC}.
|
||||
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}
|
||||
@@ -475,7 +478,7 @@ and illustrated in Fig.~\ref{fig:num:S_CIC}.
|
||||
\begin{subfigure}{0.25\hsize}
|
||||
\centering
|
||||
\includegraphics[width=\hsize]{figure/numerics/formfaktor_TSC_S.png}
|
||||
\caption{Triangluar Shaped Cloud}
|
||||
\caption{Triangular Shaped Cloud}
|
||||
\label{fig:num:S_TSC}
|
||||
\end{subfigure}
|
||||
\begin{subfigure}{0.25\hsize}
|
||||
@@ -494,7 +497,7 @@ and illustrated in Fig.~\ref{fig:num:S_CIC}.
|
||||
\begin{subfigure}{0.25\hsize}
|
||||
\centering
|
||||
\includegraphics[width=\hsize]{figure/numerics/formfaktor_TSC_density.png}
|
||||
\caption{Triangluar densityhaped Cloud}
|
||||
\caption{Triangular Shaped Cloud}
|
||||
\label{fig:num:density_TSC}
|
||||
\end{subfigure}
|
||||
\begin{subfigure}{0.25\hsize}
|
||||
@@ -527,7 +530,7 @@ towards higher $k$.
|
||||
%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.
|
||||
In \cite{Langdon_1970} it has been shown that this decreases aliasing of high $k$.
|
||||
In \cite{Langdon_1970} it has been shown that this decreases aliasing of high $k$.
|
||||
This in turn decreases the finite grid instability - a numerical artifact that occurs,
|
||||
when the numerical grid does not resolve the Debye length and that artificially heats
|
||||
the plasma. The use of higher order shape functions improves the conservation of
|
||||
@@ -539,9 +542,9 @@ Higher order have an increasing number of continuous 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\cite{Eastwood_1974,Matsuda_1975}.
|
||||
and therefore numerical collisionality \cite{Eastwood_1974,Matsuda_1975}.
|
||||
%The EPOCH code \cite{} might be the most widely used code to
|
||||
%use high order shape function.
|
||||
%use high order shape function.
|
||||
Otherwise order beyond TSC are not used widely
|
||||
enough that a consensus as to their names has emerged.
|
||||
|
||||
@@ -550,12 +553,12 @@ enough that a consensus as to their names has emerged.
|
||||
%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
|
||||
%eventually have a singularity as they approach $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.
|
||||
%that treats all dimensions the same.
|
||||
So far only dimension-by-dimension interpolation has been discussed.
|
||||
This construction leads to codes that
|
||||
conserve total momentum. Alternatively it is possible to combine shape function
|
||||
@@ -573,12 +576,12 @@ The low-level interpolation unfortunately requires very high particle numbers
|
||||
to reach acceptable noise levels.
|
||||
|
||||
Since many different choices for shape functions are possible, many
|
||||
comparisons have been made \cite{Abe_1986,Kilian_2013,Munoz_2014}. No universal
|
||||
comparisons have been made \cite{Abe_1986,Kilian_2013,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.
|
||||
noise.
|
||||
%Other schemes that pick or modify the width of the shape function to
|
||||
%reduce known numerical problems might follow.
|
||||
|
||||
@@ -599,16 +602,16 @@ Similar to the leap-frog procedure for the electromagnetic fields the particle's
|
||||
\end{align}
|
||||
|
||||
When the force depends only on position, this can be solved straight forward.
|
||||
For velocity dependent forces - magnetic fields are the most important case -
|
||||
there is dependence on $\vec{x}(t)$, which is not known. The interpolation
|
||||
For velocity dependent forces - magnetic fields are the most important case -
|
||||
there is dependence on $\vec{x}(t)$, which is not known. The interpolation
|
||||
$\vec{v}(t) \approx 1/2\left(\vec{v}(t-\Delta{t}/2)+\vec{v}(t+\Delta{t}/2)\right)$, but
|
||||
this leads to an implicit dependence of Eq.~\eqref{eq:num:velupdate} on
|
||||
this leads to an implicit dependence of Eq.~\eqref{eq:num:velupdate} on
|
||||
$\vec{v}(t+\Delta{t}/2)$ on both sides.
|
||||
|
||||
%
|
||||
%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
|
||||
%magnetic field, the Lorentz force introduces a dependence on the velocity
|
||||
%$\vec{v}(t)$ that we do not know. The straight forward next step is to approximate
|
||||
%the velocity at this point in time by $\vec{v}(t) \approx
|
||||
%1/2\left(\vec{v}(t-\Delta{t}/2)+\vec{v}(t+\Delta{t}/2)\right)$, but now
|
||||
@@ -624,16 +627,19 @@ $\vec{v}(t+\Delta{t}/2)$ on both sides.
|
||||
%floating point numbers close to the speed of light.
|
||||
%Eqs.~\eqref{eq:num:velupdate} and \eqref{eq:num:posupdate} then read
|
||||
|
||||
The Boris push allows us to solve this directly. In order to account for relativistic
|
||||
versions, the formulation shall be done using relativistic momentum per rest mass $\vec{u} = \vec{p}/m = \gamma\vec{v}$.
|
||||
The Boris push allows us to solve this directly and efficiently. The computation efficiency is important since typical simulations contain many more particles than grid cells.
|
||||
|
||||
In order to account for relativistic
|
||||
versions, the formulation shall be done using relativistic momentum per rest mass $\vec{u} = \vec{p}/m = \gamma\vec{v}$. Here $\gamma$ is the Lorentz factor of the macro particle.
|
||||
This quantity does not suffer from the problem that it has a fixed upper value
|
||||
and thus we avoid the loss of precision due to the finite resolution of
|
||||
floating point numbers close to the speed of light.
|
||||
Eqs.~\eqref{eq:num:velupdate} and \eqref{eq:num:posupdate} then read
|
||||
\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(t+\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 .
|
||||
\vec{u}(t+\Delta{t}/2) &= \vec{u}(t-\Delta{t}/2) + \vec{F}(x(t),v(t))\cdot\Delta{t}/m \quad , \\
|
||||
\gamma(t+\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(t+\Delta{t}/2) \quad , \\
|
||||
\vec{F}(x(t),v(t)) &= \frac{q}{m} \left(\vec{E}(x(t)) + \vec{v}(t) \times \vec{B}(x(t))\right) \quad .
|
||||
\end{align}
|
||||
|
||||
\begin{figure}[h!]
|
||||
@@ -659,16 +665,16 @@ into two equal parts performed before and after handling the magnetic field. Usi
|
||||
\end{align}
|
||||
|
||||
It is worth noting that the original algorithm by Boris contains the $\tan$ in
|
||||
Eq.~\eqref{eq:num:tanrotation} and the suggestion to expand at least up to
|
||||
fourth order. Many codes since then have made the
|
||||
Eq.~\eqref{eq:num:tanrotation} and the suggestion to expand it at least up to
|
||||
fourth order if it is too expensive to compute $\tan$ to machine precision. However many codes since then have made the
|
||||
approximation $\vec{\Omega} \approx q/(\gamma\,m)\,\vec{B}(t)\,\Delta{t}/2$,
|
||||
This produces only the correct gyro radius, not the correct gyro angle.
|
||||
This produces only the correct gyro radius, not the correct gyro angle.
|
||||
|
||||
The Lorentz factor $\gamma$ in Eq.~\eqref{eq:num:tanrotation} is approximated by
|
||||
$\gamma = \sqrt{1 + \vec{u}_1\cdot\vec{u}_1 / c^2}$, which according to
|
||||
\cite{Vay_2008} can lead to spurious forces
|
||||
%and he suggests a more complicated expression.
|
||||
%
|
||||
%
|
||||
% 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} \\
|
||||
@@ -681,15 +687,15 @@ $\gamma = \sqrt{1 + \vec{u}_1\cdot\vec{u}_1 / c^2}$, which according to
|
||||
% 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
|
||||
\cite{Umeda_2018} exist as well. Some comparison 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)
|
||||
% experiences a constant and homogeneous 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.
|
||||
@@ -702,7 +708,7 @@ 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
|
||||
requires interpolation from the particle locations back to the grid and is typically the most expensive operation in the simulation code. 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
|
||||
@@ -716,7 +722,7 @@ $\vec{x}(t+\Delta{t})$ is straight forward and simply given by
|
||||
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.
|
||||
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
|
||||
@@ -775,7 +781,7 @@ The first of these so called \textit{charge conserving} schemes is by
|
||||
%\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
|
||||
slightly more expensive than in the naive algorithm, but the need to remove
|
||||
violations of Gauss' Law is completely eliminated.
|
||||
|
||||
Somewhat more widely implemented in the scheme by \cite{Villasenor_1992}. The
|
||||
@@ -809,7 +815,7 @@ Additionally this scheme is tedious to extend to shape functions beyond CIC.
|
||||
, it's trajectory is modified to go via the midpoint.}
|
||||
\label{fig:num:currentassignment_umeda}
|
||||
\end{subfigure}
|
||||
\caption{Charge conserving current desposition}
|
||||
\caption{Charge conserving current deposition}
|
||||
\end{figure}
|
||||
|
||||
|
||||
@@ -823,10 +829,10 @@ 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.
|
||||
referred back to the excellent original paper.
|
||||
|
||||
The other widely used scheme
|
||||
%in modern codes
|
||||
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
|
||||
@@ -834,7 +840,7 @@ point has its 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.
|
||||
as illustrated in Fig.~\ref{fig:num:currentassignment_umeda}% illustrates this motion and the
|
||||
resulting current for the same particle trajectory as used before.
|
||||
resulting current for the same particle trajectory as 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
|
||||
@@ -855,13 +861,13 @@ noise-properties between the two deposition schemes is similar
|
||||
%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
|
||||
noise. The noise level in PiC simulations is exacerbated by the artificially lowered number of macro particles. 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 fluctuations, but it is
|
||||
possible to tune filters specifically to the problem at hand and get much
|
||||
better performance.
|
||||
|
||||
\subsection{Initalization and Particle Handling}
|
||||
\subsection{Initialization and Particle Handling}
|
||||
|
||||
\label{subsec:num:init}
|
||||
|
||||
@@ -870,9 +876,9 @@ better performance.
|
||||
%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
|
||||
%usually simply set base on analytic expression for known equilibria. Most of
|
||||
%them only require an initial magnetic field and have vanishing electric field.
|
||||
%Creating the initial 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
|
||||
@@ -887,7 +893,7 @@ distribution function $f(\vec{x},\vec{v},t_0)$ is more complicated and the metho
|
||||
used may have a measurable impact on the noise level.
|
||||
|
||||
|
||||
The easiest and not uncommon case is a constant spatial density and
|
||||
The easiest and not uncommon case is a constant spatial density
|
||||
and a non-relativistic Maxwellian velocity distribution. In this
|
||||
case we can pick the initial position of the particle at random using
|
||||
\begin{equation}
|
||||
@@ -963,13 +969,13 @@ equal parts of half the statistical weight and displace them slightly from the
|
||||
center 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.
|
||||
%, 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.
|
||||
at the same time.
|
||||
%A first solution was offered by \cite{Shon_2001}, combining several particles
|
||||
%into several new particles to conserve charge density, momentum and energy.
|
||||
%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 \gg 2$
|
||||
particles and replaces them with $M$ ($2 \ll M < N$) new particles can be
|
||||
@@ -980,7 +986,7 @@ 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$ existing particles into two new particles while conserving charge,
|
||||
momentum and energy.
|
||||
momentum and energy.
|
||||
%If the reason for splitting particles is mesh-refinement
|
||||
%in one of the rare AMR codes, the method by \cite{Drouin_2018} can help with
|
||||
%splitting, but merging remains a problem.
|
||||
@@ -1005,8 +1011,8 @@ lower end of the coordinate. Particles that leave through one side are
|
||||
reinjected unmodified at the other end. Periodic boundary conditions mimic
|
||||
infinite space reasonably 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 infinite possibilities that exist in free space --
|
||||
that have an integer number of wavelengths in the simulation box. The number of grid
|
||||
number of modes %-- out of the infinite possibilities that exist in free space --
|
||||
that have an integer number of wavelengths in the simulation box. The number of grid
|
||||
limits the mode number and the spectrum.
|
||||
|
||||
%If the number of grid cells is small, so is the number of allowed wave modes and the
|
||||
@@ -1037,8 +1043,8 @@ domain. Vanishing electric field, even in the presence of an electric current
|
||||
is typical for a \textit{perfect electric conductor} (PEC). This boundary
|
||||
therefore mimics a metal wall with vanishing resistivity. If a realistic metal
|
||||
boundary is required, much more effort is needed. This boundary condition does
|
||||
reflect impinging electromagnetic waves. The PEC boundary is therefore often
|
||||
coupled with a reflecting boundary condition for particles. When a particle
|
||||
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 process is identical to specular
|
||||
@@ -1066,8 +1072,8 @@ the lower end of the moving window.
|
||||
|
||||
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 are described
|
||||
in detail in the great book on FDTD methods by \cite{Taflove_2000}. The problem
|
||||
and Mur \cite{Mur_1981} have been used. These boundary condition 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,
|
||||
@@ -1084,12 +1090,12 @@ 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 chosen. Any wave that does reach the boundary and gets reflected is
|
||||
attenuated a second time on the way out, greatly improving performance of this
|
||||
scheme.
|
||||
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.
|
||||
%developed.
|
||||
One implementation known as convolutional PML (CPML) has been used
|
||||
successfully in multiple cases. The book \cite{Berenger_2007} explains the
|
||||
different methods and their connections.
|
||||
@@ -1105,7 +1111,7 @@ the injection of fresh upstream with not-yet-reconnected magnetic flux allows
|
||||
for the study of larger systems (see \cite{Daughton_2006,
|
||||
Klimas_2008, Ohtani_2009}).
|
||||
|
||||
%Besides the injection of thermal plasma on the boundary
|
||||
%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 artificial current, acting as an antenna or by
|
||||
@@ -1115,7 +1121,7 @@ schemes that allow for the injection of realistic laser pulses
|
||||
(\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
|
||||
% Eliasson_2002.pdf outflow condition for Fourier transformed Vlasov-poison system
|
||||
|
||||
\subsection{Diagnostics}
|
||||
\label{subsec:num:diag}
|
||||
@@ -1123,34 +1129,35 @@ schemes that allow for the injection of realistic laser pulses
|
||||
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.
|
||||
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
|
||||
%usually a bad idea from a performance standpoint.
|
||||
Simply storing the full state of the simulation is typically impossible for
|
||||
%usually a bad idea from a performance standpoint.
|
||||
Simply storing the full state of the simulation is typically impossible for
|
||||
performance reasons.
|
||||
Whenever possible the simulation code should calculate diagnostics 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
|
||||
Whenever possible the simulation code should calculate diagnostics 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 several 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.
|
||||
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. The diagnostic is also very valuable to check conservation of total energy in a PiC code that conserves momentum by construction.
|
||||
|
||||
Another obvious candidate for output are gridded quantities, such as
|
||||
electric and magnetic field as well as current density. These quantities do not
|
||||
require any extra calculation, but their size requires a binary output. The two most widely used choices are dumping the memory of every
|
||||
require any extra calculation.
|
||||
The two most widely used choices are dumping the memory of every
|
||||
MPI domain to a separate binary file or writing a global view to a structured
|
||||
format such as HDF5. The first choice has the advantage of very little
|
||||
overhead. The downside is that the separate views of the different domains
|
||||
need to be combined for further analysis. The overhead of creating many
|
||||
format such as HDF5. The first choice has the advantage of low
|
||||
overhead. The downside is that the separate views of the different domains
|
||||
need to be combined for further analysis. The overhead of creating many
|
||||
files at once and the tedious
|
||||
file handling make this alternative a poor choice for more than a few hundred cores. Parallel I/O to HDF5 requires
|
||||
file handling make this alternative a poor choice for more than a few hundred cores. Parallel I/O to HDF5 requires
|
||||
slightly more complicated I/O code and introduces some overhead, but allows for
|
||||
the inclusion of meta-data and easy loading into analysis tool, independent of
|
||||
programming language and CPU architecture.
|
||||
@@ -1177,10 +1184,10 @@ wallclock limit, or due to a compute node crashing. Also some analysis can
|
||||
only be performed as post-processing, either due to poor scalability or because
|
||||
it is actively being developed based on the simulation results. In this case,
|
||||
the full particle information needs to be stored. Again direct binary dumps or
|
||||
higher-level self-describing formats are the two main possibilities. Some codes
|
||||
even implement both, the high-level format for scientific analysis and binary
|
||||
dumps that are overwritten periodically as faster checkpoints that are only
|
||||
used for restarts.
|
||||
higher-level self-describing formats are the two main possibilities. %Some codes
|
||||
%even implement both, the high-level format for scientific analysis and binary
|
||||
%dumps that are overwritten periodically as faster checkpoints that are only
|
||||
%used for restarts.
|
||||
|
||||
Many other diagnostics have been developed and the following list of examples
|
||||
is certainly incomplete: one-dimensional histograms of particle quantities
|
||||
@@ -1211,7 +1218,7 @@ to be included \cite{Kalapotharakos_2018}.
|
||||
|
||||
\label{subsec:num:test}
|
||||
|
||||
Compared to fluid codes that easily develop instabilities e.g. through
|
||||
Compared to fluid codes that easily develop instabilities e.g. through
|
||||
negative densities or numerical instabilities, PiC codes are rather robust.
|
||||
This numerical stability is sometimes mistaken as physical plausibility.
|
||||
It is therefore important that the researcher employs a healthy skepticism
|
||||
|
||||
+2
-2
@@ -2,8 +2,8 @@
|
||||
|
||||
\label{subsec:reconnection}
|
||||
|
||||
Reconnection might be the most studied process in collionless plasmas and
|
||||
Particle-in-cellcodes are often used as no assumptions on underlying
|
||||
Reconnection might be the most studied process in collisionless plasmas and
|
||||
Particle-in-cell codes are often used as no assumptions on underlying
|
||||
resistivity have to be made. This book therefore contains a separate chapter on
|
||||
the study of reconnection, titled \textit{Magnetic reconnection in space
|
||||
plasmas}.
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
\label{subsec:shocks}
|
||||
|
||||
There is a long and fruitful history of using Particle-in-Cell simulations to
|
||||
study the behaviour of collisionless shocks. It is such an imporant topic that
|
||||
study the behavior of collisionless shocks. It is such an important topic that
|
||||
the book contain the dedicated chapter \textit{Shock waves in space plasmas}
|
||||
written by David Burgess, an expert in this topic and author of the book
|
||||
\cite{Burgess_2015}.
|
||||
|
||||
+12
-11
@@ -11,7 +11,7 @@ The definition of a plasma as a quasi-neutral gas with collective behavior cover
|
||||
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 $N$ is extremely large and the runtime 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 the moving charges is considered. %Also not single particles, but particle bunches are used.
|
||||
Additionally particles are not tracked individually, but bunches of particles are combined into a single compoutational macro particle.
|
||||
Additionally particles are not tracked individually, but bunches of particles are combined into a single computational macro particle.
|
||||
|
||||
The description of particle bunches generating fields and interacting with them is somewhat na\"ive. From a mathematical viewpoint the PiC algorithm uses phase space sampling to solve the Vlasov equation (or the Maxwell-Vlasov system).
|
||||
|
||||
@@ -20,26 +20,26 @@ The Vlasov equation can be derived easily from a set of particles through the Kl
|
||||
N_\alpha(\vec x, \vec v, t) = \sum_{k=1}^{N_0} \delta\left(\vec x - \vec{x}_k(t) \right) \delta\left(\vec{v}- \vec{v}_k(t)\right)
|
||||
\label{eq:theory:phasespace}
|
||||
\end{align}
|
||||
Here each particle $k$ of the $N_0$ particles of species $\alpha$ have discrete positions $\vec{x}_k(t)$ and velocities $\vec{v}_k(t)$ in phase space. The particles with charge $q_\alpha$ and $m_\alpha$ are affected by electromagnetic fields and their motion is governed by the set of differential equations
|
||||
Here each particle $k$ of the $N_0$ particles of species $\alpha$ have discrete positions $\vec{x}_k(t)$ and velocities $\vec{v}_k(t)$ in phase space. The particles with charge $q_\alpha$ and $m_\alpha$ are affected by electromagnetic fields and their motion is governed (in the non-relativistic limit) by the set of differential equations
|
||||
\begin{align}
|
||||
\dv{\vec{x}_k(t)}{t} &= \vec{v}_k(t), \
|
||||
\dv{\vec{x}_k(t)}{t} &= \vec{v}_k(t), \
|
||||
\dv{\vec{v}_k(t)}{t} &= \frac{q_\alpha}{m_\alpha} \left( \vec{E}^m(\vec{x}_k(t),t)+\vec{v}_k(t) \times \vec{B}^m(\vec{x}_k(t),t) \right) \label{eq:theory:dv}
|
||||
\end{align}
|
||||
The Klimontovich equation can then be derived by taking the time derivative of Eq. \ref{eq:theory:phasespace} and using Eqs. \ref{eq:theory:dv}.
|
||||
The Klimontovich equation can then be derived by taking the time derivative of Eq.~\ref{eq:theory:phasespace} and using Eqs.~\ref{eq:theory:dv}.
|
||||
\begin{align}
|
||||
\pdv{N_\alpha(\vec x, \vec v, t)}{t} &=& \pdv{}{t} \sum_{k=1}^{N_0} \delta\left(\vec x - \vec{x}_k(t) \right) \delta\left(\vec{v}- \vec{v}_k(t)\right)\\
|
||||
&=& -\vec v \cdot\pdv{N_\alpha(\vec x, \vec v, t)}{\vec x}\nonumber\\ & & - \frac{q_\alpha}{m_\alpha}\left( \vec{E}^m(\vec{x}(t),t)+\vec{v}(t) \times \vec{B}^m(\vec{x}(t),t) \right) \cdot\pdv{N_\alpha(\vec x, \vec v, t)}{\vec v}
|
||||
\end{align}
|
||||
This can be rewritten as
|
||||
This can be rewritten as
|
||||
%\begin{align}
|
||||
% \pdv{N_\alpha(\vec x, \vec v, t)}{t}+ \vec{v}\cdot \pdv{N_\alpha(\vec x, \vec v, t)}{\vec x} & & \nonumber \\+ \frac{q_\alpha}{m_\alpha}\left( \vec{E}^m(\vec{x}(t),t)+\vec{v}(t) \times \vec{B}^m(\vec{x}(t),t) \right) \cdot\pdv{N_\alpha(\vec x, \vec v, t)}{\vec v} & = & 0 \label{eq:theory:klimontovich}
|
||||
%\end{align}
|
||||
\begin{align}
|
||||
\pdv{N_\alpha}{t}+ \vec{v}\cdot \pdv{N_\alpha}{\vec x} + \frac{q_\alpha}{m_\alpha}\left( \vec{E}^m+\vec{v} \times \vec{B}^m \right) \cdot\pdv{N_\alpha}{\vec v} = 0 \label{eq:theory:klimontovich}
|
||||
\end{align}
|
||||
This is the Klimontovich equation that describes the microphysic distribution function. In conjuction with the Maxwell equations this equation describes a collisionless plasma completely. For any practical purpose the Klimontovich equation is unusable.
|
||||
This is the Klimontovich equation that describes the microphysical distribution function. In conjunction with the Maxwell equations this equation describes a collisionless plasma completely. Given that $N$ is large, the Klimontovich equation is unusable for any practical purpose.
|
||||
|
||||
A better description is achieved by going to the ensemble average, which includes all physical identical realisations of the plasma. The phase space density of the ensemble average is given by
|
||||
A better description is achieved by going to the ensemble average, which includes all physical identical realizations of the plasma. The phase space density of the ensemble average is given by
|
||||
\begin{align}
|
||||
f_\alpha(\vec x, \vec v, t) = \langle N_\alpha(\vec x, \vec v, t) \rangle \label{eq:theory:fdef}
|
||||
\end{align}
|
||||
@@ -54,19 +54,19 @@ The microscopic quantities of $N_\alpha$, $\vec{B}^m$ and $\vec{E}^m$ can be wri
|
||||
% \left\langle \pdv{N_\alpha(\vec x, \vec v, t)}{t}+ \vec{v}\cdot \pdv{N_\alpha(\vec x, \vec v, t)}{\vec x} \right. & & \nonumber \\ \left.+ \frac{q_\alpha}{m_\alpha}\left( \vec{E}^m(\vec{x}(t),t)+\vec{v}(t) \times \vec{B}^m(\vec{x}(t),t) \right) \cdot\pdv{N_\alpha(\vec x, \vec v, t)}{\vec v} \right\rangle & = & 0
|
||||
%\end{align}
|
||||
%The ensemble average can now be taken for each term separately
|
||||
We can substitute in definition in Eqs.~\eqref{eq:theory:Nadef}-\eqref{eq:teory:Bmdef} into Eq.~\eqref{eq:theory:klimontovich} and take the ensamble avearge. Making use of the linearity of the averaging to split the equation into terms that can be averaged individually and applying definition \eqref{eq:theory:fdef} we obtain:
|
||||
We can substitute in definition in Eqs.~\eqref{eq:theory:Nadef}-\eqref{eq:teory:Bmdef} into Eq.~\eqref{eq:theory:klimontovich} and take the ensemble average. Making use of the linearity of the averaging to split the equation into terms that can be averaged individually and applying definition \eqref{eq:theory:fdef} we obtain:
|
||||
\begin{align}
|
||||
\pdv{f_\alpha(\vec x, \vec v, t)}{t}+ \vec{v}\cdot \pdv{f_\alpha(\vec x, \vec v, t)}{\vec x} + \nonumber \\ + \frac{q_\alpha}{m_\alpha}\left( \vec{E}(\vec{x}(t),t)+\vec{v}(t) \times \vec{B}(\vec{x}(t),t) \right) \cdot\pdv{f_\alpha(\vec x, \vec v, t)}{\vec v} =\nonumber\\ = - \frac{q_\alpha}{m_\alpha}\left\langle
|
||||
\left( \delta \vec{E}^m(\vec{x}(t),t)+\vec{v}(t) \times \delta\vec{B}^m(\vec{x}(t),t) \right)
|
||||
\cdot\pdv{\delta N_\alpha(\vec x, \vec v, t)}{t}
|
||||
\right\rangle
|
||||
\end{align}
|
||||
The term on the RHS is the ensemble average of a second-order product of perturbations in different realisations of a plasma state. This quantity is negligibly small. The LHS of the equation then yields the Vlasov equation
|
||||
The term on the RHS is the ensemble average of a second-order product of perturbations in different realizations of a plasma state. This quantity is negligibly small. The LHS of the equation then yields the Vlasov equation
|
||||
% \begin{align}
|
||||
% \pdv{f_\alpha(\vec x, \vec v, t)}{t}+ \vec{v}\cdot \pdv{f_\alpha(\vec x, \vec v, t)}{\vec x} +\nonumber\\ \frac{q_\alpha}{m_\alpha}\left( \vec{E}(\vec{x}(t),t)+\vec{v}(t) \times \vec{B}(\vec{x}(t),t) \right) \cdot\pdv{f_\alpha(\vec x, \vec v, t)}{\vec v} = 0 \label{eq:theory:vlasov}
|
||||
% \end{align}
|
||||
\begin{align}
|
||||
\pdv{f_\alpha}{t}+ \vec{v}\cdot \pdv{f_\alpha}{\vec x} + \frac{q_\alpha}{m_\alpha}\left( \vec{E} + \vec{v} \times \vec{B} \right) \cdot\pdv{f_\alpha}{\vec v} = 0 \label{eq:theory:vlasov}
|
||||
\pdv{f_\alpha}{t}+ \vec{v}\cdot \pdv{f_\alpha}{\vec x} + \frac{q_\alpha}{m_\alpha}\left( \vec{E} + \vec{v} \times \vec{B} \right) \cdot\pdv{f_\alpha}{\vec v} = 0 \label{eq:theory:vlasov} \quad .
|
||||
\end{align}
|
||||
|
||||
%Vlasov Gleichung als Gleichung für die Ensemblemittel
|
||||
@@ -95,7 +95,8 @@ There are still different possibilities for the implementation of a Lagrangian p
|
||||
|
||||
Following the phase space samples using the PiC algorithm is obviously a solution to the Vlasov equation. As a numerical solution for phase space samples it is obviously not an exact solution of the Vlasov equation. But besides unavoidable problems of numerical methods (e.g., limited accuracy) the PiC method has two distinct problems: Noise from phase space sampling and discretization errors from the limited resolution of the grid.
|
||||
|
||||
As will be described later the core problem in the grid discretization is not so much the coarseness of the grid but rather the finiteness of the grid.
|
||||
% Not sure if that is true. Grid heating and NCI come from discreteness
|
||||
%As will be described later the core problem in the grid discretization is not so much the coarseness of the grid but rather the finiteness of the grid.
|
||||
|
||||
%Was folgt daraus, daß wir das numerisch diskretisieren bzw. den Phasenraum sampeln?
|
||||
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@ and similar expressions for $D_{pp}$ and $D_\perp$ the transport coefficient can
|
||||
$ %\begin{equation}
|
||||
\Delta \mu = \mu(t) - \mu_0
|
||||
$ %\end{equation}
|
||||
individually for every particle for long enough times $t$. The transport coefficient can then be binned in pitch-angle and/or momentum according to the scientific question. It should be noted however that this method called ``running diffusion coefficient'' is error prone - especially for the pitch-angle and for strong turbulence: Only for very small change in the pitch-angle $D_{\mu\mu}$ can be calculated as a function of $\mu$. The reader is referred to \cite{2016ApJ...833..223I} for an advanced analysis method based on the change of particle distribution functions.
|
||||
individually for every particle for long enough times $t$. The transport coefficient can then be binned in pitch-angle $\mu$ and/or momentum $p$ according to the scientific question. It should be noted however that this method called ``running diffusion coefficient'' is error prone - especially for the pitch-angle and for strong turbulence: Only for very small change in the pitch-angle $D_{\mu\mu}$ can be calculated as a function of $\mu$. The reader is referred to \cite{2016ApJ...833..223I} for an advanced analysis method based on the change of particle distribution functions.
|
||||
|
||||
Fig. \ref{fig:trans:mass_ratio} shows the transport of energetic protons interacting with a single wave. The amplitude of the wave is between $0.021 < \delta B/B_0 < 0.048$. The expected behaviour is the resonance of particles with
|
||||
\begin{equation}
|
||||
|
||||
+16
-16
@@ -10,7 +10,7 @@
|
||||
%Entweder wir reden von Turbulenz mit dispersiven Wellen...
|
||||
%...oder wir reden von Strukturen, die kleiner als z.B. der Ionenradius sind
|
||||
|
||||
There is little doubt that kinetic plasmas can be turbulent, but theories to describe such turbulence are so scarce that simulations of turbulent kinetic plasmas will be needed for many decades. One reason for the lack of theories is that already MHD turbulence is little understood. The Kolmogorov theory proposed energy transfers from large eddies to small eddies and this is not doubted - although many questions are still open.
|
||||
There is little doubt that kinetic plasma can be turbulent, but theories to describe such turbulence are so scarce that simulations of turbulent kinetic plasmas will be needed for many decades. One reason for the lack of theories is that already MHD turbulence is little understood. The Kolmogorov theory proposed energy transfers from large eddies to small eddies and this is not doubted - although many questions are still open.
|
||||
|
||||
The attempt of Kraichnan and Iroshnikov to transfer the ideas from hydrodynamics to magnetohydrodynamics required the use of plasma waves instead of eddies. The question whether plasma turbulence can be described as wave-like turbulence is still disputed. The theory of Goldreich and Sridhar which addresses the question of anisotropy in magnetized plasmas is also based on the wave approach.
|
||||
|
||||
@@ -20,27 +20,27 @@ The regime of a linear dispersion relation is limited mostly to frequencies well
|
||||
% turbulence
|
||||
% Biskamp_1999.pdf eMHD turbulence
|
||||
\cite{1999PhPl....6..751B}
|
||||
or the Hall-MHD
|
||||
or the Hall-MHD
|
||||
% Papini_2018.pdf Hall-MHD for sub-ion turbulence
|
||||
\cite{2019ApJ...870...52P}
|
||||
approximation.
|
||||
approximation.
|
||||
|
||||
|
||||
\subsubsection{Inititalizing turbulence}
|
||||
\subsubsection{Initializing turbulence}
|
||||
|
||||
\label{subsubsec:init}
|
||||
|
||||
Turbulence models typically assume an energy cascade from large scales to small scales.
|
||||
%(the most prominent exception is presumably the enstrophy cascade in 2D hydrodynamical turbulence).
|
||||
In order to initialize a turbulence simulation fluctuations have to be injected at large scales. There is extensive discussion about the nature of turbulence - waves or structures
|
||||
Turbulence models typically assume an energy cascade from large scales to small scales.
|
||||
%(the most prominent exception is presumably the enstrophy cascade in 2D hydrodynamical turbulence).
|
||||
In order to initialize a turbulence simulation fluctuations have to be injected at large scales. There is extensive discussion about the nature of turbulence - waves or structures
|
||||
% Groselj_2018.pdf waves vs structures in turbulence
|
||||
\cite{2018arXiv180605741G}
|
||||
- but we will focus on the initialization via waves here.
|
||||
- but we will focus on the initialization via waves here.
|
||||
|
||||
There are two types of turbulence simulations commonly used: Driven and decaying turbulence. In the latter case waves or structures are initialized at the start of the simulation and no further energy is injected. The former case has energy injection - typically waves at low $k$ - continuously. While there are physical scenarios for both cases, only the continuous injection may lead to an equilibrium.
|
||||
|
||||
There is a large variety of plasma waves in the kinetic regime. Their dispersion relation can typically be derived by solving for small fluctuations in the dielectric tensor. %Waves are therefore connecting field fluctuations with current fluctuations.
|
||||
%This means that not only the electric and magnetic fields associated with the wave, but also the density fluctuations. This in turn means
|
||||
%This means that not only the electric and magnetic fields associated with the wave, but also the density fluctuations. This in turn means
|
||||
Soft-consistence then requires that the distribution in position and velocity of the background plasma particles has to be adjusted as well.
|
||||
|
||||
Schreiner et al. \cite{2014CoPhC.185.1981S} have performed the necessary calculations for L- and R-modes (in the subluminal branch).
|
||||
@@ -52,7 +52,7 @@ The necessary initial conditions for L-waves (R-waves are analogous) are derived
|
||||
\label{eq:trans:disp_rel}
|
||||
\end{equation}%
|
||||
The wave number $k_0$ for the excited wave has to be chosen as an integer multiple of $2\pi/L$. Now Eq. \ref{eq:trans:disp_rel} has to be solved for the frequency $\omega_0$ associated with $k_0$.
|
||||
%to be chosen such that an integer number of waves fits into the simulation volume. Here the case of a parallel wave along the magnetic field in $x$ direction is discussed. With the choice of $k_0$ Eq. \ref{eq:trans:disp_rel} has to be solved for the associated frequency $\omega_0$.
|
||||
%to be chosen such that an integer number of waves fits into the simulation volume. Here the case of a parallel wave along the magnetic field in $x$ direction is discussed. With the choice of $k_0$ Eq. \ref{eq:trans:disp_rel} has to be solved for the associated frequency $\omega_0$.
|
||||
The amplitude of the wave is defined by the absolute of the electric field fluctuation $\delta E$:
|
||||
\begin{subequations}
|
||||
\begin{alignat}{2}
|
||||
@@ -64,11 +64,11 @@ The amplitude of the wave is defined by the absolute of the electric field fluct
|
||||
\end{alignat}
|
||||
\label{eq:trans:excitation}%
|
||||
\end{subequations}
|
||||
The magnetic field fluctuation is calculated directly from Maxwell's equation. The choice of the left-handed L-wave determines the polarization and in turn the relation of the $y$ and $z$ component of electric and magnetic field.
|
||||
The magnetic field fluctuation is calculated directly from Maxwell's equations. The choice of the left-handed L-wave determines the polarization and in turn the relation of the $y$ and $z$ component of electric and magnetic field.
|
||||
|
||||
%EM fields will be written to the cells at the beginning of the simulation following Eq. \ref{eq:trans:excitation}.
|
||||
|
||||
At the start of the simulation the electromagnetic fields are stored in the cells according to Eq. \ref{eq:trans:excitation}. The initially thermal distribution of ions and electrons has to be boosted to match the currents associated with the transversal wave.
|
||||
At the start of the simulation the electromagnetic fields are stored in the cells according to Eq. \ref{eq:trans:excitation}. The initially thermal distribution of ions and electrons has to be boosted to match the currents associated with the transverse wave.
|
||||
%
|
||||
%For the background plasma ions and electrons are injected with a thermal distribution. In order to fulfill the dispersion relation of the wave, these particles have to be boosted. For transversal waves the current perpendicular to the magnetic field associated with the wave has to be matched, which results in a simple boost in velocity space. For the implementation of longitudinal waves a displacement in space has to be taken account.
|
||||
%
|
||||
@@ -96,14 +96,14 @@ Following Kolmogorov's idea the most important quantity in the analysis of turbu
|
||||
|
||||
While kinetic turbulence only remotely resembles incompressible MHD turbulence, there are still waves with similar dispersion relations (R modes in first place), that could lead to a similar behavior. This can be seen very well in the two-dimensional ($k_\parallel, k_\perp$) energy spectrum. Real space plots of turbulent media are usually not helpful unless structures (e.g. islands or current sheets) emerge that can be seen in real space. %From MHD theory it is expected that these islands are elongated along the magnetic field.
|
||||
|
||||
%For driven turbulence it is advisable to wait for an equilibrium, i.e. stationary energy. In most cases energy injected as waves into the simulation will heat up the plasma so there may be a stationary energy level in the electromagnetic fields, but the the thermal energy of particles may still rise.
|
||||
For driven turbulence one hopes to find an equilibrium state which makes further analysis easier, but the continous injection of energy will heat the plasma and increases the thermal energy of the particles. Even the fluctuations in the electromagnetic field might never by stationary, so the determination if initial transient behaviour becomes somewhat subjective.
|
||||
%For driven turbulence it is advisable to wait for an equilibrium, i.e. stationary energy. In most cases energy injected as waves into the simulation will heat up the plasma so there may be a stationary energy level in the electromagnetic fields, but the thermal energy of particles may still rise.
|
||||
For driven turbulence one hopes to find an equilibrium state which makes further analysis easier, but the continuous injection of energy will heat the plasma and increases the thermal energy of the particles. Even the fluctuations in the electromagnetic field might never by stationary, so the determination if initial transient behavior becomes somewhat subjective.
|
||||
|
||||
\subsubsection{Exemplary results}
|
||||
|
||||
Simulations of kinetic turbulence differ in a large number of input parameters. Compared to hydrodynamic turbulence there are additional magnetic field parameters and compared to MHD simulations an absolute outer length scale is added. PiC simulations may add numerical parameters like the electron to proton mass ratio. The parameter space is therefore too large to give a complete overview.
|
||||
|
||||
%Simulations of hydrodynamic turbulence are simple in the sense that very few parameters describe the physical scenario and that turbulence is similar on every scale. Adding the magnetic field adds more parameters (plasma beta, magnetic fluctuation strength relative to the mean magnetic field), but the simulations are still scalable. For kinetic turbulence the situation worsens even further: With several absolute scales (ion and electron gyroradii) and with potentially altered electron to proton mass ratios the parameter is extremely large. This makes the comparison of different kinetic turbulence simulations complicated.
|
||||
%Simulations of hydrodynamic turbulence are simple in the sense that very few parameters describe the physical scenario and that turbulence is similar on every scale. Adding the magnetic field adds more parameters (plasma beta, magnetic fluctuation strength relative to the mean magnetic field), but the simulations are still scalable. For kinetic turbulence the situation worsens even further: With several absolute scales (ion and electron gyroradii) and with potentially altered electron to proton mass ratios the parameter is extremely large. This makes the comparison of different kinetic turbulence simulations complicated.
|
||||
|
||||
|
||||
\begin{table}%[h]
|
||||
@@ -190,7 +190,7 @@ Here we will show only few sketches to highlight how a possible setup of turbule
|
||||
%Liefert irgendwie ein -2.9 Teilchenspektrum
|
||||
%Ist das jetzt Turb oder Transport?
|
||||
|
||||
The physical and numerical parameters of the simulation presented here are given in Tables \ref{tab:simulation_turbulence_gary_phys} and \ref{tab:simulation_turbulence_gary_num} respectively. A central problem in finding a suitable parameter set is the balance between the requirement to resolve the Debye length and the onset of cyclotron damping. Energy will not be transferred to large parts of $k$ space due to damping processes.
|
||||
The physical and numerical parameters of the simulation presented here are given in Tables \ref{tab:simulation_turbulence_gary_phys} and \ref{tab:simulation_turbulence_gary_num} respectively. A central problem in finding a suitable parameter set is the balance between the requirement to resolve the Debye length and the onset of cyclotron damping. Energy will not be transferred to large parts of $k$ space due to damping processes.
|
||||
|
||||
|
||||
The simulation is initialized with waves at small $k$ around $k=0$. The distribution of energy in the 2-dimensional $k$ space is then depicted in Fig. \ref{fig:turbulence_gary_2d_late}. Here a picture very similar to the Goldreich-Sridhar theory emerges: Energy is transferred primarily perpendicular to the magnetic field (further simulations not shown here, show that even for initial energy distributions elongated parallel to the magnetic field show a similar picture).
|
||||
|
||||
Reference in New Issue
Block a user