You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clarify that ReducedBeamCharacteristics are relative to reference particle (#585)
* Clarify the coordinates in the RBC
Make clear how the ReducedBeamCharacteristics quantities are in reference to
the reference particle.
* Apply suggestions from code review
Co-authored-by: Chad Mitchell <46825199+cemitch99@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: SchroederSa <134732256+SchroederSa@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Chad Mitchell <46825199+cemitch99@users.noreply.github.com>
* Comment on beam monitor
---------
Co-authored-by: Chad Mitchell <46825199+cemitch99@users.noreply.github.com>
Co-authored-by: SchroederSa <134732256+SchroederSa@users.noreply.github.com>
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Copy file name to clipboardExpand all lines: docs/source/dataanalysis/dataanalysis.rst
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -58,8 +58,12 @@ Example to print the integrated orbit path length ``s`` at each beam monitor pos
58
58
Reduced Beam Characteristics
59
59
----------------------------
60
60
61
-
ImpactX calculates reduced beam characteristics like averaged positions, momenta, beam emittances and Courant-Snyder (Twiss) parameters during runtime.
62
-
These quantities are calculated before, after, and during each step of the simulation.
61
+
ImpactX calculates reduced beam characteristics based on the beam moments during runtime.
62
+
These include averaged positions, momenta, beam emittances and Courant-Snyder (Twiss) parameters.
63
+
For computing beam moments (as elsewhere), positions and momenta are given as deviations with respect to the reference particle (see :ref:`Coordinates and Units <theory-coordinates-and-units>`).
64
+
65
+
The reduced beam characteristics are stored with the output of the beam monitor element.
66
+
They are also calculated before, after, and during each step of the simulation.
63
67
If ``diag.slice_step_diagnostics`` is enabled, they will also be calculated during each slice of each beamline element.
64
68
65
69
The code writes out the values in an ASCII file prefixed ``reduced_beam_characteristics`` containing the follow columns:
@@ -69,13 +73,13 @@ The code writes out the values in an ASCII file prefixed ``reduced_beam_characte
69
73
* ``s``, ``ref_beta_gamma``
70
74
Reference particle coordinate ``s`` (unit: meter) and relativistic momentum normalized by the particle mass and the speed of light (unit: dimensionless)
Average / minimum / maximum beam particle position in the dimensions of ``x``, ``y`` (transverse coordinates, unit: meter), and ``t`` (normalized time difference :math:`ct`, unit: meter)
76
+
Average / minimum / maximum particle displacement with respect to the reference particle in the dimensions of ``x``, ``y`` (transverse coordinates, unit: meter), and ``t`` (normalized time difference :math:`ct`, unit: meter)
73
77
* ``sig_x``, ``sig_y``, ``sig_t``
74
78
RMS of the average beam particle positions (unit: meter)
Average / minimum / maximum beam momenta normalized by reference particle momentum (unit: dimensionless, radians for transverse momenta)
80
+
Average / minimum / maximum particle momentum deviation from the reference particle momentum, divided by the magnitude of the reference particle momentum (unit: dimensionless, radians for transverse momenta)
77
81
* ``sig_px``, ``sig_py``, ``sig_pt``
78
-
RMS of the average beam momenta (energy difference for ``pt``) (unit: dimensionless)
82
+
Standard deviation of the particle momentum deviations (energy difference for ``pt``) normalized by the magnitude of the reference particle momentum (unit: dimensionless)
0 commit comments