526 lines
48 KiB
TeX
526 lines
48 KiB
TeX
\documentclass [a4paper, 11pt]{article}
|
|
|
|
\usepackage{amssymb, amsmath}
|
|
\usepackage{epsfig}
|
|
\usepackage{graphicx}
|
|
\usepackage{times}
|
|
\usepackage{float}
|
|
\usepackage[usenames,dvipsnames]{color}
|
|
\usepackage{scrlayer-scrpage}
|
|
\usepackage{siunitx}
|
|
\pagestyle{scrheadings}
|
|
\usepackage{url}
|
|
\clearpairofpagestyles
|
|
|
|
\textwidth 16 cm
|
|
\textheight 23 cm
|
|
\setlength{\oddsidemargin}{0.1 cm}
|
|
\setlength{\topmargin}{1 cm}
|
|
\setlength{\headheight}{0cm}
|
|
\setlength{\headsep}{0cm}
|
|
\setlength{\footskip}{0.75cm}
|
|
\setlength{\parindent}{0cm}
|
|
\setlength{\oddsidemargin}{0.1 cm}
|
|
\setlength{\itemsep}{10pt}
|
|
\bibliographystyle{gcs}
|
|
\cfoot{\pagemark}
|
|
\ofoot{\tiny V1.9-2024JUL01}
|
|
|
|
\newcommand{\note}[1]{\textcolor{magenta}{(#1)}}
|
|
|
|
\nocite{*}
|
|
\begin{document}
|
|
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\includegraphics[scale=0.45]{Figures/GCS-hlrs-fzj-lrz.jpg}\\
|
|
\end{center}
|
|
\end{figure}
|
|
|
|
\begin{center}
|
|
{\LARGE \bf Project Proposal for Tier 0/Tier 1 HPC Access} \\
|
|
|
|
\bigskip
|
|
\bigskip
|
|
\bigskip
|
|
\end{center}
|
|
\textbf{Period}\\
|
|
\phantom{MM}\textit{09/25 - 08/26}
|
|
|
|
\bigskip
|
|
\textbf{Project title}\\
|
|
\phantom{MM}\textit{TritiumMC}
|
|
|
|
\bigskip
|
|
\textbf{Type of project}\\
|
|
\phantom{MM} \textit{new project}
|
|
|
|
\bigskip
|
|
\textbf{HPC system(s) and corresponding centre(s)}\\
|
|
\phantom{MM} \textit{JUWELS, J\"ulich Forschungszentrum}
|
|
|
|
\bigskip
|
|
\textbf{Project ID or project acronym}\\
|
|
\phantom{MM} \textit{}
|
|
|
|
\bigskip
|
|
\textbf{Principal investigator}\\
|
|
\phantom{MM} \textit{Felix Spanier\\\phantom{MM}Institut für Theoretische Astrophysik, Universit\"at Heidelberg, Albert-Ueberle-Str. 2, 69120 Heidelberg,
|
|
Germany\\
|
|
\phantom{MM}felix.spanier[at]uni-heidelberg.de}
|
|
|
|
\bigskip
|
|
\textbf{Project contributor(s)}\\
|
|
\phantom{MM} \textit{Christian Sendlinger\\\phantom{MM}Institut für Theoretische Astrophysik, Universit\"at Heidelberg, Albert-Ueberle-Str. 2, 69120 Heidelberg,
|
|
Germany\\
|
|
\phantom{MM}christian.sendlinger[at]stud.uni-heidelberg.de}\\
|
|
\phantom{MM} \textit{Anna Josephine Schulze\\\phantom{MM}Institut für Theoretische Astrophysik, Universit\"at Heidelberg, Albert-Ueberle-Str. 2, 69120 Heidelberg,
|
|
Germany\\
|
|
\phantom{MM}anna.schulze[at]stud.uni-heidelberg.de}
|
|
|
|
\vfill
|
|
\begin{center}
|
|
\textbf{The length of the project description is restricted to 18 pages (font 11 pt)!}
|
|
\end{center}
|
|
|
|
\newpage
|
|
|
|
\vfill
|
|
\tableofcontents
|
|
\vfill
|
|
|
|
\newpage
|
|
|
|
\section{Introduction}
|
|
\rule{\textwidth}{0.4pt}
|
|
%\textit{Give a short outline of the scientific background of your research, including references.}\\
|
|
%\textit{(about 0.5 to 1 page)}
|
|
% from earlier proposal (2023)
|
|
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.\\
|
|
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}.\\
|
|
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}.\\
|
|
Using the same underlying physical principles, the Project-8 experiment \cite{Project8} plans to achieve 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.\\
|
|
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.
|
|
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.\\
|
|
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.\\
|
|
One core problem in the existing KATRIN experiment has been the lack of information on the processes inside the source: Only very few observables are accessible. One of these is the so called rear wall current, the current through the last part of the source region, which depends on the content of electrons and ions in the source, the current between rear wall and source tube and the plasma potential. The relation between these factors is highly nonlinear and complicated to disentangle. There has been the proposal by Magnus Schl\"osser to build a small scale experiment nicknamed ``Magnus tube'' which consists of tritium filled filled steel tube. The setup is chosen such that plasma effects and source geometry should not play a major role. The rear wall current is therefore solely defined by beta decay and atomic processes. This opens up the possibility to cross-check simulations with a simple, more accessible experiment. Project-8 will also require simple experimental setups to cross-check the numerical implementation of these processes. Due to the use of atomic tritium such a device will be far more intricate. The experience with the Magnus tube will be a valuable asset in designing such a future experiment.
|
|
%\newpage
|
|
\section{Preliminary Work}
|
|
\rule{\textwidth}{0.4pt}
|
|
%\textit{Provide a brief summary of your preliminary work in connection with the proposed project, including references.}\\
|
|
\begin{figure}[h]
|
|
\centering
|
|
\includegraphics[width=1\textwidth]{Figures/densities_all_vs_z.pdf}
|
|
\label{fig:densitiesKATRIN}
|
|
\caption{Density distribution within the KATRIN experiment obtained using the KARL code. Figure from \cite{kellerer_simulation_2022}.}
|
|
\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. \\
|
|
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. \\
|
|
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.\\
|
|
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.
|
|
|
|
%\textit{(about 1 to 2 pages)}
|
|
%\newpage
|
|
\section{Description of the Project}
|
|
\rule{\textwidth}{0.4pt}
|
|
\subsection{Project Details}
|
|
%\textit{Describe your research project in detail, structured in sub-projects, if applicable. Include discussion of the scientific questions that you are planning to address and the overall scientific goals of the project. It is important that you describe the innovative aspects, impact and topicality of the proposal.}
|
|
%\begin{itshape}
|
|
%\begin{itemize}\setlength{\itemsep}{-2pt}
|
|
% \item Scientific questions you want to address
|
|
% \item Scientific objectives
|
|
% \item Computational objectives
|
|
% \item Approach and expected outcome
|
|
% \item Expected impact on the research area
|
|
% \item Scientific and technical innovation potential, impact and topicality
|
|
% \item Progress beyond the state-of-the-art
|
|
%\end{itemize}
|
|
%\end{itshape}
|
|
|
|
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.\\
|
|
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.\\
|
|
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}
|
|
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 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.\\
|
|
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.\\
|
|
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.\\
|
|
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}
|
|
%Run 2: if Run 1 not converged simulate longer otherwise different parameter set
|
|
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.\\
|
|
%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.\\
|
|
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}
|
|
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.\\
|
|
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)}
|
|
%
|
|
%%-------------------------------------------------
|
|
%The Project-8 experiment is still in its design phase. This means that an analysis potential plasma within the experiment can have an influence on the final design choices of the experiment. \\
|
|
%In order to classify the collection of charged particles within the experiment (or in prototypes of the experiment) it is necessary to be able to calculate the distributions of those charged particles.\\
|
|
%Since the system will have long times of measurement, an equilibrium state of the particles is expected to form. Calculating this equilibrium state is the goal of this project. \\
|
|
%Therefore we plan on using a non-standard Monte Carlo code that incorporates interactions between simulated particles as well as the influence of an electrostatic electric field on the evolution (and equilibrium state) of the charged particles.
|
|
%\begin{itemize}
|
|
%\item more than one run/subprojects?
|
|
%\item how to include the actual problem we want to simulate (and have done the computational cost estimate for, i.e. Magnus tube thingy)?
|
|
%\item What to write in general?
|
|
%\end{itemize}
|
|
%-------------------------------------------------
|
|
|
|
\subsection{Review Processes}
|
|
%\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.
|
|
%\newpage
|
|
\section{Numerical Methods and Algorithms}
|
|
\rule{\textwidth}{0.4pt}
|
|
%\textit{Describe the numerical methods and algorithms that you are planning to use, improve, or develop.}\\
|
|
%
|
|
%\textit{(1 to 2 pages)}\\
|
|
|
|
%--------------------------------------------------------
|
|
%The simulations are planned to be carried out with the Monte Carlo code KARL. Within the code single beta decay particles (i.e. electrons and ions) are created and tracked throughout the simulation domain. During the movement of the particles, different interactions with the neutral background gas can occur. These interactions are incorporated by using the respective cross sections to calculate the mean free path of the simulated particles. The particle movement itself is tracked from one interaction to another. The distance moved is derived from the mean free path of the particle. After the movement an interaction is drawn at random from the possible interactions (weighed according to their cross section). \\
|
|
%Some interactions (e.g. ionization) can themselves create new particles. These particles are added to a list of particles that have yet to be simulated. If the current particle is terminated (either due to leaving the simulation domain or by reaching it's maximum number of interactions or lifetime) a new particle to be tracked is drawn at random form the list. This is done until a specified number of beta decay events has been simulated.\\
|
|
%For the particle movement two algorithms can be used, depending on the electric and magnetic fields. The first is a simple drift approximation, which is useful for high magnetic and low electric fields. The second is the well known Boris push algorithm. The Boris push can be used in any case, however in case of high magnetic fields the required resolution is so high that its usage is not feasible. For low magnetic and high electric fields it is however required.\\
|
|
%The simulation domain itself is split into a cylindrical grid, with which the density and currents are recorded. These densities and currents are then the output of interest but are also used within the simulation to determine effects from interactions that involve interactions between particle species that are simulated (e.g. recombination).\\
|
|
%The electric potential (and the static electric field) created by the charged particles is also considered by a simple Poisson solver within the code. The Poisson solver uses a simple Jacobi iteration to solve for the electric potential. From the potential the electric field is calculated and then used in the movement of the particles.\\
|
|
%In order to consider the influence of the particles that create a certain electric field configuration a `time resolution' is introduced. Therefore the simulation is split into certain time intervals. Particles are then allowed to move normally for the duration of a timestep and are terminated once they reach the end of the timestep. After a timestep the electric field is calculated and the next timestep is started. To consider the simulated density, a number of particles is drawn from the density using the rejection method. These particles are then also added to the particle list and simulated.
|
|
\begin{figure}[h]
|
|
\centering
|
|
\includegraphics[height=0.6\textheight]{Figures/simulation_flow.pdf}
|
|
\caption{\label{fig:flowchart} Flowchart of the KARL simulation procedure from \cite{sendlinger2025}. }
|
|
\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 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
|
|
\begin{equation}
|
|
\lambda_\text{mfp} = \frac{1}{\sigma(|v_i - v_t|) n_t}\;,
|
|
\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
|
|
\begin{equation}
|
|
d = -\lambda_\text{mfp} \ln(\mathcal{U}(0,1))\,.
|
|
\end{equation}
|
|
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. \\
|
|
%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. \\\\
|
|
%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.\\
|
|
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.\\
|
|
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.\\
|
|
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.\\
|
|
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.\\
|
|
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
|
|
\begin{equation}
|
|
\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.
|
|
%--------------------------------------------------------
|
|
\bigskip
|
|
%\newpage
|
|
\section{Computer Resources}
|
|
\rule{\textwidth}{0.4pt}
|
|
\subsection{Code performance and workflow}
|
|
%\textit{Describe \textbf{all} codes, packages or libraries that you need to undertake the project, and how these will enable the research to be achieved. Include for \textbf{\underline{each} code to be used} information about}
|
|
%\begin{itshape}
|
|
%\begin{itemize}\setlength{\itemsep}{-2pt}
|
|
% \item Which code will be used
|
|
% \item On which hardware the code will be used (CPUs, GPUs, etc. or combinations, if applicable)
|
|
% \item How the code is parallelized (pure MPI, mixed MPI/OpenMP, Pthreads, CUDA, etc.)
|
|
% \item The amount of memory necessary (per core, per node and in total)
|
|
% \item Scaling plots \textbf{and} tables with speedup results for runs with typical, parameter sets, problem size, and I/O \textbf{of the planned project} (no general benchmark results are accepted). Scaling data should start with the lowest number of cores possible
|
|
% \item Describe architecture, machine/system name, and problem size used for the scaling plots
|
|
% \item Current job profile (independent jobs, chained jobs, workflow, etc.)
|
|
% \item Describe memory requirements, requirements concerning the High Performance network and I/O requirements
|
|
%
|
|
%\end{itemize}
|
|
%\end{itshape}
|
|
|
|
%{\it \textbf{Important:} please consider the corresponding technical guidelines and requirements (e.g. required minimal code scalability, memory restrictions, etc.) of the chosen machine(s)!}\\
|
|
%
|
|
%\textit{If you use third-party codes, include}
|
|
%\begin{itshape}
|
|
%\begin{itemize}\setlength{\itemsep}{-2pt}
|
|
% \item Name, version, licensing model and conditions
|
|
% \item Web page and other references
|
|
% \item Contact information of the code developers.
|
|
% \item Your relationship to the code (developer, collaborator to main developers, end user, etc.)
|
|
%\end{itemize}
|
|
%\end{itshape}
|
|
%\textit{Here we give an example table and plot for presenting scaling and performance information. The presented scaling should range from a single core to the maximal possible number of cores. If this is not doable, the presented scaling should range from the lowest possible number to the maximal possible number of cores for your case. Please \textbf{replace} the text in {\tt Courier} by the appropriate information.}
|
|
|
|
%\begin{table}[H]
|
|
%\caption{\label{tab_scaling} Scaling behavior of {\tt LINPACK} on {\tt HAWK/Hunter, JUWELS/JUPITER, SuperMUC-NG} at {\tt HLRS, JSC, LRZ}. This test was performed with $5\cdot 10^6$ particles, absolute timings per time step (s) and relative speedup normalized to 1 core are given.}
|
|
%\begin{center}
|
|
%\setlength{\tabcolsep}{10pt}
|
|
%\renewcommand{\arraystretch}{1.2}
|
|
% \begin{tabular}{lrrrr}
|
|
% \#cores & absolute timing (s) & speedup & Performance per core [MFLOP/s]\\
|
|
%\hline
|
|
%1 & 3781.2 & 1.0 & 800 \\
|
|
%2 & \phantom{1}1890.6 & 2.0 & 800 \\
|
|
%4 & \phantom{1} 945.3 & 4.0 & 800 \\
|
|
%8 & \phantom{1} 472.7 & 8.0 & 800 \\
|
|
%16 & \phantom{1} 236.3 & 16.0 & 800 \\
|
|
%32 & \phantom{1} 118.1 & 32.0 & 800 \\
|
|
%64 & \phantom{1} 59.1 & 64.0 & 800 \\
|
|
%128 & \phantom{1} 32.8 & 115.2 & 720 \\
|
|
%256 & \phantom{1} 18.4 & 204.8 & 640 \\
|
|
%512 & \phantom{1} 10.5 & 358.4 & 559 \\
|
|
%1024 & \phantom{1} 6.2 & 614.4 & 480 \\
|
|
%2048 & \phantom{1} 3.7 & 1024.0 & 400 \\
|
|
%4096 & \phantom{1} 2.3 & 1638.4 & 320 \\
|
|
%
|
|
%\end{tabular}
|
|
%\end{center}
|
|
%\end{table}
|
|
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\includegraphics[width=1\textwidth]{Figures/parallelization.pdf}
|
|
\end{center}
|
|
% probably need to explain somewhere what "standard KATRIN parameters" are...
|
|
\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}
|
|
|
|
\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)}\\
|
|
%------------------------------------------------
|
|
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. \\
|
|
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.\\
|
|
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.\\
|
|
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.\\
|
|
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.
|
|
% --------------------------- table for estimating computing time
|
|
%\begin{itemize}
|
|
%\item scaling: plot from normal paper
|
|
%\item estimate resources:
|
|
%\begin{itemize}
|
|
%\item Problem simulated on smaller system (NEMO2) for a relatively short time
|
|
%\item Problem size:
|
|
%\begin{itemize}
|
|
%\item neutral particle temperature: \SI{300}{\K}
|
|
%\item 126 procs
|
|
%\item \num{1e4} beta events per proc and timestep
|
|
%\item $N_r = 10,\quad N_z = 30,\quad N_E = 100,\quad N_\mu=5$
|
|
%\item 1 particle from the density per proc, bin and timestep $\rightarrow \num{1.5e5}$ particles per timestep and proc
|
|
%\item 3600 timesteps
|
|
%\item $\Delta t = \frac{0.02}{\SI{6.5e9}{\per\s}}$ $\rightarrow v_\text{max}\frac{\Delta t}{\Delta x} \approx 0.63$
|
|
%\end{itemize}
|
|
%\item simulated wall clock time: $T_w \approx \SI{2}{\hour}$
|
|
%\item particles / CPU-s $\approx \num{8e4}$
|
|
%\item timesteps / CPU-s $\approx \num{4e-3}$
|
|
%\item timestep goal:
|
|
%\begin{itemize}
|
|
%\item thermal ion crossing time $\approx \SI{60}{\mu\s}$
|
|
%\item expect convergence after a few thermal ion crossing times $\rightarrow T_\text{expect} = \SI{0.6}{\milli\s}$
|
|
%\item Number of timesteps needed: \num{2e8}
|
|
%\end{itemize}
|
|
%\item CPU-s $\approx \num{5e10}$
|
|
%\item CPU-h $\approx \num{14e6}$
|
|
%\end{itemize}
|
|
%\end{itemize}
|
|
%------------------------------------------------
|
|
%\newpage
|
|
\subsection{Justification of resources requested}
|
|
%\textit{Outline the amount of resources you request for the current granting period, structured in sub-projects, if applicable.}\\
|
|
%
|
|
%\textit{\textbf{If you are requesting different types of resources (e.g. CPUs, GPUs, etc.), please provide the following information and table for \underline{each} type of resource \underline{separately}. If you request resources on several HPC systems or modules, please justify why this is necessary for your project.}}
|
|
%\begin{itshape}
|
|
%\begin{itemize}\setlength{\itemsep}{-2pt}
|
|
% \item Type of run (e.g. pre- /post-processing run, production run, visualization, etc.)
|
|
% \item Problem size for planned runs (e.g. \# particles or the like)
|
|
% \item Number of runs planned
|
|
% \item Number of steps per run
|
|
% \item Wall-clock time per run
|
|
% \item Number of cores used per run (for GPUs: number of cores of the host CPUs)
|
|
% \item Total amount of requested computing time
|
|
% \item Resources for data analytics, if applicable
|
|
%\end{itemize}
|
|
%\end{itshape}
|
|
|
|
\begin{table}[H]
|
|
\caption{\label{tab_CPU_resources}The following CPU resources are requested}
|
|
\begin{center}
|
|
\setlength{\tabcolsep}{4pt}
|
|
\renewcommand{\arraystretch}{1.2}
|
|
\begin{tabular}{llcccccc} \hline\hline
|
|
Sub-project &
|
|
Type &
|
|
Problem &
|
|
\# runs &
|
|
\# steps/ &
|
|
Wall time/ &
|
|
\# cores/ &
|
|
Total \\
|
|
&
|
|
of run &
|
|
size &
|
|
&
|
|
run &
|
|
step [seconds] &
|
|
run &
|
|
[core-h] \\
|
|
\hline\hline
|
|
Sub-proj. 1 &
|
|
Production &
|
|
$1.5\times 10^5$&
|
|
50 &
|
|
$4\times 10^6$ &
|
|
0.02 &
|
|
12576 &
|
|
$14\times 10^6$ \\
|
|
Sub-proj. 2 &
|
|
Production &
|
|
$1.5\times 10^5$&
|
|
50 &
|
|
$4\times 10^6$ &
|
|
0.02 &
|
|
12576 &
|
|
$14\times 10^6$ \\
|
|
Sub-proj. 3 &
|
|
Production &
|
|
32768$\times$500&
|
|
2 &
|
|
$2\times 10^7$ &
|
|
0.08 &
|
|
2064 &
|
|
$2\times 10^6$ \\
|
|
Sub-proj. 4 &
|
|
Post Processing&
|
|
1 &
|
|
100 &
|
|
1 &
|
|
3600 &
|
|
1 &
|
|
300
|
|
\\
|
|
\hline\hline
|
|
TOTAL & & & & & & & $30 \times 10^6$\\
|
|
\end{tabular}
|
|
\end{center}
|
|
\end{table}
|
|
|
|
\bigskip
|
|
%\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 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.\\
|
|
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.\\
|
|
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}$.\\
|
|
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.
|
|
|
|
%-------------------------------------------------
|
|
%\begin{itemize}
|
|
%\item Problem size: H=3cm, R=4mm, simulation time $\approx \SI{600}{\micro\s}$
|
|
%\item number runs: 2 (time resolutions)
|
|
%\item number steps run: $1\cdot 10^6$ to $1\cdot 10^8$, depending on time-resolution
|
|
%\item $\Delta t \approx 3.94\,\mu\text{s}$: $0.1 \frac{\text{events}}{\text{CPU}\cdot \text{s}}$
|
|
%\item $\Delta t \approx 0.197\,\mu\text{s}$: $5.7 \frac{\text{events}}{\text{CPU}\cdot \text{s}}$
|
|
%\item number of cores: higher timeres: 288 (6 nodes)\\
|
|
% lower timesres: 1440 (30 nodes)
|
|
%\item total computing time: $5\times 10^{8}$ CPUs (for one) (obtained by scaling higher timeres from HAWK to $1\,s$)
|
|
%\end{itemize}
|
|
|
|
%-------------------------------------------------
|
|
\newpage
|
|
\section{Resource Management and Work Schedule}
|
|
\rule{\textwidth}{0.4pt}
|
|
\subsection{Resource management}
|
|
%\textit{Describe how you intend to manage the resources you have requested. This should include a description of the methods you will deploy to monitor progress of the project and how project results are documented.}\\
|
|
%
|
|
%\textit{(0.5 to 1 page)}
|
|
|
|
Since the parameters of the problem are known the parameter files for the simulation are prepared in advance and need only minor adjustments with regards to the number of processes used for the specific simulation.\\
|
|
After each run the output of KARL will be checked for convergence. This will be done by comparing two density distributions directly as well as by checking whether the total charge of the system is growing or not.\\
|
|
|
|
\subsection{Work schedule}
|
|
%\textit{Provide tables and Gantt charts for a clear presentation of the work schedule, structured in sub-projects, if applicable.}
|
|
|
|
\subsubsection{Sub-project 1}
|
|
After adjusting the parameter file, the first run can be started immediately. Since runs depend on the previous one, only a single run will be able to run at once.\\
|
|
After each run the total charge will be determined and checked, together with the previous runs, against convergence.
|
|
|
|
\subsubsection{Sub-project 2}
|
|
Once the first sub-project has reached the desired amount of timesteps the second sub-project can begin.\\
|
|
The second sub-project uses the same workflow as the first one.
|
|
|
|
\subsubsection{Sub-project 3}
|
|
Once the first sub-project is finished the final density of the electrons is either known or can at least be estimated to a better degree. With this knowledge the parameter files for Vlad can be created and the simulation performed.
|
|
|
|
\subsubsection{Sub-project 4}
|
|
Post-processing will be done once a single sub-project is finished, in order to prepare the final data.\\
|
|
Furthermore, after each run a short post-processing step will be done in order to check for convergence of the obtained data.
|
|
|
|
\bigskip
|
|
%\textit{Example for a Gantt chart:}
|
|
\begin{figure}[H]
|
|
\begin{flushleft}
|
|
\includegraphics[width=1\textwidth]{Figures/Gantt1.pdf}
|
|
\end{flushleft}
|
|
\caption{\label{fig_workschedule}Work schedule for the project.}
|
|
\end{figure}
|
|
|
|
\section{Key Personnel and Experiences}
|
|
\rule{\textwidth}{0.4pt}\\
|
|
% \textit{Give a short introduction of the key persons involved in the project and their experience (max 3 persons).}\\
|
|
|
|
\textsc{PD Dr. Felix Spanier} (felix.spanier@uni-heidelberg.de)\\
|
|
F. Spanier is the leader of the working group in Heidelberg, where the KARL and Vlad code have been
|
|
developed initially. His expertise lies both in theoretical astroparticle physics and the realization large scale simulations of high-energy astrophysics. He has supervised the thesis of Dr. J. Kellerer that precedes this project. He is a member of the KATRIN and Project-8 collaboration.\\
|
|
|
|
\textsc{Christian Sendlinger, M.Sc.} (christian.sendlinger@stud.uni-heidelberg.de)\\
|
|
C. Sendlinger is the maintainer of the KARL code and has published the relevant code publication paper.
|
|
He is currently writing his PhD thesis on plasma models for the Project-8 experiment.
|
|
He also ran and evaluated simulations of the KATRIN source tube in the context of this project
|
|
in the past. \\
|
|
|
|
\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.
|
|
Lately, she added atomic processes like beta decay and ionization to the code
|
|
and will continue by adding particle collisions.
|
|
She also runs the Vlad simulations and analyzes their results.\\
|
|
|
|
% \textit{(half a page)}
|
|
|
|
\section{Bibliographic References}
|
|
\bibliography{references.bib}
|
|
%\rule{\textwidth}{0.4pt}\\
|
|
%\textit{Provide recent/most important bibliographic references that are relevant to the project.}\\
|
|
|
|
\bigskip
|
|
|
|
\end{document}
|