Search arXivSearch

arXiv · 2604.18466

pyTRAIN -- a modern TRAIN implementation

Abstract

The TRAIN code, developed in 1995 as a post-processor for second-order transport maps from MAD, has been used extensively at the LEP and the LHC to study self-consistent closed orbits, tunes and chromaticities of bunch trains under the presence of beam-beam long-range (BBLR) and PACMAN effects.. This paper presents a modern re-implementation of the TRAIN concept in Python using well-known numeric libraries (numpy, scipy) and an optional link to MAD-X via cpymad. This greatly improves the usability, maintainability and extensibility of the code. New functionality includes the support for arbitrary particle types, an arbitrary number and distribution of beam-beam interaction points, and the extrapolation of the beam-beam induced closed-orbit effects to arbitrary points in the machine. The code is benchmarked against the classic TRAIN code, and simulation results are compared to observations from LHC physics operation.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Michi Hostettler, Xavier Buffat, Tobias Persson, Tatiana Pieloni, Jorg Wenninger. 2026-04-20. pyTRAIN -- a modern TRAIN implementation. https://arxiv.org/abs/2604.18466

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Approximate solution of an adapted Bethe transport equation for electron scattering in foils

A new semi-analytical model for electron scattering in foils is presented valid for thin foils and electron-beam kinetic energies up to roughly $100$ keV and from 20 keV at a dimensionless foil thickness of $20$, and higher energies for thinner foils. To perform calculations, an approximate solution is constructed by Hankel transforms of an adapted Bethe transport equation for electron scattering. The Wentzel differential cross section is used in the Bethe transport Eq. and resulting integrals are solved analytically or approximated. These approximate solutions of the transport Eq.'s were compared to the Goudsmit-Saunderson solutions in gold, for thin samples with dimensionless thicknesses $λ=5,10,20$. We also compare to the Kawrakow \cite{Kawr} model, which uses the small angle approximation. We show that in the regime of $20$ to $100$ keV beam energies, our model performs better than Kawrakow's model and this is opposite above about 100 keV. Exactly, some angularly distributed beams and the influence of energy loss of the beam can be simulated with our model.

physics.acc-ph

Reconstruction of Beam Transverse Parameters in the Fermilab Side-Coupled Linac Using a Normalized Coordinate Framework

Quadrupole scans are a commonly used tool for beam second moment reconstruction. Limitations in the strength of the magnets and layout of the beamline elements frequently preclude simple quadrupole-drift-detector scans from collecting sufficient data for reconstruction. Using a normalized coordinate framework, we characterize the prerequisites for a robust simple quadrupole scan and expand these prerequisites to reconstruction from more complex optics. The beam second moments are investigated at two locations in the Fermilab Side-Coupled Linac under simple and complex optics, using this framework to maximize information gained from wire scanner profile measurements.

physics.acc-ph

Impedance of multilayer cylindrical structures with a material-filled beam region

Beam-coupling impedances in material media are relevant for ionization-cooling channels of a future muon collider, where the beam propagates in matter rather than vacuum. We extend the cylindrical field-matching formalism for multilayer structures to the case of a material-filled beam region surrounded by external layers with arbitrary electromagnetic properties. Relative to the vacuum formulation, the usual factor $1/γ^2$ is replaced by the material-dependent factor $F=1/\varepsilon_1-μ_1β^2$, and the radial propagation constant is modified accordingly. Analytical expressions are obtained for the monopolar longitudinal and dipolar transverse impedances, with the surrounding structure encoded through reflection coefficients determined by field matching. The formalism reduces to the known vacuum and perfectly conducting limits in the appropriate cases. Representative calculations are presented for absorber-relevant configurations, illustrating the dependence on the material properties of both the beam region and the surrounding layers. In particular, a finite beam-region conductivity can generate a real impedance component and reverse the sign of the imaginary space-charge impedance, while sufficiently high permittivity can give rise to resonant structures associated with oscillatory radial fields. The effect of finite-conductivity surroundings is also examined, showing the approach towards the perfectly conducting limit as the external conductivity is increased. The applicability of the infinite-length approximation is also discussed by comparison with finite-length mode-matching results.

physics.acc-ph