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

Code Downloads


AJDISK

AJDISK is a 1D klystron design code developed by the Stanford Linear Accelerator (SLAC) National Laboratory.

AJDISK x64 2018-06-27 download (.zip)

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...


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/


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: Electron linacs, synchrotrons, and much more. (About elegant)
• Synergia: Single or multiple bunch rings with 3D PIC. (About Synergia)
• Zgoubi: Electron and ion spin dynamics in rings. (About Zgoubi)
• OPAL: Linacs and electron guns with 3D space charge. (About OPAL)
• JSPEC: Electron cooling and intrabeam scattering (IBS). (About JSPEC)
• WarpPBA: Electromagnetic plasma wakefield simulations. (About WARP)
•Genesis 1.3: Free electron laser simulations. (About Genesis 1.3)
•MAD-X: Synchrotrons, linacs, beamlines, and much more. (About Mad-X)

Sirepo also provides two state-of-the art codes for X-ray optics:
• SRW: Synchrotron radiation and coherent X-ray beamlines. (About SRW)
• SHADOW: Ray-tracing for X-ray beamline. (About SHADOW)

Sirepo leverages the electrostatic PIC capabilities of WARP:
WarpVND: Vacuum nanoelectronic devices.

Sirepo also hosts its own Jupyter server
Jupyter: Run any Sirepo-supported code from the command line or from a Jupyter notebook.

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.