Files
sps-chapter/theory.tex
T
fspanier 605985b457 Minor changes to theory
Added some includes to main
2019-01-11 23:40:38 +01:00

121 lines
9.2 KiB
TeX

\section{Theoretical background of Particle-in-Cell simulations}
\label{sec:theory}
The definition of a plasma as a quasi-neutral gas with collective behavior covers a wide range of very different physical scenarios. The number of mathematical and numerical descriptions is accordingly very large. An important point for the distinction of plasma behavior is the collisionality: In the limit of the very high collision frequencies the plasma is mostly described as fluid. The opposite limit of no collisions at all is the kinetic regime. The adequate for this regime is a single particle description.
A kinetic plasma could be described by taking all plasma particles and their pairwise forces into account (this would equal an N-body code). This approach is however neither feasible nor sensible: The number of particles is extremely large and the runtime with $N$ particles is $O(N^2)$ at worst or $O(N \log N)$ at best.
The Particle-in-Cell (PiC) approach avoids the use of particle-particle forces and their inherent computational need. Instead the interaction of particles with the electromagnetic field generated by moving charges is considered. Also not single particles, but particle bunches are used.
In fact the description of particle bunches generating fields and interacting with them is rather na\"ive. From a mathematical viewpoint the PiC algorithm uses phase space sampling to solve the Vlasov equation (or the Maxwell-Vlasov system).
The Vlasov equation can be derived easily from a set of particles through the Klimontovich equation. Starting with the microscopic distribution of a species $\alpha$ in the six-dimensional phase space
\begin{align}
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$ 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
\begin{align}
\dv{\vec{x}_k(t)}{t} &= \vec{v}_k(t) \label{eq:theory:dx}\\
\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:dx} and \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} - \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
\begin{align}
\pdv{N_\alpha(\vec x, \vec v, t)}{t}+ \vec{v}\cdot \pdv{N_\alpha(\vec x, \vec v, t)}{\vec x} + \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}
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.
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
\begin{align}
f_\alpha(\vec x, \vec v, t) = \langle N_\alpha(\vec x, \vec v, t) \rangle
\end{align}
The microscopic quantities of $N_\alpha$, $\vec{B}^m$ and $\vec{E}^m$ can be written as a sum of ensemble average and perturbation.
\begin{align}
N_\alpha(\vec x, \vec v, t) &= f_\alpha(\vec x, \vec v, t) + \delta N_\alpha(\vec x, \vec v, t) \\
\vec{E}^m (\vec x, \vec v, t) &= \vec E(\vec x, \vec v, t) +\delta \vec{E}^m (\vec x, \vec v, t)\\\vec{B}^m (\vec x, \vec v, t) &= \vec B(\vec x, \vec v, t) +\delta \vec{B}^m (\vec x, \vec v, t)
\end{align}
Now the ensemble average of Eq. \ref{eq:theory:klimontovich} can be calculated
\begin{align}
\left\langle \pdv{N_\alpha(\vec x, \vec v, t)}{t}+ \vec{v}\cdot \pdv{N_\alpha(\vec x, \vec v, t)}{\vec x} + \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
\begin{align}
\pdv{f_\alpha(\vec x, \vec v, t)}{t}+ \vec{v}\cdot \pdv{f_\alpha(\vec x, \vec v, t)}{\vec x} + \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
\begin{align}
\pdv{f_\alpha(\vec x, \vec v, t)}{t}+ \vec{v}\cdot \pdv{f_\alpha(\vec x, \vec v, t)}{\vec x} + \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}
%Vlasov Gleichung als Gleichung für die Ensemblemittel
From the viewpoint of physics the Vlasov equation is the representation of the time evolution of the phase space distribution ensemble average (in combination with Maxwell's equations). Mathematically the Vlasov equation is a hyperbolic conservation equation (which corresponds to the fact that the phase space volume is conserved).
%Vlasov lösen ist doof
Formally a large set of methods exist to solve a set of hyperbolic conservation laws (even for the six-dimensional phase space) and a number of solutions for lower dimensional systems has been implemented. %%TODO Zitate Vlasov mit Fluidmethoden
This method is severely limited: In first place it requires a solution on a six-dimensional grid on the other hand the requirement to have constantly positive phase-space density leads to strong diffusion. These two problems together cause a massive computational overhead with no clear advantage in the solution of the Vlasov equation.
%Sampling des Phasenraums
Rather than solving the Vlasov equation for the full distribution function, samples of the phase space can be used. As Liouville's theorem states that the volume of these phase space samples is constant. The motion of the phase space volumes can be traced as single particles.
%%Hier nochmal auf Euler vs Lagrange eingehen
The distinction made here is between the Euler and Lagrange picture: The Vlasov equation as hyperbolic conservation law can be treated from the viewpoint of the change of the distribution function at fixed points (i.e., on a fixed grid of the phase space) or by following the motion of single phase space points. The latter is the so-called Lagrangian picture, while the other is the Eulerian picture. This distinction is not limited to Vlasov equation or the phase space. It is a common concept used also in hydrodynamics, where fluid elements or the fluid velocities on a grid could be traced.
%Wir folgen den Phasenraumelementen -> Lagrangebild. Was macht Mehdi anders?
%PiC ist eine Lösung der Vlasovgleichung, welchen Teil des Plasmas beschreibt das?
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 not an exact solution
%Was folgt daraus, daß wir das numerisch diskretisieren bzw. den Phasenraum sampeln?
Just read \cite{1981csup.book.....H}
%Pure Particle simulations (Molecular dynamics) are exact
%MD is not reasonable
%Plasma can be described
Vlasov equation
\begin{align}
\frac{\partial f}{\partial t} &= f
\label{eq:theory:vlasov}
\end{align}
Wo ist die Vlasov-Gleichung? Da \eqref{eq:theory:vlasov} ist sie ja! Gute Gleichung. Brav!
%Kinetische Plasmen können über verschiedene Methoden beschrieben werden.
%Die Haupteigenschaft des kinetischen Plasmas ist der Mangel an Stößen.
%Eine völlig korrekte Beschreibung ist die direkte Wechselwirkung aller Teilchen miteinander
%Geht, ist korrekt, heißt Molekulardynamik und ist O(N^2), wenn man mit Tree-Codes spielt O(N log N)
%So nicht: Sprich lieber von N-Body und davon, daß das nur sinnvoll bei langreichweitigen (keine Abschirmung) Feldern ist. Also bei Gravitation
%Der Übergang zu Teilchen in Feldern liegt nahe.
%Is' nett, aber so einfach geht das auch wieder nicht: Viel zu viele Teilchen
%Beschreibung des Teilchenkontinuums durch die Vlasov-Gleichug
%Exkurs: Wo kommt die Gleichung her?
%Lösung der Vlasov-Gleichung ist ein 6D-Problem!
%Aber wir können Samples des Phasenraums im Lagrangebild anschauen
%Lese-TODO:
%- Wieso geht der Übergang MD->PiC nicht trivial?
%- Herleitung Vlasov-Gleichung
%- Lagrange-Bild