For many applications it is sufficient to track a single particle through the relevant electric and magnetic fields. Old codes no longer maintained by their original authors or home institutions include: BETA,3 AGS, ALIGN, COMFORT, DESIGN, DIMAD, HARMON, LEGO, LIAR, MAGIC, MARYLIE, PATRICIA, PETROS, RACETRACK, SYNCH,4 TRANSPORT, TURTLE, and UAL. Some legacy codes are maintained by commercial organizations for academic, industrial and medical accelerator facilities that continue to use those codes. TRACE 3-D and TURTLE are among the historic codes that are commercially maintained.5
Major maintained codes include:
Can simulate the effect of synchrotron radiation emission on the particles being tracked.
This is not the same as simulating the effect of synchrotron radiation emission on the particles being tracked.
The self interaction (e.g. space charge) 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 (roughly for energies where the relativistic gamma factor is less than 10 or so), 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:
At higher energies, space charge effects include Touschek scattering and coherent synchrotron radiation (CSR). Codes that handle higher energy space charge include:
When two beams collide, the electromagnetic field of one beam will then have strong effects on the other one, called beam-beam effects. So called "weak-strong" simulations model one beam (called the "strong" beam since it affects the other beam) as a fixed distribution (typically a Gaussian distribution) which interacts with the particles of the other "weak" beam. This greatly simplifies the simulation. A full "strong-strong" simulation is more complicated and takes more simulation time. Strong-strong codes include
An important class of collective effects may be summarized in terms of the beams response to an "impedance". An important job is thus the computation of this impedance for the machine. Codes for this computation include
To control the charged particle beam, appropriate electric and magnetic fields must be created. There are software packages to help in the design and understanding of the magnets, RF cavities, and other elements that create these fields. Codes include
Given the variety of modeling tasks, there is not one common data format that has developed. 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.60 Another attempt at a unified approach to accelerator codes is the UAL or Universal Accelerator Library.61 As of 2023 neither of these formats are maintained.
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.
For the interchange of particle positions and electromagnetic fields, the OpenPMD62 standard defines a format which can then be implemented with a file format like HDF5.
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,63 Shadow,64 McXTrace,65 or Spectra.66 Bmad67 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.68 OCELOT69 also includes both synchrotron radiation calculation and x-ray propagation models.
Industrial and medical accelerators represent another area of important applications. A 2013 survey estimated that there were about 27,000 industrial accelerators and another 14,000 medical accelerators world wide,70 and those numbers have continued to increase since that time.71 Codes used at those facilities vary considerably and often include a mix of traditional codes and custom codes developed for specific applications. The Advanced Orbit Code (AOC)72 developed at Ion Beam Applications is an example.
Computer Codes for Particle Accelerator Design and Analysis: A Compendium, Second Edition, Helen Stokes Deaven and Kwok Chi Dominic Chen, Los Alamos National Laboratory report number LA-UR-90-1766, 290 pages (1990). ↩
the CERN CARE/HHH website Archived December 13, 2012, at the Wayback Machine https://oraweb.cern.ch/pls/hhh/code_website.disp_allcat ↩
"user's guide" (PDF). Archived from the original (PDF) on 2018-07-04. Retrieved 2013-11-16. https://web.archive.org/web/20180704202245/http://care-hhh.web.cern.ch/care-hhh/Simulation-Codes/Optics/Literature/BETA_MANUAL.pdf ↩
libtracy at sourceforge.net http://sourceforge.net/projects/libtracy/ ↩
AccelSoft Inc. website http://www.accelsoftinc.com/ ↩
ATcollab website https://github.com/atcollab/at ↩
See https://github.com/carmignani/festa https://github.com/carmignani/festa ↩
ASTRA Homepage http://www.desy.de/~mpyflo/ ↩
BDSIM Homepage http://www.pp.rhul.ac.uk/bdsim ↩
Bmad home page http://www.lepp.cornell.edu/bmad/ ↩
"COSY". http://www.cosyinfinity.org ↩
"DYNAC". https://dynac.web.cern.ch/dynac/dynac.html ↩
ELEGANT, a Flexible SDDS Compliant Code for Accelerator Simulation software https://www.aps.anl.gov/Accelerator-Operations-Physics/Software ↩
"MAD - Methodical Accelerator Design". mad@cern.ch. Retrieved 2020-09-09. http://cern.ch/mad/ ↩
Appleby, Robert; Barlow, Roger J.; Bungau, Adriana; Fallon, James; Kruecker, Dirk; Molson, James; Rafique, Haroon; Rowan, Scott; Serluca, Maurizio; Sjøbæk, Kyrre Ness; Toader, Adina; Tygier, Sam; Walker, Nick; Wolski, Andy (2019-03-03). "Github Merlin-Collaboration/Merlin". doi:10.5281/zenodo.2598428. {{cite journal}}: Cite journal requires |journal= (help) https://github.com/Merlin-Collaboration/Merlin ↩
Appleby, Robert; Barlow, Roger J.; Bungau, Adriana; Fallon, James; Kruecker, Dirk; Molson, James; Rafique, Haroon; Rowan, Scott; Serluca, Maurizio; Sjøbæk, Kyrre Ness; Toader, Adina; Tygier, Sam; Walker, Nick; Wolski, Andy (2019). "Merlin++". doi:10.5281/zenodo.2598428. {{cite journal}}: Cite journal requires |journal= (help) /wiki/Doi_(identifier) ↩
OCELOT collaboration on GitHub https://github.com/ocelot-collab/ocelot/ ↩
OPA website https://ados.web.psi.ch/opa/ ↩
"Home · Wiki · OPAL / SRC". https://gitlab.psi.ch/OPAL/src/-/wikis/home ↩
PLACET manual https://cds.cern.ch/record/2145365?ln=en ↩
Propaga GitHub repository https://github.com/ALaDyn/Propaga ↩
"GitHub - jceepf/fpp_book". GitHub. 2019-02-06. https://github.com/jceepf/fpp_book ↩
SAD home page at kek.jp http://acc-physics.kek.jp/SAD/ ↩
SAMM, another Matlab based tracking code, at liv.ac.uk http://pcwww.liv.ac.uk/~awolski/main_links_computercodes.htm ↩
SixTrack home page at cern.ch http://sixtrack.web.cern.ch/SixTrack/ ↩
Xsuite home page at cern.ch https://xsuite.web.cern.ch/ ↩
Zgoubi home page at sourceforge.net https://sourceforge.net/projects/zgoubi/files/ ↩
Zgoubi Users' Guide https://sourceforge.net/p/zgoubi/code/HEAD/tree/trunk/guide/Zgoubi.pdf ↩
PIC solver at cst.com https://www.cst.com/solutions#SolverIds-Param%5B%5D=afcdc15d9d8a463c86193b62acc4b805 ↩
General Particle Tracer (GPT) from Pulsar Physics http://www.pulsar.nl/gpt/ ↩
"IMPACT homepage at Berkeley Lab". Archived from the original on 2015-04-16. Retrieved 2015-04-09. https://web.archive.org/web/20150416205107/http://amac.lbl.gov/~jiqiang/impact/ ↩
ImpactX: an s-based beam dynamics code including space charge effects from Berkeley Lab https://github.com/ECP-WarpX/impactx ↩
THE MULTIPARTICLE TRACKING CODES SBTRACK AND MBTRACK. R. Nagaoka, PAC '09 paper here http://accelconf.web.cern.ch/accelconf/PAC2009/papers/fr5rfp046.pdf ↩
ORBIT home page at ornl.gov http://web.ornl.gov/~jzh/JHolmes/ORBIT.html ↩
PyORBIT Collaboration https://github.com/PyORBIT-Collaboration ↩
OPAL homepage https://gitlab.psi.ch/OPAL/src/wikis/home ↩
PyHEADTAIL wiki https://github.com/PyCOMPLETE/PyHEADTAIL/wiki ↩
Synergia home page at fnal.gov https://web.fnal.gov/sites/Synergia/SitePages/Synergia%20Home.aspx ↩
TraceWin at CEA Saclay http://irfu.cea.fr/Sacm/logiciels/index3.php ↩
TRANFT user's manual, BNL--77074-2006-IR http://www.osti.gov/scitech/biblio/896444 https://www.osti.gov/scitech/biblio/896444 ↩
VSim at Tech-X https://www.txcorp.com/vsim ↩
Warp wiki http://warp.lbl.gov ↩
"GUINEA-PIG Twiki". twiki.cern.ch. Archived from the original on 2022-01-20. Retrieved 2020-07-03. https://twiki.cern.ch/twiki/bin/view/ABPComputing/Guinea-Pig ↩
"BeamBeam3D GitHub Repo"."J. Qiang, M. Furman, and R. Ryne, "A parallel particle-in-cell model for beam–beam interaction in high energy ring colliders"". J. Comp. Phys. 2004. doi:10.1016/j.jcp.2004.01.008. https://github.com/beam-beam/BeamBeam3D ↩
ABCI home page at kek.jp http://abci.kek.jp/abci.htm ↩
ACE3P at slac.stanford.gov https://portal.slac.stanford.edu/sites/ard_public/acd/Pages/Default.aspx ↩
CST Archived 2018-07-29 at the Wayback Machine, Computer Simulation Technology at cst.com https://www.cst.com/ ↩
GdfidL, Gitter drueber, fertig ist die Laube at gdfidl.de http://www.gdfidl.de/ ↩
T. Weiland, DESY ↩
COMSOL home page at comsol.com http://www.comsol.com/ ↩
CST Electromagnetic Studio at cst.com https://archive.today/20131115111937/https://www.cst.com/Applications/Category/Magnetostatics ↩
"OPERA at magnet-design-software.com". Archived from the original on 2013-12-24. Retrieved 2013-11-15. https://web.archive.org/web/20131224023436/http://magnet-design-software.com/webinar-introduction-magnet-design-opera/ ↩
Description of AML and UAP at cornell.edu http://www.lepp.cornell.edu/~dcs/aml/ ↩
See references by N. Malitsky and Talman such as this manual from 2002. http://www.bnl.gov/isd/documents/24937.pdf ↩
OpenPMD GitHub repository. https://github.com/openPMD/openPMD-standard ↩
SRW home page at esrf.eu http://www.esrf.eu/Accelerators/Groups/InsertionDevices/Software/SRW ↩
Shadow home page at esrf.eu http://www.esrf.eu/computing/scientific/raytracing/ ↩
McXTrace home page at mcxtrace.org http://www.mcxtrace.org/ ↩
"Spectra home page at riken.go.jp". Archived from the original on 2013-08-27. Retrieved 2013-11-15. https://web.archive.org/web/20130827221328/http://radiant.harima.riken.go.jp/spectra/ ↩
DAWN science platform website http://www.dawnsci.org ↩
"An Introduction to Ocelot". GitHub. 16 December 2021. https://github.com/ocelot-collab/ocelot ↩
R. W. Hamm and M. E. Hamm, Industrial Accelerators https://accelconf.web.cern.ch/IPAC2013/papers/weib201.pdf ↩
session on accelerator business opportunities at IPAC-17 https://accelconf.web.cern.ch/ipac2017/talks/tuia2_talk.pdf ↩
AOC, A Beam Dynamics Code for Medical and Industrial Accelerators https://accelconf.web.cern.ch/ipac2016/papers/tupoy002.pdf ↩