Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 582 Bytes

twiss.rst

File metadata and controls

20 lines (14 loc) · 582 Bytes

Twiss

Xtrack provides a twiss method associated to the tracker that can be used to obtain the twiss parameters and other quantities like tunes, chromaticities, slip factor, etc. This is illustrated in the following example.

.. literalinclude:: generated_code_snippets/twiss.py
   :language: python

figures/twiss.png

Twiss functions and accelerator parameters as obtained by Xtrack twiss. See the full code generating the image.