From 094aeb893908a6c89819a586ae3940b684bb6582 Mon Sep 17 00:00:00 2001 From: Josi Date: Fri, 4 Jul 2025 12:31:08 +0200 Subject: [PATCH] minor corrections to text --- .../GCS-Template-project-application.tex | 62 ++++++++++--------- 1 file changed, 34 insertions(+), 28 deletions(-) diff --git a/hlrs_karl_magnus_2025/GCS-Template-project-application.tex b/hlrs_karl_magnus_2025/GCS-Template-project-application.tex index 8281301..4a7a058 100644 --- a/hlrs_karl_magnus_2025/GCS-Template-project-application.tex +++ b/hlrs_karl_magnus_2025/GCS-Template-project-application.tex @@ -94,11 +94,12 @@ Germany\\ %\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 radio active element, such as tritium. From theory the energy spectrum is known analytically and also how it depends on the mass of the neutrino. 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 maximally 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 it 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 underling 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 tritium instead of molecular one 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 such an error is the potential of a plasma within the experiment. Due to the decay of tritium relatively high energy electrons are created. These electrons then 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 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 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. %\newpage \section{Preliminary Work} \rule{\textwidth}{0.4pt} @@ -109,11 +110,11 @@ The equilibrium state that forms is not known and not trivially obtainable to to \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 itself. The analysis of the plasma itself 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.\\ +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 the 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 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 @@ -133,16 +134,16 @@ One major change made to the KARL code is the introduction of a time-resolution. %\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 once 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 depend 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 experiment boundaries itself, it is necessary to be able to quantify those effects. The quantity of major interest in that regard is the total current across the experiment boundaries and how it is influenced by the parameters of the experiment. So one question is of how does the density of the tritium gas influence the total current.\\ +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, since even during the filling of the experiment some charged particles will also 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.\\ 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.\\ @@ -198,34 +199,39 @@ The Project-8 experiment is funded by the NSF and the PRISMA-Cluster. \begin{figure}[h] \centering \includegraphics[height=0.6\textheight]{Figures/simulation_flow.pdf} -\caption{\label{fig:flowchart} Flowchart of the KARL simulation procedure. } +\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 +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 MFP 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. 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 the particle in cell 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 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 electric field. This field is then used in the movement of the charged particles for the subsequent timestep.\\ +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 of one particle species 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.\\ +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 seconds 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 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 are calculated after the standard update step. There is still ongoing work to include more processes. +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 @@ -304,13 +310,13 @@ Since collision processes have a large influence on the particles distributions %\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. \\ +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 use 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. % --------------------------- table for estimating computing time %\begin{itemize} @@ -427,10 +433,10 @@ TOTAL & & & & & & & $30 \times 10^6$\\ %------------------------------------------------- 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 do 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 quantity 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}$.\\ +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 is necessary. Therefore we will only use 2064 cores. In total we estimate a value of 2 MCPU-h for the Vlad simulations. +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} @@ -464,7 +470,7 @@ After adjusting the parameter file, the first run can be started immediately. Si 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.\\ +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}