Darwin/electrostatic shortened

This commit is contained in:
2019-03-30 13:41:05 +01:00
parent 2890456156
commit cf1c0d4b9d
+64 -59
View File
@@ -1,9 +1,9 @@
\section*{Numerical Implementation}
F\section*{Numerical Implementation}
Particle-in-Cell codes are semi-Lagrangian in that they follow a Langrangian
Particle-in-Cell codes are semi-Lagrangian in that they follow a Lagrangian
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
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.
@@ -11,9 +11,9 @@ fields on the grid for one time step.
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
grid. How this is actually accomplished 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
rectangular or cubic 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}.
@@ -37,8 +37,8 @@ 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}$,
components similar. Since we treat all material effects due to the plasma
explicitly by having 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}
@@ -125,7 +125,7 @@ Eqs.~\eqref{eq:num:B1update} and \eqref{eq:num:B2update} by
\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$
access to $\vec{B}^t$. The method allows tuneable damping by selecting $\theta$
between 0 and 1 at the extra expense of storing and updating $\vec{\bar{E}}$.
The damping rate $\gamma$ is given by
\begin{equation}
@@ -135,12 +135,12 @@ The damping rate $\gamma$ is given by
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
\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 vaccum value and particle can
reach the local phase velocity. Nummerically this can happen when the numerical
a medium reduces the speed of light below the vacuum value and particle can
reach the local phase velocity. Numerically 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
Maxwell solver presented above does that, especially for short wavelength
comparable to the length of the cell edges.
\begin{figure}[h!]
@@ -188,7 +188,7 @@ 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
interesting is \cite{Greenwood_2004} that shows how these parameters can be
chosen to reduce NCI.
\begin{figure}[h!]
@@ -202,7 +202,7 @@ So far all schemes only used grid locations at $i\Delta{x}$, but
\cite{Cole_2002} shows that using $(i\pm1)\Delta{x}$ can be useful, at least
for a narrow range of frequencies propagating on the grid. Subsequently
\cite{Karkkainen_2006} extended that to broad bandwidth.
Fig.\ref{fig:num:rot_ck} illutrates all the grid locations that are used in this
Fig.\ref{fig:num:rot_ck} illustrates all the grid locations that are used in this
family of schemes. Choosing different relative weights between the different
grid locations allows to tune for different optimization goals. An overview is
given in \cite{Vay_2011}. 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.
@@ -228,7 +228,7 @@ 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
derive 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 solvers (\cite{Vay_2013}) or correction
@@ -240,52 +240,57 @@ methods for more conservative FDTD schemes (\cite{Yu_2016, Li_2017}).
% Na_2018b.pdf diagnosing NCI on general meshes
% electrostatic
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.
%%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.
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.
% 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}.
%%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}.
%%
%%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.
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.
Besides the domain of electrostatic and electromagnetic models there is another intermediate regime called Darwin approximation \cite{Darwin_1920} which includes magnetodynamic effects up to order $\mathcal{O}((v/c)^2)$, but which does not consider light waves. This equivalent to removing the divergence-free part of the displacement current. While time resolution constraints are relaxed since the speed of light is no longer present, the differential equations representing the electromagnetic field are now elliptic requiring a global field solver.
\subsection*{Interpolation}