Skip to content

Commit 7a5d6d0

Browse files
committed
Doc: TaperedPL Details
Add more details to the documentation.
1 parent e11b2ce commit 7a5d6d0

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

docs/source/usage/python.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,13 @@ This module provides elements for the accelerator lattice.
918918

919919
.. py:class:: impactx.elements.TaperedPL(k, taper, units, dx=0, dy=0, rotation=0)
920920
921-
A thin nonlinear plasma lens with transverse taper.
921+
A thin nonlinear plasma lens with transverse (horizontal) taper
922+
923+
.. math::
924+
925+
B_x = g \left( y + \frac{xy}{D_x} \right), \quad \quad B_y = -g \left(x + \frac{x^2 + y^2}{2 D_x} \right)
926+
927+
where :math:`g` is the (linear) field gradient in T/m and :math:`D_x` is the targeted horizontal dispersion in m.
922928

923929
:param k: integrated focusing strength in m^(-1) (if units = 0)
924930
= (length in m) * (azimuthal magnetic field gradient in T/m) / (rigidity in T-m)

examples/achromatic_spectrometer/README.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,22 @@ Achromatic Spectrometer
44
=======================
55

66
A spectrometer beamline using a bending dipole.
7-
A transversely-tapered plasma lens is added for chromatic correction.
7+
A :py:class:`transversely-tapered plasma lens <impactx.elements.TaperedPL>` is added for chromatic correction.
88
The tapered plasma lens design is based on:
99

1010
C. A. Lindstrom, presentation at the EuroNNAc Special Topics Workshop 2022, `slides <https://agenda.infn.it/event/28376/contributions/178724/attachments/96899/133588/Lindstr%C3%B8m,%20EuroNNAc%20workshop,%2022%20Sep%202022.pdf>`__
1111
"Solutions and challenges for a multi-stage plasma accelerator",
1212

1313
https://agenda.infn.it/event/28376/contributions/178724/attachments/96899/133588/Lindstr%C3%B8m,%20EuroNNAc%20workshop,%2022%20Sep%202022.pdf
1414

15+
with a transverse (horizontal) taper
16+
17+
.. math::
18+
19+
B_x = g \left( y + \frac{xy}{D_x} \right), \quad \quad B_y = -g \left(x + \frac{x^2 + y^2}{2 D_x} \right)
20+
21+
where :math:`g` is the (linear) field gradient in T/m and :math:`D_x` is the targeted horizontal dispersion in m.
22+
1523
We use a 1 GeV electron beam with initial normalized rms emittance of 2 microns and 2% rms relative energy spread.
1624

1725
In this test, the initial and final values of :math:`\sigma_x`, :math:`\sigma_y`, :math:`\sigma_t`, :math:`\epsilon_x`, :math:`\epsilon_y`, and :math:`\epsilon_t` must agree with nominal values.

src/python/elements.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,14 @@ void init_elements(py::module& m)
11561156
py::arg("dx") = 0,
11571157
py::arg("dy") = 0,
11581158
py::arg("rotation") = 0,
1159-
"A thin nonlinear plasma lens with transverse taper."
1159+
R"doc(A thin nonlinear plasma lens with A thin nonlinear plasma lens with transverse (horizontal) taper
1160+
1161+
.. math::
1162+
1163+
B_x = g \left( y + \frac{xy}{D_x} \right), \quad \quad B_y = -g \left(x + \frac{x^2 + y^2}{2 D_x} \right)
1164+
1165+
where :math:`g` is the (linear) field gradient in T/m and :math:`D_x` is the targeted horizontal dispersion in m.
1166+
)doc"
11601167
)
11611168
;
11621169
register_beamoptics_push(py_TaperedPL);

0 commit comments

Comments
 (0)