Skip to main content

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.

FCC-ee w/ Solenoid IR Survey FCC-ee w/ Solenoid IR Orbit FCC-ee w/ Solenoid IR Betas FCC-ee w/ Solenoid IR Dispersion

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.

EAJADE Logo

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.

EU Logo FCC Logo

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

License

PyPI Version

The converter is available as a package on PyPI at https://pypi.org/project/sad2xs/

PyPI version

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)

Docker Build

Element Tests

Drift

Solenoid Cavity

Coordinate Transform

Reversal

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sad2xs-0.2.0.tar.gz (81.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sad2xs-0.2.0-py3-none-any.whl (92.4 kB view details)

Uploaded Python 3

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

Hashes for sad2xs-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ef337902d2fd8e23c12f40bac3f27e818535efebbb8fba489e133c1b3ae11aaa
MD5 ecb9eb23a8588bbe733056b60be53173
BLAKE2b-256 2b69fcfa0cf2362e3479d8a6b2b0da349922c6b722e5d62501979a8572de8243

See more details on using hashes here.

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

Hashes for sad2xs-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 26ca1235a0c2c54accc400c44d23474ad1013dbb8b75728dd2f36acadd329ef3
MD5 6a96649a030be84d09af350e6120d68c
BLAKE2b-256 fd5b6f0b51a5f5b96588860043a3ebd2fcab477e1bb78a97a80b1f812de6b7f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page