Skip to content

Commit b43609d

Browse files
n01rcemitch99SchroederSaax3l
authored
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>
1 parent 0c5e85b commit b43609d

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

docs/source/dataanalysis/dataanalysis.rst

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,12 @@ Example to print the integrated orbit path length ``s`` at each beam monitor pos
5858
Reduced Beam Characteristics
5959
----------------------------
6060

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.
6367
If ``diag.slice_step_diagnostics`` is enabled, they will also be calculated during each slice of each beamline element.
6468

6569
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
6973
* ``s``, ``ref_beta_gamma``
7074
Reference particle coordinate ``s`` (unit: meter) and relativistic momentum normalized by the particle mass and the speed of light (unit: dimensionless)
7175
* ``x_mean/min/max``, ``y_mean/min/max``, ``t_mean/min/max``
72-
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)
7377
* ``sig_x``, ``sig_y``, ``sig_t``
7478
RMS of the average beam particle positions (unit: meter)
7579
* ``px_mean/min/max``, ``py_mean/min/max``, ``pt_mean/min/max``
76-
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)
7781
* ``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)
7983
* ``emittance_x``, ``emittance_y``, ``emittance_t``
8084
Normalized beam emittance (unit: meter)
8185
* ``alpha_x``, ``alpha_y``, ``alpha_t``

docs/source/theory/intro.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ One can set the number of slice steps through each lattice element for the appli
3838
Currently, space charge kicks are calculated in 3D.
3939
A 2D space-charge solver for purely transversal effects will be added in the future.
4040

41+
.. _theory-coordinates-and-units:
4142

4243
Coordinates and Units
4344
---------------------

0 commit comments

Comments
 (0)