Added to test cases: clustering, charge exchange
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -308,7 +308,7 @@ The Boris push algorithm was chosen, because it is numerically stable with high
|
||||
|
||||
The drift mover is based on the description of the movement of the particle around its gyrocenter and the drift movement of the gyrocenter, see \citep{Chen.1984}. In the current version of the code, the drift mover should only be used for a constant magnetic field. No magnetic field gradients are considered, because the magnetic field at KATRIN is constant over most parts of the source \citep{Kellerer2022_1000143868}.
|
||||
|
||||
In the drift mover, the movement is divided into smaller steps \changed{of length $\Delta x$}, given by the smaller value of the maximal step length $d_\text{max}$ (provided by the user) and the leftover distance the particle has still to move. \changed{The distance $d_\text{max}$ should be chosen smaller than the smallest extent of a segment. Otherwise time spent in a new segment might not be correctly attributed or certain segments might even be skipped completely.} The movement is ended, when the leftover distance is zero. Each movement step \changed{is} subdivided into the change of the particle position and the change of the velocity, both described in the following.
|
||||
In the drift mover, the movement is divided into smaller steps \changed{of length $\Delta x$}, given by the smaller value of the maximal step length $d_\text{max}$ (provided by the user) and the leftover distance the particle has still to move. \changed{The distance $d_\text{max}$ should be chosen smaller than the smallest extent of a segment. Otherwise time spent in a new segment might not be correctly counted or certain segments might even be skipped completely.} The movement is ended, when the leftover distance is zero. Each movement step \changed{is} subdivided into the change of the particle position and the change of the velocity, both described in the following.
|
||||
|
||||
The position change is described by the movement around the gyrocenter $\Delta \mathbf{x}_\text{c}$, the movement of the gyrocenter parallel to the magnetic field $\Delta \mathbf{x}_\parallel$ and the drift movement of the gyrocenter $\Delta \mathbf{x}_\text{D}$.
|
||||
|
||||
@@ -334,7 +334,7 @@ The position change around the gyrocenter is calculated in three steps. First, t
|
||||
\begin{equation}
|
||||
r_\text{g} = \frac{m \abs{\mathbf{v}_\perp}}{q \abs{\mathbf{B}}} \commaeq
|
||||
\end{equation}
|
||||
from the magnitude of the perpendicular velocity $abs{\mathbf{v}_\perp}$, the particle mass $m$ and charge $q$, which in turn is then used to determine the vector from the particle to the gyrocenter $\mathbf{x}_\text{pc}$
|
||||
from the magnitude of the perpendicular velocity $\abs{\mathbf{v}_\perp}$, the particle mass $m$ and charge $q$, which in turn is then used to determine the vector from the particle to the gyrocenter $\mathbf{x}_\text{pc}$
|
||||
\begin{equation}
|
||||
\mathbf{x}_\text{pc} = - r_\text{g} \frac{\mathbf{v}_\parallel \times \mathbf{v}_\perp}{\abs{\mathbf{v}_\parallel \times \mathbf{v}_\perp}} \fullstop
|
||||
\end{equation}
|
||||
@@ -672,28 +672,91 @@ The queue used in the simulation to keep track of the simulated particles is no
|
||||
\section{Test cases}
|
||||
\label{sec:test}
|
||||
|
||||
The code was tested thoroughly, including a comparison of specific simulations with expectations. These expectations were formulated for scenarios where an analytical expression of the simulation output can be derived. For these simulations, each interaction was investigated detached from the others.
|
||||
The code was tested thoroughly, including a comparison of specific simulations with expectations. These expectations were formulated for scenarios where an analytical expression of the simulation output can be derived. For these simulations, each interaction was investigated detached from the others. \changed{More complex test cases, with the influence of multiple interactions at the same time where not performed due to the lack of analytical expectations or experimental data.}
|
||||
%The inclined reader is referred to \citep{Kellerer_2022} for a description of all the tests. Here, only a special test case shall be mentioned, because of its importance: the test of elastic scattering. One can show with this test that the method of density fields, the treatment of interactions in general and movement of particles are implemented correctly because they all are a prerequisite for the correct result.
|
||||
|
||||
\paragraph{Elastic scattering}
|
||||
In this test case, monoenergetic particles are injected into a neutral gas reservoir with a Maxwell-Boltzmann distributed velocity. If elastic scattering is implemented correctly, then these particles will adopt the velocity distribution of the neutral gas independent of the initial energy. The shape can be described by the Maxwell-Boltzmann distribution \citep{peckham.1992}, scaled by the factor $\sqrt{E}$ taking into account the logarithmic binning and the speed of particles leaving the simulation domain. The simulation result and a fit to the data can be found in Figure~\ref{fig:boltzmann_test}.
|
||||
In this test case, monoenergetic particles are injected into a neutral gas reservoir with a Maxwell-Boltzmann distributed velocity. \changed{The temperature of the neutral gas was set to the same value used in KATRIN, i.e. \SI{80}{\kelvin}. The electrons were injected in the middle of the simulation domain with an energy of \SI{8}{\milli eV} and a velocity direction in positive z-direction. The magnetic field was also set to the same configuration as in the KATRIN case, i.e. uniform with a value of \SI{2.5}{\tesla}. A total of 1600 events were used per simulation.}
|
||||
|
||||
If elastic scattering is implemented correctly, then these particles will adopt the velocity distribution of the neutral gas independent of the initial energy. The shape can be described by the Maxwell-Boltzmann distribution \citep{peckham.1992}, scaled by the factor $\sqrt{E}$ taking into account the logarithmic binning and the speed of particles leaving the simulation domain. The simulation result and a fit to the data are shown in in Figure~\ref{fig:boltzmann_test}.
|
||||
It can be seen that the data is well described by the fit with little deviations over a wide range of energies. The deviations can be attributed to the inherent statistical uncertainty of the Monte Carlo method. Simulations with other injection energies resulted in the same distribution (not shown).
|
||||
%It can therefore be concluded that elastic scattering, and therefore the general structure of the code is implemented correctly.
|
||||
|
||||
\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.}
|
||||
\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}.}
|
||||
\label{fig:boltzmann_test}
|
||||
\end{figure}
|
||||
|
||||
\paragraph{Ionization}
|
||||
|
||||
\paragraph{Clustering}
|
||||
\changed{TBD}
|
||||
|
||||
\paragraph{Excitation}
|
||||
\changed{TBD}
|
||||
|
||||
\paragraph{Clustering}
|
||||
\changed{In the case of an ion-beam moving with a constant direction and velocity through an background gas, with which it can interact via clustering, it is possible to predict the form of the density of the ion beam
|
||||
\begin{equation}
|
||||
n_\text{ion} \propto \exp\left(-\frac{z}{\lambda_{mfp}}\right) \fullstop
|
||||
\end{equation}
|
||||
Since both the profile of the background gas density, the energy of the ions and the cross section of the interactions are known it is easily possible to check if the simulation corresponds to the analytical values.\\
|
||||
For this test case only the interacting particles are considered, since during the interaction the velocity direction of the products becomes essentially randomized, which makes a prediction more challenging.\\
|
||||
As described in section~\ref{ssec:interactions}, there are two types of clustering: radiative and tertiary. In case of the tertiary process only rate coefficients are known, s.t. the cross section is only approximated. This leads to
|
||||
\begin{equation}
|
||||
\label{eq:clustering_test_tertiary_mfp}
|
||||
\lambda_{mfp, \text{ter}} = \frac{v}{k_\text{ter} n_{\text{T}^2}^2}
|
||||
\end{equation}
|
||||
for the mean free path, where $v$ is the velocity of the ion in the rest-frame of the tritium gas, $k_\text{ter}$ is the rate tertiary rate coefficient and $n_{\text{T}^2}$ is the density of the background gas.\\
|
||||
For the radiative clustering there are two types of cross sections, first for T$^+$ only the rate coefficient is known again, while for T$_2^+$ an expression for the actual cross section is known. This means that there are two different expressions for the mean free path:
|
||||
\begin{equation}
|
||||
\label{eq:clustering_test_radiative_rateCoefficient}
|
||||
\lambda_{mfp, \text{rad}} = \frac{v}{k_\text{rad} n_{\text{T}^2}}
|
||||
\end{equation}
|
||||
and
|
||||
\begin{equation}
|
||||
\label{eq:clustering_test_radiative_cross}
|
||||
\lambda_{mfp, \text{rad}} = \frac{1}{\sigma n_{\text{T}^2}} \fullstop
|
||||
\end{equation}
|
||||
All three cases were simulated using the same setup. The ions were injected on the left side of the simulation domain with an energy of \SI{6.8}{\milli eV} and a direction in positive $z$-direction. The neutral gas was chosen to be uniformly distributed in the simulation domain. A number of 80000 events were chosen to be simulated. Furthermore a strong magnetic field of \SI{2.5}{\tesla} was applied. The difference between the simulations is solely the density of the neutral gas due to the different magnitudes of the MFP. Therefore a density of \SI{1e18}{\per\cubic\m} has been chosen for the reaction T$_2^+$ + T$_2$. The cross section for this reaction has a value of $\sigma = \SI{1.91e-18}{\square\m}$. For the tertiary process a density of \SI{1e22}{\per\cubic\m} was chosen. The value of the rate coefficient at \SI{80}{\kelvin} is $ k_\text{ter} = \SI{2.6e-41}{\m\tothe{6}\per\second}$. And lastly for the radiative process of T$^+$ a density of \SI{2e25}{\per\cubic\m} has been chosen with a radiative association rate coefficient of $k_\text{rad} = \SI{5e-23}{\cubic\m\per\s}$ at \SI{80}{\kelvin}.\\
|
||||
The results of the tree simulations together with the expected result are shown in Figures~\ref{fig:clustering_tp_ter}, \ref{fig:clustering_tp_rad} and \ref{fig:clustering_t2p}.\\
|
||||
As can be seen the expectation and the results fit quite well, only showing some deviation in the low density region due to statistical noise. The values for the rate coefficients and cross section were also inferred and have shown a deviation below 1\% for all three cases.}
|
||||
|
||||
\begin{figure}
|
||||
\centering
|
||||
\includegraphics[width=1\textwidth]{figures/clustering_tertiary_Tp.pdf}
|
||||
\caption{Tertiary Clustering of T$^+$ with T$_2$. Neutral gas density was set to \SI{1e22}{\per\cubic\metre}. Ions were injected at $z = 0$ with an energy of \SI{6.8}{\milli eV} in the direction of the $z$-axis.}
|
||||
\label{fig:clustering_tp_ter}
|
||||
\end{figure}
|
||||
|
||||
\begin{figure}
|
||||
\centering
|
||||
\includegraphics[width=1\textwidth]{figures/clustering_radiative_Tp.pdf}
|
||||
\caption{Radiative Clustering of T$^+$ with T$_2$. Neutral gas density was set to \SI{2e25}{\per\cubic\metre}. Ions were injected at $z = 0$ with an energy of \SI{6.8}{\milli eV} in the direction of the $z$-axis.}
|
||||
\label{fig:clustering_tp_rad}
|
||||
\end{figure}
|
||||
|
||||
\begin{figure}
|
||||
\centering
|
||||
\includegraphics[width=1\textwidth]{figures/clustering_radiative_T2p.pdf}
|
||||
\caption{Radiative Clustering of T$_2^+$ with T$_2$. Neutral gas density was set to \SI{1e18}{\per\cubic\metre}. Ions were injected at $z = 0$ with an energy of \SI{6.8}{\milli eV} in the direction of the $z$-axis.}
|
||||
\label{fig:clustering_t2p}
|
||||
\end{figure}
|
||||
|
||||
\paragraph{Charge Exchange}
|
||||
\changed{The expectation for charge exchange is quite similar as for the case of elastic scattering, namely that the initial population adopts the energy distribution of the background population. The difference being that only one scattering event per particle is needed to thermalize.\\
|
||||
For the simulation monoenergetic T$_2^+$ ions are injected from the left side of the simulation domain with an energy of \SI{10}{eV} and a velocity direction pointing in positive $z$-direction. The neutral density has been set to \SI{1.224e19}{\per\cubic\m} to allow for a short MFP with a temperature of \SI{80}{\kelvin}.\\
|
||||
The energy spectrum for the ions is shown in Figure~\ref{fig:charge_exchange} close to the right side of the simulation domain at $z = \SI{1.44}{\m}$. A peak at \SI{10}{eV} can also be seen, due to unscattered particles. Furhtermore, the Maxwell Boltzmann distribution is not well met. This is however an effect of a non-constant cross section. From the cross section shown in Figure~\ref{fig:t2p_interactions} it becomes apparent that lower energetic ions have a higher likelihood to interact and therefore spending a lower amount of time with their current energy than a particle with a higher energy. Assuming the time to scale inversely with the probability of performing an interaction leads to an additional factor in the Maxwell Boltzmann distribution of $1/\sigma(E)$. This scaled version is also shown in the plot of the results and it is evident that this expectation is met quite well confirming the above discussion.
|
||||
}
|
||||
\begin{figure}
|
||||
\centering
|
||||
\includegraphics[width=1\textwidth]{figures/spectrum_z1.44e+00m.pdf}
|
||||
\caption{Energy spectrum of T$_2^+$ with the only interaction being charge exchange with the T$_2$ background gas. The Maxwell Boltzmann distribution is not met, but scaled with $1/\sigma(E)$ yields a near perfect fit. This is due to a higher likelihood of scattering for lower energetic particles due to the cross section. A population of un-scattered ions can be seen at \SI{10}{eV}.}
|
||||
\label{fig:charge_exchange}
|
||||
\end{figure}
|
||||
|
||||
\paragraph{Recombination}
|
||||
\changed{TBD}
|
||||
|
||||
\section{Results}
|
||||
\label{sec:results}
|
||||
|
||||
Reference in New Issue
Block a user