Jump to content

Accelerator physics codes

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 46.22.86.3 (talk) at 10:30, 28 December 2020 (Added 'ref name="Zgoubi Users' Guide"'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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 [1] 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 [2]

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,[3] AGS, ALIGN, COMFORT, DESIGN, DIMAD, GUINEA-PIG, HARMON, LEGO, LIAR, MAGIC, MARYLIE, PATRICIA, PETROS, RACETRACK, SYNCH,[4] TRANSPORT, TURTLE, and UAL. Maintained codes include:

Single Particle Dynamics Spin Tracking Taylor Maps Collective Effects Synchrotron Radiation Tracking Wakefields Extensible Notes
Accelerator Toolbox (AT),[5] Yes Yes[6] No Yes No No Yes
ASTRA[7] Yes No No Yes No Yes No For space-charge effects evaluation
BDSIM[8] Yes No No No No No Yes For particle-matter interaction studies.
Bmad (contains PTC) [9] Yes Yes Yes Yes Yes Yes Yes Reproduces PTC's unique beam line structures. Also simulates X-rays.
COSY INFINITY [10] Yes Yes Yes No No No Yes
Elegant [11] Yes No No Yes No Yes No
MAD8 and MAD-X (includes PTC) [12] Yes No Yes No Yes No No
MAD-NG [12] Yes No Yes No Yes No Yes Very extensible, embeds LuaJIT
MERLIN++ [13][14] Yes Yes No No No Yes Yes Other: beam-matter interactions, sliced-macroparticle tracking
OCELOT [15] Yes No No Yes Yes Yes Yes
OPA [16] Yes No No No No No No
OPAL[17] Yes No Yes Yes No Yes Yes Open source, runs on the laptop and on x 10k cores.
PLACET[18] Yes No No Yes Yes Yes Yes Simulates a LINAC including wakefields.
Propaga[19] Yes No No No No No Yes
PTC[20] Yes Yes Yes No No No Yes
SAD [21] Yes No No No Yes Yes No
SAMM [22] Yes Yes No No No No No
SixTrack [23] Yes No Yes No No No No Can run on BOINC
Zgoubi [24] [25] Yes Yes No No Yes No Yes Open source.

Columns

Spin Tracking
Tracking of a particle's spin.
Taylor Maps
Construction of Taylor series maps to high order that can be used for simulating particle motion and also can be used for such things as extracting single particle resonance strengths.
Collective effects
The interactions between the particles in the beam can have important effects on the behavior, control and dynamics. Collective effects take different forms from Intrabeam Scattering (IBS) which is a direct particle-particle interaction to wakefields which are mediated by the vacuum chamber wall of the machine the particles are traveling in. In general, the effect of direct particle-particle interactions is less with higher energy particle beams. At very low energies, space charge has a large effect on a particle beam and thus becomes hard to calculate. The above simulation codes do not handle low energy space charge effects. See below for a list of programs that can handle low energy space charge forces.
Synchrotron radiation tracking
Ability to track the synchrotron radiation (mainly X-rays) produced by the acceleration of charged particles.
Wakefields
The electro-magnetic interaction between the beam and the vacuum chamber wall enclosing the beam are known as wakefields. Wakefields produce forces that affect the trajectory of the particles of the beam and can potentially destabilize the trajectories.
Extensible
Object oriented coding to make it relatively easy to extend the capabilities.

Space Charge Codes

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:

  • Bmad
  • ELEGANT
  • MaryLie
  • SAD

Beam-beam effects codes

When two beams collide, the electro-magnetic field of one beam will then have strong effects on the other one, called beam-beam effects. Codes for this computation include

Impedance computation codes

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

Step-wise ray-tracing codes; ability to ray-trace in electrostatic and/or magnetic field maps

  • Zgoubi

Magnet and other hardware-modeling codes

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

  • ACE3P [41]
  • COMSOL Multiphysics [45]
  • CST Studio Suite [46]
  • OPERA [47]
  • VSim [37]
  • Zgoubi. Creates electric and magnetic fields from built-in analytical models. Ability to deliver 1D, 2D & 3D field maps from these models. [24]

Lattice file format and data interchange issues

Given the variety of modelling 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.[48] Another attempt at a unified approach to accelerator codes is the UAL or Universal Accelerator Library.[49]

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,[50] Shadow,[51] McXTrace,[52] or Spectra.[53] Bmad[9] 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.[54] OCELOT [55] also includes both synchrotron radiation calculation and x-ray propagation models.

See also

References

  1. ^ 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).
  2. ^ the CERN CARE/HHH website Archived December 13, 2012, at the Wayback Machine
  3. ^ user's guide
  4. ^ libtracy at sourceforge.net
  5. ^ ATcollab website
  6. ^ See https://github.com/carmignani/festa
  7. ^ a b ASTRA Homepage
  8. ^ BDSIM Homepage
  9. ^ a b Bmad home page at cornell.edu
  10. ^ "COSY".
  11. ^ ELEGANT, a Flexible SDDS Compliant Code for Accelerator Simulation software
  12. ^ a b "MAD - Methodical Accelerator Design". mad@cern.ch. Retrieved 2020-09-09.{{cite web}}: CS1 maint: url-status (link)
  13. ^ "Github Merlin-Collaboration/Merlin". 2019-03-03.
  14. ^ 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)
  15. ^ OCELOT collaboration on GitHub
  16. ^ OPA website
  17. ^ [1]
  18. ^ Propaga GitHub repository
  19. ^ Propaga GitHub repository
  20. ^ "GitHub - jceepf/fpp_book". 2019-02-06.
  21. ^ SAD home page at kek.jp
  22. ^ SAMM, another Matlab based tracking code, at liv.ac.uk
  23. ^ SixTrack home page at cern.ch
  24. ^ a b Zgoubi home page at sourceforge.net
  25. ^ Zgoubi Users' Guide
  26. ^ PIC solver at cst.com
  27. ^ General Particle Tracer (GPT) from Pulsar Physics
  28. ^ "IMPACT homepage at Berkeley Lab". Archived from the original on 2015-04-16. Retrieved 2015-04-09.
  29. ^ THE MULTIPARTICLE TRACKING CODES SBTRACK AND MBTRACK. R. Nagaoka, PAC '09 paper here
  30. ^ ORBIT home page at ornl.gov
  31. ^ PyORBIT Collaboration
  32. ^ OPAL homepage
  33. ^ PyHEADTAIL wiki
  34. ^ Synergia home page at fnal.gov
  35. ^ TraceWin at CEA Saclay
  36. ^ TRANFT user's manual, BNL--77074-2006-IR http://www.osti.gov/scitech/biblio/896444
  37. ^ a b c VSim at Tech-X
  38. ^ Warp wiki
  39. ^ "GUINEA-PIG Twiki". twiki.cern.ch. Retrieved 2020-07-03.{{cite web}}: CS1 maint: url-status (link)
  40. ^ ABCI home page at kek.jp
  41. ^ a b ACE3P at slac.stanford.gov
  42. ^ CST, Computer Simulation Technology at cst.com
  43. ^ GdfidL, Gitter drueber, fertig ist die Laube at gdfidl.de
  44. ^ T. Weiland, DESY
  45. ^ COMSOL home page at comsol.com
  46. ^ CST Electromagnetic Studio at cst.com
  47. ^ "OPERA at magnet-design-software.com". Archived from the original on 2013-12-24. Retrieved 2013-11-15.
  48. ^ Description of AML and UAP at cornell.edu
  49. ^ See references by N. Malitsky and Talman such as this manual from 2002.
  50. ^ SRW home page at esrf.eu
  51. ^ Shadow home page at esrf.eu
  52. ^ McXTrace home page at mcxtrace.org
  53. ^ "Spectra home page at riken.go.jp". Archived from the original on 2013-08-27. Retrieved 2013-11-15.
  54. ^ DAWN science platform website
  55. ^ [2]