diff --git a/hlrs_vlad_test_2023/KATRIN-WGTS-project-extension.tex b/hlrs_vlad_test_2023/KATRIN-WGTS-project-extension.tex index 25d80be..6a026d1 100644 --- a/hlrs_vlad_test_2023/KATRIN-WGTS-project-extension.tex +++ b/hlrs_vlad_test_2023/KATRIN-WGTS-project-extension.tex @@ -353,33 +353,45 @@ This simulation cycle is repeated until the number of pre-defined time steps is For this project we are using the Vlad code. In its essence, it iteratively solves the one-dimensional Vlasov-Poisson system self-consistently +and adds changes due to atomic and molecular processes to find the time evolution of the plasmas phase space density and electric field. +Different boundary conditions can be selected to model different physical problems, +like periodic boundaries or any mix of Dirichlet and Neumann boundaries. -The code utilizes the blitz++, PETSc, HDF5 and jansson libraries. +The Vlad code utilizes the blitz++, PETSc, HDF5 and jansson libraries. Output is written fully in parallel, using the same HDF5 file for fields and currents 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. 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. -(A numeric integration of the pure Vlasov equation without atomic effects -would then lead to linearly increasing computation time if the spatial or velocity resolution is increased. -Meanwhile the solution time for the Poisson equation only scales with the number of grid cells in space-direction. -However, the computation time grows with the order of 2 when the velocity resolution grows, -if one decides to add of atomic effects like beta decay, ionization and recombination.) - -The KATRIN WGTS is very long (16\,m) compared to the plasma length scale -that determines the maximum spatial resolution (ca. 0.06\,cm). +All arrays are managed by the blitz++ library. +Because the KATRIN WGTS is very long (16\,m) compared to the plasma length scale, +that determines the spatial resolution (ca. 0.06\,cm), +the z-direction has to contain at least $3\times10^4$ grid cells. This made it obvious that a parallelization in the spatial direction is necessary. It was implemented by using the message passing interface (MPI) exclusively without internal -threading and without hybrid parallelization. -With that, all arrays across the space-dimension are cut in equally-sized sub-arrays, distributed over all CPUs. +threading and without hybrid parallelization. +On local computing clusters the OpenMPI implementation is used. +The code has been parallized to not utilize any GPU resources. +However, it is technically possible and planned to do some parts of the calculation on GPUs in the future. +At the moment, all arrays across the space-dimension are cut in equally-sized sub-arrays, +distributed over all CPUs. The velocity-dimension is not split up by this, so that each CPU gets a slice over the whole velocity domain, but only a few z-values for 2d arrays. This minimizes CPU communication to the exchange of ghost cells between the sub-arrays and allows parallelization of the Vlasov- and Poisson-solver at the same time. The parallel solution of the Poisson equation is mainly taken care of by the linear PETSc library. +The code has been tested by doing several simulations on the bwForCluster BinAC before. +%(A numeric integration of the pure Vlasov equation without atomic effects +%would then lead to linearly increasing computation time if the spatial or velocity resolution is increased. +%Meanwhile the solution time for the Poisson equation only scales with the number of grid cells in space-direction. +%However, the computation time grows with the order of 2 when the velocity resolution grows, +%if one decides to add of atomic effects like beta decay, ionization and recombination.) + + %{\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} @@ -451,39 +463,18 @@ The parallel solution of the Poisson equation is mainly taken care of by the lin \setlength{\tabcolsep}{4pt} \renewcommand{\arraystretch}{1.2} \begin{tabular}{llcccccc} \hline\hline - Sub-project & - Type & - Problem & - \# runs & - \# steps/ & - Wall time/ & - \# cores/ & - Total \\ - & - of run & - size & - & - run & - step [hours] & - run & - [core-h] \\ + Sub-project & Type & Problem & \# runs & \# steps/ & Wall time/ & \# cores/ & Total \\ + & of run & size & & run & 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 \\ + 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 & \\ + + $\cdots$ &\multicolumn{7}{c}{$\cdots$}\\ \hline\hline TOTAL & & & & & & & sum of above\\ @@ -532,14 +523,14 @@ developed initially. His expertise lies both in theoretical plasma astrophysics plasma simulations. He has supervised the thesis of Dr. J. Kellerer that precedes this project.\\ -\textsc{Anna Josephine Schulze, B.Sc.}(anna.schulze@stud.uni-heidelberg.de)\\ +\textsc{Anna Josephine Schulze, B.Sc.} (anna.schulze@stud.uni-heidelberg.de)\\ A. J. Schulze has developed the Vlad code and is still improving and implementing new features. Lately, she added atomic processes like beta decay and ionization to the code and will continue by adding particle collisions. She also runs the Vlad simulations and analyzes their results.\\ -\textsc{Christian Sendlinger, M.Sc.}(christian.sendlinger@stud.uni-heidelberg.de)\\ +\textsc{Christian Sendlinger, M.Sc.} (christian.sendlinger@stud.uni-heidelberg.de)\\ C. Sendlinger is heavily involved in the maintenance and improvement of the ACRONYM codebase. He is currently working on implementing the pseudo-2D version of ACRONYM and will run and evaluate simulations of the KATRIN source tube in the context of this project.