bmad-sim / bmad-ecosystem

Bmad simulation ecosystem for simulating high energy storage rings.
https://www.classe.cornell.edu/bmad/
12 stars 15 forks source link

Add spin kick to phase trombones #1134

Open mattsignorelli opened 2 months ago

mattsignorelli commented 2 months ago

Phase trombones currently do nothing to the spin. This can be an issue when spin tracking, where for every x'' there should be an equivalent (1+agamma)x'' (assuming fully perpendicular fields to first order)

DavidSagan commented 2 months ago

@mattsignorelli Is x" something the user sets?

mattsignorelli commented 2 months ago

No, that comes from the transfer matrix

We should meet to discuss the details because we will have to make some assumptions about the spin/orbital dynamics. we have to basically get the spin dynamics from a generic orbital transfer matrix

DavidSagan commented 2 months ago

@mattsignorelli I have implemented spin tracking with can be turned on by setting

mm: match, spin_tracking_model = transverse_fields, ...

Please check one point to verify that everything is OK.