Added plot for max interactions vs density,

preliminary changes in the tex-file
This commit is contained in:
2024-12-17 09:35:14 +01:00
parent f5bbb9663f
commit 94a5fc3b01
2 changed files with 13 additions and 3 deletions
+13 -3
View File
@@ -188,7 +188,7 @@ For each movement step, the mean free path $\lambda_\text{mfp}$ of the correspon
\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. 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 \changed{is} derived from the MFP through
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 \changed{target of the specific interaction}. 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 \changed{is} derived from the MFP through
\changed{
\begin{equation}
d = -\lambda_\text{mfp} \cdot \log \eta \commaeq
@@ -340,7 +340,15 @@ The rotation of the perpendicular velocity is again calculated using Rodriges' r
\subsection{Termination}
\label{ssec:termination}
The termination of particles is addressed by the terminator class. It checks for three different conditions. First it checks, if the particle has left the simulation geometry. For the KATRIN experiment the geometry can be approximated by a cylinder. However, the radius and height have be provided by the user for special analysis. Second, the terminator class checks if the particle has exceeded the user defined number of maximal interactions. This counter was added, to ensure that no trapped particles are tracked by the simulation. Otherwise the simulation would not end. This trap can occur for example through opposite neutral gas flow and reflection by electric fields. Third, the terminator class checks if the particle has exceeded the user defined lifetime. This counter ensures, that particles are not stored indefinitely. This could occur through special configuration of magnetic and electric fields.
The termination of particles is addressed by the terminator class. It checks for three different conditions. First it checks, if the particle has left the simulation geometry. For the KATRIN experiment the geometry can be approximated by a cylinder. However, the radius and height have be provided by the user for special analysis. Second, the terminator class checks if the particle has exceeded the user defined number of maximal interactions. This counter was added, to ensure that no trapped particles are tracked by the simulation. Otherwise the simulation would not end. \changed{To assure that the simulation continues to be physically accurate, it is important to choose an appropriate value for the number of maximal interactions. In Figure~\ref{fig:maxInteractions_vs_density} some small test setup has been used %Note: has to be described, probably has to be moved into the Test cases subsection
to show the dependence of the density w.r.t. the number of maximal interactions.} This trap can occur for example through opposite neutral gas flow and reflection by electric fields. Third, the terminator class checks if the particle has exceeded the user defined lifetime. This counter ensures, that particles are not stored indefinitely. This could occur through special configuration of magnetic and electric fields.
\begin{figure}
\centering
\includegraphics[width=1\textwidth]{figures/maxInteractions_vs_density.pdf}
\caption{TBD}
\label{fig:maxInteractions_vs_density}
\end{figure}
In addition to the terminator class, the user can choose to add a deletion logger to the specie class. This class is evoked if the particle is deleted. It stores information on the type of deletion, namely if the particle has hit a wall, recombined, formed a cluster, or exceeded the maximum time alive or maximum number of interactions. These values are also added to the output of the simulation. So, this information can be used for debugging, but it can also be used for physical results. For example, the number of recombinations provides an insight if recombination is a dominant process.
@@ -554,7 +562,9 @@ Functions are an integral part of the code, used for example to express cross se
Scalar fields represent the idea, that for every point in space a certain value can be assigned. The scalar field can currently only be initiated through one option, namely the \textit{ScalarFieldFunctionInZ}. As the name suggests, it returns values, which are provided through a 3D-function. The general input of coordinates are transformed to cylinder coordinates $(r, \phi, z)$ and the corresponding function value is returned.
\paragraph{Vector field}
Vector fields represent the idea, that for every point in space a certain three dimensional vector can be assigned. The vector field can be initiated through three different options: \textit{VectorFieldConstant}, \textit{VectorFieldFunctionInZ} and \textit{VectorFieldFromArray}. For all three types, the general input of coordinates are transformed in the class to cylinder coordinates $(r, \phi, z)$ and the corresponding vector is calculated and returned.
% Vector fields represent the idea, that for every point in space a certain three dimensional vector can be assigned.
A vector field can be initiated through three different options: \textit{VectorFieldConstant}, \textit{VectorFieldFunctionInZ} and \textit{VectorFieldFromArray}. \changed{Any vector field object takes either a position as either a Cartesian or cylinder vector and returns the value at that position as a cylinder vector.}
%For all three types, the general input of coordinates are transformed in the class to cylinder coordinates $(r, \phi, z)$ and the corresponding vector is calculated and returned.
\begin{itemize}
\item \textit{VectorFieldConstant}: The return value of the vector field does not depend on its input and a constant vector is returned.