minor additions to the text

This commit is contained in:
2024-08-06 17:54:58 +02:00
parent cc9b0bf655
commit de9e6cefc8
+7 -7
View File
@@ -171,12 +171,12 @@ For each movement step, the mean free path (MFP) $\lambda_\text{mfp}$ of the cor
\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 lab frame, $\sigma_i$ is the cross section of a specific interaction, and $n_i$ the particle number density of the interaction partner. The cross sections are evaluated from predefined functions. 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 can be derived from the MFP through
where $E$ is the kinetic energy of the particle in the lab frame, $\sigma_i$ is the cross section of a specific interaction, and $n_i$ the particle number density of the interaction partner. In the lab frame, the neutral gas has a non-zero drift velocity. The cross sections are evaluated from predefined functions. 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 can be derived from the MFP through
\begin{equation}
d = \lambda_\text{mfp} \cdot \log \frac{1}{\eta} \commaeq
\label{eq:distance_from_mfp}
\end{equation}
where $\eta \in (0, 1]$ is an uniform random number. The particle is then moved by this distance $d$ in dependence on the electromagnetic fields inside the source, see section~\ref{ssec:movement}. During this step the density fields of the corresponding specie are updated.
where $\eta \in (0, 1]$ is an uniform random number. This is due to an assumed Poisson random process, that results in an exponential probability distribution. The particle is then moved by this distance $d$ in dependence on the electromagnetic fields inside the source, see section~\ref{ssec:movement}. During this step the density fields of the corresponding specie are updated.
After the movement step it is evaluated if the particle needs to be terminated, which is mainly a check if the particle has left the simulation domain, or has hit a wall, see~\ref{ssec:termination}. If the particle is still alive, a random interaction is selected from the list of available interactions, weighted by its probability to occur. The probability scales with the cross section of that interaction and the interaction partner particle density. The corresponding interaction is performed and the interaction products, which are not the current particle are added to the particle queue. If the particle does no longer exist after the interaction (through recombination or clustering) it is terminated, otherwise the next movement step is performed.
@@ -202,7 +202,7 @@ where $t_\text{sim}$ is called the simulated time \citep{Kellerer_2022}. It desc
\begin{equation}
t_\text{sim} = \frac{N_\text{prim.}}{a}\, . \label{eq:simulated_time}
\end{equation}
The activity of the source is not dependent on the interaction of the charged particles in the source, and can therefore be evaluated from the predefined amount of neutral gas in the source.
The activity of the source is not dependent on the interaction of the charged particles in the source, and can therefore be evaluated from the predefined amount of neutral gas in the source. Furthermore, it is assumed that the neutral gas flow is independent of the charged particle interactions. This is valid if the number of charged particles is negligible with respect to the number of neutral ones.
\begin{figure}[tbp]
\centering
@@ -337,7 +337,7 @@ In some cases, there is not enough data from one source alone, to cover the whol
The interaction itself is performed in multiple steps. First, the velocity of a target particle is determined. It is 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}. For tracked particles the drift velocity is assumed to be zero and the velocity distribution is given by the density field. The velocity of the target particle is used to determine the impact energy in the laboratory frame. This energy is then used for the evaluation of the polar scattering angle $\theta$. A second scattering angle is drawn in the interval $[0, 2\pi)$, responsible for the change of momentum in azimuthal direction. Both angles and the target velocity are then used to rotate the velocity vector of the impact particle in the center of mass frame, see \citep{Kellerer_2022} for the full calculation. This rotated velocity is then used as the new velocity of the impact particle.
\paragraph{Clustering}
The clustering class is initiated using the cross section, 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. The velocity of a target particle is determined analogue to its calculation in elastic scattering.
The clustering class is initiated using the cross section, 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 analogue to its calculation in elastic scattering.
\paragraph{Recombination}
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.
@@ -367,7 +367,7 @@ The polar angle of both particles is calculated, using the derivation of Grosswe
\subsection{Calculation of fields}
\label{ssec:field_calculation}
The density fields are implemented as a class. Each specie holds its own member of this class, which simplifies the evaluation of the fields during the simulation, for example for the calculation of the MFP. The class holds its information in member variables, which are the time particles of the species have spent in a segment of the source, the number of recombination in this segment and the derived density itself. They are represented as four dimensional arrays. The fastest axis (third axis) is used for the different energy bins. This reduces the calculation time of the determination of the density in a segment, which is mainly a sum over all energy bins. It is evoked multiple times during the particle update, which requires a fast calculation. The use of the other axis follows the consideration of how often the bin changes in longitudinal, azimuthal and radial direction. The magnetic field is most commonly aligned in longitudinal direction. Thus, the particles mostly travel in longitudinal direction. Therefore, the second fastest axis is used for the longitudinal direction. The other two directions are similar in their usage. Because of the magnetron drift in radial inhomogeneous magnetic fields, it was decided to use the azimuthal direction next, followed by the radial direction.
The density fields are implemented as a class. Each specie holds its own member of this class, which simplifies the evaluation of the fields during the simulation, for example for the calculation of the MFP. The class holds its information in member variables, which are the time particles of the species have spent in a segment of the source, the number of recombination in this segment and the derived density itself. They are represented as four dimensional arrays. The fastest axis (third axis) is used for the different energy bins. The fastest axis refers to the axis for which the entry can be accessed the quickest. This reduces the calculation time of the determination of the density in a segment, which is mainly a sum over all energy bins. It is evoked multiple times during the particle update, which requires a fast calculation. The use of the other axis follows the consideration of how often the bin changes in longitudinal, azimuthal and radial direction. The magnetic field is most commonly aligned in longitudinal direction. Thus, the particles mostly travel in longitudinal direction. Therefore, the second fastest axis is used for the longitudinal direction. The other two directions are similar in their usage. Because of the magnetron drift in radial inhomogeneous magnetic fields, it was decided to use the azimuthal direction next, followed by the radial direction.
The size of the arrays is derived from the user input. It is calculated from the desired number of segments and a built in under- and overflow. This way, if a particle can not be classified into one of the segments, the information is still recorded in the simulation. The energy bins are created in logarithmic scale with one bin each for under- and overflow. It can be set differently for each specie. Thus, important effects for each specie can be resolved more easily. In longitudinal direction, the bins are divided evenly with one bin each for under- and overflow. In general, these under- and overflow bins should not be filled during the simulation, because this would mean that a particle has left the simulation domain and is still alive. Hence, they can be used for debugging purposes. In radial direction, there is only an overflow bin, because the radius is lower bound to zero. In azimuthal direction no over- and underflow bins are used, due to the circular nature of the problem.
@@ -381,7 +381,7 @@ The current collector is structured similar to the density field class. The diff
The injection of new particles to the particle queue is managed by the injector class. It is initiated by providing the event position distribution, the mother drift velocity and a list of species, with their energy and injection angle distribution. The event position distribution is used to determine the position, at which the new particles are to be injected. For each injected specie, the kinetic energy is drawn from the energy distribution. The corresponding velocity vector is drawn from the injection angle distribution and scaled by the kinetic energy. This velocity is then boosted by the mother drift velocity, which represents the movement of the decaying gas.
In the case of the KATRIN source, the injected species are electrons, with an isotropic injection angle distribution and a Fermi energy distribution \citep{Fermi:1934aa} and T$_2^+$ ions, also with an isotropic injection angle distribution, but with a Maxwell-Boltzmann energy distribution. The mother drift velocity is provided by the drift velocity of the neutral tritium gas.
In the case of the KATRIN source, the injected species are electrons, with an isotropic injection angle distribution and a Fermi energy distribution \citep{Fermi:1934aa} and T$_2^+$ ions, also with an isotropic injection angle distribution, but with a Maxwell-Boltzmann energy distribution. T$_2^+$ is used instead of HeT$^+$ due to the fact that both molecules have almost the same mass and no cross section data could be found in the literature for the latter. Nuclear recoil from the $\upbeta$-decay is not considered. This is again due to the higher interaction probability of the ions with the neutral gas, which thermalizes them more quickly. The mother drift velocity is provided by the drift velocity of the neutral tritium gas.
However, the injector class can also be used for the injection of a stream of directed particles. This is necessary, either for the evaluation of the influence of an electron gun in the experiment, or for test purposes.
@@ -460,7 +460,7 @@ In the output section, it is defined, where the output file is stored and with w
\end{itemize}
\paragraph{RandomNumbers}
In the random numbers section, the seed for the pseudo random numbers is set. It is used for the initialization of the random numbers of the first CPU. All following CPUs gain a seed given by the sum of the seed of the first CPU and its CPU rank.
In the random numbers section, the seed for the pseudo random numbers is set. It is used for the initialization of the random numbers of the first CPU. All following CPUs gain a seed given by the sum of the seed of the first CPU and its CPU rank. In the simulation, we use the 32 bit Mersenne Twister engine from the C++ standard library.
\paragraph{Species}