More text and Gantt chart
This commit is contained in:
Binary file not shown.
@@ -88,7 +88,7 @@
|
||||
\textit{Give a short outline of the scientific background of your research, including references.}\\
|
||||
\textit{(about 0.5 to 1 page)}
|
||||
|
||||
\newpage
|
||||
%\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.}\\
|
||||
@@ -96,7 +96,7 @@
|
||||
\centering
|
||||
\includegraphics[width=1\textwidth]{Figures/densities_all_vs_z.pdf}
|
||||
\label{fig:densitiesKATRIN}
|
||||
\caption{TBD}
|
||||
\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. \\
|
||||
@@ -105,49 +105,70 @@ A full simulation of the plasma is however still not achieved using a single ite
|
||||
One major change made to the KARL code is the introduction of a timeresolution. 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 timeresolution 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}
|
||||
%\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 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.\\
|
||||
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}
|
||||
Run 1: from 0 to estimated convergence
|
||||
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 at 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}.
|
||||
\textcolor{magenta}{Describe the actual parameters?}
|
||||
|
||||
\subsubsection{Sub-project 2}
|
||||
Run 2: if Run 1 not converged simulate longer otherwise different parameter set
|
||||
%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.\\
|
||||
In case 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}
|
||||
Cross testing with Vlad
|
||||
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}
|
||||
Post processing
|
||||
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.\\
|
||||
Additionally, after each run the solution needs to be checked for convergence to an equilibrium state. 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}
|
||||
%
|
||||
%\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.}
|
||||
\newpage
|
||||
%\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.}\\
|
||||
@@ -171,66 +192,73 @@ In order to correct for the charge imbalance before the further usage of the res
|
||||
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.\\
|
||||
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.
|
||||
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. 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 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 third step is to solve the Poisson equation. This is done by using the PetSc library. (\textcolor{magenta}{citation?})\\
|
||||
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.
|
||||
\textcolor{magenta}{Formeln?}
|
||||
%--------------------------------------------------------
|
||||
\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}
|
||||
%\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)!}\\
|
||||
%{\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.}
|
||||
|
||||
\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{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}
|
||||
@@ -241,60 +269,72 @@ This approach depicts the physical reality more closely than the original one si
|
||||
creasing 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. \textcolor{magenta}{citation?}}
|
||||
\end{figure}
|
||||
|
||||
\textit{(1 to 2 pages)}\\
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\includegraphics[width=.7\textwidth]{Figures/weak_scaling_plot.pdf}
|
||||
\end{center}
|
||||
% probably need to explain somewhere what "standard KATRIN parameters" are...
|
||||
\caption{\label{fig:scalingVlad}Weak scaling of the Vlad code. \textcolor{magenta}{What, where?}}
|
||||
\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 smaller 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.\\
|
||||
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. \textcolor{magenta}{what to write about the new version where they are not that rare?}
|
||||
\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}
|
||||
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.\\
|
||||
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. \textcolor{magenta}{other requirements of Vlad, memory etc?}
|
||||
% --------------------------- 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
|
||||
%\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}
|
||||
%\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}
|
||||
@@ -315,39 +355,56 @@ In terms of output KARL is quite lightweight. While output could hypothetically
|
||||
size &
|
||||
&
|
||||
run &
|
||||
step [hours] &
|
||||
step [seconds] &
|
||||
run &
|
||||
[core-h] \\
|
||||
\hline\hline
|
||||
Sub-proj. 1 &
|
||||
Preproc. &
|
||||
P1 &
|
||||
R1 &
|
||||
S1 &
|
||||
W1 &
|
||||
C1 &
|
||||
R1$\cdot$S1$\cdot$W1$\cdot$C1 \\
|
||||
~ &
|
||||
Type 1 &
|
||||
P2 &
|
||||
R2 &
|
||||
S2 &
|
||||
W2 &
|
||||
C2 &
|
||||
R2$\cdot$S2$\cdot$W2$\cdot$C2 \\
|
||||
$\cdots$ &\multicolumn{7}{c}{$\cdots$}\\
|
||||
Production &
|
||||
$1.5\times 10^5$&
|
||||
50 &
|
||||
$4\times 10^6$ &
|
||||
0.02 &
|
||||
12600 &
|
||||
$14\times 10^6$ \\
|
||||
Sub-proj. 2 &
|
||||
Production &
|
||||
$1.5\times 10^5$&
|
||||
50 &
|
||||
$4\times 10^6$ &
|
||||
0.02 &
|
||||
12600 &
|
||||
$14\times 10^6$ \\
|
||||
Sub-proj. 3 &
|
||||
Production &
|
||||
?&
|
||||
1 &
|
||||
? &
|
||||
? &
|
||||
? &
|
||||
$2\times 10^6$ \\
|
||||
Sub-proj. 4 &
|
||||
Post Processing&
|
||||
? &
|
||||
3 &
|
||||
1 &
|
||||
3600 &
|
||||
1 &
|
||||
3
|
||||
\\
|
||||
\hline\hline
|
||||
TOTAL & & & & & & & sum of above\\
|
||||
TOTAL & & & & & & & $30 \times 10^6$\\
|
||||
\end{tabular}
|
||||
\end{center}
|
||||
\end{table}
|
||||
|
||||
\bigskip
|
||||
\textit{(0.5 to 1 page)}\\
|
||||
%\textit{(0.5 to 1 page)}\\
|
||||
%-------------------------------------------------
|
||||
The production runs are planned to consist of $\approx \num{2e8}$ timesteps. 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{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{15e6} CPU-h for a single run.
|
||||
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.\\
|
||||
\textcolor{magenta}{Vlad estimate?}
|
||||
|
||||
%-------------------------------------------------
|
||||
%\begin{itemize}
|
||||
@@ -366,24 +423,37 @@ From short test simulations with that setup using 126 cores on NEMO2 we obtain a
|
||||
\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{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)}
|
||||
|
||||
\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 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.\\
|
||||
\textcolor{magenta}{Vlad?}
|
||||
|
||||
\subsection{Work schedule}
|
||||
\textit{Provide tables and Gantt charts for a clear presentation of the work schedule, structured in sub-projects, if applicable.}
|
||||
%\textit{Provide tables and Gantt charts for a clear presentation of the work schedule, structured in sub-projects, if applicable.}
|
||||
|
||||
\subsubsection{Sub-project 1}
|
||||
\textit{...}
|
||||
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}
|
||||
\textit{...}\\
|
||||
Once the first sub-project has reached the desired amount of tiemsteps. The second sub-project can begin.\\
|
||||
The second sub-project uses the same workflow as the first one.
|
||||
|
||||
\subsubsection{Sub-project 3}
|
||||
\textcolor{magenta}{Vlad?}
|
||||
|
||||
\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:}
|
||||
%\textit{Example for a Gantt chart:}
|
||||
\begin{figure}[H]
|
||||
\begin{flushleft}
|
||||
\includegraphics[scale=0.82]{Figures/gantt_chart.jpg}
|
||||
\includegraphics[width=1\textwidth]{Figures/Gantt1.pdf}
|
||||
\end{flushleft}
|
||||
\caption{\label{fig_workschedule}Work schedule for the project.}
|
||||
\end{figure}
|
||||
|
||||
Reference in New Issue
Block a user