Skip to content

Commit 98e3bf5

Browse files
authored
Documentation: new figure for the AT coordinate system (#876)
* Added a figure for the coordinate system * PDF figure for the PDF documentation
1 parent 15e8f5a commit 98e3bf5

File tree

5 files changed

+37
-12
lines changed

5 files changed

+37
-12
lines changed

docs/common/indx.rst

+17-6
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,36 @@ The Accelerator Toolbox is based on a fast and modular tracking engine.
55

66
Coordinate system
77
-----------------
8-
AT runs in 6 dimensions using the following coordinate system:
8+
The AT coordinate system is based on a design trajectory along which the magnetic
9+
elements are aligned, and a reference particle:
10+
11+
.. image:: /images/coord_system.*
12+
:alt: coordinate system
13+
:align: center
14+
15+
By convention, the reference particle travels along the design trajectory at constant
16+
nominal energy and defines the phase origin of the RF voltage.
17+
18+
The 6-d coordinate vector :math:`\vec Z` is:
919

1020
.. math::
1121
1222
\vec Z =
1323
\begin{pmatrix}
14-
x \\ p_x \\
15-
y \\ p_y \\
24+
x \\ p_x/p_0 \\
25+
y \\ p_y/p_0 \\
1626
\delta \\ \beta c\tau
1727
\end{pmatrix}
1828
29+
:math:`p_0` is the nominal momentum,
30+
31+
:math:`\delta=\dfrac{p-p_0}{p_0}` is the relative momentum deviation.
32+
1933
AT works with relative path lengths: the 6\ :sup:`th` coordinate :math:`\beta c\tau`
2034
represents the path lengthening with respect to the reference particle. :math:`\tau`
2135
is the delay with respect to the reference particle: the particle is late for
2236
:math:`\tau > 0`.
2337

24-
The reference particle is conventionally a particle travelling on the reference orbit
25-
at constant nominal energy and crossing the RF cavities at their 0 voltage.
26-
2738
Tracking
2839
--------
2940
All the AT processing is based on tracking. For instance, linear optics properties

docs/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
# -- Options for the myst markdown parser ------------------------------------
8888

8989
myst_enable_extensions = [
90+
"attrs_inline",
9091
"colon_fence",
9192
"dollarmath",
9293
"replacements",

docs/images/coord_system.pdf

33.2 KB
Binary file not shown.

docs/images/coord_system.png

72.5 KB
Loading

docs/p/notebooks/ATPrimer.ipynb

+19-6
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,29 @@
3232
"charged particle beam simulation. It was created by Andrei Terebilo in\n",
3333
"the late 1990’s. The original papers[^at1][^at2] still serve as a good introduction to AT. The AT described in those papers is AT1.3, the latest version produced by Terebilo. The next version of AT is considered AT2.0[^nash]. Here we provide examples showing some of the changes from AT1.3, but also serving as an introduction for someone just starting AT.\n",
3434
"\n",
35-
"### Coordinates\n",
35+
"### AT Coordinate system\n",
3636
"\n",
37-
"The 6-d phase space coordinates used in AT are as follows:\n",
37+
"The AT coordinate system is based on a design trajectory along which the magnetic elements are aligned,\n",
38+
"and a reference particle:\n",
39+
"\n",
40+
"```{image} /images/coord_system.*\n",
41+
":alt: coordinate system\n",
42+
":align: center\n",
43+
"```\n",
44+
"\n",
45+
"By convention, the reference particle travels along the design trajectory at constant nominal energy and defines the phase origin of the RF voltage.\n",
46+
"\n",
47+
"The 6-d coordinate vector $\\vec Z$ is:\n",
3848
"\n",
3949
"$$\n",
40-
"\\vec Z = \\begin{pmatrix} x \\\\ \\frac{p_x}{p_0} \\simeq x'(1+\\delta) \\\\ y \\\\ \\frac{p_y}{p_0} \\simeq y'(1+\\delta) \\\\ \\delta=\\frac{\\left(p-p_0\\right)}{p_0} \\\\ \\beta c \\tau\\end{pmatrix}\n",
50+
"\\vec Z = \\begin{pmatrix} x \\\\ \\dfrac{p_x}{p_0} \\approx x'(1+\\delta) \\\\ y \\\\ \\dfrac{p_y}{p_0} \\approx y'(1+\\delta) \\\\ \\delta=\\dfrac{p-p_0}{p_0} \\\\ \\beta c \\tau\\end{pmatrix}\n",
4151
"$$\n",
4252
"\n",
43-
"$p_0$ is the reference momentum. $\\tau$ is the\n",
44-
"time lag relative to the ideal particle."
53+
"$p_0$ is the reference momentum.\n",
54+
"\n",
55+
"AT works with relative path lengths: the 6{sup}`th` coordinate $\\beta c\\tau$ represents\n",
56+
"the path lengthening with respect to the reference particle. $\\tau$ is the delay with\n",
57+
"respect to the reference particle: the particle is late for $\\tau > 0$.\n"
4558
]
4659
},
4760
{
@@ -1760,7 +1773,7 @@
17601773
"name": "python",
17611774
"nbconvert_exporter": "python",
17621775
"pygments_lexer": "ipython3",
1763-
"version": "3.11.10"
1776+
"version": "3.9.21"
17641777
},
17651778
"toc-autonumbering": false,
17661779
"toc-showcode": false,

0 commit comments

Comments
 (0)