From c18e6e0ec6efea1345e53ee83a88f5fca062ef16 Mon Sep 17 00:00:00 2001 From: csendlinger Date: Fri, 6 Dec 2024 10:52:52 +0100 Subject: [PATCH] small changes from report 2 implemented --- docs/paper/the-karl-code/paper.tex | 6 +++--- docs/paper/the-karl-code/referee_report_2.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/paper/the-karl-code/paper.tex b/docs/paper/the-karl-code/paper.tex index 4b6dc48..4753099 100755 --- a/docs/paper/the-karl-code/paper.tex +++ b/docs/paper/the-karl-code/paper.tex @@ -103,7 +103,7 @@ 69120 Heidelberg, Germany} \begin{abstract} -A new parallelized simulation code is presented, which uses a semi classical Monte Carlo method to determine particle spectra in the KATRIN source by tracking single particles from interaction to interaction. The moved distance is determined from the mean free path and subsequently from cross sections and particle densities. Particle densities can be provided by the user, or are calculated during simulation from the movement of the simulated particles. This enables also the inclusion of recombination effects in the calculation. The implemented interaction types include elastic scattering, ionization, clustering and excitation (electric, vibrational, rotational) and recombination. Initial particles are created using the neutral gas density and known $\upbeta$-decay spectrum. The code is optimized for the conditions in the KATRIN source, being able to cope with a large density gradient, neutral gas flow and many different particle species in a Tritium environment. +A new parallelized simulation code is presented, which uses a semi classical Monte Carlo method to determine particle spectra in the KATRIN source by tracking single particles from interaction to interaction. The moved distance is determined from the mean free path (MFP) and subsequently from cross sections and particle densities. Particle densities can be provided by the user, or are calculated during simulation from the movement of the simulated particles. This enables also the inclusion of recombination effects in the calculation. The implemented interaction types include elastic scattering, ionization, clustering and excitation (electric, vibrational, rotational) and recombination. Initial particles are created using the neutral gas density and known $\upbeta$-decay spectrum. The code is optimized for the conditions in the KATRIN source, being able to cope with a large density gradient, neutral gas flow and many different particle species in a Tritium environment. The code is parallelized using MPI and writes output using HDF5. Input to the simulation is read from a JSON description that provides general information on the simulation (resolution of the simulation domain) and the various optional features of the code, namely user defined species with their own terminator, interaction types, movers and initialization. \end{abstract} @@ -162,7 +162,7 @@ The incident electron spectrum originating from tritium beta decay before any sc Two different methods of descriptions seem obvious: a description through the temporal evolution of phasespace elements and a description through the Monte Carlo method by tracking of single particles \citep{MOBUS2001519}. \changed{The first method impresses with a high resolution in space and velocity but is very computational intensive, especially with many different interaction types and species. A comparison with Monte Carlo type simulations is complicated: Since this would not be a statistical method the noise is negligble, but the requirements to save the phase-space distribution (specifically for high velocities) are extremely high. Thus, it was rejected for the simulation of the problem at hand.} The Monte Carlo method seems preferable, but in a classical Monte Carlo scheme each of the simulated events is independent on the others. This is not the case for events for electron and ions tracks because of recombination. This problem is addressed in the KARL code, which is presented in the this paper. -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 interactions. During movement it is recorded how long a particle stays within a predefined segment of the source. The density of the particle specie in this segment is then proportional to the cumulated time in that segment. Thus, the density can be determined during simulation. It can therefore also be used to evaluate the likeliness of recombination. +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 interactions. During movement it is recorded how long a particle stays within a predefined segment of the source. The density of the particle specie in this segment is then proportional to the cumulated time in that segment. Thus, the density can be determined during simulation. \changed{It can therefore also be used to calculate the MFP of interactions between simulated particles, e.g. for recombination of electrons with any of the present ions.} The KARL code is customized to the special conditions in the KATRIN source. Hence, special care is taken to ensure correct movement of particles through the large density gradient. Additionally, all relevant interactions in a tritium gas atmosphere are included for both electrons and ions. @@ -176,7 +176,7 @@ In the simulation decays are successively processed. Meaning that each decay par After initialization (see section~\ref{ssec:initialization}), the simulation starts its iterative cycle, which contains three subcycles, see Figure~\ref{fig:simulation_flow}. The first addresses how many primary particles/events are processed, which is predefined by the user. It adds primary particles to the particle queue, if it is empty. In the second subcycle a particle is selected at random from the particle queue. This particle is processed until its termination and a new particle is selected from the queue. Within the third subcycle, the actual particle treatment is performed, which includes alternating between the movement step and interaction step. -For each movement step, the mean free path (MFP) $\lambda_\text{mfp}$ of the corresponding particle is calculated through \citep{hussein2010radiation} +For each movement step, the mean free path $\lambda_\text{mfp}$ of the corresponding particle is calculated through \citep{hussein2010radiation} \begin{equation} \lambda_\text{mfp} = \frac{1}{\sum_i \sigma_i(E) n_i} \commaeq \end{equation} diff --git a/docs/paper/the-karl-code/referee_report_2.md b/docs/paper/the-karl-code/referee_report_2.md index b3760a1..393048f 100644 --- a/docs/paper/the-karl-code/referee_report_2.md +++ b/docs/paper/the-karl-code/referee_report_2.md @@ -53,7 +53,7 @@ Line 35: C: clarify somehow that the spectrum referred to here is the one Line 40: It is not clear what is meant by the "whole energy range"
We have tried to clarify this part. -Line 41: C, F: I find this description very confusing. It is not clear what the authors mean by a "branch", what constitutes a "new branch" or an "initial branch", and what is meant by the idea of the branches "feeding back". I have a feeling that the authors have a mental model of the process in mind but have not explained this model to the reader by this point.
We have rephrased the whole branch thing and have tested the text with an independent researcher... We hope that the current version is now understandable.v +Line 41: C, F: I find this description very confusing. It is not clear what the authors mean by a "branch", what constitutes a "new branch" or an "initial branch", and what is meant by the idea of the branches "feeding back". I have a feeling that the authors have a mental model of the process in mind but have not explained this model to the reader by this point.
We have rephrased the whole branch thing and have tested the text with an independent researcher... We hope that the current version is now understandable. Page 4: @@ -63,11 +63,11 @@ Line 24: C: mention the mean free path used to sample a poisson process (as Line 28: C: "density is proportional to cumulated time" - presumably it depends not only on the time but also on the flux into the segment and also the volume of the segment? How large are the segments? Is there variability of density across those segments? -Line 31: C: "likeliness of recombination" → "rate of recombination"? +Line 31: C: "likeliness of recombination" → "rate of recombination"? Reworded the sentence to make the original intent clearer Page 5: -Line 21: C: mean free path has been used earlier, introduce the acronym then. +Line 21: C: mean free path has been used earlier, introduce the acronym then. Page 9: C: "Additionally, the particle class only accepts…" → the relevance of this comment is not clear to me. What would be the alternative?