Slipstream: nonlinear beam dynamics in PyTorch
Abstract
Slipstream is a PyTorch package for nonlinear beam dynamics in storage rings, linacs and photoinjectors. It provides CPU and GPU particle tracking, field-map injector models with space charge, and automatic differentiation along supported tracking paths. Comparisons with elegant, ASTRA, GPT and other codes assess accuracy and computational cost for nonlinear ring tracking, optics matching and photoinjectors. Ring tunes agree with elegant to . For the tested ring workloads with tens of thousands of particles, GPU tracking in float32 is hundreds of times faster than the single-threaded CPU implementations compared here. Automatic differentiation reduces the time for 24-parameter optics matching by an order of magnitude compared to finite differences. Using a high-brightness photo-injector as an example, final horizontal emittances agree with ASTRA to about 1% at 20 and 100pC and differ by 4% at 250pC. For macroparticles, Slipstream's faster default settings take 14s on an RTX 3050 GPU and give emittances within 2% of that of ASTRA. Additional tests examine coherent synchrotron radiation, dynamic aperture and resistive-wall impedance. The package was developed predominantly by AI coding assistants under human direction. These comparisons identify where its models, GPU execution and derivatives are useful for repeated simulations in scans, fits and optimisation.
Create a lesson
Metadata
- Comments
- 26 pages, 14 figures
Related papers
Longitudinal beam dynamics II. Lecture 2: intensity effects and beam instabilities
Shared title terminologyphysics.acc-phElena Shaposhnikova
Longitudinal beam dynamics II. Lecture 1: single and double rf systems
Shared title terminologyphysics.acc-phElena Shaposhnikova
Design and study of the electron beam-line at the European XFEL (ELBEX) for strong field quantum electro-dynamics
Shared title terminologyphysics.acc-phMarin Deniaud
Impact of Rapid Acceleration on Beam Dynamics in the Rapid-Cycling Synchrotrons of a Muon Collider
Shared title terminologyphysics.acc-phLisa Soubirou, Antoine Chancé
Physics-constrained graph closures and working-point conditioning for a fast surrogate of linac beam dynamics
Shared title terminologyphysics.acc-phBowen Zhang, Dazhang Huang, Nengyuan Zhang et al.
Learn the Dynamics, Enforce the Physics: Generative Latent Operators for High-Dimensional Beam Evolution
Shared title terminologyphysics.acc-phHaohan Zou, Alexander Scheinker, Yuanyuan Shi