Merge branch 'master' of masterduck.fspanier.de:katrin/katrin-plasma

Conflicts merged, more Ref 2 comments
This commit is contained in:
2025-01-23 19:13:22 +01:00
3 changed files with 69 additions and 66 deletions
+28 -26
View File
@@ -205,7 +205,7 @@ For each movement step, the mean free path $\lambda_\text{mfp}$ of the correspon
\label{eq:mean_free_path}
\lambda_\text{mfp} = \frac{1}{\sum_i \sigma_i(E) n_i} \commaeq
\end{equation}
where $E$ is the kinetic energy of the particle in the \changed{center of mass} frame, $\sigma_i$ is the cross section of a specific interaction, and $n_i$ the particle number density of the target. \changed{All three of these quantities are with respect to the interaction partner of the i-th interaction.} In the lab frame, the neutral gas has a non-zero drift velocity. The cross sections are evaluated from predefined functions. \changed{The particle number density is either calculated during the simulation for particle species that are tracked or through user input at the beginning of the simulation for particle species that act as a background population}.
where $E$ is the kinetic energy of the particle in the \changed{center of mass} frame, $\sigma_i$ is the cross section of a specific interaction, and $n_i$ the particle number density of the target specie of the interaction. In the lab frame, the neutral gas has a non-zero drift velocity. The cross sections are evaluated from predefined functions. \changed{The particle number density is either calculated during the simulation for particle species that are tracked or through user input at the beginning of the simulation for particle species that act as a background population}.
%The particle number density of the interaction partner is calculated either from a predefined function for background species, or from the density field for tracked species, see section~\ref{ssec:denstiy_fields} and \ref{sec:implementation} for more information.
The actual moved distance $d$ is a statistical quantity, which \changed{is} derived from the MFP through
\changed{
@@ -461,7 +461,7 @@ The most prominent interaction between low energy particles is elastic scatterin
\begin{align}
\label{eq:elastic_scattering}
\begin{split}
e^- + H_2 &\rightarrow e^- + H_2 \fullstop
e^- + \text{H}_2 &\rightarrow e^- + \text{H}_2 \fullstop
\end{split}
\end{align}
This interaction can be used for any tracked specie colliding with a background species as the target.
@@ -477,7 +477,7 @@ During evaluation of the scattering angle, the energy bin is determined and the
In some cases, there is not enough data from one source alone, to cover the whole impact energy range. This is the case for the scattering of electrons with tritium molecules, \changed{where data for the cross section was only available for low impact energies}. At high energies, the scattering angle distribution is determined from the external simulation Elsepa \citep{Salvat:2005aa}, at lower energies isotropic scattering can be assumed. \changed{For these cases, the scattering angle distribution can be composed using the known distributions and a threshold energy defining point of transition between the distributions.}
%For these cases, the angle can be determined through the composition of two distributions.
The cross section of elastic scattering was measured at different experiments in the energy range of \changed{\SI{2e-2}{eV} to \SI{1e2}{eV}}. The results of these experiments were combined by \citep{Tawara.1990} and parameterized by \citep{Yoon.2008}.
The cross section of elastic scattering was measured at different experiments in the energy range of \changed{\SI{2e-2}{eV} to \SI{100}{eV}}. The results of these experiments were combined by \citep{Tawara.1990} and parameterized by \citep{Yoon.2008}.
The interaction itself is performed in multiple steps. First, the velocity of a target particle is determined. It is \changed{a} compound of the drift velocity of the species and a velocity, which is drawn from the underlying velocity distribution. For the tritium gas, the drift velocity is determined in external simulation and the velocity distribution is given by a Maxwell-Boltzmann distribution \citep{Kellerer_2022}.
%Note: the following sentence should be a lie. A tracked species should throw an error if any of the two components is initialized with "null"...
@@ -490,8 +490,8 @@ There are currently two types of clustering reactions implemented. The first one
\begin{align}
\label{eq:clustering_radiative}
\begin{split}
H^+ + H_2 &\rightarrow H_3^+ + h\nu \quad \text{or} \\
H_2^+ + H_2 &\rightarrow H_3^+ + H_2 \, .
\text{H}^+ + \text{H}_2 &\rightarrow \text{H}_3^+ + h\nu \quad \text{or} \\
\text{H}_2^+ + \text{H}_2 &\rightarrow \text{H}_3^+ + \text{H} \fullstop
\end{split}
\end{align}
}
@@ -500,9 +500,9 @@ H_2^+ + H_2 &\rightarrow H_3^+ + H_2 \, .
The second type of clustering includes three interaction partners:
\begin{equation}
\label{eq:clustering_tertiary}
H^+ + H_2 + H_2 \rightarrow H_3^+ + H_2 \, .
\text{H}^+ + \text{H}_2 + \text{H}_2 \rightarrow \text{H}_3^+ + \text{H}_2 \fullstop
\end{equation}
Since for both types of reactions only the rate coefficients from \citep{Gerlich.1992,Paul.1995} are available, the cross section itself has to be approximated. This has been explained in \citep{Kellerer2022_1000143868} and the resulting cross sections are shown in Figure~\ref{fig:t3p_interactions}.
Since for both types of reactions only the rate coefficients from \citep{Gerlich.1992,Paul.1995} are available (which have been determined from an experiment), the cross section itself has to be approximated. This has been explained in \citep{Kellerer2022_1000143868} and the resulting cross sections are shown in Figure~\ref{fig:t3p_interactions}.
%Note: if i'm honest, way to little explanation, since rate coefficients themselves are only at a specific temperature etc...
}
The clustering class is initiated using these \changed{approximated} cross sections, the target specie and the specie, which is the result of the clustering process. In the interaction itself it is assumed that the new particle follows the direction of movement of the target particle, but with different absolute velocity. The new absolute velocity is calculated from the velocity of a target particle and the new particles mass, since the initial direction is less important due to a high probability of collisions with the neutral gas, which quickly randomizes the velocity direction. The velocity of a target particle is determined \changed{analogous} to its calculation in elastic scattering.
@@ -512,10 +512,10 @@ The clustering class is initiated using these \changed{approximated} cross secti
Recombination is the interaction in which an ion species and an electron species form a neutral particle:
\begin{equation}
\label{eq:recombination}
H^+ + e^- \rightarrow H + h\nu \fullstop
\text{H}^+ + e^- \rightarrow \text{H} + h\nu \fullstop
\end{equation}
}
The recombination class is initiated using the cross section and the target specie. The interaction itself has only two steps. First, the target density field logs one deletion at the corresponding position, see section~\ref{ssec:denstiy_fields}. Second, the impact particle is marked for deletion. The different recombination cross sections are given by \citep{Janev.2003,Kotelnikov.2019,Pettersson.2015} \changed{and are plotted in Figures~\ref{fig:t2p_interactions} and \ref{fig:t3p_interactions}.}
The recombination class is initiated using the cross section and the target specie. The interaction itself has only two steps. First, the target density field logs one deletion at the corresponding position, see section~\ref{ssec:denstiy_fields}. Second, the impact particle is marked for deletion. The different recombination cross sections are given by analytic calculations \citep{Janev.2003,Kotelnikov.2019,Pettersson.2015} \changed{and are plotted in Figures~\ref{fig:t2p_interactions} and \ref{fig:t3p_interactions}.}
\paragraph{Free movement}
The free movement interaction is only a helper class, which is necessary if no other interaction should be used \changed{or if the cross section is zero, e.g. if the energy is below the threshold of an interaction}. It provides the simulation with a very small cross section, which results in a very large mean free path. This large \changed{MFP} guarantees a\changed{n interaction-}free movement through the simulation domain. If the interaction step is evoked for a particle nothing is done.
@@ -525,7 +525,7 @@ The free movement interaction is only a helper class, which is necessary if no o
Only the following type of charge exchange interactions is considered
\begin{equation}
\label{eq:charge_exchange}
H_2^+ + H_2 \rightarrow H_2 + H_2^+ \, .
\text{H}_2^+ + \text{H}_2 \rightarrow \text{H}_2 + \text{H}_2^+ \fullstop
\end{equation}
I.e. charge exchange processes are only possible between a background species and the corresponding singly charged ion.
}
@@ -536,9 +536,9 @@ The charge exchange class is initiated using the cross section and the target sp
The target particle can be excited if the collision energy is above the corresponding excitation energy. This is mainly the case in electron collisions with the background gas
\begin{equation}
\label{eq:excitation}
e^- + H_2 \rightarrow e^- + H_2^* \commaeq
e^- + \text{H}_2 \rightarrow e^- + \text{H}_2^* \commaeq
\end{equation}
where $H_2^*$ is either rotationally, vibrationally or electronically excited version of $H_2$.
where H$_2^*$ is either rotationally, vibrationally or electronically excited version of H$_2$.
}
The excitation class is initiated using the cross section, the target specie and the excitation energy. In the interaction itself, first the velocity and direction of movement of the impact particle is determined. Second the kinetic energy of the particle \changed{is} calculated and reduced by the excitation energy. Lastly, the new velocity is determined from the reduced energy and direction of movement. This is a simple but effective method for excitation processes. However, no scattering is considered here. This is justifiable, because excitation processes are often much \changed{less }likely than elastic scattering processes and therefore scattering angle effects do not play a significant role. The excellent paper by \citep{Janev.2003} provides more insight into the cross sections. \changed{The cross sections are plotted in Figure~\ref{fig:et2_interactions}, where a sum over all final excitation states has been performed}.
@@ -547,14 +547,14 @@ The excitation class is initiated using the cross section, the target specie and
In a molecular background gas there are two types of electron ionization processes. In the first one, the target only loses an electron
\begin{equation}
\label{eq:ionization_non_diss}
e^- + H_2 \rightarrow e^- + e^- + H_2^+ \, .
e^- + \text{H}_2 \rightarrow e^- + e^- + \text{H}_2^+ \fullstop
\end{equation}
In the second one the target itself also dissociates:
\begin{equation}
\label{eq:ionization_diss}
e^- + H_2 \rightarrow e^- + e^- + H^+ + H \commaeq
e^- + \text{H}_2 \rightarrow e^- + e^- + \text{H}^+ + \text{H} \commaeq
\end{equation}
where the $H$ might also be left in an excited state.
where the H might also be left in an excited state.
}
The ionization class is initiated using the cross section, the target specie, the new electron specie, the new ion specie, the ionization energy, \changed{the ionization energy distribution} and the scattering angle distribution. It is developed for ionization of the target specie by impact of a particle, which is much lighter than the target. However, the code does not check for this condition.
@@ -728,7 +728,7 @@ It can be seen that the data is well described by the fit with little deviations
\begin{figure}[tbp]
\centering
\includegraphics[width=0.8\textwidth]{figures/fit_boltzmann_errorbars.pdf}
\caption{Electron spectrum and fit. Monoenergetic electrons are injected with energies of $E_\text{inj.} = \SI{8}{meV}$ into a neutral gas reservoir with a Maxwell-Boltzmann distributed velocity $(T = \SI{80}{K}$). No other interactions are activated than elastic scattering and the cross section of elastic scattering is set to a constant value. The data from the numerical experiment is fitted by a scaled Maxwell-Boltzmann distribution ($T_\text{fit} = \SI{80.40 \pm 0.08}{K}$). The error bars are calculated by using six simulations with different random seeds \changed{but otherwise unchanged parameters}.}
\caption{Electron spectrum and fit. Monoenergetic electrons are injected with energies of $E_\text{inj.} = \SI{8}{meV}$ into a neutral gas reservoir with a Maxwell-Boltzmann distributed velocity $(T = \SI{80}{K}$). No other interactions are activated than elastic scattering and the cross section of elastic scattering is set to a constant value. The data from the numerical experiment is fitted by a scaled Maxwell-Boltzmann distribution ($T_\text{fit} = \SI{80.40 \pm 0.08}{K}$). The error bars are calculated by using six simulations with different random seeds \changed{but otherwise unchanged parameters}. The $R^2$ value for the fit is 0.9998.}
\label{fig:boltzmann_test}
\end{figure}
@@ -950,16 +950,16 @@ Figure~\ref{fig:maxInteractions_vs_density_2e22} shows the same plot as before b
The simulation tool KARL was designed to determine the charged particle distributions inside of the KATRIN source and to investigate influences of external parameters on this spectrum. Some results of charged particle spectra, particle densities and currents at various positions in the source were already presented and discussed in \citep{Kellerer_2022}, including a comparison of results at different source conditions.
It was calculated using a factor 10 reduced particle density in the source compared to the simulations in \citep{Kellerer_2022}. The specific input file can be found at $\text{simulation\_config}/\text{parameter}/\text{katrin.json}$. Source parameters for this scenario include the standard geometry $L=\SI{1657}{\centi\meter}$, $R=\SI{4.5}{\centi\meter}$ and a magnetic field of $B=\SI{2.5}{\tesla}$. The maximum neutral tritium density was chosen to be $n_{\text{T}_2}= \SI{6.3E19}{\per\cubic\meter}$. The most important numerical parameters are the maximum interaction number of $10^6$ and a maximal drift distance of $\SI{1e-3}{\meter}$
It was calculated using a factor 10 reduced particle density in the source compared to the simulations in \citep{Kellerer_2022}. The specific input file can be found at $\text{simulation\_config}/\text{parameter}\_\text{katrin\_example.json}$. Source parameters for this scenario include the standard geometry $L=\SI{1657}{\centi\meter}$, $R=\SI{4.5}{\centi\meter}$ and a magnetic field of $B=\SI{2.5}{\tesla}$. The maximum neutral tritium density was chosen to be $n_{\text{T}_2}= \SI{6.3E19}{\per\cubic\meter}$. The most important numerical parameters are the maximum interaction number of $10^6$ and a maximal drift distance of $\SI{1e-3}{\meter}$
\begin{figure}[tbp]
\centering
\includegraphics[width=0.8\textwidth]{figures/spectrum_at_z=8_at_period=LastSyncPeriod.pdf}
\caption{Particle spectra in the centre of the source. Simulated using a maximum Tritium density of \SI{6.3E19}{\per\cubic\meter} and a constant magnetic background field of \SI{2.5}{T}}
\caption{Particle spectra in the center of the source. Simulated using a maximum Tritium density of \SI{6.3E19}{\per\cubic\meter} and a constant magnetic background field of \SI{2.5}{T}.}
\label{fig:katrin_particle_spectrum}
\end{figure}
It can be seen, that the electron spectrum has a significantly different shape than the spectrum of the ions. It reaches up to values of \SI{18.3}{keV}, while the ion spectra drop of at approximately \SI{0.1}{eV}. This behavior can be attributed to the different creation mechanism and interactions of the particles \citep{Kellerer_2022}.
It can be seen, that the electron spectrum has a significantly different shape than the spectrum of the ions. It reaches up to values of \SI{18.3}{keV}, while the ion spectra drop off at approximately \SI{0.1}{eV}. This behavior can be attributed to the different creation mechanism and interactions of the particles \citep{Kellerer_2022}.
Electrons are created with energies drawn from the Fermi distribution of $\upbeta$-decay and are then cooled down by ionization and excitation processes. Furthermore electrons can perform elastic scatterings with the neutral gas. The combination of the processes produce the shown spectrum, with the characteristic Fermi distribution at high energies ($> \SI{100}{eV}$), the thermal like distribution at low energies ($< \SI{0.1}{eV}$) and the intermediate distribution including the ionization cutoff at approximately \SI{10}{eV}.
@@ -987,9 +987,9 @@ The KARL code has some features that make it unique compared to previous simulat
In the context of the KATRIN experiment this has a number of applications: 1) The particle distributions are an input quantity for further plasma simulations that are requiring spatially resolved data. 2) The current through the rear wall is one observable for the experiment. 3) The current through the radial wall may explain missing electrons and scattering processes close to the wall.
The absolute current to the tube is also influenced by the density profile of electrons and ions. There is no analytic expression of the radial currents. It can be seen that the shape of the current towards the beam tube is similar to the shape of the neutral particle density. This is caused by the increased elastic scattering probability in the center due to the increased neutral gas density. The $T^+$ current is below the T$^{3+}$ current, which is caused by the density difference and the different Larmor radius of the two ion species. The current of T$^+$ is in the same order of magnitude than the current of the electrons, even though the masses of both species are significantly different. This behavior is caused by the large difference in density. There is a contribution of $T^{2+}$ to the radial current. This means that there must be a non-negligible amount of charge transfer reactions, or that enough $T^{2+}$ is created close to the beam tube walls. The shape of the T $2+$ current does not coincide perfectly with the tritium density. Thus, it must be assumed in first order that both effects play a role.
%The absolute current to the tube is also influenced by the density profile of electrons and ions. There is no analytic expression of the radial currents. It can be seen that the shape of the current towards the beam tube is similar to the shape of the neutral particle density. This is caused by the increased elastic scattering probability in the center due to the increased neutral gas density. The T$^+$ current is below the T$_3^+$ current, which is caused by the density difference and the different Larmor radius of the two ion species. The current of T$^+$ is in the same order of magnitude than the current of the electrons, even though the masses of both species are significantly different. This behavior is caused by the large difference in density. There is a contribution of T$_2^{+}$ to the radial current. This means that there must be a non-negligible amount of charge transfer reactions, or that enough T$_2^{+}$ is created close to the beam tube walls. The shape of the T$_2^+$ current does not coincide perfectly with the tritium density. Thus, it must be assumed in first order that both effects play a role.
The composition of different species with respect to the position along the $z$-axis is one example of the outputs of the KARL code. Fig. \ref{fig:densities_all_vs_z} shows the graph where one can see that the electron density resembles the tritium gas density, while T$^2+$ has a flat distribution. T$^3+$ as a product of clustering has its density maximum also farther out. In general the higher clusters have a much higher density than the one- and two-atomic ions.
The composition of different species with respect to the position along the $z$-axis is one example of the outputs of the KARL code. Fig. \ref{fig:densities_all_vs_z} shows the graph where one can see that the electron density resembles the tritium gas density, while T$_2^+$ has a flat distribution. T$_3^+$ as a product of clustering has its density maximum also farther out. In general the higher clusters have a much higher density than the one- and two-atomic ions.
\begin{figure}[tbp]
\centering
@@ -1002,7 +1002,7 @@ The composition of different species with respect to the position along the $z$-
The longitudinal particle current was determined through 33 virtual planes in longitudinal direction. The planes were aligned in such a way that the first and last longitudinal plane coincide with the rear wall and the passage to the DPS. The corresponding longitudinal current profile can be found in Fig. \ref{fig:tube_current_vs_z}.
The shape of the electron current is as expected. Electrons are reflected at the DPS and the corresponding current is therefore zero. Electrons are most likely to be terminated at the rear wall. Thus, the electron current is the highest here. The electron current decreases continuously from the rear wall towards the DPS. Hence, the electrons can move from the upstream side towards the downstream side and are not hindered from passing by the neutral gas flow.
The ions are created in the center and stream to both sides. There is no driving force of the ions towards the other side of the inlet. Thus, the ion current at the inlet (8m) is zero. The current heading towards the DPS and towards the rear wall is almost identical. The differences can be explained by the accessory tritium gas between the first pump and the rear wall.
The ions are created in the center and stream to both sides. There is no driving force of the ions towards the other side of the inlet. Thus, the ion current at the inlet (\SI{8}{m}) is zero. The current heading towards the DPS and towards the rear wall is almost identical. The differences can be explained by the accessory tritium gas between the first pump and the rear wall.
\begin{figure}[tbp]
\centering
@@ -1012,11 +1012,11 @@ The ions are created in the center and stream to both sides. There is no driving
\label{fig:tube_current_vs_z}
\end{figure}
The sum of the ion current leaving the source at the DPS and at the rear wall is below the electron current leaving at the rear wall. This can only be explained through an ion current, which is directed towards the beam tube. The orresponding current was detected through a radial virtual plane located at the beam tube walls. The corresponding current can be found in Fig. \ref{fig:comparison_j_n_vs_r}. This current is caused by the change of position of the guiding center after elastic scattering. The difference in position is dependent on the Larmor radius of the particle, which in turn scales with the square root of the mass. Additionally, the cross section of ion scattering is much higher than for electron scattering. Therefore, more collisions occur, which shift the guiding center. Thus, the radial ion current is expected to be significantly higher than the radial electron current.
The sum of the ion current leaving the source at the DPS and at the rear wall is below the electron current leaving at the rear wall. This can only be explained through an ion current, which is directed towards the beam tube. The corresponding current was detected through a radial virtual plane located at the beam tube walls. The corresponding current can be found in Fig. \ref{fig:comparison_j_n_vs_r}. This current is caused by the change of position of the guiding center after elastic scattering. The difference in position is dependent on the Larmor radius of the particle, which in turn scales with the square root of the mass. Additionally, the cross section of ion scattering is much higher than for electron scattering. Therefore, more collisions occur, which shift the guiding center. Thus, the radial ion current is expected to be significantly higher than the radial electron current.
The absolute current to the tube is also influenced by the density profile of electrons and ions. There is no analytic expression of the radial currents. It can be seen that the shape of the current towards the beam tube is similar to the shape of the neutral particle density. This is caused by the increased elastic scattering probability in the center due to the increased neutral gas density. The $T^+$ current is below the T$^{3+}$ current, which is caused by
the density difference and the different Larmor radius of the two ion species. The current of T$^+$ is in the same order of magnitude than the current of the electrons, even though the masses of both species are significantly different. This behavior is caused by the large difference in density. There is a contribution of $T^{2+}$ to the radial current. This means that there must be a non-negligible amount of charge transfer reactions, or that enough $T^{2+}$
is created close to the beam tube walls. The shape of the T $2+$ current does not coincideperfectly with the tritium density. Thus, it must be assumed in first order that both effects play a role.
The absolute current to the tube is also influenced by the density profile of electrons and ions. There is no analytic expression of the radial currents. It can be seen that the shape of the current towards the beam tube is similar to the shape of the neutral particle density. This is caused by the increased elastic scattering probability in the center due to the increased neutral gas density. The T$^+$ current is below the T$_3^{+}$ current, which is caused by
the density difference and the different Larmor radius of the two ion species. The current of T$^+$ is in the same order of magnitude than the current of the electrons, even though the masses of both species are significantly different. This behavior is caused by the large difference in density. There is a contribution of T$_2^{+}$ to the radial current. This means that there must be a non-negligible amount of charge transfer reactions, or that enough T$_2^{+}$
is created close to the beam tube walls. The shape of the T$_2^+$ current does not coincide perfectly with the tritium density. Thus, it must be assumed in first order that both effects play a role.
\begin{figure}[tbp]
@@ -1025,6 +1025,8 @@ is created close to the beam tube walls. The shape of the T $2+$ current does no
\caption{Current in radial direction as a function of radius using the standard KATRIN setup with varying background magnetic fields. }
\label{fig:comparison_j_n_vs_r}
\end{figure}
\section{Build instructions}
In order to compile the source code of KARL, download the code on a Unix system and follow the instructions in the README file. The necessary dependencies are listed in the REQUIRED file. A sample configuration file (test\_parameter.json) can be found in the KARL folder simulation\_config.