%% LaTeX2e class for student theses %% sections/evaluation.tex %% %% Karlsruhe Institute of Technology %% Institute for Program Structures and Data Organization %% Chair for Software Design and Quality (SDQ) %% %% Dr.-Ing. Erik Burger %% burger@kit.edu %% %% Version 1.3.3, 2018-04-17 %\chapter{Evaluation} %\label{ch:Evaluation} \chapter{Simulations with KARL} \label{ch:res} First simulations from the KARL code will be presented in this chapter. Since the \ac{pic} code (\autoref{sec:cod:intention}) is still\footnote{as of December 2019} under development, these first simulations are performed in absence of electric fields. Thus these first results need to be treated with caution, as electric fields arising from charged particles are clearly a key component in the modeling of plasmas. In \autoref{sec:res:norec} first results without the implementation of electron-ion recombination are presented. These results can interpreted as a conservative estimator. Additional recombinations decrease the particle densities and thus plasma effects. In this first version of KARL, two preliminary implementations for recombination are featured. These show good results and will be presented in \autoref{sec:res:rec}. Earlier works from \cite{Nastoyashchii:2005aa} have also simulated the particle distribution in the \ac{wgts} of the KATRIN experiment. Although the previous work does not feature spatial resolution, the resulting electron-spectrum can be compared to averaged results from KARL. This comparison is shown in \autoref{sec:res:fer} \section{First results using KARL} \label{sec:res:norec} First results from the KARL code are obtained without electron-ion recombination. These simulations can be interpreted as conservative estimator. The lack of recombination lead to increased particle densities and thus increased plasma effects. Accordingly a simulation was performed with \num{{}e4} $\upbeta$-decays. For the proper initialization of the \acp{rdf} \num{5e3} additional $\upbeta$-decays were performed prior taking statistics (\autoref{sec:cod:rdf}). The corresponding parameter file is attached in \autoref{lst:app:para_sim1}. For better comprehensibility in the further context this simulation will be referenced as SIM1. The simulation was performed on 200 cores and took \textasciitilde \SI{2.2}{\hour}, equaling a wall time of \textasciitilde \SI{4.45e2}{\hour}. Hence the average simulation time for one $\upbeta$-decay and all to it corresponding emerging particles took \textasciitilde \SI{100}{\second}. Throughout the simulation a total of ~\num{2.1e5} secondary and higher order electrons were created. This equals \textasciitilde 14 secondary particles per initial $\upbeta$-electron. Thus the majority of electrons and ions are created by ionization. \begin{figure}[tbp] \centering %\printinunitsof{cm}\prntlen{\textwidth} \includegraphics{pics/results/dndE_3D.pdf} \caption{Differential electron densities from SIM1. The differential density is indicated by the color. Small densities are indicated by blue coloring. Towards higher densities the hue shifts to yellow. The $x$-axis represent longitudinal position in the \ac{wgts}. $y$-axis represents the electron energy on a logarithmic scale.} \label{fig:res:dndE_3D} \end{figure} \paragraph{Differential electron density spectrum} The resulting differential electron density spectrum $\frac{\upd n}{\upd E}$ from SIM1 is displayed in \autoref{fig:res:dndE_3D}. The spectrum was obtained using the \ac{lbm} (\autoref{sec:cod:log}). It is visible that the spectrum shows a strong longitudinal dependency for energies $E>\SI{10}{\eV}$. At high energies $E>\SI{{}e2}{\eV}$ no longitudinal dependency is observable. On the assumption that the high energetic electrons are dominated by $\upbeta$-electrons and that these $\upbeta$-electrons pass the \ac{wgts} unobstructed, the non-directional $\upbeta$-electrons flux at a given longitudinal position $z_\mathrm{ref}$ is composed of three factors: \begin{enumerate} \item $N_1$ $\upbeta$-electrons emerging from $z < z_\mathrm{ref}$ with $v_z > 0$, before reflection at the spectrometers. \item $N_2$ $\upbeta$-electrons emerging from $z > z_\mathrm{ref}$ with $v_z < 0$. \item $N_3$ $\upbeta$-electrons after reflection at the spectrometers with $v_z < 0$. \end{enumerate} $z$ and $v_z$ are the longitudinal position and velocity of the electrons in the respective categories. In the KARL code the $\upbeta$-electrons are injected isotropic. Thus half the $\upbeta$-electrons emerge with negative $v_z$ and the other half with positive $v_z$. For $N_\upbeta$ $\upbeta$-decays this yields to $N_1 + N_2 = \frac{N_\upbeta}{2}$ and $N_3 = \frac{N_\upbeta}{2}$. Hence the non directional flux $N_1 + N_2 + N_3$ is expected to equal $N_\upbeta$. A more precise analysis shows a small longitudinal dependency of high energetic electrons in the order of $\mathcal{O}(0.1 \cdot N_\upbeta)$ (\autoref{fig:app:sim1_high_beta}). This small longitudinal dependency is in good agreement with the previous approximation and in first order no longitudinal dependency is observable at high energies. At lower energies $E >\SI{10}{\eV}$ the electron spectrum is dominated by secondary and higher order particles created by ionization. The probability for ionization scales with the \ce{T2}-density. Thus the low energy electron spectrum is expected to scale with the \ce{T2}-density. This dependency is clearly observable at low energies. A more precise visualization of this dependency is displayed in \autoref{fig:app:sim1_low_T2}. \begin{figure}[tbp] \centering \input{pics/results/dndE_analysis.pgf} \caption{Differential electron density spectrum in the center of the \ac{wgts} at $z=5$. The solid, red line represent the results from SIM1. The dotted, yellow line follows \autoref{eq:res:spech} and was fitted to the results from SIM1. The dashed, blue line follows \autoref{eq:res:specl} and was fitted to the results from SIM2.} \label{fig:res:dndE_ana} \end{figure} A detailed analysis of the electron-spectrum was performed in the center of the \ac{wgts} at $z=5$ and is displayed in \autoref{fig:res:dndE_ana}. Analogous spectra are observed at all longitudinal positions $z$ of the \ac{wgts} and only differ in the scale (\autoref{fig:app:sim1_all_z}). Thus the observed results are analogous to $z=5$. At high energies $E > \SI{{}e2}{\eV}$ the electron spectrum is expected to scale as \begin{equation} \label{eq:res:spech} f_\mathrm{h}(E) \propto f_\upbeta(E) \cdot E^{-0.5} \, , \end{equation} where $f_\upbeta(E)$ is the $\upbeta$-spectrum (\autoref{eq:neu:beta}). Using the previous assumptions, that high energetic electrons dominantly consist of $\upbeta$-electrons and propagate unobstructed, yields that the non-directional flux scales with the $\upbeta$-spectrum. The factor $E^{-0.5}$ arises from the connection between non-directional particle flux and density. As shown in \autoref{sec:cod:log} the density of a passing particle scales with the inverse of its longitudinal speed $\frac{1}{v_z}$ and thus with $E^{-0.5}$. This expected shape of the differential electron density for energies $E > \SI{{}e2}{\eV}$ is clearly reflected in the observed spectrum of SIM1. At low energies $E > \SI{{}e-2}{\eV}$ the electrons are expected to enter thermal equilibrium with the molecular tritium. Hence the non-directional particle flux is expected to follow the \SI{30}{\kelvin} Maxwell Boltzmann distribution $f_\mathrm{MB}(E, \SI{30}{\kelvin})$ of the molecular tritium. Thus the differential electron density of low energies is expected to scale with \begin{equation} \label{eq:res:specl} f_\mathrm{l} \propto f_\mathrm{MB}(E, \SI{30}{\kelvin}) \cdot E^{-0.5} \, . \end{equation} The observed spectrum fulfills the expectation well. \begin{figure}[tbp] \centering \input{pics/results/dndE_comp_rdf.pgf} \caption{Comparison of the differential electron density spectrum obtained from \ac{lbm} with the spectrum of \acs{rdf} at the end of the simulation. The solid, red line marks the results from the \ac{lbm}. The dashed, blue line represents the final states of the \acs{rdf} at the end of the simulation. Both spectra are average over the length of the \ac{wgts}. The corresponding standard deviation is indicated by the shaded area.} \label{fig:res:dndE_comp_rdf} \end{figure} \paragraph{Comparison of \ac{lbm} and \ac{rdf}} Additional analysis of the electron spectrum is performed by comparing the \ac{rdf} (\autoref{sec:cod:dens}) with the spectrum obtained from the \ac{lbm}. Therefore the electron \ac{rdf} was extracted at the end of the simulation. Both spectra are displayed in \autoref{fig:res:dndE_comp_rdf}. As one can see both methods are in good agreement. This validates the consistency of both methods. Minor divergences arise from the difference in calculation method. The \acp{rdf} focus on high spatial resolution, whereas the \ac{lbm} on high energy resolution. \begin{figure}[tbp] \centering \input{pics/results/djzdE.pgf} \caption{Particle fluxes from SIM1. The solid, red line represents the particle flux of electrons. The dashed, blue line represents the ion flux. Positive fluxes indicates particles moving towards the spectrometers.} \label{fig:res:djzdE} \end{figure} \paragraph{Particle fluxes} The ion fluxes are a further important output of the KARL code, which are essential for the \ac{pic} simulation (\autoref{sec:cod:intention}). The particle fluxes calculated from the \ac{lbm} of SIM1 are displayed in \autoref{fig:res:djzdE}. In the absence of electric fields the ions are expected to follow the implemented \ce{T2} flux (\autoref{sec:mod:wgts}). The observed ion flux is in good agreement with this expectation. Since the electrons can only leave the \ac{wgts} at the \ac{rw}, the electron-flux is expected to be monotonic rising and negative at all points. This expectation is also clearly visible in the results of SIM1. A brief quantitative analysis of the particle fluxes shows that the number of electrons leaving the \ac{wgts} equals the number of ions. Thus no charge up of the \ac{wgts} was observed. \begin{figure}[tbp] \centering \input{pics/results/dndE_rec_comp_zoom.pgf} \caption{Comparison of two implementations of recombination with simulation without recombination in the thermal region. The upper half of the plot shows the differential densities of the individual simulations. The displayed densities are averaged over the whole length of the \ac{wgts}. SIM1: Conservative estimator without recombination, displayed as solid, red line. SIM2: Implementation of asymmetric recombination, displayed as dashed, blue line. SIM3: Implementation of recombination by solely accounting electron energy in the \acs{mcs} calculation, displayed as dotted, yellow line. The bottom half of the plot shows the ratio of the densities from SIM2 and SIM3 in comparison to SIM1.} \label{fig:res:dndE_comp_rec} \end{figure} \FloatBarrier \section{Simulations with recombination} \label{sec:res:rec} Recombination has been implemented as described in \autoref{ch:cod}. First examinations show asymmetric recombination rates for electrons and tritium ions. Thus indicating nonphysical behavior. This problem arises at low energies during the \ac{mcs} calculation. During this calculation an integration over all possible momentum constellations between initial particle and interaction partner, which is indicated by the \ac{rdf}, is performed. As in this version all \acp{rdf} are implemented isotropic, which leads to absurdly large \ac{mcs} for tritium ions and thus removing all tritium ions from the simulation. Envisioned fixes for this bug have been identified and will be discussed in \autoref{ch:out}. At this moment two successful implementation of recombination exist in the KARL code. Accordingly the two simulation SIM2 and SIM3 with \num{{}e4} $\upbeta$-decays each have been performed. In SIM2 the recombination was implemented asymmetrically. Only for the physical simulation of electrons, recombination has been implemented. To properly account for the recombination on ion side, the densities of the ion \acp{rdf} are accordingly reduced. Thus only the ion \acp{rdf} reflect the proper ion densities and the output from the \ac{lbm} for ions is expected to show errors. In SIM3 the recombination was implemented symmetrically, but the integration over possible constellation of momentum vectors during the \ac{mcs} calculation was completely neglected. The laboratory frame energy in the \ac{mcs} calculation was calculated solely from the electron energy, thus completely ignoring ion energy. This assumption was implemented symmetrically during kinetic simulation of electrons and ions. Comparing SIM1 with SIM2 and SIM3 shows, that for energies $E >\SI{{}e-2}{\eV}$ all three simulations yield identical results (\autoref{fig:app:rec_comp}). Thus only at low energies $E <\SI{{}e-2}{\eV}$ recombination is significant. A comparison in this energy regime is displayed in \autoref{fig:res:dndE_comp_rec}. The comparison shows that recombination reduces the electron densities. Compared to SIM1, the electron densities in SIM2 are reduced by a factor of $\mathcal{O}$ (\num{{}e-2}) and in SIM3 by a factor of \textasciitilde \num{0.4}. The stronger reduction of SIM2 compared to SIM3 indicates a strong influence of proper integration in the \ac{mcs} calculation. Further SIM2 shows a slope in the reduction towards smaller energies, whereas the ratio between SIM3 and SIM1 is in first order a constant. From the \ac{tcs} for electron-ion recombination (\autoref{fig:mod:eTI_overview}) a higher recombination rate towards smaller energies is expected, thus favoring SIM2. \section{Comparing KARL with previous simulations} \label{sec:res:fer} \begin{figure}[tbp] \centering \input{pics/results/dndE_comp_fer.pgf} \caption{Comparison of differential electron densities from SIM1 with results of COMP1 \cite{Nastoyashchii:2005aa}. The results from KARL are averaged over the \ac{wgts} and displayed as solid, red line. The shaded area represents standard deviation of the longitudinal averaging. The dashed blue line shows results from COMP1. The spectrum of COMP1 was normalized using the $\upbeta$-spectrum at energies $E >\SI{{}e2}{\eV}$.} \label{fig:res:dndE_comp_fer} \end{figure} The electron spectrum in the \ac{wgts} has also been simulated in previous work from \cite{Nastoyashchii:2005aa}. This work will be referenced as COMP1 in the further context . In comparison to KARL the previous work does not resolve the particle densities spatially and does not cover ions kinetically. Thus comparison with COMP1 was performed by averaging the results from KARL over the whole length of the \ac{wgts}. A comparison of the differential electron density spectrum from SIM1 and COMP1 is displayed in \autoref{fig:res:dndE_comp_fer}. The spectrum from SIM1 acts substitutional for SIM2 and SIM3 at energies $E > \SI{{}e-2}{\eV}$, since all three spectra are identical in this energy regime (\autoref{fig:app:rec_comp}). At lower energies a more precise comparison will be featured in the further discussion. For the comparison between SIM1 and COMP1, the spectrum from COMP1 was normalized to the spectrum from SIM1 using the $\upbeta$-spectrum at high energies of $ E>\SI{{}e3}{\keV}$. At energies from $\mathcal{O}(\SI{10}{\keV})$ down to $\mathcal{O}(\SI{1}{\eV})$ both simulation are in good agreement. Noticeably is the peak in the spectrum of COMP1 at \textasciitilde \SI{{}e1}{\eV}, which is not present in KARL. However in both simulations a kink in the spectrum is visible at this point and the slopes from both simulations are in good agreement. The kink can be related to a corresponding kink in the \ac{tcs} of electron \ce{T2} interactions (\autoref{fig:mod:eT2_overview}). At an energy of $E \approx \SI{1}{\eV}$ the result from KARL show a local minimum. This minimum is not reflected in the results from COMP1. Further down to energies of $E \approx \SI{{}e-2}{\eV}$ both spectra show minor divergences but are in first order in good agreement. \begin{figure}[tbp] \centering \input{pics/results/dndE_rec_comp_fer_zoom.pgf} \caption{Comparison of SIM2 and SIM3 with results from COMP1 \cite{Nastoyashchii:2005aa} in the thermal region. The upper half of the plot shows the differential densities of the individual simulations. The displayed densities from SIM2 and SIM3 are averaged over the whole length of the \ac{wgts}. the shaded area represent the stand deviation from this averaging. SIM2: Implementation of asymmetric recombination, displayed as dashed, blue line. SIM3: Implementation of recombination by solely accounting electron energy in the \acs{mcs} calculation, displayed as dotted, yellow line. COMP1: Results from \cite{Nastoyashchii:2005aa}, displayed as dash-dotted, green line. The bottom half of the plot shows the ratio of the densities from SIM2 and SIM3 in comparison to COMP1.} \label{fig:res:dndE_comp_fer_rec} \end{figure} Towards lower energies the spectra differ and recombination effects become dominant. A precise comparison of COMP1 with SIM2 and SIM3 at energies $E < \SI{{}e-2}{\eV}$ is displayed in \autoref{fig:res:dndE_comp_fer_rec}. One can see, that COMP1 and SIM2 are in very good agreement. The results from COMP1 are within one standard deviation of SIM2. The displayed standard deviation arises from averaging the spectra over the length of the \ac{wgts}. SIM3 shows larger divergence to COMP1, both in scale and shape. This indicates, that recombination was implemented better in SIM2 than in SIM3 and that proper integration is essential for \ac{mcs} calculation.