153 lines
6.7 KiB
TeX
153 lines
6.7 KiB
TeX
% Chapter 1
|
|
|
|
\chapter{Particle in Cell Simulations with ACRONYM}
|
|
\label{ch:acronym} % For referencing the chapter elsewhere, use \ref{Chapter1}
|
|
|
|
|
|
|
|
\begin{itemize}
|
|
\item Simulation Procedure and new features
|
|
\end{itemize}
|
|
|
|
\section{PIC Schema}
|
|
\subsection{Grid}
|
|
\begin{itemize}
|
|
\item Yee Gitter, positions of E,B,rho
|
|
\end{itemize}
|
|
\subsection{Macro Particles}
|
|
\begin{itemize}
|
|
\item reference to Vlasov-equation
|
|
\end{itemize}
|
|
\subsection{Particle Movement}
|
|
\begin{itemize}
|
|
\item Boris Push
|
|
\end{itemize}
|
|
\subsection{Current Deposition}
|
|
\begin{itemize}
|
|
\item Esirkepov
|
|
\end{itemize}
|
|
\subsection{Maxwell Solver}
|
|
\begin{itemize}
|
|
\item unbound maxwell solver, spatial differences
|
|
\item timestep length
|
|
\end{itemize}
|
|
|
|
\section{Boundaries}
|
|
\begin{itemize}
|
|
\item short description of simulated geometry and types of boundary
|
|
\end{itemize}
|
|
|
|
\subsection{Perfect Electrical Conductor}
|
|
\begin{itemize}
|
|
\item where does this change the calculation? Electric Field, Current Deposition, Particle Movement
|
|
\item quick word to mirror charges
|
|
\end{itemize}
|
|
\paragraph{Dey Mittra Algorithm}
|
|
\begin{itemize}
|
|
\item this is the main algorithm used
|
|
\item geometry adaptation
|
|
\item E = 0 at Boundaries
|
|
\item B special calculation
|
|
\end{itemize}
|
|
\paragraph{ADI Method}
|
|
\begin{itemize}
|
|
\item short description of procedure but not used, more accurate
|
|
\end{itemize}
|
|
|
|
\subsection{Periodic}
|
|
\begin{itemize}
|
|
\item only used for test cases
|
|
\end{itemize}
|
|
\subsection{Perfectly Matched Layer}
|
|
\begin{itemize}
|
|
\item particle treatment
|
|
\item field treatment
|
|
\end{itemize}
|
|
|
|
\section{Backgrounds}
|
|
\paragraph{}{Electric Field}
|
|
\begin{itemize}
|
|
\item rearwall field, dipoles (reference to KATRIN chapter)
|
|
\end{itemize}
|
|
\paragraph{}{Magnetic Field}
|
|
\begin{itemize}
|
|
\item only short here because nothing special was done, but could have bin
|
|
\end{itemize}
|
|
\paragraph{Current Density}
|
|
\begin{itemize}
|
|
\item current from KARL
|
|
\end{itemize}
|
|
|
|
\section{Particle Injection}
|
|
\begin{itemize}
|
|
\item new methods to account for open boundaries and tritium decay
|
|
\end{itemize}
|
|
\subsection{Particle Distributions}
|
|
\begin{itemize}
|
|
\item from KARL distributions, beta, thermal, power, histogram
|
|
\end{itemize}
|
|
\subsection{Injection Methods}
|
|
Description of particle injection methods used for multiple cases.
|
|
\paragraph{Fixed Density}
|
|
\paragraph{Fixed Current}
|
|
\paragraph{Fixed Decay Rate}
|
|
\subsection{Injection at PML boundary}
|
|
Slightly different case. Takes care of additional fields.
|
|
|
|
\section{Analysis Methods}
|
|
During the PIC simulations the data from the fields is stored at the hard drive. These fields contain the eletric and magnetic fields ($\vec{E}$,$\vec{B}$) as well as the current ($\vec{j}$) and the particle density ($\vec{rho}$) on all grid positions. In a post simulation step this data has to be transformed to provide meaningfull results. Some of the procedures are shown in the following subsections.
|
|
|
|
%The write process on the hard drive is time consuming. Hence the data is not stored every timestep.
|
|
\subsection{Cylindrical Fields}
|
|
The field vectors in the output file are given in cartesian base ($\vec{e}_x$,$\vec{e}_y$ and $\vec{e}_z$) in the Yee-grid. In most cases the simulation is performed with cylindrical boundaries. So it can be benefitial to show the fields in a cylindrical base ($\vec{e}_r$,$\vec{e}_\theta$ and $\vec{e}_z$).
|
|
|
|
In the following calculation it is assumed that the electric and magnetic fields are given at the cell corners, but not accordingly to their position on the Yee-grid at the edges or faces. This method provides one resulting cylindrical field vector per cell in contrast to three vectors. It introduces a small error but allows for easier grafical representation of the data.
|
|
|
|
First the coordinates of the grid points have to be transformed to cylinder coordinates using
|
|
\begin{align}
|
|
r &= \sqrt{(x-x_c)^2+(y-y_c)^2} \comma \\
|
|
\theta &= \atantwo((y-y_c),(x-x_c)) \comma \\
|
|
z &= z-z_c \comma
|
|
\end{align}
|
|
where $\vec{x}_c$ is the position of the cylinder origin in cartesian coordinates. Second the base is transformed following
|
|
\begin{align}
|
|
E_r &= E_x \cdot \cos{\theta} + E_y \cdot \sin{\theta} \comma \\
|
|
E_\theta &= -E_x \cdot \sin{\theta} + E_y \cdot \cos{\theta} \comma \\
|
|
E_z &= E_z \fullstop
|
|
\end{align}
|
|
|
|
\subsection{Electrostatic Potential}
|
|
An eletric field can be represented by the superposition of a curl-free and a divergence-free field following the Helmholtz-theorem \cite{}. These fields are also called longitudinal ($\vec{E}_l$) and transversal ($\vec{E}_t$) fields. A curl-free field can be resolved to a scalar potential $\phi$ whereas a divergence field can be resolved to a vector potential $\vec{A}$.
|
|
|
|
\begin{align}
|
|
\vec{E} &= \vec{E_l} + \vec{E_t} \\
|
|
\vec{E_l} &= -\nabla \phi \\
|
|
\vec{E_t} &= \nabla \times \vec{A}
|
|
\end{align}
|
|
|
|
The scalar potential can be derived directly from the eletric field by using $\nabla (\nabla \times \vec{A}) = 0$
|
|
|
|
\begin{align}
|
|
\vec{E} &= -\nabla \phi + \nabla \times \vec{A} \\
|
|
\nabla \vec{E} &= -\nabla^2 \phi \label{eq:poisson}
|
|
\end{align}
|
|
|
|
Equation \ref{eq:poisson} discribes the well know poisson equation when using Gauss's law. In this case we use the fourier transformation to solve for the potential
|
|
|
|
\begin{align}
|
|
\mathcal{F}\left(\nabla \vec{E}(\vec{x})\right) &= \mathcal{F}\left(-\nabla^2 \phi(\vec{x})\right) \\
|
|
\vec{k} \cdot \vec{E}(\vec{k}) &= - \left\Vert\vec{k}\right\Vert^2 \phi(\vec{k}) \\
|
|
\rightarrow \phi(\vec{x}) &= \mathcal{F}^{-1} \left( -\frac{\vec{k} \cdot \vec{E}(\vec{k})}{\left\Vert\vec{k}\right\Vert^2} \right)
|
|
\end{align}
|
|
|
|
\todo{Discrete case}
|
|
Calculation above only for continious field. Here discrete case. $\nabla \vec{E}$ is also discrete. When going to fourier space we need a filter term to reduce noise on small real scales. See Langdon etc. \\
|
|
\todo{Field position different from potential}
|
|
E field on edges, which is $\frac{dx}{2}$ off from corners. $F(E(x+dx/2)) = E(k) \cdot exp(-i \pi*k)$ \\
|
|
\todo{Test case for point charge}
|
|
Show picture of E field from point charge, than potential with filter, without filter
|
|
|
|
|
|
\subsection{Transversal and Longitudinal Fields}
|
|
Used to find modes. Needs time dependence. Very cpu intensive from output.
|