adjusted text, added abstract

This commit is contained in:
2025-10-23 13:27:51 +02:00
parent dd911007c7
commit 8252ac4933
3 changed files with 95 additions and 120 deletions
@@ -34,7 +34,7 @@ Application for a Computing Time Project on a System from NHR SW (GU~Frankfurt~+
\begin{table}[H] \begin{table}[H]
\begin{center} \begin{center}
\begin{tabular}{p{5cm} p{10cm}} \begin{tabular}{p{5cm} p{10cm}}
\textbf{Period:} & \textless Granting period you apply for (mm 20yy – mm 20yy)\textgreater\\ \textbf{Period:} & \textless Granting period you apply for (mm 20yy – mm 2026)\textgreater\\
\textbf{Project Title:} & Project8MonteCarlo\\ \textbf{Project Title:} & Project8MonteCarlo\\
\textbf{Type of Project:} & new project\\ \textbf{Type of Project:} & new project\\
\textbf{HPC Systems(s):} & Goethe-NHR\\ \textbf{HPC Systems(s):} & Goethe-NHR\\
@@ -56,19 +56,24 @@ Application for a Computing Time Project on a System from NHR SW (GU~Frankfurt~+
\newpage \newpage
\begin{abstract} \begin{abstract}
Please give a short abstract of your project. NOTE: This abstract might be published on the NHR SW web page after the approval of the computing time. The absolute mass of the neutrino is still a heavily researched topic. Several experiments use tritium in order to measure the mass of the electron anti-neutrino. Due to the beta decay of tritium high energy electrons are introduced into the tritium gas, which opens the door for a multitude of interactions between the particles. Due to the non-linear nature of the interactions it is not trivially possible to predict the distributions of the electrons and ions, which are needed for a correct description of the measured energy. This project uses a timeresolved Monte Carlo method and the Poisson equation to simulate the evolution of the charged particle species within the Project-8 experiment. The final goal of this project is the acquisition of the density and energy distributions of both electrons and ions in this experiment. From this data the plasma can be classified and prepared for further analysis using the optimal method.
\end{abstract} \end{abstract}
\section{Introduction} \section{Introduction}
Since their discovery neutrinos have been of major interest in particle and astroparticle physics experiments. So far, neutrinos are described by the standard model of particles by being charge neutral, massless fermions, which are created by the weak interaction in one of the three different leptonic eigenstates $\nu_e, \nu_\mu$ and $\nu_\tau$. However, the discovery of neutrino oscillations, i.e. the change of leptonic neutrino flavor during propagation, by the Sudbury Neutrino Observatory \cite{PhysRevC.88.025501} and Super-Kamiokande \cite{NAKAHATA2000125} indicate the existence of at least three additional eigenstates wit non-zero mass-squared differences. This means that the standard model description of zero-mass neutrinos is incorrect. However, the question about the absolute mass is still undetermined and actively researched.\\ Since their discovery neutrinos have been of major interest in particle and astroparticle physics experiments. So far, neutrinos are described by the standard model of particles by being charge neutral, massless fermions, which are created by the weak interaction in one of the three different leptonic eigenstates $\nu_e, \nu_\mu$ and $\nu_\tau$. However, the discovery of neutrino oscillations, i.e. the change of leptonic neutrino flavor during propagation, by the Sudbury Neutrino Observatory \cite{PhysRevC.88.025501} and Super-Kamiokande \cite{NAKAHATA2000125} indicate the existence of at least three additional eigenstates with non-zero mass-squared differences. This means that the standard model description of zero-mass neutrinos is incorrect. However, the question about the absolute mass is still undetermined and actively researched.\\
One way to measure the neutrino mass is through the beta decay of a radioactive element, such as tritium. The energy spectrum and how it depends on the mass of the neutrino is known from theory. The neutrino mass plays a role in the shape and cutoff of the energy spectrum in the high energy region, i.e. the region close to the highest obtainable energy through the decay process. By measuring the electron energy spectrum in this high-energy region it is possible to infer the mass of the electron anti-neutrino. Tritium is a well suited element for this measurement due to the beta decay being a super-allowed process as well as its short lifetime of 12.3 years and its low energy endpoint of around \SI{18}{\kilo\eV}.\\ One way to measure the neutrino mass is through the beta decay of a radioactive element, such as tritium. The energy spectrum and how it depends on the mass of the neutrino is known from theory. The neutrino mass plays a role in the shape and cutoff of the energy spectrum in the high energy region, i.e. the region close to the highest obtainable energy through the decay process. By measuring the electron energy spectrum in this high-energy region it is possible to infer the mass of the electron anti-neutrino. \\
The KATRIN experiment used this measurement principle and was able to determine that the electron anti-neutrino mass is below \SI{0.8}{\eV} \cite{2022NatPh..18..160K}.\\ %Tritium is a well suited element for this measurement due to the beta decay being a super-allowed process as well as its short lifetime of 12.3 years and its low energy endpoint of around \SI{18}{\kilo\eV}.\\
Using the same underlying physical principles, the Project-8 experiment \cite{Project8} plans to reach a sensitivity of \SI{40}{\milli\eV}. In order to achieve this goal it is necessary to use atomic instead of molecular tritium due to the better known final states of the ion created in the decay process. Furthermore, the energy will be measured indirectly through the cyclotron radiation of the decay electrons.\\ The KATRIN experiment used this measurement principle and was able to determine that the upper bound of the electron anti-neutrino mass is \SI{0.8}{\eV} \cite{2022NatPh..18..160K}.\\
Since Project-8 is still in its design phase, it is important to know of all error sources and reduce them through design choices. % as well as possible. Using the same underlying physical principles, the Project-8 experiment \cite{Project8} plans to reach a sensitivity of \SI{40}{\milli\eV}.
One of these error sources is the potential of a plasma within the experiment. Due to the decay of tritium relatively high energy electrons are created. Then, these electrons can interact with the neutral background gas. The most important interaction in this case is impact ionization. Through ionization new electrons and ions are created, which can in turn also create more particles.\\ %In order to achieve this goal it is necessary to use atomic instead of molecular tritium due to the better known final states of the ion created in the decay process.
The equilibrium state that forms is not known and not trivially obtainable to the non-linear dependence of the interaction processes on the background density. However, it is an important factor for the analysis of the errors in the experiment, since the created electric field influences the measurement directly. Therefore, it is necessary to obtain the particle energy as well as their density distributions. For this problem we have developed a Monte Carlo code, which calculates the particle distributions as well as the position resolved energy spectra of the charged particles in the system.\\ Therefore, atomic tritium will be used and the energy will be measured indirectly through the cyclotron radiation of the decay electrons.\\
Since Project-8 is still in its design phase, it is important to know of all error sources and reduce them in the final experiment. % as well as possible.
One of these error sources is the electric potential of a self-generated plasma. Due to the decay of tritium relatively high energy electrons are created. These electrons then interact with the neutral background gas. The most important interaction in this case is impact ionization. Through which new electrons and ions are created.\\
The equilibrium state that forms is unknown and not trivially obtainable due to the non-linear dependence of the interaction processes on the background density. However, it is an important factor for the analysis of the errors in the experiment, since the created electric potential influences the measurement directly. Therefore, it is necessary to obtain the particle energy as well as their density distributions. For this problem we have developed a Monte Carlo code, which calculates the particle distributions as well as the position resolved energy spectra of the charged particles in the system.\\
(max. 0.5 pages)\\ %(max. 0.5 pages)\\
\newpage
\section{Preliminary Work} \section{Preliminary Work}
%Provide a brief summary of your preliminary work in connection with the proposed project, including references documenting the experience and preliminary work of the PI and project contributors in the field.\\ %Provide a brief summary of your preliminary work in connection with the proposed project, including references documenting the experience and preliminary work of the PI and project contributors in the field.\\
@@ -82,13 +87,22 @@ The equilibrium state that forms is not known and not trivially obtainable to th
\label{fig:densitiesKATRIN} \label{fig:densitiesKATRIN}
\caption{Density distribution within the KATRIN experiment obtained using the KARL code. Figure from \cite{kellerer_simulation_2022}.} \caption{Density distribution within the KATRIN experiment obtained using the KARL code. Figure from \cite{kellerer_simulation_2022}.}
\end{figure} \end{figure}
In context of the KATRIN experiment it first became necessary to determine the particle density distributions as well as their energy spectra. Therefore, the Monte Carlo code KARL was first developed in the Masters thesis by Christian Reiling \cite{reiling2019} and improved upon in the PhD thesis of Jonas Kellerer \cite{kellerer_simulation_2022}. Final adjustments were made and the code was published \cite{sendlinger2025}. Within the aforementioned PhD thesis, the density distributions and spectra have been simulated for the KATRIN experiment. \\ In context of the KATRIN experiment it first became necessary to determine the particle density and energy distributions. For that purpose the Monte Carlo code KARL was first developed in the Masters thesis by Christian Reiling \cite{reiling2019} and improved upon in the PhD thesis of Jonas Kellerer \cite{kellerer_simulation_2022}. Final adjustments were made and the code was published \cite{sendlinger2025}. Within the aforementioned PhD thesis, the density distributions and spectra have been simulated for the KATRIN experiment. \\
The KARL codes main objective is to find the equilibrium distributions for the charged particle species in order to obtain an initial state of the plasma for further analysis. This is necessary since KARL itself cannot simulate the plasma. The analysis of the plasma has been done in the PhD thesis of Kellerer \cite{Kellerer_2022} using a fully three dimensional Particle-in-Cell approach, which is very computationally expensive due to the large spatial resolution required. Therefore, in the Master's thesis of Sendlinger \cite{csendlinger2023}, a different Particle-in-Cell approach was implemented. In order to reduce the number of cells needed, an expansion in Fourier-modes in the azimuthal direction was applied. This reduces the three dimensional problem into a set of two dimensional ones. The earlier three dimensional simulations showed that only a small number of azimuthal modes has to be simulated in order to obtain physical results. \\ The KARL codes main objective is to find the equilibrium distributions for the charged particle species in order to determine if they constitute a plasma or not. In case they do, it also serves as a starting point for further analysis.
A full simulation of the plasma is however still not achieved using a single iteration of KARL and a Particle-in-Cell simulation, since the electric fields created by the charged particles can have an influence on the movement of the particles in the KARL simulation. Therefore an iterative approach would be needed. In order to validate and potentially replace this approach a secondary one has been developed. In this newer approach, the whole system is solved directly by numerically solving the Vlasov equations. However, due to high resource requirements it is only viable to use a single spatial and a single velocity dimension. This was developed in the Master's thesis of Schulze \cite{josi2025} resulting in the Vlad code. The Vlad code also incorporates some of the most important atomic processes. These are on one hand ionization, which creates a large amount of the present particles and recombination on the other hand. There is also currently still work being done on including more processes such as elastic scattering or excitation of the background gas.\\ %obtain an initial state of the plasma for further analysis.
This is necessary since KARL itself cannot simulate the plasma. The analysis of the plasma has been done in the PhD thesis of Kellerer \cite{Kellerer_2022} using a fully three dimensional Particle-in-Cell approach, which is computationally expensive due to the large spatial resolution required. Therefore, in the Master's thesis of Sendlinger \cite{csendlinger2023}, a different Particle-in-Cell approach was implemented. In order to reduce the number of cells needed, an expansion in Fourier-modes in the azimuthal direction was applied. This reduces the three dimensional problem into a set of two dimensional ones. The earlier three dimensional simulations showed that only a small number of azimuthal modes has to be simulated in order to obtain physical results. \\
A full simulation of the plasma is however still not achieved using a single iteration of KARL and a Particle-in-Cell simulation, since the electric fields created by the charged particles can have an influence on the movement of the particles in the KARL simulation. Therefore an iterative approach is needed. In order to validate and potentially replace this approach a secondary one has been developed. In this approach, the whole system is solved directly using the Vlasov equations. However, due to high resource requirements it is only viable for a single spatial and a single velocity dimension. This was developed in the Master's thesis of Schulze \cite{josi2025} resulting in the Vlad code. The Vlad code also incorporates some of the most important atomic processes. These are on one hand ionization, which creates a large amount of the present particles and recombination on the other hand. There is also currently still work being done on including more processes such as elastic scattering or excitation of the background gas.\\
For the Project-8 experiment a similar analysis is necessary in order to quantify the influence of the collection of charged particles on the measurement. Since the Project-8 experiment can also be approximated by a cylinder, only minor adjustments have to be made to the existing KARL code in order to be able to use it. Apart from the geometry, one difference is the type of tritium used within the experiment. While KATRIN uses molecular tritium, Project-8 is going to use atomic tritium in order to decrease uncertainties in their measurement. This required changes of the background species as well as new cross section data for KARL.\\ For the Project-8 experiment a similar analysis is necessary in order to quantify the influence of the collection of charged particles on the measurement. Since the Project-8 experiment can also be approximated by a cylinder, only minor adjustments have to be made to the existing KARL code in order to be able to use it. Apart from the geometry, one difference is the type of tritium used within the experiment. While KATRIN uses molecular tritium, Project-8 is going to use atomic tritium in order to decrease uncertainties in their measurement. This required changes of the background species as well as new cross section data for KARL.\\
One major change made to the KARL code is the introduction of a time-resolution. As can be seen in figure \ref{fig:densitiesKATRIN}, the depicted state cannot be in an equilibrium, since the densities of the ions are much larger than the electron density. This would lead to a very large electric potential (of order \SI{10}{\eV}) and therefore a large electric field. In order to account for the electric field and its evolution during the simulation a time-resolution was included. During each timestep particles created from either beta-decay (or other interaction processes) are propagated for a short time. Additionally, particles are sampled from the densities calculated at the preceding timestep in order to account for the evolution of the densities in the presence of the electric field. After all particles have been simulated, the Poisson equation is solved in order to obtain the electrostatic potential. From this potential the electric field is calculated and used in the next timestep within the propagation of the particles.\\ One major change made to the KARL code is the introduction of a time-resolution. As can be seen in figure \ref{fig:densitiesKATRIN}, the depicted state cannot be in an equilibrium, since the densities of the ions are much larger than the electron density. This would lead to a very large electric potential (of order \SI{10}{\eV}) and therefore a large electric field. In order to account for the electric field and its evolution during the simulation a time-resolution had to be included. During each timestep particles created from either beta-decay (or other interaction processes) are propagated. After all particles have been processed, the Poisson equation is solved in order to obtain the electrostatic potential. From this potential the electric field is calculated and used in the next timestep within the propagation of the particles.\\
For this version the largest issue is the number of numerical particles per process, since all particles have to be stored until they leave the simulation domain through a boundary or due to an interaction. This imposes a lower bound on the weight of a numerical particle. In order to minimize the statistical noise however a low particle weight is desired, which can only be achieved using many processes.\\
(max. 1-2 pages)\\ \begin{figure}[h]
\centering
\includegraphics[width=1\textwidth]{Figures/flare_moreNodes_wallLossRateAgainstTime_species-T+.pdf}
\caption{Lossrate of Tritium ions at the walls of the simulation boundary. Simulated on NEMO2 with a particle weight of 0.026.}
\label{fig:ionLossRateNEMO}
\end{figure}
Simulations of the Project-8 setup were already done on a smaller scale on NEMO2, with the resolution aimed for in this project, however with a lower particle number and a shorter time. Figure \ref{fig:ionLossRateNEMO} show the loss rate of the tritium ions at the walls of the simulation domain against time. Since the electrons reach an early equilibrium, we know that the gain-rate is approximately \SI{4.6e8}{\per\s}. In the plot we see that after about \SI{10}{\ms} the ions have reached a loss-rate of $\approx \SI{1.1e8}{\per\s}$, which is about a quarter of the one expected for the equilibrium. Therefore, after a time of \SI{0.2}{\s} the equilibrium should be reached.\\
%(max. 1-2 pages)\\
\section{Description of the Project} \section{Description of the Project}
@@ -109,35 +123,28 @@ One major change made to the KARL code is the introduction of a time-resolution.
% %
%\subsubsection{Sub-project 2} %\subsubsection{Sub-project 2}
In order to gain insight into the behavior of the charged particles in the experiment it is necessary to obtain their density profile as well as their energy spectra. Only when those observables are obtained it becomes possible to classify whether the particles constitute a plasma or not. This classification is very important for further studies since it determines the best method used to study the specific problem.\\ In order to gain insight into the behavior of the charged particles in the experiment it is necessary to obtain their density profile as well as their energy spectra. Only when those observables are obtained it becomes possible to classify whether the particles constitute a plasma or not. This is very important for further studies since it determines the best method for further analysis of the specific problem.\\
Since the experiments want to achieve a high precision in the energy measurement of the particles created through the beta-decay of the tritium gas, it is necessary to quantify the effect of the electromagnetic fields created by the charged particles. The way how the electric and magnetic field behave depends a lot on the type of plasma that might be present.\\ Since the experiments want to achieve a high precision in the energy measurement of the particles created through the beta-decay of the tritium gas, it is necessary to quantify the effect of the electromagnetic fields created by the charged particles. The way how the electric and magnetic field behave depends a lot on the type of plasma that might be present.\\
Furthermore, since particles inevitably interact not only with the gas within the experiment, but also with the experiments boundaries, it is necessary to be able to quantify those effects. The quantity of major interest in that regard is the total current across the boundaries and how it is influenced by the parameters of the experiment. So one question is: how does the density of the tritium gas influence the total current.\\ Furthermore, since particles inevitably interact not only with the gas within the experiment, but also with the experiments boundaries, it is necessary to be able to quantify those effects as well. The quantity of major interest in that regard is the total current across the boundaries and how it is influenced by the parameters of the experiment. So one question is: how does the density of the tritium gas influence the total current.\\
Moreover, the interactions of the particles with the wall might create a region in which the quasi-neutrality is not fulfilled and a static electric potential is maintained, a so called boundary layer. Moreover, the interactions of the particles with the wall might create a region in which the quasi-neutrality is not fulfilled and a static electric potential is maintained, a so called boundary layer.
\subsubsection{Sub-project 1} \subsubsection{Sub-project 1}
The first sub-project is to obtain the equilibrium state using the standard parameters of the Magnus test tube setup. The pressure within the experiment is \SI{100}{\milli\bar} with no external magnetic field. The temperature of the background gas is \SI{300}{\kelvin} and the system has a length of \SI{40}{\mm} and a radius of \SI{3}{\mm}. The first sub-project is to obtain the equilibrium state using the parameters of the FLARE scenario of Project-8. The simulation domain is modeled as a cylinder of height \SI{5.88}{\m} with a radius of \SI{0.2}{\m}. The average density of atomic Tritium is \SI{1e17}{\per\cubic\m}. The shape of the density distribution is given in a first estimation by the barometric formula, where the gas has a temperature of \SI{5}{\milli\kelvin}. The magnetic field consists of a uniform background component, with an electron cyclotron frequency of \SI{1}{\giga\hertz}. A magnetic bottle component is added in order to trap electrons within the simulation domain.
%The first sub-project is a first run from the initial condition until the time an equilibrium is expected. %The first sub-project is a first run from the initial condition until the time an equilibrium is expected.
\\ \\
Due to the decay properties of the tritium gas, the initial distribution of charged particles within the simulation domain is not known. Even during the filling of the experiment some additional charged particles will be introduced. However, since those distributions are not known we have to start at a domain filled only by the background gas. Only after the start of the simulation will charged particles be introduced into the simulation.\\ Due to the decay properties of the tritium gas, the initial distribution of charged particles within the simulation domain is not known. Even during the filling of the experiment some additional charged particles will be introduced. However, since those distributions are not known we have to start at a domain filled only by the background gas. Only after the start of the simulation will charged particles be introduced into the simulation.\\
These particles then interact with the neutral background gas, which changes the number and energy of the simulated particles. Since the interactions depend strongly on the density as well as the energy of the particles, the influence of the interactions on the density as well as the energy spectra is necessary to use KARL.\\ These particles then interact with the neutral background gas, which changes the number and energy of the simulated particles. Since the interactions depend strongly on the density as well as the energy of the particles, the influence of the interactions on the density as well as the energy spectra is necessary to use KARL.\\
The time until convergence is not known. Therefore it is necessary to estimate it.\\ The time until convergence is not known, which requires for it to be estimated.\\
It is clear that the convergence rate is dominated by the slowest particles in the system. In our case this will always be the ions, due to their much higher mass and roughly thermal distribution. Typical velocities of the ions are about \SI{500}{\m\per\s}. It is expected that an ion has to be able to at least traverse the simulation domain before any convergence could be reached. Due to the interactions however, it is to be expected that a multiple of that time will be needed.\\ It is clear that the convergence rate is dominated by the slowest particles in the system. In our case this will always be the ions, due to their much higher mass and roughly thermal distribution. Typical velocities of the ions are about \SI{3.7}{\m\per\s}. It is expected that an ion has to be able to at least traverse the simulation domain before any convergence could be reached. Due to the electric potential, the ions however will be accelerated to much higher velocities. From the loss rate of ions at the walls of the domain in the smaller simulations on NEMO2, an estimate of \SI{200}{\milli\s} for the time until convergence is reached, see figure \ref{fig:ionLossRateNEMO}.\\
For our case this results in a time of \SI{60}{\mu\s} for a single traversal. We use a factor of 10 for our estimate of the time until convergence. This factor is somewhat justified by earlier, smaller simulations of the system, that also imply a time for convergence of about \SI{0.6}{\milli\s}.
\subsubsection{Sub-project 2} \subsubsection{Sub-project 2}
%Run 2: if Run 1 not converged simulate longer otherwise different parameter set KARL imposes a certain resolution on the spatial domain. This, however influences accuracy of the electric potential that is calculated within the code. The second sub-project aims to validate the results obtained by the first one.\\
The second sub-project depends on the first one. If the first one does not yield an equilibrium state, it is planned to continue the simulation and potentially find the equilibrium state after the extended time.\\ In this sub-project we will simulate the same setup as the first sub-project with an increased resolution in the spatial coordinates. This will lead to a more accurate electric potential, which might has an influence on the evolution of the particle distributions.\\
%If the first sub-project does yield an equilibrium state it is planned to use the computation time of the second sub-project for a continuation of the simulation of the first sub-project. Since, as already mentioned, the time until convergence is not known and depends on a multitude of parameters, it is realistically possible that the estimated time of \SI{0.6}{\milli\s} is not enough to reach convergence. Since the major goal of the overall project is to gain an equilibrium state it is necessary to be able to continue the simulation to potentially reach the equilibrium.\\ Due to the larger resolution, the time needed for a simulation step will also increase due to the increased effort of communication between processes. Therefore, a shorter total time has to be simulated with this higher resolution. The results will then be compared to the results of the first sub-project.
Once the first sub-project yields a converged state it becomes possible to simulate a second set of parameters. The property that has the largest influence on both the energy spectra as well as the density distributions is the density of the background gas. Since the density is already quite high in the tube test case it is planned that the second parameter set uses a lower density.
\subsubsection{Sub-project 3} \subsubsection{Sub-project 3}
KARL is not a plasma simulation tool. It does incorporate electrostatic fields by solving the electrostatic Poisson equation, however it does not necessarily fulfill the timestep or spatial resolution requirements for a plasma simulation. For a good result the timestep has to be chosen such that an arbitrary particle cannot cross a single cell within one timestep. There is, however, no intrinsic requirement for the spatial resolution. For the required memory it is actually of interest to have a rather poorly resolved simulation domain.\\
This simply means that there is an uncertainty if the final results are consistent with the physical reality. One way to enforce this is to use a subsequent Particle-in-Cell simulation. However, due to the inherent numerical noise in that approach, a large amount of computation time would also be needed.\\
Therefore we plan on cross-checking the results obtained from KARL with the one-dimensional Vlasov equation solver Vlad.\\
The overall goal are the same as for the first sub-project, i.e. we want to obtain the densities and current distributions of the different particle species.
\subsubsection{Sub-project 4}
The KARL tool directly yields the properties of interest as output. Therefore there is little to no post-processing of the data needed. It does, however, need visualization.\\ The KARL tool directly yields the properties of interest as output. Therefore there is little to no post-processing of the data needed. It does, however, need visualization.\\
However, after each run the solution has to be checked if convergence to an equilibrium state was achieved. This will be done by calculating the evolution of the total charge from the density output of the respective simulation run.\\ However, after each run the solution has to be checked if convergence to an equilibrium state was achieved. This will be done by calculating the evolution of the total charge from the density output of the respective simulation run.
The main output of the Vlad code is the phasespace distribution at different times. Therefore it is necessary to apply a post-processing step, which extracts the properties of interest (density and current) as well as visualizes it.
\\ \\
% %
%\textit{(1 to 2 pages per sub-project)} %\textit{(1 to 2 pages per sub-project)}
@@ -158,7 +165,8 @@ The main output of the Vlad code is the phasespace distribution at different tim
%\textit{Has the underlying research project already successfully undergone a scientific review process? Is the project funded by public money? If yes, please also provide information about the funding source (e.g. State, BMWi, BMBF, DFG, EU, $\dots$) and the funding time frame. If possible, please provide the corresponding review report and upload it as supplemental material.} %\textit{Has the underlying research project already successfully undergone a scientific review process? Is the project funded by public money? If yes, please also provide information about the funding source (e.g. State, BMWi, BMBF, DFG, EU, $\dots$) and the funding time frame. If possible, please provide the corresponding review report and upload it as supplemental material.}
The Project-8 experiment is funded by the NSF and the PRISMA-Cluster, where it went through a thorough review process.\\ The Project-8 experiment is funded by the NSF and the PRISMA-Cluster, where it went through a thorough review process.\\
(max. 1 page per sub-project) %(max. 1 page per sub-project)
\newpage
\section{Numerical Methods and Algorithms} \section{Numerical Methods and Algorithms}
%Describe the scientific and numerical methods and algorithms you are planning to use, improve, or develop.\\ %Describe the scientific and numerical methods and algorithms you are planning to use, improve, or develop.\\
@@ -168,37 +176,28 @@ The Project-8 experiment is funded by the NSF and the PRISMA-Cluster, where it w
\caption{\label{fig:flowchart} Flowchart of the KARL simulation procedure from \cite{sendlinger2025}. } \caption{\label{fig:flowchart} Flowchart of the KARL simulation procedure from \cite{sendlinger2025}. }
\end{figure} \end{figure}
The code used for the simulations is the Monte Carlo code KARL \cite{sendlinger2025}. This code is a tool specifically developed for the simulation of tritium experiments. \\ The code used for the simulations is the Monte Carlo code KARL \cite{sendlinger2025}. This code is a tool specifically developed for the simulation of tritium experiments. \\
The main simulation cycle is shown in figure \ref{fig:flowchart}. The most important quantity for the cycle is the distance a particle can move before it performs an interaction. This distance depends on The main simulation cycle is shown in figure \ref{fig:flowchart}. An important quantity for determining the probability of an interaction is the mean free path
\begin{equation} \begin{equation}
\lambda_\text{mfp} = \frac{1}{\sigma(|v_i - v_t|) n_t}\;, \lambda_\text{mfp} = \frac{1}{\sigma(|v_i - v_t|) n_t}\;,
\end{equation} \end{equation}
where $\sigma(|v_i - v_t|)$ is the total cross section of an interaction, which depends on the relative velocity of the incident particle $v_i$ wrt the velocity of the target particle $v_t$. $n_t$ is the number density of the target species at the position of interaction. The distance $d$ the particle can move is then determined by drawing a random number from an exponential distribution using the inversion method where $\sigma(|v_i - v_t|)$ is the total cross section of an interaction, which depends on the relative velocity of the incident particle $v_i$ with respect to the velocity of the target particle $v_t$. $n_t$ is the number density of the target species at the position of interaction. The distance $d$ the particle can move is then determined by drawing a random number from an exponential distribution using the inversion method
\begin{equation} \begin{equation}
d = -\lambda_\text{mfp} \ln(\mathcal{U}(0,1))\,. d = -\lambda_\text{mfp} \ln(\mathcal{U}(0,1))\,.
\end{equation} \end{equation}
The interactions implemented within the KARL code are elastic scattering, electron impact excitation, electron impact ionization, cluster formation, charge exchange and recombination.\\ The interactions implemented within the KARL code are elastic scattering, electron impact excitation, electron impact ionization, cluster formation, charge exchange and recombination.\\
Due to recombination being of interest, it is necessary to calculate and use the density fields of the simulated particle species during the simulation. \\ Due to recombination being of interest, it is necessary to calculate and use the density fields of the simulated particle species during the simulation. \\
%KARL deviates from a standard Monte Carlo code, since we are also interested in interactions between two simulated particle species, of major interest is recombination between the electrons and any kind of present ion. Therefore it is necessary to calculate the density fields during the simulation as well as use them in order to calculate the MFP of the respective interaction.\\ %KARL deviates from a standard Monte Carlo code, since we are also interested in interactions between two simulated particle species, of major interest is recombination between the electrons and any kind of present ion. Therefore it is necessary to calculate the density fields during the simulation as well as use them in order to calculate the MFP of the respective interaction.\\
In order to account for gradients in the neutral tritium density profile, KARL uses a spatial, user-defined cylindrical grid. Particles that cross from one grid cell to another without performing an interaction are stopped and their mean free path is recalculated before they are moved again. Therefore the moved distance of the particles follows the physical reality better, if the grid is chosen appropriately. \\\\ In order to account for gradients in the neutral tritium density profile, KARL uses a spatial, user-defined cylindrical grid. Particles that cross from one grid cell to another without performing an interaction are stopped and their mean free path is recalculated before they are moved again.\\\\
%All particles that have not terminated due to either an interaction or due to leaving the simulation domain are kept in a list. From this list the particle that is propagated next is chosen at random. During the movement the times it spends in the different grid cells is counted in order to reconstruct the density. Furthermore the crossings between the cells are also counted to obtain the current. After the particle is terminated a new one is drawn. If the particle list is empty new particles from the beta decay of the neutral tritium gas are created and inserted into the list. If an interaction is performed during which new particles are created the new particles are also simply added to that list. This is done until a user-specified number of beta decay particles have been injected.\\\\ %All particles that have not terminated due to either an interaction or due to leaving the simulation domain are kept in a list. From this list the particle that is propagated next is chosen at random. During the movement the times it spends in the different grid cells is counted in order to reconstruct the density. Furthermore the crossings between the cells are also counted to obtain the current. After the particle is terminated a new one is drawn. If the particle list is empty new particles from the beta decay of the neutral tritium gas are created and inserted into the list. If an interaction is performed during which new particles are created the new particles are also simply added to that list. This is done until a user-specified number of beta decay particles have been injected.\\\\
This code has been used in order to simulate the particle distributions within the KATRIN experiment \cite{Kellerer_2022}. In this context it was seen that the solution creates a large charge imbalance. This is not a physical result since the resulting electric field would change the density structure as well as the energy distributions.\\ This code has been used in order to simulate the particle distributions within the KATRIN experiment \cite{Kellerer_2022}. In this context it was seen that the result contains a large charge imbalance. This is not a physical result since the resulting electric field would change the density structure as well as the energy distributions.\\
In order to correct for the charge imbalance before the further usage of the results in e.g. Particle-in-Cell simulations it is necessary to consider the electric field during the simulation. While these simulations would also account for a charge imbalance it would not be able to capture the atomic processes. Therefore we included a simple solver for the electrostatic Poisson equation in order to obtain the electrostatic potential and thus the electric field.\\ In order to mitigate that problem it is necessary to also include the electric potential within the simulation cycle. This is done by solving the electrostatic Poisson equation.\\
I%n order to correct for the charge imbalance before the further usage of the results in e.g. Particle-in-Cell simulations it is necessary to consider the electric field during the simulation. While these simulations would also account for a charge imbalance it would not be able to capture the atomic processes. Therefore we included a simple solver for the electrostatic Poisson equation in order to obtain the electrostatic potential and thus the electric field.\\
Therefore it becomes necessary to introduce a timestepping into the Monte Carlo algorithm. The length of a timestep is usually chosen to be such that the fastest particles, usually electrons from the beta decay, cannot cross a single grid cell within one timestep. Since that time can easily be below the activity of the source, a weight of the simulated particles has to be defined. In order to reduce the statistical noise many particles need to be simulated during a single timestep.\\ Therefore it becomes necessary to introduce a timestepping into the Monte Carlo algorithm. The length of a timestep is usually chosen to be such that the fastest particles, usually electrons from the beta decay, cannot cross a single grid cell within one timestep. Since that time can easily be below the activity of the source, a weight of the simulated particles has to be defined. In order to reduce the statistical noise many particles need to be simulated during a single timestep.\\
During the timestep particles are moved the same way as in the standard version. The only difference being that the movement is ended early should the timestep limit be reached. After the movement of a single particle is done its position is used to calculate the density. After all particles have been moved the densities between all processes are synced and the Poisson equation is solved for the electrostatic field. This field is then used in the movement of the charged particles for the subsequent timestep.\\ During the timestep particles are moved the same way as in the standard version. The only difference being that the movement is ended early should the timestep limit be reached. After the movement of a single particle is done its position is used to calculate the density. After all particles have been moved the densities between all processes are synchronized and the Poisson equation is solved. The electric field is then used in the movement of the charged particles for the subsequent timestep.\\
Particles are not stored between timesteps, since that would require an excessive amount of storage in either large simulation domains or in a high density environment. Instead they are sampled from the calculated densities of the preceding timestep. In order to achieve a good coverage of the density, the number of sampled particles is done per grid point. In each grid point a user-defined number of particles is drawn such that they create a uniform density distribution.\\ In order to model the evolution of the particles as well as the density correctly it is necessary to store the particles between timesteps.\\
This approach depicts the physical reality more closely than the original one since the electric field has a direct influence on all newly created particles as well as the old density that created the electric field. This means that the equilibrium state itself will be physical and can be used directly in any subsequent plasma simulations.\\ %Particles are not stored between timesteps, since that would require an excessive amount of storage in either large simulation domains or in a high density environment. Instead they are sampled from the calculated densities of the preceding timestep. In order to achieve a good coverage of the density, the number of sampled particles is done per grid point. In each grid point a user-defined number of particles is drawn such that they create a uniform density distribution.\\
The code used to cross-check the simulations gained through the Monte-Carlo approach is a direct simulation of the Vlasov-Poisson system of equations using the Vlad code \cite{josi2025}. In this approach the phase-space $f_i$ of one particle species $i$ is fully discretized in the spatial and velocity dimensions. Since storing the full six dimensional grid is not possible some reductions have to be made. The Vlad code is therefore only concerned with a single spatial and velocity dimension. In the electrostatic case and after including atomic and molecular processes as a collision-term, the equation to be solved by the Vlad code is %This approach depicts the physical reality more closely than the original one since the electric field has a direct influence on all newly created particles as well as the old density that created the electric field. This means that the equilibrium state itself will be physical and can be used directly in any subsequent plasma simulations.\\
\begin{equation} %(max. 0.5-1 pages)
\label{eq:Vlasov}
\frac{\partial f_i}{\partial t} + v_z \cdot \frac{\partial f_i}{\partial z} + \frac{q}{m} E_z \cdot\frac{\partial f_i}{\partial v_z} = \left( \frac{\partial f_i}{\partial t} \right)_\text{coll} + \left( \frac{\partial f_i}{\partial t} \right)_\text{beta}. \\
\end{equation}
The simulation cycle consists of three steps. The first step is an update of the phase-space density using the Vlasov equation. Since the Vlasov equation simply is an advection equation in spatial and velocity component a simple up-wind scheme is used for the update step during each timestep.\\
The second step is to obtain the total charge density of the system. This is done by an integration of the phase-space density in velocity direction and a multiplication with the charge of the species. Finally all individual charge densities are summed.\\
The third step is to solve the Poisson equation. This is done by using the PetSc library \cite{petsc-web-page}.\\
Due to the integration across the velocity direction the code is only parallelized in the spatial direction, in order to minimize the need for communication across processes. The code is parallelized purely with MPI.\\
Since collision processes have a large influence on the particles distributions Vlad also implements some collision processes. These processes are electron impact ionization and recombination. Therefore in each phase-space bin the value of particles scattered into another bin is calculated after the standard update step. There is still ongoing work to include more processes.\\
(max. 0.5-1 pages)
\section{Computer Resources} \section{Computer Resources}
@@ -264,25 +263,18 @@ Since collision processes have a large influence on the particles distributions
\caption{\label{fig_scaling}Weak scaling graph. Simulated using standard KATRIN parameters with increasing number of events. The load was kept constant on 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.} \caption{\label{fig_scaling}Weak scaling graph. Simulated using standard KATRIN parameters with increasing number of events. The load was kept constant on 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.}
\end{figure} \end{figure}
\begin{figure}[H]
\begin{center}
\includegraphics[width=.7\textwidth]{Figures/weak_scaling_plot.pdf}
\end{center}
\caption{\label{fig:scalingVlad}Weak scaling of the Vlad code on HAWK using standard KATRIN parameters.}
\end{figure}
%\textit{(1 to 2 pages)}\\ %\textit{(1 to 2 pages)}\\
%------------------------------------------------ %------------------------------------------------
The KARL code is a pure CPU based simulation code. It has been parallelized using pure MPI.\\ The KARL code is a pure CPU based simulation code. It has been parallelized using pure MPI.\\
Monte Carlo codes are usually very easy to parallelize, since individual events do not depend on each other. For the KARL code this is also true to some extent. Since the particles interact through direct collision processes as well as through the electric field they create, more care is needed for parallelization than in a standard Monte Carlo code. After each timestep in our code the electric field is calculated. Therefore it is necessary that all processes know the whole density fields of all simulated particle species. So after each timestep an all-to-all communication is necessary between the processes. \\ Monte Carlo codes are usually very easy to parallelize, since individual events do not depend on each other. For the KARL code this is also true to some extent. Since the particles interact through direct collision processes as well as through the electric field they create, more care is needed for parallelization than in a standard Monte Carlo code. After each timestep the electric field has to be calculated. Therefore it is necessary that all processes know the whole density fields of all simulated particle species. So after each timestep an all-to-all communication is necessary between the processes. \\
For the standard version of KARL this becomes negligible since synchronization steps are only done very rarely.\\ For the standard version of KARL this becomes negligible since synchronization steps are only done very rarely.\\
From test simulations it is known that the memory requirement per core is less than 2\,GB. The total memory required scales linearly in number of cores since each core has a full copy of all fields, since the parallelization is done in particles and not in any of the spatial or energy coordinates. The output is done in the HDF5 format. Therefore the parallel version of the hdf5 library is needed.\\ From test simulations it is known that the memory requirement per core is less than 2\,GB. The total memory required scales linearly in number of cores since each core has a full copy of all fields, since the parallelization is done in particles and not in any of the spatial or energy coordinates. The output is done in the HDF5 format. Therefore the parallel version of the hdf5 library is needed.\\
Since a large number of timesteps is required simulation runs will have to be restarted, meaning that later runs will depend on earlier ones.\\ Since a large number of timesteps is required simulation runs will have to be restarted, meaning that later runs will depend on earlier ones.\\
In terms of output KARL is quite lightweight. While output could hypothetically be created after every timestep it is not needed or beneficial to do so. For KARL output only needs to be created to be able to restart a simulation and after the total number of timesteps is done simulating. This means only two or three output steps are sufficient per simulation run for KARL.\\ In terms of output KARL is quite lightweight. While output could hypothetically be created after every timestep it is not needed or beneficial to do so. For KARL output only needs to be created to be able to restart a simulation and after the total number of timesteps is done simulating. This means only two or three output steps are sufficient per simulation run for KARL. The size of the output depends on the chosen resolution.\\
For the time-resolved version of KARL, the only change is the increased number of synchronization steps. However, the cost of the communication stays small compared to the cost of the actual simulation of the particles themselves.\\ For the time-resolved version of KARL, the only change is the increased number of synchronization steps. However, the cost of the communication stays small compared to the cost of the actual simulation of the particles themselves.\\
Many arrays within the KARL code use the blitz++ library to utilize slicing as well as vector and array operations. Furthermore, the input file is required to be in the JSON format, and the code uses the jansson library to parse the input file.\\ Many arrays within the KARL code use the blitz++ library to utilize slicing as well as vector and array operations. Furthermore, the input file is required to be in the JSON format, and the code uses the jansson library to parse the input file.\\
Vlad is also parallelized using pure MPI. The output is again managed through HDF5. Additionally Vlad requires the PetSc library for the solution of the one dimensional Poisson equation in the parallelized environment.\\
(1-2 pages) %(1-2 pages)
\subsection{Justification of Resources Requested} \subsection{Justification of Resources Requested}
%Outline the amount of resources you are requesting for the current granting period.\\ %Outline the amount of resources you are requesting for the current granting period.\\
@@ -403,46 +395,25 @@ Vlad is also parallelized using pure MPI. The output is again managed through HD
\begin{tabular}{llcccccc} \hline\hline \begin{tabular}{llcccccc} \hline\hline
Sub-project & Sub-project &
Type & Type &
Problem & Problem & \# runs & \# steps/ & Wall time/ & \# cores/ & Total \\
\# runs & & of run & size &
\# steps/ & & run & step [seconds] & run & [core-h] \\
Wall time/ &
\# cores/ &
Total \\
&
of run &
size &
&
run &
step [seconds] &
run &
[core-h] \\
\hline\hline \hline\hline
Sub-proj. 1 & Sub-proj. 1 & Production & $1.5\times 10^5$&
Production & 20 &
$1.5\times 10^5$& 44000 &
50 & 4.1 &
$4\times 10^6$ & 4000 &
0.02 & $4\times 10^6$ \\
12576 &
$14\times 10^6$ \\
Sub-proj. 2 & Sub-proj. 2 &
Production & Production &
$1.5\times 10^5$& $1.5\times 10^5$&
50 & 5 &
$4\times 10^6$ & 22000 &
0.02 & 18 &
12576 & 4000 &
$14\times 10^6$ \\ $2.2\times 10^6$ \\
Sub-proj. 3 & Sub-proj. 3 &
Production &
32768$\times$500&
2 &
$2\times 10^7$ &
0.08 &
2064 &
$2\times 10^6$ \\
Sub-proj. 4 &
Post Processing& Post Processing&
1 & 1 &
100 & 100 &
@@ -452,7 +423,7 @@ Vlad is also parallelized using pure MPI. The output is again managed through HD
300 300
\\ \\
\hline\hline \hline\hline
TOTAL & & & & & & & $30 \times 10^6$\\ TOTAL & & & & & & & $6.5 \times 10^6$\\
\end{tabular} \end{tabular}
\end{center} \end{center}
\end{table} \end{table}
@@ -460,24 +431,28 @@ TOTAL & & & & & & & $30 \times 10^6$\\
\bigskip \bigskip
%\textit{(0.5 to 1 page)}\\ %\textit{(0.5 to 1 page)}\\
%------------------------------------------------- %-------------------------------------------------
The production runs of the first and second sub-project with KARL are planned to consist of $\approx \num{2e8}$ timesteps each. The spatial resolution is going to be $N_r = 10$ in radial and $N_z = 30$ in longitudinal direction. The energy will be resolved with $N_E = 100$ logarithmically spaced bins and the pitch angle will only consist of $N_\mu = 5$ bins, since the distributions are expected to be quite isotropic.\\ The production runs of the first and second sub-project with KARL are planned to consist of $\approx \num{44e3}$ timesteps each. The spatial resolution is going to be $N_r = 10$ in radial and $N_z = 50$ in longitudinal direction for the first sub-project and $N_r = 15$ and $N_z = 100$ for the second one. The energy will be resolved with $N_E = 100$ logarithmically spaced bins and the pitch angle will only consist of $N_\mu = 5$ bins, since the distributions are expected to be very isotropic.\\
The number of injected electrons from beta decay is going to be in the order of \num{1e4} particles per timestep and core, however the exact number has a minor effect since the number of particles from the density field is going to dominate the computational time. The goal for the number of particles drawn from the density per timestep, core and bin is 1, which is equivalent to \num{1.5e5} particles per timestep and core.\\ We aim for less than \num{1e6} numerical particles per process, but ideally even less than \num{1e5} particles. The first restriction is given by the available RAM space on a process, while the second one provides a shorter runtime due to a lower effort in processing the particles. From these considerations, as well as estimates for the number of physical particles in the equilibrium the weight of the numerical particles is determined.\\
From short test simulations with that setup using 126 cores on NEMO2 we obtain about \num{8e4} particles per CPU-s or about \SI{2}{\s} per simulated timestep. In total we estimate the required computer time to be \num{14e6} CPU-h for a single sub-project. Due to walltime limits we will have to restart previous runs in order to achieve the desired number of total timesteps.\\ From short test simulations with that setup using $8\times190$ cores on NEMO2 with a weight of approximately 0.026, we have a wall time of about \SI{4.1}{\s} for a single timestep with a $\Delta t = \SI{0.23}{\micro\s}$. Scaling this up to \SI{0.2}{\s} leads to a total of 4\;MCPU-h.\\
For the Vlad code, it is necessary to know the density of the charged species in order to set the spatial and temporal resolution correctly. The spatial resolution has to at least resolve the Debye length and the timestep has to at least resolve the plasma frequency of the electrons. Both quantities depend on the density of the electrons, which is an unknown. Therefore we assume a large value of the density of $n_e = \SI{1e14}{\per\cubic\cm}$.\\ The higher resolution increases the simulation time to \SI{18}{\s} per timestep, with otherwise unchanged parameters. Therefore the goal for the simulated time is taken to be only \SI{25}{\milli\s}, resulting in 2.2\;MCPU-h in computational time.\\
With this value we require 32768 cells in the spatial direction. The velocity resolution has no such restriction. Therefore we take 500 cells in velocity direction. The amount of timesteps needed is \num{2e7} in order to simulate the time until projected convergence.\\
Due to the relatively small problem size and the fact that it is only a means for cross checking the KARL simulations, a lower number of cores will be sufficient. Therefore we will only use 2064 cores. In total we estimate a value of 2 MCPU-h for the Vlad simulations.
\bigskip \bigskip
(0.5 - 1 pages) %(0.5 - 1 pages)
\subsection{Work schedule} \subsection{Work schedule}
Please provide a short work schedule, structured in sub-projects, if applicable. Include a table and/or Gantt chart.\\ %Please provide a short work schedule, structured in sub-projects, if applicable. Include a table and/or Gantt chart.\\
In the last row, estimate the monthly core hour total (over all subprojects) in scientific notation. %In the last row, estimate the monthly core hour total (over all subprojects) in scientific notation.
\subsection{Sub-project 1}
The parameters for the problem are already known. Therefore it is only necessary to compile the code and then the simulations can be started right away.
\subsection{Sub-project 2}
Since this sub-project is meant to validate the first parameter set, it is started at the same time as the first one. During its computation the results will be periodically compared until the maximum time for this sub-project is reached.
\subsection{Sub-project 3}
In order to compare the data between the first two sub-projects it is necessary to post-process the output of the corresponding simulations. This entails the visualization of the density fields as well as creating plots of the temporal evolutions of the losses of particles to the simulation boundaries.
\bigskip \bigskip
\textit{Example for a Gantt chart:} %\textit{Example for a Gantt chart:}
\begin{figure}[H] \begin{figure}[H]
\begin{flushleft} \begin{flushleft}
\includegraphics[scale=0.82]{Figures/gantt_chart.pdf} \includegraphics[scale=0.82]{Figures/gantt.pdf}
\end{flushleft} \end{flushleft}
\caption{\label{fig_workschedule}Work schedule for the project.} \caption{\label{fig_workschedule}Work schedule for the project.}
\end{figure} \end{figure}
@@ -495,18 +470,18 @@ He is currently writing his PhD thesis on plasma models for the Project-8 experi
He also ran and evaluated simulations of the KATRIN source tube in the context of this project He also ran and evaluated simulations of the KATRIN source tube in the context of this project
in the past. \\ in the past. \\
\textsc{Anna Josephine Schulze, M.Sc.} (anna.schulze@stud.uni-heidelberg.de)\\ %\textsc{Anna Josephine Schulze, M.Sc.} (anna.schulze@stud.uni-heidelberg.de)\\
A. J. Schulze has developed the Vlad code and is still improving and implementing new features. %A. J. Schulze has developed the Vlad code and is still improving and implementing new features.
Lately, she added atomic processes like beta decay and ionization to the code %Lately, she added atomic processes like beta decay and ionization to the code
and will continue by adding particle collisions. %and will continue by adding particle collisions.
She also runs the Vlad simulations and analyzes their results.\\ %She also runs the Vlad simulations and analyzes their results.\\
(max. 0.5 page) (max. 0.5 page)
\section{Reviewers} \section{Reviewers}
Optional: You may suggest external reviewers from your field of research whom we can contact for a scientific review of the proposal. Optional: You may suggest external reviewers from your field of research whom we can contact for a scientific review of the proposal.
\newpage
\nocite{*} %\nocite{*}
\addcontentsline{toc}{section}{References} \addcontentsline{toc}{section}{References}
\bibliographystyle{abbrv} \bibliographystyle{abbrv}
\bibliography{references.bib} \bibliography{references.bib}