KARL paper: Comments to Ref 1&2

This commit is contained in:
2025-01-16 12:57:23 +01:00
parent 61cc0cbae8
commit 3e49340ef3
2 changed files with 20 additions and 22 deletions
+6 -8
View File
@@ -18,7 +18,7 @@ In this work, a new Monte Carlo code is presented that permits the calculation o
I have no doubt that KATRIN is a very important experiment, which may require the
development of specific pieces of software. However, as a reader of this journal, what I would expect is code that is general enough to be useful for different applications. This can only be achieved if the details about the code are understandable. However, in my opinion, this is not the case with the present manuscript. The text is generally obscure, with sentences and messages that seem to me to be understood only by the authors. Much of the manuscript describes peculiarities of the code that are of no help to the ordinary reader. In addition, I think it is important to point out several major drawbacks:
1. <done>F: The physics underlying the simulations is not laid out in detail, and concepts that seem relevant are not clearly explained.</done><br>
1. <done>The physics underlying the simulations is not laid out in detail, and concepts that seem relevant are not clearly explained.</done><br>
<reply>We have tried to outline the basic concepts and underlying assumptions in the introduction. Along with other changes laid outer later we have attempted to streamline the reasoning of the article </reply>
2. <done>F: The advantages of this new code with respect to others Monte Carlo codes already available and which could allow the same quantities to be obtained are not discussed. A more or less systematic comparison with the results obtained with these other Monte Carlo codes is missing. These comparisons have been included neither in this manuscript nor in the authors’ article in J. Inst (Ref. [7]), which is continually used as a reference for this work.</done><br>
@@ -36,19 +36,17 @@ Consequently, I do not recommend publication of this manuscript.
- <done>: What is described in the Abstract is exactly the same simulation logic of any Monte Carlo code that simulates the particle transport in a medium. I should expect some information concerning the actual novelties of the new code.</done><br>
<reply>The abstract has been reformulated avoiding any repetition of standard Monte Carlo techniques.</reply>
- <cs>C: “The code is parallelized using ... terminator, interaction types, movers and initialization.” This is difficult to understand and refers to details that are too specific.<br>Some of the comments are also obvious: the input of a program is expected to provide information about the simulation that the program is to carry out. What is the “resolution of the simulation domain”? What are the “user defined species”? What are the terminator and the movers?</cs>
1. <done>F: Again, most of the information provided in sections 2 and 3 refer to the standard logic followed by all Monte Carlo codes simulating radiation-matter interaction that I know. A clear description of the novelties of the new code should be done making the corresponding comparisons with other available Monte Carlo codes that would be unable to do the same work. </done><br>
1. <done>Again, most of the information provided in sections 2 and 3 refer to the standard logic followed by all Monte Carlo codes simulating radiation-matter interaction that I know. A clear description of the novelties of the new code should be done making the corresponding comparisons with other available Monte Carlo codes that would be unable to do the same work. </done><br>
<reply>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.</reply>
2. <cs>C: 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?</cs>
3. <cs>C: 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.</cs> <note> Changed; would not be a bottleneck in any case; poisson stuff also rephrased </note>
4. <done> Figure 2, without dimensions and no further explanations, seems to me not much useful.<done><br><reply>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. </reply>
5. <done> 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.</done><br>
<reply>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.</reply>
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?
- <note>?</note>: 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.
1. <cs>C: In figure 3, a red line indicates an “ideal scaling”. This is not mentioned at all in the text: what is its purpose?</cs>
6. Some information about details of the simulation would be acknowledged.<br>
<cs>- As an example I mention: “The movement itself is subdivided into in smaller steps. How big are these steps or how are they defined?</cs><br>
<fs>- 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.</fs>
1. <done>C: In figure 3, a red line indicates an “ideal scaling”. This is not mentioned at all in the text: what is its purpose?</done><br><reply>The text now mention this now explicitly and its purpose is now explained.</reply>
2. <csfs>F, C: 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 <note> information about the goodness of the fit </note> 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.</csfs>
1. <fs>F: A comparison with other codes for the spectra shown in figure 5 lacks in order to judge the advantages of the new code. Here there is no information about the simulations geometry (dimensions, materials, compositions, densities, ...) and about the simulation carried out. Concerning the spectra in this figure, the last sentence of the section says: “The spectrum shows very clearly that all processes for the particles interact in a non-trivial manner. It is therefore necessary to use a sophisticated tool like KARL to simulate their behavior inside the KATRIN source. Apart from the fact that the sentence is not correct (it seems that something lacks), I have difficulties to understand how the spectra shown actually provide the information about all interaction processes as stated.</fs>
2. <done>Throughout the text, the reader is made to go back and forth in the reading, with continuous references to different sections (previous and subsequent), making it a practically impossible task.</done><br><reply>After re-arranging the paper we have also redacted the crosslinks which should drastically increase the readability</reply>
+14 -14
View File
@@ -21,17 +21,17 @@ The paper itself has a number of weaknesses, however, and I believe it needs a m
The paper omits much of the information that is the most interesting about this work - for example, detailed plots of what cross sections are implemented, a quantitative comparison of different stepping approaches, performance metrics, and so on. This material should be included to make this paper a comprehensive and useful reference for the code.
1. <csfs>C, F: The text needs a deep edit for concision and clarity. In several places the same idea is repeated in several subsequent sentences, and often a lot of words are spent on basic concepts that will be clear to most authors (e.g., what is a vector field?), while when complex ideas that are more specific to this code are just skipped over or referenced out (e.g., what does the Boris algorithm do and in what sense is it more or less optimal than the other option?). The text should be refocussed towards the aspects that make this codebase particularly interesting and/or nontrivial, and the language improved and condensed throughout.
</csfs>
1. <fs>C, F: The text needs a deep edit for concision and clarity. In several places the same idea is repeated in several subsequent sentences, and often a lot of words are spent on basic concepts that will be clear to most authors (e.g., what is a vector field?), while when complex ideas that are more specific to this code are just skipped over or referenced out (e.g., what does the Boris algorithm do and in what sense is it more or less optimal than the other option?). The text should be refocussed towards the aspects that make this codebase particularly interesting and/or nontrivial, and the language improved and condensed throughout.
</fs>
2. <csfs>C, F: Almost all the "results" are referred out to Ref [7], which makes the reader wonder why it is necessary to have two papers rather than one. I would like to encourage the authors to bring the results forward into this text. I also encourage them to include the scripts that generate these as documented examples in the code repository, since these are the actual code use cases that an external user may want to recreate.
</csfs>
2. <fs>C, F: Almost all the "results" are referred out to Ref [7], which makes the reader wonder why it is necessary to have two papers rather than one. I would like to encourage the authors to bring the results forward into this text. <cs>I also encourage them to include the scripts that generate these as documented examples in the code repository</cs>, since these are the actual code use cases that an external user may want to recreate.
</fs>
3. <csfs>C, F: Barely any performance estimates are given. For the two stepper algorithms, for example, how different are the simulation results, and at what relative CPU cost? What degree of uncertainty is associated with granularity of the geometry? How many events need be simulated for a typical application in KATRIN and how long does this take? Which of the processes carry the most time cost, and can any of them be neglected for faster simulations without losing too much accuracy?
</csfs>
3. <cs>C, F: Barely any performance estimates are given. For the two stepper algorithms, for example, how different are the simulation results, and at what relative CPU cost? What degree of uncertainty is associated with granularity of the geometry? How many events need be simulated for a typical application in KATRIN and how long does this take? Which of the processes carry the most time cost, and can any of them be neglected for faster simulations without losing too much accuracy?
</cs>
4. <cs>C: I took a look at the source code. There are almost no comments anywhere, in either the headers or source, and this is especially problematic when many of the functions accept an argument that is simply named "object". It seems to me it would be good practice to add comments to at least add comments to explain what each function does, what it accepts as input and gives as output.
</cs> <note> Comments written, feedback desired </note>
</cs> <fs> Comments written, feedback desired </fs>
5. <csfs>C, F: 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.
</csfs> <note> Added section to the README in karl that explains a bit what the different given json files are. Semi-realistic use case was always included with katrin_parameter_example.json.</note>
@@ -64,14 +64,14 @@ Line 24: <cs>C: mention the mean free path used to sample a poisson process (as
Line 28: <cs>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?</cs> <note> text changes necessary? Stuff is explaned in the non-introduction part </note><fs>Sag was dazu!</fs>
Line 31: <done>C: "likeliness of recombination" → "rate of recombination"?</done> <reply> Reworded the sentence to make the original intent clearer </reply>
Line 31: <done>"likeliness of recombination" → "rate of recombination"?</done> <reply> Reworded the sentence to make the original intent clearer </reply>
Page 5:
Line 21: <done>C: mean free path has been used earlier, introduce the acronym then.</done>
Line 21: <done>mean free path has been used earlier, introduce the acronym then.</done><br><reply>Done</reply>
Page 9:
<cs>C: "Additionally, the particle class only accepts…" → the relevance of this comment is not clear to me. What would be the alternative?</cs> <note> removed that sentence </note>
<done>C: "Additionally, the particle class only accepts…" → the relevance of this comment is not clear to me. What would be the alternative?</done><br> <reply> removed that sentence </reply>
Page 10: <fs> F: "The density fields need a higher resolution than the density difference". Why? Can you be quantitative about the scale of error introduced with some different resolutions? Perhaps a plot showing the accuracy for a few choices?</fs>
@@ -106,11 +106,11 @@ Line 15: Shouldn't the ionization energy threshold be applied in the center of m
Page 17: <csfs>C, F: "the fastest axis refers to the axis for which the entry can be accessed the quickest". This note doesn't make sense to me; my understanding is that to access a 4D array you give 4 coordinates A[j,k,l,m]. Please clarify in what sense any axis is quicker than any other. <note> Added sentence about it being an effect of caching. </note>
<csfs>On this page the text is quite verbose with some things being repeated in multiple sentences. I recommend to edit and condense this section.
<fs>On this page the text is quite verbose with some things being repeated in multiple sentences. I recommend to edit and condense this section.
<br>Page 18: F, C:
First paragraph of this section seems verbose, can be trimmed down.
<br>Line 41: F, C: 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,"
</csfs> <note> do not now which paragraph is referenced nor which "however" </note>
</fs> <note> do not know which paragraph is referenced nor which "however" </note>
Line 53: <fs>F: what is the meaning of either "reasonable" and "robust" in this context?</fs>
@@ -125,11 +125,11 @@ Page 21:
Line 16: <cs>C: less than 1Gb, but for how many events?</cs> <note> text change necessary? It is mentioned that only derived properties (density, current, deletions) are stored, for which the size does not depend on the number of events. Maybe mention the parameters for the largest output? </note>
Lines 20-21: <r>?</r>: I find it hard to understand what this sentence is trying to tell me.
<done>Lines 20-21: I find it hard to understand what this sentence is trying to tell me.</done><br><reply>We are unsure which sentence was meant here>
Line 37: <cs>C: Value has to be provided by its value and its unit; dual use of the word value, seems circular?</cs> <note> changed, proof-reading necessary </note>
Line 42: "Functions are an integral part of the code", is this not a statement about code in general, or perhaps even mathematics in general?
<fs>Line 42: "Functions are an integral part of the code", is this not a statement about code in general, or perhaps even mathematics in general?</fs>
Line 42: <csfs> C, F: More generally in this section it seems far too many words are spent explaining concepts that any user of this code will already know, and can be easily inferred from reading the source code, for example, explaining what a scalar or vector field is. It seems that lines P21 L42 - Page 22 L33 could be replaced with a single sentence, "the code implements utility classes for functions returning scalar fields, and three kinds of vector fields (constant vector, Z-pointing vector, and generic vector)", for example.</csfs>