Accelerator, radiation and x-ray optics simulation framework
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
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
For requirements and installation instructions, see the official guide: 👉 Installation & Setup
To explore tutorials, visit: 👉 Tutorial Overview 👉 Student-Friendly Introduction
Ocelot's core functionality is organized into key modules:
- 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 - Beam models and particle arrays
Beam,Twiss- Beam envelopes and Twiss parametersParticleArray,Particle- Individual particle trackinggenerate_parray(),ellipse_from_twiss()- Beam generation utilities
- Tracking - Particle and beam tracking algorithms
- Optics - Optics calculations and transfer maps
MagneticLattice- Core lattice object for simulationsNavigator- Lattice navigation utilities
- Space Charge - Space charge effects
- CSR - Coherent synchrotron radiation
- Wake Fields - Longitudinal and transverse wake effects
- Physics Processes - Extensible framework for custom effects
- Chromaticity Compensation
- Beam Matching - Automated optics matching
- Beam Parameter Calculations
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.