added to mover discussion
This commit is contained in:
@@ -282,7 +282,7 @@ The tracked specie class is composed of different classes, providing access to t
|
||||
\subsection{Movement}
|
||||
\label{ssec:movement}
|
||||
|
||||
The movement of particles is outsourced to the mover class. It moves the particle dependent on the E/B fields at \changed{its} position, given the integrated distance a particle will move, see section~\ref{ssec:general_diagram}. The movement itself is divided into smaller steps. This way, it can be evaluated if the particle has left the simulation domain between the steps, which stops the movement. Apart from the simulation boundary, the movement is stopped if the particle leaves a segment or energy bin of the density fields.%, see section~\ref{ssec:denstiy_fields}.
|
||||
The movement of particles is outsourced to the mover class. It moves the particle dependent on the E/B fields at \changed{its} position, given the integrated distance a particle will move, see section~\ref{ssec:general_diagram}. The movement itself is divided into smaller steps. This way, it can be evaluated if the particle has left the simulation domain between the steps, which stops the movement. Apart from the simulation boundary, the movement is stopped if the particle leaves a segment or energy bin of the density fields. %, see section~\ref{ssec:denstiy_fields}.
|
||||
\changed{In this case} no interaction will be performed , but a new distance will be drawn from the MFP at the new position of the particle, \changed{according to} equation~\ref{eq:distance_from_mfp}. This procedure does not increase the mean distance a particle travels, if the traversed density stays the same. However, large gradients will be taken into account in the calculation. Hence, the distance a particle moves is not over- or underestimated when moving into higher or lower density regions respectively. However, the density fields need a higher resolution than the density difference, which increases the simulation time. Thus, the user needs to evaluate the trade off between simulation time and accuracy.
|
||||
|
||||
Stopping the movement if a particle has left a density field segment has an additional benefit: it can be easily evaluated how long a particle has stayed in the segment. Each movement step the particle is alive, a counter variable is increased by the time the movement step took. If the movement is stopped this counter variable can be added to the corresponding density field segment.
|
||||
@@ -377,7 +377,11 @@ Using the requirement $d_\text{Drift} < d_\text{Boris}$ and the formula for the
|
||||
\label{eq:magneticField_req_boris}
|
||||
B_\text{max} < \frac{v_{typ} m}{q d_\text{Drift}} \commaeq
|
||||
\end{equation}
|
||||
as a threshold for the magnetic field for which the Boris mover outperforms the Drift mover. For electrons originating from a beta decay (approximately \SI{20}{\kilo eV}) and $d_\text{Drift} = \SI{1}{\mm}$ this leads to a value of $B_\text{max} \approx \SI{470}{\milli\tesla}$. For a thermal population of T$_2^+$ at \SI{80}{\kelvin} with the same value for $d_\text{Drift}$ the value is $B_\text{max} \approx \SI{21}{\milli\tesla}$, and for thermal electrons the value is even lower. Since the magnetic field in the KATRIN experiment is \SI{2.5}{\tesla}, the Drift mover is in any case the more efficient choice.
|
||||
as a threshold for the magnetic field for which the Boris mover outperforms the Drift mover. For electrons originating from a beta decay (approximately \SI{20}{\kilo eV}) and $d_\text{Drift} = \SI{1}{\mm}$ this leads to a value of $B_\text{max} \approx \SI{470}{\milli\tesla}$. For a thermal population of T$_2^+$ at \SI{80}{\kelvin} with the same value for $d_\text{Drift}$ the value is $B_\text{max} \approx \SI{21}{\milli\tesla}$, and for thermal electrons the value is even lower. However, the timestep also needs to consider the same restrictions as the choice of $d_\text{Drift}$, meaning that the timestep also has to be chosen such that no segments are skipped during one movement step. This in turn means that the Drift and Boris mover have at best the same computational effort, even at low magnetic fields.\\
|
||||
If no electric fields are present and the magnetic field is uniform everywhere the above discussion is the only criterion for the choice of the mover. Therefore in this case only the Drift mover should be chosen since it is always at least as performant as the Boris one and more importantly the drift approximation becomes exact.\\
|
||||
However if the magnetic field is not uniform or zero the Boris mover has to be used since the Drift mover has no support for gradients in the magnitude of the magnetic field.\\
|
||||
If the magnetic field is uniform and electric fields are present, the choice becomes more complex. For very strong magnetic fields, i.e. a slow Drift motion and a tight gyro-orbit the Drift mover is still a good approximation and also outperforms the Boris mover. In the opposite case of very weak magnetic fields, the approximation becomes bad and the Boris mover should be used instead.
|
||||
% probably write down the actual requirements for the drift approximation and maybe even cut the first discussion completely
|
||||
}
|
||||
|
||||
|
||||
@@ -668,10 +672,13 @@ 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 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.
|
||||
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 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}.
|
||||
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.
|
||||
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
|
||||
@@ -680,6 +687,14 @@ It can be seen that the data is well described by the fit with little deviations
|
||||
\label{fig:boltzmann_test}
|
||||
\end{figure}
|
||||
|
||||
\paragraph{Ionization}
|
||||
|
||||
\paragraph{Clustering}
|
||||
|
||||
\paragraph{Excitation}
|
||||
|
||||
\paragraph{Charge Exchange}
|
||||
|
||||
\section{Results}
|
||||
\label{sec:results}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user