Conversion of SAD lattices to Xtrack format
Project description
SAD2XS: The (Unofficial) Strategic Accelerator Design (SAD) to Xsuite Converter
SAD2XS is a lattice conversion tool. The input is a SAD lattice (.sad format). The converter outputs an Xtrack Line object, and generates a lattice and optics file. The lattice file generates the lattice from base elements.
Project status
This project is a work in progress. Tests have been sucessfully performed for FCC-ee, the J-PARC Main Ring, the SuperKEKB electron and positron transfer lines (BTE and BTP) and more. Tests with SuperKEKB have known issues, discussed below.
Authors and acknowledgment
Written by John Salvesen in the context of his PhD, with working title "Interaction Point Collision Feedback for FCC-ee".
With thanks to the following for their vital support:
- To Giovanni Iadarola for his vital support of this project.
- To Katsunobu Oide and Giacomo Broggi for their discussion and expertise on SAD
- To Ghislain Roy for his support in testing across many different lattices.
With thanks also to FCCIS and EAJADE for their support and funding to enable this work.
EAJADE
This work was partially supported by the European Union's Horizon Europe Marie Sklodowska-Curie Staff Exchanges programme under grant agreement no. 101086276.
FCCIS
This project has received funding from the European Union's Horizon 2020 research and innovation programme under the European Union's Horizon 2020 research and innovation programme under grant agreement No 951754.
SAD
With thanks to all the developers of SAD. The SAD documentation was used extensively in this comparison, available at SAD. The version of SAD used in comparisons is Katsunobu Oide's version, available at SAD GitHub.
Xsuite
With thanks to all the developers of Xsuite. The Xsuite documentation was used extensively in this comparison, available at Xsuite. The version of Xsuite used in comparisons is the latest version, available at Xsuite GitHub.
Citing SAD2XS
No dedicated paper on SAD2XS has been published. To reference the use of SAD2XS, please reference the proceedings of eeFACT 2025 (publication TBD):
"CONSISTENT REPRESENTATION OF LATTICES BETWEEN OPTICS CODE FOR FCC-ee SUPERKEKB AND MORE"
J. Salvesen, G. Iadarola, G. Broggi, H. Sugimoto, K. Oide, G. Roy, A. Oeftiger
License
This project is liscensed under the Apache License Version 2.0
PyPI Version
The converter is available as a package on PyPI at https://pypi.org/project/sad2xs/
Support
For any issues with the converter, please in the first instance raise an issue directly on GitHub.
For any further discussion, please contact john.salvesen@cern.ch with queries.
Known Issues
There are some physics differences in the modelling of SAD and Xsuite that result in imperfect conversion of optical lattices. The major known effects are detailed here.
Fringe Import
SAD features additional fringe parameters (F1, F2) for specifying the lengrth of the inbound and outbound fringe. This feature is not equivalently available in Xsuite. There are therefore discrepancies on the energy loss and phase advance with highly fringed magnets (e.g. the wiggler implementation in the SuperKEKB lattices).
Multipoles with RF
In SAD it is possible to create a multipole element with RF parameters (Voltage, Frequency, Phase). This is not equivalently supported in Xsuite.
Tests
A series of ongoing tests are performed to test the equivalence of SAD elements with the converted Xsuite elements.
Test Docker (SAD Installation)
Element Tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sad2xs-0.2.0.tar.gz.
File metadata
- Download URL: sad2xs-0.2.0.tar.gz
- Upload date:
- Size: 81.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef337902d2fd8e23c12f40bac3f27e818535efebbb8fba489e133c1b3ae11aaa
|
|
| MD5 |
ecb9eb23a8588bbe733056b60be53173
|
|
| BLAKE2b-256 |
2b69fcfa0cf2362e3479d8a6b2b0da349922c6b722e5d62501979a8572de8243
|
File details
Details for the file sad2xs-0.2.0-py3-none-any.whl.
File metadata
- Download URL: sad2xs-0.2.0-py3-none-any.whl
- Upload date:
- Size: 92.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26ca1235a0c2c54accc400c44d23474ad1013dbb8b75728dd2f36acadd329ef3
|
|
| MD5 |
6a96649a030be84d09af350e6120d68c
|
|
| BLAKE2b-256 |
fd5b6f0b51a5f5b96588860043a3ebd2fcab477e1bb78a97a80b1f812de6b7f9
|