10 Commits
2 changed files with 27 additions and 21 deletions
+22 -16
View File
@@ -27,8 +27,8 @@
\DeclareSIUnit\erg{erg} \DeclareSIUnit\erg{erg}
\newcommand\changed[1]{\textcolor{red}{\textbf{#1}}} \newcommand\changed[1]{#1}
\newcommand\cchanged[1]{\textcolor{blue}{\textbf{#1}}} \newcommand\cchanged[1]{\textcolor{red}{\textbf{#1}}}
% setup for JSON % setup for JSON
\colorlet{punct}{red!60!black} \colorlet{punct}{red!60!black}
@@ -105,7 +105,7 @@
\begin{abstract} \begin{abstract}
\changed{A new parallelized simulation code is presented, which uses a semi-classical Monte Carlo method to determine particle spectra in the KATRIN source. Reaction chains are generated from the decay of tritium within the source. The code includes all relevant processes: elastic scattering, ionization, excitation (electric, vibrational, rotational), recombination and various clustering processes. The main emphasis of the code is the calculation of particle spectra and particle densities and currents at specific points within the source. It features a new technique to determine these quantities. It also calculates target fields for the interaction of particles with each other as it is needed for recombination processes.\\ \changed{A new parallelized simulation code is presented, which uses a Monte Carlo method to determine particle spectra in the KATRIN source. Reaction chains are generated from the decay of tritium within the source. The code includes all relevant processes: elastic scattering, ionization, excitation (electric, vibrational, rotational), recombination and various clustering processes. The main emphasis of the code is the calculation of particle spectra and particle densities and currents at specific points within the source. It features a new technique to determine these quantities. It also calculates target fields for the interaction of particles with each other as it is needed for recombination processes.\\
The code has been designed for the KATRIN experiment but is easily adaptable for other tritium based experiments like Project 8. Geometry and background tritium gas flow can be given as user input.\\ The code has been designed for the KATRIN experiment but is easily adaptable for other tritium based experiments like Project 8. Geometry and background tritium gas flow can be given as user input.\\
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. 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.
} }
@@ -113,8 +113,6 @@ The code is parallelized using MPI and writes output using HDF5. Input to the si
%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 (MFP) 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 (MFP) 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. % 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}
% submit to http://www.ees.elsevier.com/cpc. % submit to http://www.ees.elsevier.com/cpc.
% In addition to the manuscript you must supply: the program source code; job control scripts, where applicable; a README file giving the names and a brief description of all the files that make up the package and clear instructions on the installation and execution of the program; sample input and output data for at least one comprehensive test run; and, where appropriate, a user manual. These should be sent, via email as a compressed archive file, to the CPC Program Librarian at cpc@qub.ac.uk. % In addition to the manuscript you must supply: the program source code; job control scripts, where applicable; a README file giving the names and a brief description of all the files that make up the package and clear instructions on the installation and execution of the program; sample input and output data for at least one comprehensive test run; and, where appropriate, a user manual. These should be sent, via email as a compressed archive file, to the CPC Program Librarian at cpc@qub.ac.uk.
@@ -125,8 +123,6 @@ The code is parallelized using MPI and writes output using HDF5. Input to the si
Monte Carlo \sep Tritium decay \sep Ionization \sep Scattering Monte Carlo \sep Tritium decay \sep Ionization \sep Scattering
\end{keyword} \end{keyword}
\end{frontmatter}
{\bf PROGRAM SUMMARY} {\bf PROGRAM SUMMARY}
\begin{small} \begin{small}
@@ -152,7 +148,8 @@ The code is parallelized using MPI and writes output using HDF5. Input to the si
{\em Running time:} minutes to hours; depending on number of simulated decays \\ {\em Running time:} minutes to hours; depending on number of simulated decays \\
\end{small} \end{small}
\end{abstract}
\end{frontmatter}
%% main text %% main text
\section{Introduction} \section{Introduction}
\label{sec:intro} \label{sec:intro}
@@ -161,13 +158,14 @@ One of the open questions in modern particle physics is the mass of the neutrino
The experiment can be divided into two parts: the source section and the detector section. In the source section, tritium gas is circulated which provides a high luminosity stream of beta electrons. These electrons are magnetically guided to the detector section. There they are separated by their kinetic energy: one small stream being recorded by the detector, the other larger one reflected back to the source. Both the initial and reflected stream of electrons interact with the gas in the source. \changed{These interactions include among others elastic scattering, ionization and excitation processes.} The experiment can be divided into two parts: the source section and the detector section. In the source section, tritium gas is circulated which provides a high luminosity stream of beta electrons. These electrons are magnetically guided to the detector section. There they are separated by their kinetic energy: one small stream being recorded by the detector, the other larger one reflected back to the source. Both the initial and reflected stream of electrons interact with the gas in the source. \changed{These interactions include among others elastic scattering, ionization and excitation processes.}
The atomic and molecular processes produce secondary particles which may subsequently yield even more particles, which are either eliminated through recombination or similar processes or absorbed by the walls of the experiment. The charged particle density is high enough, that a plasma forms in the source \citep{Kuckert.2016}. \cchanged{This plasma influences the shape of the energy spectrum through its self generated inhomogeneous electric potential. This also includes the electrons that are detected and therefore has a direct influence on the measurement.} A precise knowledge of the electron and ion energy spectrum and density is necessary for any plasma analysis. The atomic and molecular processes produce secondary particles which may subsequently yield even more particles, which are either eliminated through recombination or similar processes or absorbed by the walls of the experiment. The charged particle density is high enough, that a plasma forms in the source \citep{Kuckert.2016}. \cchanged{This plasma influences the shape of the energy spectrum through its self generated inhomogeneous electric potential. This also includes the electrons that are above the detection threshold of \SI{18.6}{\kilo\eV}.} A precise knowledge of the electron and ion energy spectrum and density is necessary for any plasma analysis.
Two different methods of descriptions seem obvious: a description through the temporal evolution of phasespace elements and a description through the Monte Carlo method by tracking of single particles \citep{MOBUS2001519}. \changed{The first method impresses with a high resolution in space and velocity but is very computational intensive, especially with many different interaction types and species. A comparison with Monte Carlo type simulations is complicated: Since this would not be a statistical method the noise is negligble, but the requirements to save the phase-space distribution (specifically for high velocities) are extremely high. Thus, it was rejected for the simulation of the problem at hand. However, in a classical Monte Carlo scheme each of the simulated events is independent of the others. This is not possible if direct interactions (e.g. recombination) between electrons and ions are of interest.} This problem is addressed in the KARL code, which is presented in the this paper. Two different methods of descriptions seem obvious: a description through the temporal evolution of phasespace elements and a description through the Monte Carlo method by tracking of single particles \citep{MOBUS2001519}. \changed{The first method impresses with a high resolution in space and velocity but is very computational intensive, especially with many different interaction types and species. A comparison with Monte Carlo type simulations is complicated: Since this would not be a statistical method the noise is negligble, but the requirements to save the phase-space distribution (specifically for high velocities) are extremely high. Thus, it was rejected for the simulation of the problem at hand. However, in a classical Monte Carlo scheme each of the simulated events is independent of the others. This is not possible if direct interactions (e.g. recombination) between electrons and ions are of interest.} This problem is addressed in the KARL code, which is presented in the this paper.
\changed{The simulation approach realized through the KARL code works under the assumption that all atomic and molecular processes are fast compared to the plasma processes. Using a Monte Carlo like approach the effects of different processes are taken into account and energy spectra of different species are produced. These spectra will be utilized to calculate plasma potentials elsewhere. Resulting plasma potentials can then be fed back into the KARL code to obtain refined particle distributions.} \changed{The simulation approach realized through the KARL code works under the assumption that all atomic and molecular processes are fast compared to the plasma processes. Using a Monte Carlo like approach the effects of different processes are taken into account and energy spectra of different species are produced. These spectra will be utilized to calculate plasma potentials elsewhere. Resulting plasma potentials can then be fed back into the KARL code to obtain refined particle distributions.}
\changed{The experimental setup of the KATRIN experiment is used as the default setup in the code. Other experiments using tritium decay may easily be implemented as the geometry and injection characteristics can be modified. This applies particularly to the Project 8 experiment \citep{2022arXiv220307349P}. Within the KARL framework the majority of all tritium reactions are implemented, but some reactions that occur in vastly different parameter regimes may not be implemented yet.} \changed{The experimental setup of the KATRIN experiment is used as the default setup in the code. Other experiments using tritium decay may easily be implemented as the geometry and injection characteristics can be modified. This applies particularly to the Project 8 experiment \citep{2022arXiv220307349P}. Within the KARL framework the majority of all tritium reactions are implemented, but some reactions that occur in vastly different parameter regimes may not be implemented yet.}\newline
\cchanged{Within the Project 8 experiment atomic tritium is used instead of molecular one. In this case (or a similar cases in which new particle species are needed) some adjustments to the code have to be made. First and foremost the new particle specie has to be included. This, however, only requires small changes within the code\footnote{It is necessary to define a new \textit{ImplementedSpecie} in the `species.h' file, define an alias and its charge in `species\_generator.h' and its mass in `mass\_generator.h'. }. Secondly it is necessary to include the corresponding cross sections with the new particle specie. This is either possible by providing the cross section as an external input, which does not require a changes within the code, or by implementing the analytic expression\footnote{The implementation should be done in `cross\_sections.cpp'. In order to be able to make use of the newly implemented function it is necessary to adjust the `interaction\_generator.cpp' file. Here the already existing cross sections serve as a guide for the new one.}. Apart from the change in cross section the numerical procedures for the interactions do not change. The possible interactions with atomic tritium includes almost all processes that are possible with molecular tritium (only rotational excitation is no longer possible).}
\section{Description of the method} \section{Description of the method}
\label{sec:method} \label{sec:method}
@@ -352,7 +350,7 @@ The drift movement of the gyrocenter is calculated from the $E \times B$ drift v
\end{equation} \end{equation}
and the timestep length $\Delta t$ and the timestep length $\Delta t$
\begin{equation} \begin{equation}
\Delta t = \frac{\Delta x}{\abs{\mathbf{v}_\parallel}^2 + \abs{\mathbf{v}_\perp}^2 + \abs{\mathbf{v}_\text{D}}^2} \commaeq \Delta t = \frac{\Delta x}{\sqrt{\abs{\mathbf{v}_\parallel}^2 + \abs{\mathbf{v}_\perp}^2 + \abs{\mathbf{v}_\text{D}}^2}} \commaeq
\end{equation} \end{equation}
where $\Delta x$ is the step length of the movement step and $\mathbf{v}_\parallel$ and $\mathbf{v}_\perp$ the velocity parallel and perpendicular to the magnetic field. The moved distance through the drift motion evaluates to where $\Delta x$ is the step length of the movement step and $\mathbf{v}_\parallel$ and $\mathbf{v}_\perp$ the velocity parallel and perpendicular to the magnetic field. The moved distance through the drift motion evaluates to
\begin{equation} \begin{equation}
@@ -984,14 +982,16 @@ Ions on the other hand are created with thermal energies of the neutral gas and
\changed{Previously further simulations for the KATRIN experiment have been published \cite{TUMMC}. This code also includes many of the processes included in KARL but lacks the tracing of secondary particles completely and focusses solely on the impact of tritium interactions on the primary particles.} \changed{Previously further simulations for the KATRIN experiment have been published \cite{TUMMC}. This code also includes many of the processes included in KARL but lacks the tracing of secondary particles completely and focusses solely on the impact of tritium interactions on the primary particles.}
\subsection{Results beyond other codes} \subsection{\cchanged{Further results for the KATRIN experiment}}
\changed{The KARL code has some features that make it unique compared to previous simulation tools. The main feature it has been developed for is the ability to calculate spectra and densities at any (predefined) point within the source. Due to the extreme inhomogeneity of the tritium density this is a very important feature which may not play such a decisive role in other Monte Carlo tools like GEANT which are primarily used for rather homogenous target materials.} \cchanged{KARL has been developed with specific applications in the context of the KATRIN experiment in mind. From the physics point of view the following questions were mainly of interest: 1) What is the particle distributions at any point within the source? This is an input quantity for further plasma simulations that require spatially resolved data. 2) What is the current through the rear wall? This is one of the few plasma physics observables of the experiment. 3) What is the current through the radial wall? Observations of the current suggest missing electrons and scattering processes close to the wall.}
\changed{In the context of the KATRIN experiment this has a number of applications: 1) The particle distributions are an input quantity for further plasma simulations that are requiring spatially resolved data. 2) The current through the rear wall is one observable for the experiment. 3) The current through the radial wall may explain missing electrons and scattering processes close to the wall.}
\cchanged{Inspired by these questions new features have been developed for KARL, primarily the ability to calculate spectra and densities at any (predefined) point within the source. Due to the extreme inhomogeneity of the tritium density this is a very important feature which may not play such a decisive role in other Monte Carlo tools like GEANT which are primarily used for rather homogenous target materials. Results for the physical questions at hand will be presented below.}
%The absolute current to the tube is also influenced by the density profile of electrons and ions. There is no analytic expression of the radial currents. It can be seen that the shape of the current towards the beam tube is similar to the shape of the neutral particle density. This is caused by the increased elastic scattering probability in the center due to the increased neutral gas density. The T$^+$ current is below the T$_3^+$ current, which is caused by the density difference and the different Larmor radius of the two ion species. The current of T$^+$ is in the same order of magnitude than the current of the electrons, even though the masses of both species are significantly different. This behavior is caused by the large difference in density. There is a contribution of T$_2^{+}$ to the radial current. This means that there must be a non-negligible amount of charge transfer reactions, or that enough T$_2^{+}$ is created close to the beam tube walls. The shape of the T$_2^+$ current does not coincide perfectly with the tritium density. Thus, it must be assumed in first order that both effects play a role. %The absolute current to the tube is also influenced by the density profile of electrons and ions. There is no analytic expression of the radial currents. It can be seen that the shape of the current towards the beam tube is similar to the shape of the neutral particle density. This is caused by the increased elastic scattering probability in the center due to the increased neutral gas density. The T$^+$ current is below the T$_3^+$ current, which is caused by the density difference and the different Larmor radius of the two ion species. The current of T$^+$ is in the same order of magnitude than the current of the electrons, even though the masses of both species are significantly different. This behavior is caused by the large difference in density. There is a contribution of T$_2^{+}$ to the radial current. This means that there must be a non-negligible amount of charge transfer reactions, or that enough T$_2^{+}$ is created close to the beam tube walls. The shape of the T$_2^+$ current does not coincide perfectly with the tritium density. Thus, it must be assumed in first order that both effects play a role.
\subsubsection{\cchanged{Position dependent spectra}}
\changed{The composition of different species with respect to the position along the $z$-axis is one example of the outputs of the KARL code. Fig. \ref{fig:densities_all_vs_z} shows the graph where one can see that the electron density resembles the tritium gas density, while T$_2^+$ has a flat distribution. T$_3^+$ as a product of clustering has its density maximum also farther out. In general the higher clusters have a much higher density than the one- and two-atomic ions.} \changed{The composition of different species with respect to the position along the $z$-axis is one example of the outputs of the KARL code. Fig. \ref{fig:densities_all_vs_z} shows the graph where one can see that the electron density resembles the tritium gas density, while T$_2^+$ has a flat distribution. T$_3^+$ as a product of clustering has its density maximum also farther out. In general the higher clusters have a much higher density than the one- and two-atomic ions.}
\begin{figure}[tbp] \begin{figure}[tbp]
@@ -1001,8 +1001,12 @@ Ions on the other hand are created with thermal energies of the neutral gas and
\label{fig:densities_all_vs_z} \label{fig:densities_all_vs_z}
\end{figure} \end{figure}
\subsubsection{\cchanged{Position dependent currents}}
\cchanged{Charged particle currents within the KATRIN tritium source are relevant as a diagnostic parameter since the current at the end of the WGTS can be measured. Additionally ion currents are an input quantity for subsequent plasma simulations. }
\changed{ \changed{
The longitudinal particle current was determined through 33 virtual planes in longitudinal direction. The planes were aligned in such a way that the first and last longitudinal plane coincide with the rear wall and the passage to the DPS. The corresponding longitudinal current profile can be found in Fig. \ref{fig:Iz_vs_z}. The longitudinal particle current was determined through 33 virtual planes in longitudinal direction. The planes were aligned in such a way that the first and last longitudinal plane coincide with the rear wall and}\cchanged{ the transition to the detector.}\changed{ The corresponding longitudinal current profile can be found in Fig. \ref{fig:Iz_vs_z}.
} }
\begin{figure}[tbp] \begin{figure}[tbp]
@@ -1069,6 +1073,8 @@ F.S. acknowledges the support of the Deutsche Forschungsgemeinschaft through gra
The authors would like to thank Christian Reiling for his work on earlier versions of the KARL code. The authors would like to thank Christian Reiling for his work on earlier versions of the KARL code.
\cchanged{We are grateful for the critical comments by the anynomous referees which helped improving the article greatly.}
% ? % ?
%MPI 1.1 support was provided by the Open MPI implementation under the BSD-new license. Design and implementation of the MPI standard by OpenMPI is described in \cite{Gabriel_2004}. %MPI 1.1 support was provided by the Open MPI implementation under the BSD-new license. Design and implementation of the MPI standard by OpenMPI is described in \cite{Gabriel_2004}.
@@ -17,14 +17,14 @@ In particular, added detail and specificity about the processes considered, a pr
The paper is almost ready for publication, but I have a few remaining comments: The paper is almost ready for publication, but I have a few remaining comments:
1. P4 line 20 and elsewhere: there are newly introduced comments about relevance to Project 8, but I wonder if this relevance is overstated, because Project 8 will use atomic T not molecular T. As such, almost all of the processes described will be different, and would need to be implemented with their own new cross sections, alongside a whole suite of new tests. Perhaps the basic framework could still be applied but with new species and cross sections implemented, but it seems that this would be a major work package, and direct applicability seems a stretch. I would suggest to either remove this comment, or else include a discussion of what augmentations that would actually need to be implemented for an atomic T application. If there are any other applications involving molecular T, these may be more relevant use cases to cite, as well. 1. <done>P4 line 20 and elsewhere: there are newly introduced comments about relevance to Project 8, but I wonder if this relevance is overstated, because Project 8 will use atomic T not molecular T. As such, almost all of the processes described will be different, and would need to be implemented with their own new cross sections, alongside a whole suite of new tests. Perhaps the basic framework could still be applied but with new species and cross sections implemented, but it seems that this would be a major work package, and direct applicability seems a stretch. I would suggest to either remove this comment, or else include a discussion of what augmentations that would actually need to be implemented for an atomic T application. If there are any other applications involving molecular T, these may be more relevant use cases to cite, as well.</done> <br> <reply> We have included a small paragraph outlining the necessary steps to include new particle species and cross sections. The effort if no new interaction types (elastic scattering, ionization, recombination etc.) have to be included is quite low. In this case only a new particle specie has to be defined and the cross sections need to be implemented (or given by an external input). The provided test cases for this case are still valid and can simply be redone with the newly implemented cross section to validate their implementation. The only case that requires a major effort is the inclusion of new interaction types (e.g. non-symmetric charge exchange reactions). However, for the Project 8 case, this is not necessary since all the relevant interaction types are already implemented.</reply>
2. In the new abstract, the term "semi-classical" is used, but it is unclear to me in what sense the calculation is semi-classical; I suggest removing this word here, with no negative impact. 2. <done>In the new abstract, the term "semi-classical" is used, but it is unclear to me in what sense the calculation is semi-classical; I suggest removing this word here, with no negative impact.</done><br><reply> We removed the word from the abstract. </reply>
3. P3, line 17, there is still some ambiguity about what is meant by "high energy", please clarify in the text. 3. <done>P3, line 17, there is still some ambiguity about what is meant by "high energy", please clarify in the text.</done><br><note> This sentence has been reformulated.</note>
4. <done>Eq 46 and other equations in this vicinity: I am confused about the notation n_{T^2}, with the 2 in superscript on the T. Shouldn't the 2 be in subscript, as this represents, density of T_2? </done><br><reply> Has been corrected. </reply> 4. <done>Eq 46 and other equations in this vicinity: I am confused about the notation n_{T^2}, with the 2 in superscript on the T. Shouldn't the 2 be in subscript, as this represents, density of T_2? </done><br><reply> Has been corrected. </reply>
5. P53. line 10: it is not clear what "Results beyond other codes" indicates. Especially since the first sentence of this section explicitly relates KARL to other codes. Overall I found this new section difficult to follow - what is the unifying theme? Is it the prediction of a few quantities of specific interest to KATRIN which have not been possible to calculate using other approaches due to their technical limitations? If so perhaps the title and opening paragraph of the section could be rewritten to more clearly outline the goals, followed by the deeper discussion of past limitations, how they are circumvented by this approach, and the specific relevance that these predictions have had for the KATRIN physics program. Perhaps much the information is here already, but it is difficult to follow as the section is a bit unstructured, at the moment. 5. <done>P53. line 10: it is not clear what "Results beyond other codes" indicates. Especially since the first sentence of this section explicitly relates KARL to other codes. Overall I found this new section difficult to follow - what is the unifying theme? Is it the prediction of a few quantities of specific interest to KATRIN which have not been possible to calculate using other approaches due to their technical limitations? If so perhaps the title and opening paragraph of the section could be rewritten to more clearly outline the goals, followed by the deeper discussion of past limitations, how they are circumvented by this approach, and the specific relevance that these predictions have had for the KATRIN physics program. Perhaps much the information is here already, but it is difficult to follow as the section is a bit unstructured, at the moment.</done><br><reply>We have rewritten the headline and intro of this section and added some structure. This hopefully explains our idea behind this section. </reply>
6. P54, line 18, I think this is the first use of acronym "DPS" and it is not defined, please introduce and explain this somewhere. 6. <done>P54, line 18, I think this is the first use of acronym "DPS" and it is not defined, please introduce and explain this somewhere.</done><br><reply> We removed the mention of the "DPS" (Differential Pumping Section), since it would otherwise require a relatively lengthy explanation of the different sections within the KATRIN experiment, which would be irrelevant for the presented results. </reply>