From 4592ab496be8cd99750f2fd6bb948a0e843e9c8b Mon Sep 17 00:00:00 2001 From: csendlinger Date: Fri, 24 Jan 2025 14:06:06 +0100 Subject: [PATCH] KARL paper: formatting changes referee reports --- docs/paper/the-karl-code/referee_report_1.md | 4 ++-- docs/paper/the-karl-code/referee_report_2.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/paper/the-karl-code/referee_report_1.md b/docs/paper/the-karl-code/referee_report_1.md index 83d068b..20adc02 100644 --- a/docs/paper/the-karl-code/referee_report_1.md +++ b/docs/paper/the-karl-code/referee_report_1.md @@ -40,11 +40,11 @@ Consequently, I do not recommend publication of this manuscript. We have tried to sharpen the profile of sections 2 and 3. The comparison to other codes is done in a later section. As outlined before in this reply we are not aware of any publicly available code which solves the problem of tritium interactions. 2. Concerning equation (1): What is an “interaction partner”? Where is entering the drift velocity of the neutral gas? What are the predefined functions used to calculate the cross sections?
We tried to clarify the meaning of "interaction partner" in the text. "Predefined functions" are (as the name implies) functions that are defined within the code to evaluate the cross sections for the different types of interactions. 3. Equation (2) is not the most efficient way to calculate the “moved distance”. You should use d = −λmfp ·log η because this saves a division. In addition, and concerning the comment just after this equation, it is worth noting that the number of collisions in a given path length follows a Poisson distribution, but distances moved are distributed exponentially.
We have added a sentence specifying the exponential distribution of distances moved and adapted the calculation. It should be mentioned however, that for the equation itself there is no difference between original and new version and that within the code the additional division would not create a noticable overhead since a large part of the computational time is spent in the movement step. -4. Figure 2, without dimensions and no further explanations, seems to me not much useful.
We believe the sketch gives some insight into the grid used for the source. The content could be spelled out also but the graphic representation seems more self-explanatory. +4. Figure 2, without dimensions and no further explanations, seems to me not much useful.
We believe the sketch gives some insight into the grid used for the source. The content could be spelled out also but the graphic representation seems more self-explanatory. 5. First paragraph of section 3: I should say that the characteristics mentioned are not exclusive of C++ and that, in my opinion, any modern programming language could do the job.
C++ is not the only choice, but when looking for a fast, object-oriented language which is widely used it is in our view the first choice. We have clarified this. 6. Some information about details of the simulation would be acknowledged.
- - As an example I mention: “The movement itself is subdivided into in smaller steps. How big are these steps or how are they defined?
The step size is defined by the user in the parameter file. We have added some more information about how the size should be chosen. + - As an example I mention: “The movement itself is subdivided into in smaller steps. How big are these steps or how are they defined?
The step size is defined by the user in the parameter file. We have added some more information about how the size should be chosen.
- But the question is more general. There are not details about elements that are usual in any Monte Carlo simulation of the transport of particles in materials: absorption energies, tracking parameters, simulation geometry construction and management, etc.
We are not exactly sure whether we understand this correctly, we can only guess that the referee infers the logic used in Monte Carlo simulation frameworks like GEANT, where e.g. detectors are simulated. To our understanding some of these concepts are not relevant to the type of simulation we are pursuing: Absorption energies are not used since particle-particle interactions are simulated inside the tritium gas directly using the single processes (and particles leaving the source through the wall are out of the equation). Particle tracks are essentially followed, but not recorded only cumulative parameters are considered. If we are in the logic of GEANT the only parameter for the track of a particle is its maximum interaction number. The geometry is a cylinder for all cases anyway. 1. In figure 3, a red line indicates an “ideal scaling”. This is not mentioned at all in the text: what is its purpose?
The text now mentions this explicitly and its purpose is now explained. 2. Figure 4 shows data and a fit of them. No information of the function used for the fit is given, no information about the values of the best fit parameters is given, and no information about the goodness of the fit is given. In addition, no information about the details of the simulations carried out is given. The figure caption informs that the uncertainties have been calculated from a total of six simulations. Apart from the small and “strange” number (why not 5 or 3 or 10), there is no information about the number of histories simulated in each run and the simulation parameters chosen. diff --git a/docs/paper/the-karl-code/referee_report_2.md b/docs/paper/the-karl-code/referee_report_2.md index f896021..b09e079 100644 --- a/docs/paper/the-karl-code/referee_report_2.md +++ b/docs/paper/the-karl-code/referee_report_2.md @@ -35,7 +35,7 @@ The paper omits much of the information that is the most interesting about this

