Skip to content

WIP: multi-bunch beam-beam lens & twiss#817

Open
michi42 wants to merge 26 commits into
xsuite:mainfrom
michi42:xtrain
Open

WIP: multi-bunch beam-beam lens & twiss#817
michi42 wants to merge 26 commits into
xsuite:mainfrom
michi42:xtrain

Conversation

@michi42

@michi42 michi42 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

This adds a multi-bunch capable beam-beam (2D) lens which identifies bunches by their zeta offset, allowing to treat the multi-bunch case efficiently with a single line.

It also adds a multi-bunch twiss function, which (for 4d) does the CO search and R matrix probing for N bunches by tracking 9 * N probe particles (which can run fully parallel) instead of running a 9 particle tracking N times.

This allows to iteratively find the bunch-by-bunch closed orbits and twiss parameters under the presence of beam-beam long range effects (the "TRAIN problem") and effectively integrates the functionality of pyTRAIN into xsuite. Examples are given in examples/lhc_multibunch_bb. A stand-alone benchmark test against pytrain outputs is in tests/test_lhc_multibunch_train.py

Note the change consists of 2 parts:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant