Accelerator, radiation and x-ray optics simulation framework
Ocelot
Ocelot is an open-source multiphysics simulation toolkit for accelerator physics. It is designed to model Free Electron Lasers (FELs), storage rings, and transport lines using a modular and scriptable Python interface.
- Website: https://www.ocelot-collab.com
- Documentation: https://www.ocelot-collab.com/docs/docu/intro
- Tutorials: https://www.ocelot-collab.com/docs/tutorial/intro
- Source code: https://github.com/ocelot-collab/ocelot
- Bug reports: https://github.com/ocelot-collab/ocelot/issues
- License: GPL-3.0 license
Features
Ocelot provides:
- A modular framework for beam dynamics simulations (tracking, optics, matching)
- Physics processes including:
- Space charge
- Coherent synchrotron radiation (CSR)
- Wakefields
- and many more
- A framework for FEL-related studies and synchrotron calculation
- Jupyter-based interactive tutorials for education and development
Getting Started
For requirements and installation instructions, see the official guide: 👉 Installation & Setup
To explore tutorials, visit: 👉 Tutorial Overview 👉 Student-Friendly Introduction
Core Modules & API Reference
Ocelot's core functionality is organized into key modules:
📘 Lattice Elements & Design
- Elements - Lattice element definitions (dipoles, quadrupoles, cavities, etc.)
OpticElement,Element,Magnet- Base classes with inheritance hierarchyDrift,Bend,RBend,SBend,Quadrupole,Sextupole,OctupoleCavity,TDCavity,Undulator,Marker,Monitor,Aperture
🔬 Beam Physics & Tracking
- Beam - Beam models and particle arrays
Beam,Twiss- Beam envelopes and Twiss parametersParticleArray,Particle- Individual particle trackinggenerate_parray(),ellipse_from_twiss()- Beam generation utilities
🎯 Tracking & Optics
- Tracking - Particle and beam tracking algorithms
- Optics - Optics calculations and transfer maps
MagneticLattice- Core lattice object for simulationsNavigator- Lattice navigation utilities
⚡ Physics Processes
- Space Charge - Space charge effects
- CSR - Coherent synchrotron radiation
- Wake Fields - Longitudinal and transverse wake effects
- Physics Processes - Extensible framework for custom effects
🔧 Advanced Features
- Chromaticity Compensation
- Beam Matching - Automated optics matching
- Beam Parameter Calculations
We welcome feedback, contributions, and new ideas
Disclaimer: The OCELOT code comes with absolutely NO warranty. The authors of the OCELOT do not take any responsibility for any damage to equipments or personnel injury that may result from the use of the code.
Metadata
Release files for ocelot-collab 26.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ocelot_collab-26.6.1.tar.gz | 1.4 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ocelot_collab-26.6.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.9 MB
Release files / ocelot_collab-26.6.1.tar.gz
| Download URL | ocelot_collab-26.6.1.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55f5470000d23af347a616e34b5847fedb3dc764eb2141eaba9a0fa048ebb1a4
|
|
BLAKE2b-256 checksum How to use checksums |
ea0ef5aa5e4af3f35a46ec0aa0ae5181559d43fbd3cc8a7a9265f2b225442db1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.15
|
Release files / ocelot_collab-26.6.1-py3-none-any.whl
| Download URL | ocelot_collab-26.6.1-py3-none-any.whl |
|---|---|
| Size | 1.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44eebd8180b840e6e9194ad3e9f33f856068288dd94bfb2b837709815adb2214
|
|
BLAKE2b-256 checksum How to use checksums |
46a8fbb02b338a13410decfe2c38b32d388ede3a2e59e7d3d5cb18ad13a7557f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.15
|
Security for ocelot-collab 26.6.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.