diff --git a/06-Particle_in_Cell/instabilities.tex b/06-Particle_in_Cell/instabilities.tex index d6888f3..bdb76d6 100644 --- a/06-Particle_in_Cell/instabilities.tex +++ b/06-Particle_in_Cell/instabilities.tex @@ -175,7 +175,7 @@ Running and analysing the simulations is rather similar to the recipe described \begin{figure}[ht] \rotatebox{270}{ \includegraphics[width=0.65\columnwidth]{figure/application/B_vergleich.pdf} } - \caption{Comparison of the time evolution of the transverse magnetic field energy for different mass-ratios. With increasing mass-ratio the instability takes longer to develop. For the two highest mass-ratios one notices that the instability develops in two phases. (Figure taken from \cite{2010ApJ...720.1318B}\protect\footnotemark)} + \caption{Comparison of the time evolution of the transverse magnetic field energy for different mass-ratios. With increasing mass-ratio the instability takes longer to develop. For the two highest mass-ratios one notices that the instability develops in two phases. (Figure from \cite{2010ApJ...720.1318B} ``Thomas Burkart, Oliver Elbracht, Urs Ganse, and Felix Spanier: The Influence of the Mass Ratio on the Acceleration of Particles by Filamentation Instabilities,-Astrophysical Journal, Volume 720, Issue 2, pp. 1318-1324''. Published 2010 August 19. Reprinted with permission by \textcopyright AAS.)} \label{fig:B_vergleich} \end{figure} @@ -187,15 +187,7 @@ The corresponding filaments are shown in Fig.~\ref{fig:filaments}. Quite nicely \begin{center} \includegraphics[width=0.9\columnwidth]{figure/application/filament.pdf} \end{center} - \caption{Development and merging of the flux tubes for a simulation with $m_p/m_e = 100.0$ and a resolution of $256 \times 256 \times 512$ cells. The colors pertain to the particle density (in particles per cell). In the three pictures it is to be seen that first the flux tubes develop, later they nearly vanish (which corresponds to the dip in the magnetic field energy in Fig.~\ref{fig:B_vergleich} in the black curve at $80 \omega_p^{-1}$) and then the flux tube in the lower right corner grows stronger (lower set of pictures). This can be attributed to the independent instabilities at high mass-ratios. (Figure taken from \cite{2010ApJ...720.1318B} - \protect\footnotemark[5]%[\value{footnote}] - ) + \caption{Development and merging of the flux tubes for a simulation with $m_p/m_e = 100.0$ and a resolution of $256 \times 256 \times 512$ cells. The colors pertain to the particle density (in particles per cell). In the three pictures it is to be seen that first the flux tubes develop, later they nearly vanish (which corresponds to the dip in the magnetic field energy in Fig.~\ref{fig:B_vergleich} in the black curve at $80 \omega_p^{-1}$) and then the flux tube in the lower right corner grows stronger (lower set of pictures). This can be attributed to the independent instabilities at high mass-ratios. (Figure from \cite{2010ApJ...720.1318B} ``Thomas Burkart, Oliver Elbracht, Urs Ganse, and Felix Spanier: The Influence of the Mass Ratio on the Acceleration of Particles by Filamentation Instabilities,-Astrophysical Journal, Volume 720, Issue 2, pp. 1318-1324''. Published 2010 August 19. Reprinted with permission by \textcopyright AAS.) } - \label{fig:filaments} \end{figure} - -\footnotetext{Published in ``Thomas Burkart, Oliver Elbracht, Urs Ganse, and Felix Spanier: -The Influence of the Mass Ratio on the Acceleration of Particles by Filamentation Instabilities, -Astrophysical Journal, Volume 720, Issue 2, pp. 1318-1324''. Published 2010 August 19. \textcopyright AAS. Reproduced with permission} - diff --git a/06-Particle_in_Cell/numerics.tex b/06-Particle_in_Cell/numerics.tex index 817852c..76293df 100644 --- a/06-Particle_in_Cell/numerics.tex +++ b/06-Particle_in_Cell/numerics.tex @@ -422,7 +422,7 @@ of an interpolation that we will discuss next. \begin{figure}[h!] \centering - \includegraphics[width=0.25\hsize]{figure/numerics/interpolation.png} + \includegraphics[width=0.50\hsize]{figure/numerics/interpolation.png} \caption{Interpolation using the overlap between the cell and the particle, weighted by the shape function} \label{fig:num:interpolation} \end{figure} @@ -465,14 +465,14 @@ $S(-x) = S(x)$, to avoid unphysical self-forces on the particles. To allow effic equation~\eqref{eq:num:Bzinterpol}, the shape function should have compact support, i.e. be non-zero only up to some small $x_{max}$ to limit the sum to only go over a few grid cells. -The \textit{Nearest Grip Point} or NGP scheme is the minimal example satisfying +The \textit{Nearest Grid 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 shape function switches from one cell to another when the interface between those cells is crossed. %In principle all these properties are satisfied by a $\delta$-function. This -%use of $S(x) = \delta(x)$ is also referred to as \textit{Nearest Grip Point} or +%use of $S(x) = \delta(x)$ is also referred to as \textit{Nearest Grid Point} or %NGP scheme. Computationally it is very cheap, as no interpolation or summation %has to be done, we just assume that the field at the particle location is %identical to nearest available field on a grid location. The downside however is @@ -498,7 +498,7 @@ that generate that view are given by 0 & \text{else} \end{cases} \end{equation} -and illustrated in Fig.~\ref{fig:num:S_CIC}. +and illustrated in Fig.~\ref{fig:num:shape_function}(top left). %The associated weight function $W_{CIC}$ is %straight forward to calculate and given by %\begin{equation} @@ -512,43 +512,7 @@ and illustrated in Fig.~\ref{fig:num:S_CIC}. \begin{figure}[h!] \centering - \begin{subfigure}{0.25\hsize} - \centering - \includegraphics[width=\hsize]{figure/numerics/formfaktor_CIC_S.png} - \caption{Cloud-in-Cell \phantom{andere zeile}} - \label{fig:num:S_CIC} - \end{subfigure} - \begin{subfigure}{0.25\hsize} - \centering - \includegraphics[width=\hsize]{figure/numerics/formfaktor_TSC_S.png} - \caption{Triangular Shaped Cloud} - \label{fig:num:S_TSC} - \end{subfigure} - \begin{subfigure}{0.25\hsize} - \centering - \includegraphics[width=\hsize]{figure/numerics/formfaktor_PQS_S.png} - \caption{Piecewise Quadratic Shape} - \label{fig:num:S_PQS} - \end{subfigure} - \\ - \begin{subfigure}{0.25\hsize} - \centering - \includegraphics[width=\hsize]{figure/numerics/formfaktor_CIC_density.png} - \caption{Cloud-in-Cell \phantom{andere zeile}} - \label{fig:num:density_CIC} - \end{subfigure} - \begin{subfigure}{0.25\hsize} - \centering - \includegraphics[width=\hsize]{figure/numerics/formfaktor_TSC_density.png} - \caption{Triangular Shaped Cloud} - \label{fig:num:density_TSC} - \end{subfigure} - \begin{subfigure}{0.25\hsize} - \centering - \includegraphics[width=\hsize]{figure/numerics/formfaktor_PQS_density.png} - \caption{Piecewise Quadratic Shape} - \label{fig:num:density_PQdensity} - \end{subfigure} + \includegraphics[width=\hsize]{figure/numerics/Formfactor.png} \caption{Different shape functions in 1d and 2d} \label{fig:num:shape_function} \end{figure} @@ -580,7 +544,7 @@ the plasma. The use of higher order shape functions improves the conservation of thermal energy\cite{Shadwick_2009}. Higher order shape function from the same family such as \textit{Piecewise -Quadratic Shape} PQS illustrated in Fig.~\ref{fig:num:S_PQS} have been used. +Quadratic Shape} PQS illustrated in Fig.~\ref{fig:num:shape_function}(top right) have been used. Higher orders 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 @@ -695,7 +659,7 @@ particles in the code can be intuitively interpreted as particle trajectories. \begin{figure}[h!] \centering - \includegraphics[width=0.4\hsize]{figure/numerics/boris_push.pdf} + \includegraphics[width=0.6\hsize]{figure/numerics/boris_push.pdf} \caption{Velocity diagram of the Boris push: The red arrows indicate the change in velocity $q/m \vec{E}(t) \Delta{t}/2$ from the acceleration by the electric field $E(t)$ at the beginning and end of the Boris push. The vector $\vec{\Omega}$ is a normalized magnetic field $\vec{B}$ such that a cross product with it produces half the final rotation. This allows the construction of $\vec{v}_2$ and the final accurate solution.} \label{fig:num:boris_push} \end{figure} @@ -789,7 +753,7 @@ $\vec{v}(t+\Delta{t}/2)$ is slightly more complicated. \begin{figure}[htbp] \begin{center} - \includegraphics[width=0.5\textwidth]{currentassignment_naive.pdf} + \includegraphics[width=0.7\textwidth]{currentassignment_naive.pdf} \caption{Na\"ive current deposition for a charged particle moving as indicated by the black arrow and deposition current density onto the grid as shown in green. Solid black lines indicate grid cells, dashed line illustrate midplanes of cell faces.} \label{fig:num:currentassignment_naive} \end{center} @@ -850,30 +814,36 @@ this scheme is tedious to extend to shape functions beyond CIC. % \end{center} % \end{figure} -\begin{figure}[h!] - \centering - \begin{subfigure}{0.4\hsize} - \centering - \includegraphics[width=\textwidth]{currentassignment_esirkepov.pdf} - \caption{Current deposition using the algorithm by \cite{Esirkepov_2001}. The particle motion is decomposed into axis-parallel segments that are individually weighted.} - \label{fig:num:currentassignment_esirkepov} - \end{subfigure} - \begin{subfigure}{0.4\hsize} - \centering - \includegraphics[width=\textwidth]{currentassignment_umeda.pdf} - \caption{Current deposition using the Zig-Zag algorithm by \cite{Umeda_2003}. As the particle closes from one cell to another - %(across the solid black line indicating the cell interface) - , its trajectory is modified to go via the midpoint.} - \label{fig:num:currentassignment_umeda} - \end{subfigure} - \caption{Charge conserving current deposition} -\end{figure} +%\begin{figure}[h!] +% \centering +% \begin{subfigure}{0.4\hsize} +% \centering +% \includegraphics[width=\textwidth]{currentassignment_esirkepov.pdf} +% \caption{Current deposition using the algorithm by \cite{Esirkepov_2001}. The particle motion is decomposed into axis-parallel segments that are individually weighted.} +% \label{fig:num:currentassignment_esirkepov} +% \end{subfigure} +% \begin{subfigure}{0.4\hsize} +% \centering +% \includegraphics[width=\textwidth]{currentassignment_umeda.pdf} +% \caption{Current deposition using the Zig-Zag algorithm by \cite{Umeda_2003}. As the particle closes from one cell to another +% %(across the solid black line indicating the cell interface) +% , its trajectory is modified to go via the midpoint.} +% \label{fig:num:currentassignment_umeda} +% \end{subfigure} +% \caption{Charge conserving current deposition} +%\end{figure} +\begin{figure}[h!] + \includegraphics[width=0.5\textwidth]{currentassignment_esirkepov.pdf}% + \includegraphics[width=0.5\textwidth]{currentassignment_umeda.pdf} + \caption{Two option for charge conserving current deposition. Left: Current deposition using the algorithm by \cite{Esirkepov_2001}. The particle motion is decomposed into axis-parallel segments that are individually weighted. Right: Current deposition using the Zig-Zag algorithm by \cite{Umeda_2003}. As the particle closes from one cell to another, its trajectory is modified to go via the midpoint.} + \label{fig:num:currentassignment} +\end{figure} A scheme that works with arbitrary shape functions (as long as they are products of separate one-dimensional shape functions) and without the need for different treatment of special cases is the current deposition by \cite{Esirkepov_2001}. -Fig.~\ref{fig:num:currentassignment_esirkepov} illustrates the current density +Fig.~\ref{fig:num:currentassignment}(left) illustrates the current density that is deposited using this algorithm for the same particle move as used in Fig.~\ref{fig:num:currentassignment_naive}. The reader can verify that the total current is identical, but the distribution onto the different grid points @@ -890,7 +860,7 @@ midpoint of the interface. A particle that does not naturally go through that 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 +as illustrated in Fig.~\ref{fig:num:currentassignment}(right)% illustrates this motion and the ~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 diff --git a/06-Particle_in_Cell/transport.tex b/06-Particle_in_Cell/transport.tex index 934bb86..f0dc7e6 100644 --- a/06-Particle_in_Cell/transport.tex +++ b/06-Particle_in_Cell/transport.tex @@ -99,7 +99,7 @@ The observable tilt between theory and numerical experiment is an artifact of de % \caption{S\textrm{III}.} % \label{fig:trans:mpzume428} %\end{subfigure} - \caption{Pitch angle scatter plots present the change $\Delta\mu$ of a particle's pitch angle at time $t$ depending on its initial $\mu$ at $t_0=0$, where $t_1$ and $t_2$ are intervals of two and four gyroperiods, respectively. Color coding indicates the number of particles at a given point $(\mu, \Delta\mu)$ normalized to the total number of test protons. The dashed lines show the position of the resonant pitch angle $\mu_\text{res}$ given by equation~\eqref{eq:trans:res_con}. The curves represent QLT predictions for the maximum scattering amplitude according to equation~\eqref{eq:trans:qlt}. Figure reproduced from \cite{2014CoPhC.185.1981S}} + \caption{Pitch angle scatter plots present the change $\Delta\mu$ of a particle's pitch angle at time $t$ depending on its initial $\mu$ at $t_0=0$, where $t_1$ and $t_2$ are intervals of two and four gyroperiods, respectively. Color coding indicates the number of particles at a given point $(\mu, \Delta\mu)$ normalized to the total number of test protons. The dashed lines show the position of the resonant pitch angle $\mu_\text{res}$ given by equation~\eqref{eq:trans:res_con}. The curves represent QLT predictions for the maximum scattering amplitude according to equation~\eqref{eq:trans:qlt}. Figure from \cite{2014CoPhC.185.1981S} reprinted with permissions by \textcopyright Elsevier.} \label{fig:trans:mass_ratio} \end{figure}