Merge branch 'master' of masterduck.fspanier.de:katrin/katrin-plasma into master

RC KARL paper
This commit is contained in:
2024-07-18 17:24:56 +02:00
6 changed files with 24 additions and 35 deletions
+11 -29
View File
@@ -63,9 +63,6 @@
\newcommand{\commaeq}{\text{\,,}} % in equations
\DeclarePairedDelimiter\abs{\lvert}{\rvert} % for \abs
%% This list environment is used for the references in the
%% Program Summary
%%
\newcounter{bla}
\newenvironment{refnummer}{%
\list{[\arabic{bla}]}%
@@ -87,24 +84,20 @@
\begin{frontmatter}
%% Title, authors and addresses
\title{KARL - A Monte Carlo model for atomic and molecular processes in the tritium atmosphere of the KATRIN experiment}
\author[a]{Jonas Kellerer}
\author[b]{Felix Spanier \corref{author}}
\author[b]{Christian Sendlinger}
\author[c]{Felix Spanier \corref{author}}
\cortext[author] {Corresponding author.\\\textit{E-mail address:} felix@fspanier.de}
\address[a]{Institut f\"ur Astroteilchenphysik, KIT, Hermann-von-Helmholtz-Platz 1,
76344 Eggenstein-Leopoldshafen, Germany}
\address[b]{Institut f\"ur Theoretische Astrophysik, Universit\"at Heidelberg, Albert-Ueberle-Str. 2 und Philosophenweg 12,
\address[bc]{Institut f\"ur Theoretische Astrophysik, Universit\"at Heidelberg, Albert-Ueberle-Str. 2 und Philosophenweg 12,
69120 Heidelberg, Germany}
\begin{abstract}
%At the KATRIN experiment, the electron antineutrino mass is inferred from the shape of the $\upbeta$-decay spectrum of tritium. Important systematic effects in the Windowless Gaseous Tritium Source (WGTS) of the experiment include the energy loss by electron scattering, and the extended starting potential. In the WGTS, primary high-energy electrons from $\upbeta$-decay produce an extended secondary spectrum of electrons through various atomic and molecular processes including ionization, recombination, cluster formation and scattering. In addition to providing data essential to the simulation of energy loss processes, the electron spectrum also provides information important in the simulation of plasma processes. These simulations will then provide an insight on the starting potential.\\
A new parallelized simulation code is presented, which uses a semi classical Monte Carlo method to determine particle spectra in the KATRIN source by tracking single particles from interaction to interaction. The moved distance is determined from the mean free path and subsequently from cross sections and particle densities. Particle densities can be provided by the user, or are calculated during simulation from the movement of the simulated particles. This enables also the inclusion of recombination effects in the calculation. The implemented interaction types include elastic scattering, ionization, clustering and excitation (electric, vibrational, rotational) and recombination. Initial particles are created using the neutral gas density and known $\upbeta$-decay spectrum. The code is optimized for the conditions in the KATRIN source, being able to cope with a large density gradient, neutral gas flow and many different particle species in a Tritium environment.
A new parallelized simulation code is presented, which uses a semi classical Monte Carlo method to determine particle spectra in the KATRIN source by tracking single particles from interaction to interaction. The moved distance is determined from the mean free path and subsequently from cross sections and particle densities. Particle densities can be provided by the user, or are calculated during simulation from the movement of the simulated particles. This enables also the inclusion of recombination effects in the calculation. The implemented interaction types include elastic scattering, ionization, clustering and excitation (electric, vibrational, rotational) and recombination. Initial particles are created using the neutral gas density and known $\upbeta$-decay spectrum. The code is optimized for the conditions in the KATRIN source, being able to cope with a large density gradient, neutral gas flow and many different particle species in a Tritium environment.
The code is parallelized using MPI and writes output using HDF5. Input to the simulation is read from a JSON description that provides general information on the simulation (resolution of the simulation domain) and the various optional features of the code, namely user defined species with their own terminator, interaction types, movers and initialization.
\end{abstract}
@@ -367,7 +360,6 @@ Next, the direction of movement has to be determined. For both the impact partic
\end{equation}
The azimuth angle of both particles is calculated, using the derivation of Grosswendt and Waibel \citep{Grosswendt:1978aa}. Lastly, the velocity of the ejected ion is set to the velocity of the target particles, assuming no recoil of the target particle in the interaction. As described before, this assumes a large mass difference of the impact particle and the target particle, which is the case for the dominant process in the source: ionization of tritium gas by electron impact.
\subsection{Calculation of fields}
\label{ssec:field_calculation}
@@ -401,10 +393,13 @@ The benefit of this parallelization scheme lies in its simplicity. It is easy to
The simplicity of the method also produces some drawbacks. First, the load on the CPU cores can be different even though the number of events was set to the same value because of the creation of new particles through ionization. However, if the cycle length is chosen large enough, the load can balance out. The specific choice of cycle length depends on the simulated problem and has to be chosen by the user.
The simulation code used for this study was parallelized to improve the efficiency of the computation, as described in the previous paragraph. The effectiveness of this parallelization strategy can be seen in the scaling graph shown in Figure~\ref{fig:scaling_graph}. The graph illustrates the time it took for the simulation to complete for different numbers of events and CPU cores. As can be seen, the scaling is linear except for the first data point, which is slightly slower. This is due to the initialization of the simulation and the distribution of events to the different CPU cores. Once the simulation is properly initialized, the linear scaling is observed for all subsequent data points. This behaviour is expected and is a common characteristic of parallelized simulations.
\begin{figure}[tbp]
\centering
\includegraphics[width=1.0\textwidth]{figures/parallelization.pdf}
\caption{Scaling graph. Simulated using standard KATRIN parameters with increasing number of events. The load was divided evenly between the CPU cores. It was recorded how long the simulation took from start to finish, including output. The result of a single CPU core is used for prognosis of the ideal scaling.}
\caption{Scaling graph. Simulated using standard KATRIN parameters with increasing number of events. The load was divided evenly between the CPU cores. It was recorded how long the simulation took from start to finish, including output. The result of a single CPU core is used for prognosis of the ideal scaling. The simulations were performed on the bwForCluster NEMO\citep{nemo_cluster}}
\label{fig:scaling_graph}
\end{figure}
@@ -447,16 +442,6 @@ There are three different energy distributions available in the code, the electr
\item \textit{Constant}: A single energy is returned for all calls to the class.
\end{itemize}
% \paragraph{Drift velocity}
% The drift velocity represents the idea, that a particle species travels at this speed on average. It is mostly used for the background species, but a 'null' option is also available for the construction of tracked species. The drift velocity has to be provided by a vector field.
% \paragraph{Terminator}
% A terminator class member each, see section~\ref{ssec:termination}, is created for all tracked species. The number of maximum interactions has to be provided, alongside the maximum time alive. Additionally, a geometry has to be provided, which defines if the particle has left the simulation domain. Currently there is only one geometry available, the cylinder. It is defined by its radius and its height.
% \pararaph{Reflector}
% The reflector represents the idea, that a particle is reflected by process, which is outside of the simulation domain. It is provided to each of the tracked species. Therefore, there is also the option of \textit{NoReflector} if no reflection is necessary. Currently there is only one other option implemented: the \textit{ReflectorDPS}. It provides the means to reflect particles, which have crossed a maximum z value, given by the user.
\paragraph{Simulation}
In the simulation section, one can set the number of simulated events over all CPU cores (\textit{SimulatedEvents}). For KATRIN these events symbolize tritium decays. The events are distributed evenly on all CPUs. The parameter \textit{EventStride} is used to define the number of events after which the density field data is synchronized between the CPUs. Also, output could be performed here.
@@ -477,7 +462,6 @@ In the random numbers section, the seed for the pseudo random numbers is set. It
In the species section, all relevant information on the species used in the simulation is provided. It is subdivided into a section for the background species and tracked species. A specie is added to the simulation provided a unique key name and the necessary data, which is different for background species and tracked species. However, both sections need to specify the \textit{ParticleType}, which can either be 'electron', 'T2+', 'T3+', 'T+' or 'T2'. This defines the mass and charge of the specie. Furthermore, background species need three sections to be initialized (\textit{ConstantDensityField}, \textit{VelocityDistribution} and \textit{DriftVelocity}), while tracked species need nine (\textit{Mover}, \textit{Terminator}, \textit{Reflector}, \textit{DensityField}, \textit{VelocityDistribution}, \textit{DriftVelocity}, \textit{Loggers}, \textit{CurrentCollector}, \textit{Interactions}).
\subsection{Particle queue}
\label{ssec:particle_queue}
@@ -521,9 +505,8 @@ Ions on the other hand are created with thermal energies of the neutral gas and
The spectrum shows very clearly that all processes for the particles interact in a non-trivial manor. It is therefore necessary to use a sophisticated tool like KARL to simulate their behaviour inside the KATRIN source.
%\appendix
\section{Build instructions}
In order to compile the source code of KARL, download the code on a Unix system and follow the instructions in the README file. The necessary dependencies are listed in the REQUIRED file. A sample configuration file (test\_parameter.json) can be found in the KARL folder simulation\_config.
\section*{Acknowledgments}
@@ -543,5 +526,4 @@ J.K. acknowledges the support of the Ministry for Education and Research BMBF (5
%\section{References}
\bibliographystyle{elsarticle-num}
\bibliography{paper}
\end{document}
\end{document}