atcollab / at

Accelerator Toolbox
Apache License 2.0
48 stars 31 forks source link

Rotation of dipoles #781

Open TeresiaOlsson opened 2 weeks ago

TeresiaOlsson commented 2 weeks ago

Hi,

We have done measurements of the orbit distortion and dispersion when realigning a dipole magnet and I wanted to compare to what our model in pyAT predicts. I used the rotate_elem function (including the changes that have been done since the last release), but the results made no sense. Then I discovered this very nice paper explaining that the reason for it might be because applying rotations to a dipole also changes the reference system.

https://accelconf.web.cern.ch/ipac2017/papers/wepik061.pdf

Is there already a atsettiltdipole function in pyAT as in matlab AT or it has to be implemented? If I need to implement it, is there any reason to not add it directly to the rotate_elem function instead of having a separate function for dipoles?