We have written extensive comments for the source code. Our main objective was to make the functions readable, some of the inner workings are not that well documented. 5. There are some example scripts given in the codebase, but they are not referenced in the paper, do not come with documentation, and it is not clear what they do in terms of expected input, processing and output. Somewhere it should be made clear how one should run these examples, what they do, and what the expected output is. Furthermore, the examples should contain at least some semi-realistic use cases of the code for addressing relevant physics questions for tritium experiments. -
We have added a section to the README in karl that explains a bit what the different given json files are. A semi-realistic use case is always included with katrin_parameter_example.json. +

We have added a section to the README in karl that explains a bit what the different given json files are. A semi-realistic use case is included with the katrin_parameter_example.json file in the simulation_config/ directory. I now proceed to give some line-by-line comments - @@ -69,7 +69,7 @@ Line 31: "likeliness of recombination" → "rate of recombination"? Page 5: -Line 21: mean free path has been used earlier, introduce the acronym then.
We have removed the acronym earlier in the text. +Line 21: mean free path has been used earlier, introduce the acronym then.
We have introduced the acronym earlier in the text. Page 9: "Additionally, the particle class only accepts…" → the relevance of this comment is not clear to me. What would be the alternative?
We have removed that sentence since it was indeed superfluous. @@ -81,7 +81,7 @@ Page 11-12: It reads oddly that the drift mover is treated in so much mor Page 13: I see that trapped particles are killed by the simulation. But doesnt this invalidate the density field calculation, since trapped particles should have a very long retention time and hence contribute a lot to the density? Do trapped particles also
You are essentially correct: Dumping particles could invalidate the density fields. This is a somewhat delicate choice of the max interaction counter. We have added some plots showing which max interaction numbers yield correct density fields. -Line 36: what does "macroscopic" mean in this sentence?
We have removed the mention of the "macroscopic cross section" entirely and have specified, that it is the cross section scaled by the density of the target specie. +Line 36: what does "macroscopic" mean in this sentence?
We have removed the mention of the "macroscopic cross section" entirely and have specified that it is the cross section scaled by the density of the target specie. Figure 1: Don't the ions and electrons - especially trapped ones - contribute to the space charge in the volume, and hence affect the E and B fields? So shouldn't there be a line "into" the E and B fields box from somewhere? How are the effects of space charge handled in general?
KARL itself currently has no capability to solve the poisson equation to obtain the electric field from the space charge. Both the electric and magnetic fields created by the charged particles have to be calculated from external plasma simulations (as mentioned at the end of section 1) and be used as an input for a following simulation with KARL. @@ -109,7 +109,7 @@ Page 17: "the fastest axis refers to the axis for which the entry can be On this page the text is quite verbose with some things being repeated in multiple sentences. I recommend to edit and condense this section.
Page 18: First paragraph of this section seems verbose, can be trimmed down. -
Line 41: I don't understand why the sentence begins "However," -this seems to imply something in contradiction to the previous paragraph, but it is not. Instead consider "Alternatively,"
+
Line 41: I don't understand why the sentence begins "However," -this seems to imply something in contradiction to the previous paragraph, but it is not. Instead consider "Alternatively,"

We have rephrased this paragraph. Line 53: what is the meaning of either "reasonable" and "robust" in this context?
We have changed this to physically correct and low-noise