U.S. Particle Accelerator School
U.S. Particle Accelerator School
Education in Beam Physics and Accelerator Technology

Code Downloads


BeamOptics

This program lets the user design a beam transport line or a storage ring. The program calculates single particle trajectories, betatron functions, periodic betatron/dispersion functions (if there is a solution). After insertion of sextupole magnets it is possible to track particle trajectories, rf-parameters are calculated as well as beam lifetimes. Insertion of vacuum pumps allows the user to calculate the pressure profile. Ample parameter lists are available for cut and paste into a word processing program. Many graphs are available for particle trajectories, betatron functions, rf-phase space and tracking. All graphs can be directly printed or saved in *.wmf format for inclusion into a word processor.

BeamOptics download (.zip)


Elegant

Guide to Installing SDDS and OAG Simulation Software on Windows Computers (link)

A message about installing on Windows...

A message about installing on Mac...


Jupyter server

RadiaSoft’s Jupyter server provides direct access to all of the particle accelerator codes supported by Sirepo and more. These additional codes include MAD-X, GENESIS (for FELs), Radia (for magnet design), and standard machine learning tools. All codes are preinstalled and can be executed from a browser-based terminal window or from Jupyter notebooks.


Methodical Accelerator Design (MAD/MAD-X)

"MAD is a project with a long history, aiming to be at the forefront of computational physics in the field of particle accelerator design and simulation. The MAD scripting language is de facto the standard to describe particle accelerators, simulate beam dynamics and optimize beam optics."

"MAD-X is the successor of MAD-8 and was first released in June, 2002. It offers most of the MAD-8 functionalities, with some additions, corrections, and extensions. The most important of these extensions is the Polymorphic Tracking Code (PTC) of E. Forest."

MAD-X for Windows (link)

MAD home page (link)


OptiMX: A Program for Accelerator Optics

OptiMX is a GUI-oriented program whose principal aim is to be an easy to use yet comprehensive accelerator optics design and analysis tool. OptiMX is maintained under MS Windows. Binary installation packages are available under Windows and Linux.  Support is limited under Mac OSX.

Windows

Linux: (older binary) To install,  create a directory of your choice  and untar the files in the archive.
Make sure that the file with extension *.AppImage  is executable. 

Alternatively, the Windows version of OptiMX can be installed under wine, a windows emulator
available as a package in most popular Linux distributions.

MacOS: Users have reported good success installing optimx under windows in a virtual machine.
You can install a free win10 virtual machine by following the instructions below

https://towardsdatascience.com/how-to-install-a-free-windows-virtual-machine-on-your-mac-bf7cbc05888e?gi=67abcb89d490

and for the newer M1(ARM)  Macs

https://database.guide/how-to-install-windows-10-on-an-m1-mac-for-free/


Poisson/Superfish

Poisson Superfish is a collection of programs for calculating static magnetic and electric fields and radio-frequency electromagnetic fields in either 2-D Cartesian coordinates or axially symmetric cylindrical coordinates. The programs generate a triangular mesh fitted to the boundaries of different materials in the problem geometry. The package includes plotting programs for viewing the solution, postprocessors for interpolating fields along problem boundaries and on lines, arcs, grids, and user-supplied curves, a comprehensive manual, and numerous examples.

Users are encouraged to register with the Los Alamos Accelerator Code Group (LAACG) to receive email notification of code updates.

Poisson Superfish download (link)

User's Guide for the POISSON/SUPERFISH Group of Codes (pdf)


Sirepo

Sirepo is a scientific gateway for community codes. Built by RadiaSoft, it provides online GUIs for immediate access to complex simulations; no installation required. Every Sirepo app runs on your browser, provides interactive visual outputs, and lets you collaborate instantly by sharing a URL.

Sirepo supports the following particle accelerator codes:
elegant: For electron linacs, synchrotrons, and much more. (About elegant)
Synergia: For single or multiple bunch rings with 3D PIC. (About Synergia)
Zgoubi: For electron and ion spin dynamics in rings. (About Zgoubi)
OPAL: For linacs and electron guns with 3D space charge. (About OPAL)
JSPEC: For electron cooling and intrabeam scattering (IBS). (About JSPEC)
WarpPBA: For electromagnetic plasma wakefield simulations. (About WARP)

Sirepo also provides two state-of-the art codes for X-ray optics:
SRW: For synchrotron radiation and coherent X-ray beamlines. (About SRW)
SHADOW: For designing incoherent X-ray beamline. (About SHADOW)

Sirepo leverages the electrostatic PIC capabilities of WARP:
WarpVND: For designing vacuum nanoelectronic devices.

Other codes are added regularly. For the most up-to-date list, visit sirepo.com



Synchrotron Radiation

"SynRad" allows the calculation of synchrotron radiation parameters including wiggler and undulator radiation.

SynRad download (.zip) - Unzip and replace/use "Mainsr.exe".

You will need the Borland Database Engine (BDE) installed on your PC as well.

Borland DataBase Engine download (link)

Synchrotron Radiation Workshop (SRW) allows the calculation of synchrotron radiation parameters including wiggler and undulator radiation. It also supports wavefront propagation simulations with Fourier optics, including special support for X-ray optics.


Warp

Warp is an open source PIC code and is part of the Berkeley Lab Accelerator Simulation Toolkit.