Neuer Zwischenstand GCS 2020

This commit is contained in:
2020-02-09 02:10:38 +01:00
parent 9c593f5de9
commit 7ea82d7fc4
4 changed files with 128 additions and 55 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.
@@ -5,7 +5,7 @@
\usepackage{graphicx} \usepackage{graphicx}
\usepackage{times} \usepackage{times}
\usepackage{float} \usepackage{float}
\usepackage{natbib} %\usepackage{natbib}
\usepackage[usenames,dvipsnames]{color} \usepackage[usenames,dvipsnames]{color}
\usepackage{amsmath} \usepackage{amsmath}
\usepackage{pgf} \usepackage{pgf}
@@ -288,11 +288,28 @@ The main change in the Monte Carlo simulations are the loss processes to the wal
From the Monte Carlo simulations the current at the rear wall can be constructed for various voltages. This yields U-I-curve as it is also measured in the real experiment. Should the observations and the simulations match then the resulting plasma potential map can be handed down to the KATRIN analysis group to construct neutrino masses from that potential. From the Monte Carlo simulations the current at the rear wall can be constructed for various voltages. This yields U-I-curve as it is also measured in the real experiment. Should the observations and the simulations match then the resulting plasma potential map can be handed down to the KATRIN analysis group to construct neutrino masses from that potential.
\subsubsection{Dielectric properties of the rear wall} \subsubsection{Dielectric properties of the rear wall}
\textit{...}\\
The situation modeled in the previous subproject is to some degree idealized: All walls of the WGTS vessel are treated as perfectly conducting metals. This is true as long as the metal surfaces are not covered with other materials. The slow change of plasma properties -- in special the current at the rear wall -- hints at a change of the properties of the rear wall. Plasma time scales are typically on the order of the plasma frequency ($\omega_\text{pe} \sim 10^8$ s$^{-1}$), the observed changes are on the scale of days.
In situ observations of the rear wall are technically not possible, so a plasma model has to be developed to check this hypothesis. The question whether the plasma is influenced by a change in the rear wall properties is of high practical value: Should contamination of the rear wall be an issue, regular cleaning of the rear wall would be required.
The way to test this is to change the boundary conditions of the walls from perfect conductor to a dielectric material. The most probable composition of the rear wall would be gold with some monolayers of tritium -- a material with somewhat unknown electric properties. It is therefore necessary to test different scenarios between pure conductor and perfect insulator for the rear wall.
The rear wall still produces a contact potential that should be unaffected
%%TODO
\subsubsection{Time dependent rear wall voltage} \subsubsection{Time dependent rear wall voltage}
The other subprojects aim at finding an equilibrium solution. It is assumed that for
\textit{(1 to 2 pages per sub-project)} \textit{(1 to 2 pages per sub-project)}
@@ -325,7 +342,7 @@ The behavior of (collisionless) plasmas can be modeled by the use of the Vlasov
The Vlasov equation is coupled to Maxwell's equations, which describe the propagation and interaction of electromagnetic fields and currents. The Vlasov equation is coupled to Maxwell's equations, which describe the propagation and interaction of electromagnetic fields and currents.
An exact solution to this non-linearly coupled system of equations exists only for simple cases, but various approximations are readily at hand. An exact solution to this non-linearly coupled system of equations exists only for simple cases, but various approximations are readily at hand.
\\ \\
One of the numerical approaches to this problem is the particle-in-cell (PiC) method \cite[e.g.][]{hockney_1988}, which uses phase space samples -- so-called macro particles -- to represent charged particles in the plasma. One of the numerical approaches to this problem is the particle-in-cell (PiC) method \cite{hockney_1988}, which uses phase space samples -- so-called macro particles -- to represent charged particles in the plasma.
These macro particles move through electromagnetic fields, which they themselves create. These macro particles move through electromagnetic fields, which they themselves create.
Currents derived from the motion of macro particles are introduced as a source term for Maxwell's equations, which are solved on a grid storing fields, currents and charge densities. Currents derived from the motion of macro particles are introduced as a source term for Maxwell's equations, which are solved on a grid storing fields, currents and charge densities.
The PiC method allows for self-consistent simulations of plasmas with -- in principle -- arbitrary initial and boundary conditions and is especially suitable for modeling collisionless space plasmas. The PiC method allows for self-consistent simulations of plasmas with -- in principle -- arbitrary initial and boundary conditions and is especially suitable for modeling collisionless space plasmas.
@@ -355,7 +372,7 @@ The method is second order accurate and furthermore holds the divergence of the
Time evolution is done in four consecutive subroutines per time step. Time evolution is done in four consecutive subroutines per time step.
\\ \\
Starting with given electromagnetic fields at the discrete grid points, the fields are interpolated to the positions of the particles. Starting with given electromagnetic fields at the discrete grid points, the fields are interpolated to the positions of the particles.
Following the overall concept of the code, a second order correct scheme with a triangular shaped cloud (TSC) form factor for particles is used \cite[see][]{hockney_1988}. Following the overall concept of the code, a second order correct scheme with a triangular shaped cloud (TSC) form factor for particles is used \cite{hockney_1988}.
Different form factors are also available. Different form factors are also available.
\\ \\
In the next step the particles are moved. In the next step the particles are moved.
@@ -391,20 +408,42 @@ Particle output is done via MPI-I/O with one file per output time step.
The \textbf{KARL} - \textbf{KA}trin WGTS elect\textbf{R}on and ion spectrum Monte Car\textbf{L}o simulation code was developed specifically for this project \cite{reiling}.
The basic concept of the simulation is the repetitive physical simulation of single particles.
The KARL code only simulates one particle at a time. Hence interactions between particles can not be directly simulated. The implementation of density fields allows self consistent treatment of particle interactions. These density fields indicate the density for each particle species and are calculated within the physical simulation of each single particle of the respective species.
In general the code follows a standard Monte Carlo scheme:
\begin{itemize}
\item Primary particles are drawn from the electron distribution of tritium beta decay
\item Particles are moving along the trajectory given by electric and magnetic fields
\item The total scattering cross section is calculated and the particle is moved a distance until the interaction probability is 1
\item After each interaction potential secondary particles will be added to a particle queue. This particle queue will be processed before new primary particles are injected.
\item While the Monte Carlo algorithm typically does not allow for the interaction of particles with each other, the KARL code implements density fields that represent particle densities.
\end{itemize}
The primary particles are drawn from the Fermi distribution of tritium decay electrons. As secondary
particles electrons e$^-$ and tritium ions T$^{+}$, T$^{2+}$, T$^{3+}$, and T$^{5+}$ are considered.
Higher order of tritium ion clusters are not implemented as their properties resemble T$^{5+}$. Further particle species can be easily added in further version of KARL if found necessary.
The following processes are integrated in KARL
\begin{itemize}
\item Elastic scattering of electrons and T$_{2}$ molecules
\item Electron impact ionization of $T_{2}$
\item Electronic excitation of $T_2$ by electrons
\item Rotational and vibrational excitation of T$_2$ by electrons
\item Recombination of electrons with tritium ions
\item Interactions of tritium ions
\item Elastic Scattering of T$_2$
\item Ion cluster formation
\end{itemize}
For all processes the total cross section (for the probability) and the differential cross section (to calculate the distribution of final particles) are used inside the code.
When particles are followed through the simulation volume (or are created/annihilated) a density field is updated accordingly. This density field is a representation of the 6d phase space density of the particles. The density field is used to model the interaction of particles with each other via proxy. This especially important to model recombination correctly: The tritium ions are created only through the ionization of tritium. Secondary electrons from that process will eventually recombine with the ions.
Input parameters for the code are the tritium density and electric and magnetic fields. The output consists of particle distributions at various positions in the simulation volume (using a logging barrier method) and the current carried by ions. These can be used in turn as input for the PiC simulation.
The entire KARL code is implemented in C\texttt{++11}. Vector operations and random number generator -- using the Mersenne-Twister 19937 algorithm -- are handled using the Blitz\texttt{++} library. Output is written in HDF5 format using the Table API of the corresponding library. This allows for efficient memory usage and optimized writing speed. Additionally the KARL code buffers output internally to optimize IO-speed. The parallelization strategy of KARL uses a distributed memory system. This is realized using Open MPI, allowing for communication between cores.
@@ -445,7 +484,7 @@ For field output HDF5 is used, for particle output either HDF5 or raw MPI-I/O ca
The code compiles on the Intel Compiler, GCC, clang/LLVM and the compiler used on Cray systems. The code compiles on the Intel Compiler, GCC, clang/LLVM and the compiler used on Cray systems.
For production runs -- also on SuperMUC -- the Intel Compiler \mbox{(10.1 - 14.0)} or GCC \mbox{(4.4 - 4.9)} are used. For production runs -- also on SuperMUC -- the Intel Compiler \mbox{(10.1 - 14.0)} or GCC \mbox{(4.4 - 4.9)} are used.
The \texit{KARL} code uses the same set of libraries, but requires a C++-11 compliant compiler. KARL has been tested with GCC 7 and newer. The \textit{KARL} code uses the same set of libraries, but requires a C++-11 compliant compiler. KARL has been tested with GCC 7 and newer.
\subsection{Code performance and workflow} \subsection{Code performance and workflow}
\label{sec:necessity} \label{sec:necessity}
@@ -491,7 +530,31 @@ Further bottlenecks are not present \cite{kempf_2014}.
Kinetic simulations require the resolution of the Debye length in space and the plasma frequency in time. These requirements make the simulation of real obe Kinetic simulations require the resolution of the Debye length in space and the plasma frequency in time. These requirements make the simulation of real physical systems computationally expensive. For the WGTS system the relevant physical parameters are given in Table \ref{tab:param}.
\begin{table}[H]
\begin{tabular}{lll}
System length & $L$ & 10 m\\
System radius & $R$ & 0.1 m\\
Plasma frequency & $\omega_\text{pe}$ & $6\times 10^7$ Hz\\
Spatial resolution & $dx$ & 0.0267 cm\\
Temporal resolution & $dt$ & $5.2\times 10^{-13}$ s\\
System size & $nx \times ny \times nz$ & $336\times 336 \times 37415$\\
Particles per cell & $ppc$ & 20\\
Number of time steps & $N_T$ & $4\times 10^4$\\
Total number of particle updated & $N_\text{pups}^\text{total} $ & $3\times 10^{15}$
\end{tabular}
\caption{Physical and numerical parameters for a standard WGTS simulation setup}
\label{tab:param}
\end{table}
These parameters combined with scaling graphs hint at run time for one simulation until the system is more or less in equilibrium of approx $10^6$ CPU-h using 32000 cores. It should be noted that the performance of the code is not yet tested on SuperMUC-NG -- a test account was not yet granted at time of writing -- but comparison with other current systems show a code performance of more than $10^6$ particle updates per core and second, which would cut the required resources.
All PiC runs will have identical system sizes and identical physical times - except for the time evolution runs. Problem size refers in this case to multiples of the physical time of the basic simulation. Output is required only for checkpointing and for the final result.
PiC simulations are reiterated with Monte Carlo simulations. Monte Carlo simulations are relatively cheap with typically less than $10^4$ CPU-h per run.
Except for debugging purposes detailed analysis does not have be run on the data. Further analysis steps for the neutrino mass are run on static data of the electric field extracted at the end of the simulation.
@@ -500,27 +563,6 @@ Kinetic simulations require the resolution of the Debye length in space and the
\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, MICs, etc.), please provide the following information and table for \underline{each} type of resource \underline{separately} and use the unit core hours (core-h). For GPUs, please specify the resources in terms of core hours of the corresponding host CPUs. 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 in core-h
\item Resources for data analytics, if applicable
\end{itemize}
\end{itshape}
\begin{table}[H] \begin{table}[H]
\caption{\label{tab_CPU_resources}The following CPU resources are requested} \caption{\label{tab_CPU_resources}The following CPU resources are requested}
\begin{center} \begin{center}
@@ -544,25 +586,56 @@ Kinetic simulations require the resolution of the Debye length in space and the
run & run &
[core-h] \\ [core-h] \\
\hline\hline \hline\hline
Sub-proj. 1 & RW voltage &
Preproc. & PiC &
P1 & 1 &
R1 & 30 &
S1 & 1 &
W1 & 12 &
C1 & $1.1\times 10^5$ &
R1$\cdot$S1$\cdot$W1$\cdot$C1 \\ $3.96\times 10^7$ \\
~ & ~ &
Type 1 & Monte Carlo &
P2 & 1 &
R2 & 30 &
S2 & 1 &
W2 & 12 &
C2 & 1024 &
R2$\cdot$S2$\cdot$W2$\cdot$C2 \\ $3.7\times 10^5$ \\\hline
$\cdots$ &\multicolumn{7}{c}{$\cdots$}\\ Dielectric &
\hline\hline PiC &
TOTAL & & & & & & & sum of above\\ 1 &
9 &
1 &
12 &
$1.1\times 10^5$ &
$1.18\times 10^7$ \\
~ &
Monte Carlo &
1 &
9 &
1 &
12 &
1024 &
$1.1\times 10^5$ \\\hline
Temporal &
PiC &
5 &
3 &
1 &
12 &
$1.1\times 10^5$ &
$1.48\times 10^7$ \\
~ &
Monte Carlo &
5 &
3 &
1 &
12 &
1024 &
$1.2\times 10^5$ \\
\hline\hline
TOTAL & & & & & & & $6.68\times 10^7$\\
\end{tabular} \end{tabular}
\end{center} \end{center}
\end{table} \end{table}
@@ -592,7 +665,7 @@ As simulations are only performed by one user allocating resources within the pr
\textit{Example for a Gantt chart:} \textit{Example for a Gantt chart:}
\begin{figure}[H] \begin{figure}[H]
\begin{flushleft} \begin{flushleft}
\includegraphics[scale=0.82]{Figures/gantt_chart.jpg} \includegraphics[scale=0.82]{Figures/gantt_chart.pdf}
\end{flushleft} \end{flushleft}
\caption{\label{fig_workschedule}Work schedule for the project.} \caption{\label{fig_workschedule}Work schedule for the project.}
\end{figure} \end{figure}
+2 -2
View File
@@ -1,10 +1,10 @@
ToDo LRZ Large Scale Antrag 'KATRIN' ToDo LRZ Large Scale Antrag 'KATRIN'
Description KARL code
Subproject 2: Dielectric Subproject 2: Dielectric
Subproject 3: Time variation Subproject 3: Time variation
Code Performance and Workflow Code Performance and Workflow
Scaling KARL Scaling KARL
Resources requested
Lesen, korrigieren, redigieren