From 103887af6c148f11e1bae6091bc93ca26c46685a Mon Sep 17 00:00:00 2001 From: Felix Spanier Date: Thu, 23 Jan 2025 11:29:50 +0100 Subject: [PATCH] KARL code: drift velocity lie --- docs/paper/the-karl-code/paper.tex | 3 ++- docs/paper/the-karl-code/referee_report_2.md | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/paper/the-karl-code/paper.tex b/docs/paper/the-karl-code/paper.tex index 6f4ddd8..4468496 100755 --- a/docs/paper/the-karl-code/paper.tex +++ b/docs/paper/the-karl-code/paper.tex @@ -449,7 +449,8 @@ The cross section of elastic scattering was measured at different experiments in The interaction itself is performed in multiple steps. First, the velocity of a target particle is determined. It is \changed{a} compound of the drift velocity of the species and a velocity, which is drawn from the underlying velocity distribution. For the tritium gas, the drift velocity is determined in external simulation and the velocity distribution is given by a Maxwell-Boltzmann distribution \citep{Kellerer_2022}. %Note: the following sentence should be a lie. A tracked species should throw an error if any of the two components is initialized with "null"... -For tracked particles the drift velocity is assumed to be zero and the velocity distribution is given by the density field. The velocity of the target particle is used to determine the impact energy in the \changed{center of mass} frame. This energy is then used for the evaluation of the polar scattering angle $\theta$. A second scattering angle is drawn in the interval $[0, 2\pi)$, responsible for the change of momentum in azimuthal direction. Both angles and the target velocity are then used to rotate the velocity vector of the impact particle in the center of mass frame, see \citep{Kellerer_2022} for the full calculation. This rotated velocity is then used as the new velocity of the impact particle. +%For tracked particles the drift velocity is assumed to be zero and the velocity distribution is given by the density field. +The velocity of the target particle is used to determine the impact energy in the \changed{center of mass} frame. This energy is then used for the evaluation of the polar scattering angle $\theta$. A second scattering angle is drawn in the interval $[0, 2\pi)$, responsible for the change of momentum in azimuthal direction. Both angles and the target velocity are then used to rotate the velocity vector of the impact particle in the center of mass frame, see \citep{Kellerer_2022} for the full calculation. This rotated velocity is then used as the new velocity of the impact particle. \paragraph{Clustering} \changed{ diff --git a/docs/paper/the-karl-code/referee_report_2.md b/docs/paper/the-karl-code/referee_report_2.md index 415eccc..e7f3f18 100644 --- a/docs/paper/the-karl-code/referee_report_2.md +++ b/docs/paper/the-karl-code/referee_report_2.md @@ -78,8 +78,8 @@ Page 10: F: "The density fields need a higher resolution than the density d 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. -Page 13: C, F: -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 +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: C: what does "macroscopic" mean in this sentence? changed; let someone read over to check if better @@ -87,9 +87,9 @@ Figure 1: C, F: Don't the ions and electrons - especially trapped ones - General comment: C: for each kind of interaction I recommend to include an equation so its clear to the reader what the process is, e.g. "elastic scattering e + X -> e+ X, where X=[T2, ….or whatever else]". I understand that the code is written to allow flexibility so these can be extended, but explaining what is implemented now will help the reader understand the role of each process. Included prototypical interaction examples and changed text a bit -Page 14: C, F: Elastic scattering: please include figures of the various cross sections, indicating the models that are combined, the data, and the version recommended for use in simulations in KARL. +Page 14: Elastic scattering: please include figures of the various cross sections, indicating the models that are combined, the data, and the version recommended for use in simulations in KARL.
This has been updated. -Line 40: F: "for tracked particles the drift velocity is assumed to be zero and the density field". Why is this a valid assumption? I can imagine a particle making gryo orbits has a typical velocity much larger than its mean drift velocity, for example. +Line 40: "for tracked particles the drift velocity is assumed to be zero and the density field". Why is this a valid assumption? I can imagine a particle making gyro orbits has a typical velocity much larger than its mean drift velocity, for example.
This sentence has been extremely misleading - we have removed it completely. Line 44: C, F: the description here is confusing. Presumably theta and phi are drawn in the COM frame and then mapped to lab frame, not vice versa, right? It reads here as if they are randomly drawn in the lab frame, if thats so please explain why and how. changed laboratory frame to center of mass frame, should have been just a mistake