diff --git a/docs/paper/the-karl-code/paper.tex b/docs/paper/the-karl-code/paper.tex index 2863919..58856b4 100755 --- a/docs/paper/the-karl-code/paper.tex +++ b/docs/paper/the-karl-code/paper.tex @@ -171,7 +171,7 @@ Two different methods of descriptions seem obvious: a description through the te \section{Description of the method} \label{sec:method} -\changed{In the KARL code, particles are tracked from interaction to interaction. The distance between the interactions is determined from the mean free path. The performed interaction is then drawn from a user-specified list of possible interactions. During the simulation new particles are created either through beta decay or through interaction between particles. All particles are put into a list, from where they are processed until they terminate. In case the list is empty new decay particles are created and inserted. The energy distribution of electrons created by the decay process is relatively simple to describe, since it follows the Fermi statistics of beta decay \citep{Fermi:1934aa}.} +\changed{In the KARL code, particles are tracked from interaction to interaction. The distance between the interactions is determined from the mean free path to sample a Poisson process. The performed interaction is then drawn from a user-specified list of possible interactions. During the simulation new particles are created either through beta decay or through interaction between particles. All particles are put into a list, from where they are processed until they terminate. In case the list is empty new decay particles are created and inserted. The energy distribution of electrons created by the decay process is relatively simple to describe, since it follows the Fermi statistics of beta decay \citep{Fermi:1934aa}.} %\changed{The general setup of the code is such that in the first place incident particles from tritium beta decay are tracked. In the simulation decay events are successively processed. Meaning that each decay particle is followed until its destruction, during which it might produce new, secondary particles. All primary and secondary particles are processed until termination before new decay particles are added. %The initial energy spectrum for electrons created by the tritium beta decay is comparably simple to describe, as it follows the Fermi statistics of beta decay \citep{Fermi:1934aa}. %In the KARL code, single particles are tracked through the source from one interaction to another. The moved distance between interactions is determined from the mean free path. The performed interactions are drawn from a list of available, user-specified interactions. @@ -299,7 +299,7 @@ The timestep has to be provided by the user. \changed{In order to resolve the gy \label{eq:boris_timestep_requirement} \Delta t < \frac{1}{\Omega_{g,\text{max}}} \end{equation} -\changed{should be fulfiled.} +\changed{should be fulfilled. Additionally one has to consider that the distance moved during one timestep is small enough that no segments might be skipped.} This timestep is also used for the determination of the time a particle spends in a density field segment, see previous section. The Boris push algorithm was chosen, because it is numerically stable with high precision and efficiency \citep{Kilian.2015}. The method can be used for low relativistic particles, up to a gamma factor of $\gamma \approx 1000$ \citep{Vay.2008}. At the KATRIN experiment, only electrons of energies up to \SI{32}{keV} (Krypton conversion electrons) are created. This results in a gamma factor of $\gamma = 1.06$, which is well below the limit of the Boris push. @@ -680,7 +680,7 @@ The queue used in the simulation to keep track of the simulated particles is no \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. \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. \\ -Within the `test\_cases' directory in the code-base a subdirectory for each test case is provided. These subdirectories contain the parameter and plotting files used to obtain the corresponding data presented in this section. The used output files will be provided via an external website.} +Within the `test\_cases' directory in the code repository a subdirectory for each test case is provided. These subdirectories contain the parameter and plotting files used to obtain the corresponding data presented in this section. The used output files will be provided via an external website.} %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}