Accelerator physics codes
A charged particle accelerator is a complex machine that takes elementary charged particles and accelerates them to very high energies. Accelerator physics is a field of physics encompassing all the aspects required to design and operate the equipment and to understand the resulting dynamics of the charged particles. There are software packages associated with each such domain. There are a large number of such codes. The 1990 edition of the Los Alamos Accelerator Code Group's compendium provides summaries of more than 200 codes. Certain of those codes are still in use today although many are obsolete. Another index of existing and historical accelerator simulation codes is located at
Single particle dynamics codes
For many applications it is sufficient to track a single particle through the relevant electric and magnetic fields.Old unmaintained codes include: BETA, AGS, ALIGN, COMFORT, DESIGN, DIMAD, GUINEA-PIG, HARMON, LEGO, LIAR, MAGIC, MARYLIE, PATRICIA, PETROS, RACETRACK, SYNCH, TRACY and variants, TRANSPORT, TURTLE, and UAL.
Maintained codes include:
Single Particle Dynamics | Spin Tracking | Taylor Maps | Collective Effects | Synchrotron Radiation Tracking | Wakefields | Extensible | Notes | |
Accelerator Toolbox, | ||||||||
ASTRA | For space-charge effects evaluation | |||||||
BDSIM | For particle-matter interaction studies. | |||||||
Bmad | Reproduces PTC's unique beam line structures | |||||||
COSY INFINITY | ||||||||
Elegant | ||||||||
MAD and MAD-X | ||||||||
MERLIN++ | Other: beam-matter interactions, sliced-macroparticle tracking | |||||||
OCELOT | ||||||||
OPA | ||||||||
OPAL | Open source, runs on the laptop and on x 10k cores | |||||||
PLACET | ||||||||
Propaga | ||||||||
PTC | ||||||||
SAD | ||||||||
SAMM | ||||||||
SixTrack | Can run on BOINC | |||||||
Zgoubi |
Columns
;Spin Tracking;Taylor Maps
;Collective effects
;Synchrotron radiation tracking
;Wakefields
;Extensible
Space Charge Codes
The self interaction of the charged particle beam can cause growth of the beam, such as with bunch lengthening, or intrabeam scattering. Additionally, space charge effects may cause instabilities and associated beam loss. Typically, at relatively low energies, the Poisson equation is solved at intervals during the tracking using Particle-in-cell algorithms. Space charge effects lessen at higher energies so at higher energies the space charge effects may be modeled using simpler algorithms that are computationally much faster than the algorithms used at lower energies.Codes that handle low energy space charge effects include:
- ASTRA
- Bmad
- CST Studio Suite
- GPT
- IMPACT
- mbtrack
- ORBIT, PyORBIT
- OPAL
- PyHEADTAIL
- Synergia
- TraceWin
- Tranft
- VSim
- Warp
- Bmad
- ELEGANT
- MaryLie
- SAD
Beam-beam effects codes
- GUINEA-PIG
Impedance computation codes
- ABCI
- ACE3P
- CST Studio Suite
- GdfidL
- TBCI
- VSim
Magnet and other hardware-modeling codes
- ACE3P
- COMSOL Multiphysics
- CST Studio Suite
- OPERA
- VSim
Lattice file format and data interchange issues
For describing the layout of an accelerator and the corresponding elements, one uses a so-called "lattice file".
There have been numerous attempts at unifying the lattice file formats used in different codes. One unification attempt is the Accelerator Markup Language, and the Universal Accelerator Parser. Another attempt at a unified approach to accelerator codes is the UAL or Universal Accelerator Library.
The file formats used in
MAD may be the most common, with translation routines available to convert to an input form needed for a different code.
Associated with the Elegant code is a data format called SDDS, with an associated suite of tools. If one uses a Matlab-based code, such as Accelerator Toolbox, one has available all the tools within Matlab.
Codes in applications of particle accelerators
There are many applications of particle accelerators. For example, two important applications are elementary particle physics and synchrotron radiation production. When performing a modeling task for any accelerator operation, the results of charged particle beam dynamics simulations must feed into the associated application. Thus, for a full simulation, one must include the codes in associated applications. For particle physics, the simulation may be continued in a detector with a code such as Geant4.For a synchrotron radiation facility, for example, the electron beam produces an x-ray beam that then travels down a beamline before reaching the experiment. Thus, the electron beam modeling software must interface with the x-ray optics modelling software such as SRW, Shadow, McXTrace, or Spectra. Bmad can model both X-rays and charged particle beams. The x-rays are used in an experiment which may be modeled and analyzed with various software, such as the DAWN science platform. OCELOT also includes both synchrotron radiation calculation and x-ray propagation models.