From f60a62175bec90da32bcedbe0d20122eeb63f252 Mon Sep 17 00:00:00 2001 From: csendlinger Date: Thu, 23 Jan 2025 19:39:54 +0100 Subject: [PATCH] more replies to ref 2 --- docs/paper/the-karl-code/referee_report_2.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/paper/the-karl-code/referee_report_2.md b/docs/paper/the-karl-code/referee_report_2.md index 1257502..727eef4 100644 --- a/docs/paper/the-karl-code/referee_report_2.md +++ b/docs/paper/the-karl-code/referee_report_2.md @@ -50,7 +50,7 @@ Line 32: I don't know what is meant by "ab initio" in this sentence. Line 38: The definition of a Markov chain is that the process depends only on current state but not on past history of the system. But as described later, there appear to nonlinear feedback terms where the path of the electron depends on other interactions in its history like the possible creation of ions that lead to further recombination. So it seems a Markov chain may not be an ideal description here?
We agree that the final implementation of the code - due to the use of the recombination technique - is no longer a Markov chain. The use of the term "Markov" in this paragraph is on the other hand superfluous. -Line 35: C: clarify somehow that the spectrum referred to here is the one before any scattering interactions. +Line 35: clarify somehow that the spectrum referred to here is the one before any scattering interactions.
This should be much more concise now. Line 40: It is not clear what is meant by the "whole energy range"
We have tried to clarify this part. @@ -63,7 +63,7 @@ Line 13: "High resolution" -> resolution in what quantity? What does high Line 24: mention the mean free path used to sample a poisson process (as written it suggests a fixed distance step)
The equation for the mean free path is given right after this text. -Line 28: > "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?
It is of course completely valid to calculate the time integral of the in- and outflux at the boundaries which would give the density inside the boundaries via the continuity equation. We use an equivalent formulation: With the known number of total particles one can calculate the fraction of time spent within one specific part of the simulation volume. The time fraction is then translated into a density fraction. This is explained later in the paper in more detail. The formulation of course only yields an average density. +Line 28: "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?
It is of course completely valid to calculate the time integral of the in- and outflux at the boundaries which would give the density inside the boundaries via the continuity equation. We use an equivalent formulation: With the known number of total particles one can calculate the fraction of time spent within one specific part of the simulation volume. The time fraction is then translated into a density fraction. This is explained later in the paper in more detail. The formulation of course only yields an average density. Line 31: "likeliness of recombination" → "rate of recombination"?
We have reworded the sentence to make the original intent clearer @@ -72,11 +72,11 @@ Page 5: Line 21: mean free path has been used earlier, introduce the acronym then.
We have removed the acronym earlier in the text. Page 9: -C: "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. +"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. -Page 10: 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?
The mean free path can only be calculated on the base of local quantities. When particles move through large density differences this may cause a problem. Our solution to the problem is to stop motion at boundaries and rolling the mfp again. The practical effect on the other hand is minimal: For all simulations the maximum distance is significantly smaller anyway. +Page 10: "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?
The mean free path can only be calculated on the base of local quantities. When particles move through large density differences this may cause a problem. Our solution to the problem is to stop motion at boundaries and rolling the mfp again. The practical effect on the other hand is minimal: For all simulations the maximum distance is significantly smaller anyway. -Page 11-12: F: It reads oddly that the drift mover is treated in so much more analytical detail than the Boris one. I suggest to balance these better, ideally increasing the level of description of the Boris approach to match the drift one. I would also like to see some performance comparisons of these two options, in terms of simulation time and performance. Some general discussion is given as to why the user may choose one or other, but an evaluation of how well they work in some realistic test cases seems relevant here.
Being very familiar with the Boris push we felt that the drift mover needed more attention. This decision was obviously too biased. It has been corrected now. +Page 11-12: It reads oddly that the drift mover is treated in so much more analytical detail than the Boris one. I suggest to balance these better, ideally increasing the level of description of the Boris approach to match the drift one. I would also like to see some performance comparisons of these two options, in terms of simulation time and performance. Some general discussion is given as to why the user may choose one or other, but an evaluation of how well they work in some realistic test cases seems relevant here.
Being very familiar with the Boris push we felt that the drift mover needed more attention. This decision was obviously too biased. It has been corrected now. 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. @@ -119,11 +119,11 @@ Line 55: This is the first mention of rotation. Where is the physics of mo Page 19: Line 40: I think "however" is an odd construction here. I would suggest to begin with "the injector class can be configured in a number of ways. The most commonly used is…". And later, "another approach to injection is…"
The "however" was removed -Figure 3: Please explain "weak scaling" and "Ideal" in this figure.
We have added a short explanation of the figure in the text. +Figure 3: Please explain "weak scaling" and "Ideal" in this figure.
We have added a short explanation of the figure in the text. Page 21: -Line 16: C: less than 1Gb, but for how many events?
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? +Line 16: less than 1Gb, but for how many events?
As mentioned in the text of the paper, the output size does not (directly) depend on the number of events. It mainly depends on the resolution of the simulation domain, as that dictates the size of the arrays to be stored. Furthermore it also depends on the number of output steps the user wants to keep. Lines 20-21: I find it hard to understand what this sentence is trying to tell me.
We are unsure which sentence was meant here @@ -131,7 +131,7 @@ Line 37: Value has to be provided by its value and its unit; dual use of t 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?
We have removed this more philosophical statement. -Line 42: 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. +Line 42: 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.
We agree that the explanation of these concepts is unnecessary, so we have removed the corresponding parts. However, this section is intended to show the possible options the user can choose within a parameter file. And while the names of the options were chosen to imply their respective function, we think it is still beneficial to state it explicitly. Page 24: