diff --git a/hlrs_vlad_test_2023/Figures/gantt.pdf b/hlrs_vlad_test_2023/Figures/gantt.pdf new file mode 100644 index 0000000..93659f8 Binary files /dev/null and b/hlrs_vlad_test_2023/Figures/gantt.pdf differ diff --git a/hlrs_vlad_test_2023/Figures/gantt.png b/hlrs_vlad_test_2023/Figures/gantt.png new file mode 100644 index 0000000..37e5568 Binary files /dev/null and b/hlrs_vlad_test_2023/Figures/gantt.png differ diff --git a/hlrs_vlad_test_2023/KATRIN-WGTS-project-extension.tex b/hlrs_vlad_test_2023/KATRIN-WGTS-project-extension.tex index 6a026d1..7af8934 100644 --- a/hlrs_vlad_test_2023/KATRIN-WGTS-project-extension.tex +++ b/hlrs_vlad_test_2023/KATRIN-WGTS-project-extension.tex @@ -230,27 +230,51 @@ in a self-consistent way that includes plasma and atomic processes. While the VLAD code performs well on average ($\approx 10^6$ phase space cell updates per node-second) the total cost even for 1D simulations is rather high: For a KATRIN setup the resolution in $z$-direction has to be around $\Delta z\approx 0.6$ mm. The number of cells in $v_z$ direction has to be at least to be $>10000$ in order to resolve the thermal plasma and the beta electrons. Typical equilibrium timescales require more than $5\times 10^6$ time steps. -The plan is now, to do simulations with focus on different parameters of interest: +The plan is now to do simulations with focus on different parameters of interest, leading to three +sub-projects. -\begin{itemize}\setlength{\itemsep}{-2pt} - \item longer simulation times (more time steps) - \item high resolution (in velocity space as high as possible) - \item the potential of the rear wall -\end{itemize} - -\subsubsection{Simulation times} +\subsubsection{Sub-project 1: Simulation time} There are different time scales on which the plasma evolves. -Initially there are only neutral tritium particles inside the WGTS, which are injected in the middle. +Initially there are only neutral tritium particles inside the WGTS, + which are injected in the middle. Over time, they decay and the beta electrons ionize other particles so that a plasma develops. Since the particles are injected in the middle of the WGTS, which is 16\,m long, it takes a while until the first particles reach the sides of the tube. -Since electrons reach the metal wall, that is on one of the sides, faster than the heavier ions, -more of them get absorbed by it. +Since electrons reach the metal wall on one of the sides +faster than the heavier ions, more of them get absorbed by it. Therefore it is expected that the metal wall is crucial for the development of the plasma potential inside the WGTS. - +\subsubsection{Sub-project 2: Velocity resolution} +The maximum particle velocity in the simulation has to be at least +as high as the maximum velocity of beta electrons. +For tritium beta decay the maximum electron energy is 18.6\,keV, +leading to a maximum electron velocity of $8\times 10^9$\,cm/s. +That velocity is rather high and the computation cost for +atomic and molecular processes increases fast with the number of velocity cells. +Therefore, it is favourable to keep the number of velocity cells as small as possible. +This sub-project aims to detect if there are features in the plasmas phase space density +that may be suppressed by a too low velocity resolution. +To keep the needed number of velocity grid cells low and still resolve important features, +it is planned to use a velocity-dependent cell size in the future. + + +\subsubsection{Sub-project 3: Rear wall potential} +The right side of the experiment is characterized by a metal surface, called the rear wall. +Because electrons move faster than ions and get absorbed by the rear wall, +a plasma potential builds up inside the WGTS. +This is what usually happens when the rear wall is grounded. +However, the rear wall potential can also be set to different values. +The influence of this rear wall potential on the behavior of the plasma as a whole is not known. +Thus it is necessary to investigate its effects on the particle behavior close to the rear wall. +Because of collective plasma behaviour and over some time, measurable quantities are influenced +even up until the other end of the source tube. +If set to a fitting value, the rear wall potential can improve the conditions in the source +such that the influence of the plasma is as small as possible. +Therefore it is of great interest to find that value and +investigate the impact of the rear wall potential in general. + %\subsubsection{Sub-project 2} %\textit{...}\\ @@ -364,6 +388,9 @@ throughout the whole simulation. The input can be read from a json file or from a HDF5 file to restart a previous simulation. Compilation is done using the GCC compiler. +Visualization is done using a short python code with the numpy, matplotlib and h5py packages. +This code only runs on one CPU and does not need much computational resources. + The problem size is mainly determined by the phase space density, which is discretely stored in a two-dimensional array, holding the density of particles in one spatial and one velocity dimension. All arrays are managed by the blitz++ library. @@ -438,24 +465,61 @@ The code has been tested by doing several simulations on the bwForCluster BinAC \caption{\label{fig_scaling}Scaling behavior of {\tt code} on {\tt architecture and system} at {\tt location}. This data was obtained with a problem size of {\tt size}.} \end{figure} -\textit{(1 to 2 pages)} +%\textit{(1 to 2 pages)} \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{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{\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} + +The size of the simulation depends on the physical size of the experiment and +the density of the plasma to simulate. +Since we plan to do only simulations of the KATRIN WGTS plasma here, both parameters are set. +The length of the WGTS is roughly $2.5\times 10^4$ times the plasma Debye length +at the chosen density, which has to be resolved in one cell. +This leads to a number of $2^{15}$ cells in z-direction to be chosen, +so that the whole WGTS can be simulated with a sufficient spatial resolution. + +In principle, there is no such criterion for the velocity space. +The highest velocity value of particles injected in the simulation +is the maximum velocity of beta electrons. +How many grid cells are chosen in v-direction is mainly limited by the computation time, +since the atomic and molecular processes are very costly in this regard. +However, a certain number of velocity grid cells are necessary to resolve +characteristics of the plasma evolution, like instabilities in phase space density. + +Because the simulations usually start with zero charged particles and +it takes some time for them to emerge from the tritium decay and ionization, +at least $10^6$ time steps are necessary to see some physical developments. + +To discover what happens in the long-term, +we are planning to do some runs with even more time steps ($2\times10^7$) +in sub-project 1. +The aim of sub-project 2 is to detect if there are some features +that may be suppressed by a too low velocity resolution. +Since the velocity space is in the foreground here, +it is sufficient to simulate only the left half of the x-domain. +Sub-project 3 is to find out the influence of different boundary conditions +on the plasma potential. +Therefore, different runs with the same problem size are the chosen approach. + +All cost-intensive runs to be done on hawk are for data production. +After each production run, the data is immediately visualized +using the python script on one core. +The visualization is calculated on the cluster for pure utility reasons and +takes less than 10 core hours in total. \begin{table}[H] \caption{\label{tab_CPU_resources}The following CPU resources are requested} @@ -466,18 +530,21 @@ The code has been tested by doing several simulations on the bwForCluster BinAC Sub-project & Type & Problem & \# runs & \# steps/ & Wall time/ & \# cores/ & Total \\ & of run & size & & run & step [seconds] & run & [core-h] \\ \hline\hline - Sub-proj. 1 & 1 & $32768\times500$ & 4 & $2\times 10^7$ & 0.0864 & 2048 & $3.9\times 10^6$ \\ - ~ & 1 & $32768\times1000$ & 2 & $1\times 10^7$ & 0.3456 & 4096 & $7.8\times 10^6$ \\ - Sub-proj. 2 & 1 & $16384\times500$ & 10 & $1\times 10^6$ & 0.3456 & 2048 & \\ - ~ & 2 & $16384\times1000$ & 2 & $1\times 10^6$ & 0.3456 & 2048 & \\ - ~ & 3 & $16384\times5000$ & 2 & $1\times 10^6$ & 0.3456 & 2048 & \\ - ~ & 3 & $16384\times10000$ & 2 & $1\times 10^6$ & 0.3456 & 2048 & \\ - Sub-proj. 3 & 1 & $16384\times500$ & 5 & $1\times 10^6$ & 0.3456 & 2048 & \\ + Sub-proj. 1 & production & $32768\times500$ & 4 & $2\times 10^7$ & 0.0864 & 2048 & $3.9\times 10^6$ \\ + ~ & visualization & $32768\times500$ & 4 & $2000$ & 2.72 & 1 & $6.1$ \\ + %~ & 2 & $32768\times1000$ & 2 & $1\times 10^7$ & 0.3456 & 2048 & $3.9\times 10^6$ \\ + Sub-proj. 2 & production & $16384\times500$ & 10 & $1\times 10^6$ & 0.0864 & 1024 & $2.5\times 10^5$ \\ + ~ & production & $16384\times1000$ & 2 & $1\times 10^6$ & 0.3456 & 1024 & $2.0\times 10^5$ \\ + ~ & production & $16384\times2000$ & 2 & $1\times 10^6$ & 1.3824 & 1024 & $7.9\times 10^5$ \\ + ~ & visualization & $16384\times500$ & 10 & $100$ & 1.36 & 1 & $0.4$ \\ + ~ & visualization & $16384\times1000$ & 2 & $100$ & 2.72 & 1 & $0.2$ \\ + ~ & visualization & $16384\times2000$ & 2 & $100$ & 5.44 & 1 & $0.3$ \\ + Sub-proj. 3 & production & $32768\times500$ & 10 & $1\times 10^6$ & 0.0864 & 2048 & $4.9\times 10^5$ \\ + ~ & visualization & $32768\times500$ & 10 & $100$ & 2.72 & 1 & $0.8$ \\ -$\cdots$ &\multicolumn{7}{c}{$\cdots$}\\ \hline\hline -TOTAL & & & & & & & sum of above\\ +TOTAL & & & & & & & $5.6\times 10^6$\\ \end{tabular} \end{center} \end{table} @@ -489,8 +556,9 @@ TOTAL & & & & & & & sum of above\\ \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)} +\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)} + Due to previous work on other supercomputer the work outline is pretty clear: %Existing parameter files have to be appended for different background potential values, maximum azimuthal mode number and particle numbers. The simulations can be started almost immediately. @@ -498,17 +566,19 @@ The simulations can be started almost immediately. \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} -\textit{...} +\subsubsection{Sub-project 1: Simulation time} -\subsubsection{Sub-project 2} -\textit{...}\\ + +\subsubsection{Sub-project 2: Velocity resolution} + + +\subsubsection{Sub-project 3: Rear wall potential} \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[scale=0.45]{Figures/gantt.png} \end{flushleft} \caption{\label{fig_workschedule}Work schedule for the project.} \end{figure}