% 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{The Particle in Cell Method} \xfigure{h}{0.09}{Chapter5_ACRONYM/ParticleInCellMethod/pic_scheme.png}{PIC scheme}{} \newpage \subsection{Grids for Currents and Fields} \xfigure{h}{1.}{Chapter5_ACRONYM/ParticleInCellMethod/GridsForCurrent/grid_for_current.pdf}{Yee lattice}{} %\begin{itemize} %\item Yee Gitter, positions of E,B,rho %\end{itemize} \subsection{Macro Particles } %\begin{itemize} %\item reference to Vlasov-equation %\end{itemize} \newpage \subsection{Particle Movement} \label{ssec:boris_push} \xfigure{h}{1.}{Chapter5_ACRONYM/ParticleInCellMethod/ParticleMovement/boris_push.pdf}{Boris push}{} %\begin{itemize} %\item Boris Push %\end{itemize} \newpage \subsection{Current Deposition} \xfigure{h}{1.}{Chapter5_ACRONYM/ParticleInCellMethod/CurrentDeposition/esirkepov.pdf}{Current deposition}{} %\begin{itemize} %\item Esirkepov %\end{itemize} \newpage \subsection{Maxwell Solver} \xfigure{h}{1.}{Chapter5_ACRONYM/ParticleInCellMethod/MaxwellSolver/maxwell_solver.pdf}{Maxwell solver}{} %\begin{itemize} %\item unbound maxwell solver, spatial differences %\item timestep length %\end{itemize} \section{Boundary Conditions} %\begin{itemize} % \item short description of simulated geometry and types of boundary %\end{itemize} \subsection{Perfect Electrical Conductor} \todo{Sketch of handling of half cut cells and cells at borders} %\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 Boundary Condition} %\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{Background Fields and Currents} %\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} \newpage \section{Particle Injection} %\begin{itemize} % \item new methods to account for open boundaries and tritium decay %\end{itemize} \subsection{Injection Methods} %Description of particle injection methods used for multiple cases. \subsubsection{Constant Density} \subsubsection{Constant Current} \subsubsection{Constant Decay Rate} \subsection{Injection at PML boundary} %Slightly different case. Takes care of additional fields. \xfigure{h}{1.}{Chapter5_ACRONYM/ParticleInjection/pml_far_field.pdf}{PML far field}{} \xfigure{h}{1.}{Chapter5_ACRONYM/ParticleInjection/pml_near_field.pdf}{PML far field}{} \newpage \section{Electrostatic Potential from Poisson Equation} \subsection{Finite Differences Method} %\xfigure{h}{1.}{Chapter5_ACRONYM/ElectrostaticPotential/finite_difference_sketch.pdf}{Sketch }{} %\subsection{Fourier Method} %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. \newpage \section{Validation of ACRONYM Simulations} \subsection{Ion Current Approximation} \xfigure{h}{1.}{Chapter5_ACRONYM/Validation/IonCurrentApproximation/comparison.pdf}{Comparison of ion current}{} \newpage \subsection{Background Electric Field} \todo{Plot of current and electric field} \newpage \subsection{Cavity Mode Excitation} \xfigure{h}{1.}{Chapter5_ACRONYM/Validation/CavityMode/cavity_mode_excitation.pdf}{Cavity mode excitation}{} \newpage \xfigure{h}{1.}{Chapter5_ACRONYM/Validation/CavityMode/cavity_mode_Ez.pdf}{TM mode pattern}{} \newpage \xfigure{h}{1.}{Chapter5_ACRONYM/Validation/CavityMode/cavity_mode_fit.pdf}{Cavity mode fit}{} \newpage \xfigure{h}{1.}{Chapter5_ACRONYM/Validation/CavityMode/cavity_mode_f_vs_product.pdf}{Cavity mode excitation}{} \newpage \subsection{Debye-Sheath Development} \xfigure{h}{1.}{Chapter5_ACRONYM/Validation/DebyeSheath/E_r_2d_(t_160000)_(z_115).pdf}{Radial debye sheath}{} \newpage \xfigure{h}{1.}{Chapter5_ACRONYM/Validation/DebyeSheath/radial_comparison.pdf}{Radial comparison}{} \newpage \xfigure{h}{1.}{Chapter5_ACRONYM/Validation/DebyeSheath/longitudinal_comparison.pdf}{Longitudinal comparison}{} \newpage \section{Conclusion}