Merlin++, a flexible and feature-rich accelerator physics and particle tracking library

Robert B. Appleby, Roger J. Barlow, Dirk Krücker, James Molson, Scott Rowan, Sam Tygier, Haroon Rafique, Nicholas Walker, Andrzej Wolski

Research output: Contribution to journalArticlepeer-review

2 Citations (Scopus)

Abstract

Merlin++ is a C++ charged-particle tracking library developed for the simulation and analysis of complex beam dynamics within high energy particle accelerators. Accurate simulation and analysis of particle dynamics is an essential part of the design of new particle accelerators, and for the optimization of existing ones. Merlin++ is a feature-full library with focus on long-term tracking studies. A user may simulate distributions of protons or electrons in either single particle or sliced macro-particle bunches. The tracking code includes both straight and curvilinear coordinate systems allowing for the simulation of either linear or circular accelerator lattice designs, and uses a fast and accurate explicit symplectic integrator. Physics processes for common design studies have been implemented, including RF cavity acceleration, synchrotron radiation damping, on-line physical aperture checks and collimation, proton scattering, wakefield simulation, and spin-tracking. Merlin++ was written using C++ object orientated design practices and has been optimized for speed using multicore processors. This article presents an account of the program, including its functionality and guidance for use. Program summary: Program Title: Merlin++ CPC Library link to program files: https://doi.org/10.17632/4x4nsbhz37.1 Developer's repository link: 10.5281/zenodo.3700155 Licensing provisions: GPLv2+ Programming language: C++ Nature of problem: Complexity of particle accelerators beam dynamics over extensive tracking distances. Solution method: Long-term particle accelerator and tracking simulations utilizing explicit symplectic integrators. Additional comments including restrictions and unusual features: For further information see github.com/Merlin-Collaboration

Original languageEnglish
Article number108204
Number of pages15
JournalComputer Physics Communications
Volume271
Early online date22 Oct 2021
DOIs
Publication statusPublished - 1 Feb 2022

Fingerprint

Dive into the research topics of 'Merlin++, a flexible and feature-rich accelerator physics and particle tracking library'. Together they form a unique fingerprint.
  • Merlin++

    Appleby, R. B., Barlow, R., Bungau, A., Fallon, J., Krücker, D., Molson, J., Rafique, H., Rowan, S., Serluca, M., Sjøbæk, K. N., Toader, A., Tygier, S., Walker, N. & Wolski, A., 6 Mar 2020

    Research output: Non-textual formSoftware

    Open Access

Cite this