MADX
MAD-X, short for Methodical Accelerator Design, is a free, open-source software package used in accelerator physics to design, model, and optimize particle accelerators. It provides tools for defining accelerator lattices, computing beam optics, and studying beam dynamics. Users define lattice elements such as dipoles, quadrupoles, sextupoles, cavities, drifts, and markers, arrange them into sequences, and compute optical properties including beta and alpha functions, dispersion, phase advance, and chromaticity. The package supports both linear and nonlinear optics calculations, lattice matching, and optimization to satisfy design constraints. It can perform particle tracking through defined lattices, and offers interfaces for symbolic and numerical analysis to study stability and dynamic aperture. Outputs are typically text-based tables and reports, with plots generated by separate tooling as needed.
MAD-X originated in the CERN accelerator physics community as an evolution of the MAD family of programs
Usage and ecosystem: MAD-X scripts are written in its own command language; users run scripts to produce