Repository navigation
Treat BendingAngle attribute for simulator - #518
Conversation
|
It looks good to me from a developer's perspective, though I'd rather let @JeanLucPons and @GamelinAl do the review. |
In PETRAIII (and many other accelerator facilities), all dipoles are normal conducting magnets and connected in series. In In AT the integrated normalized strength of a (normal) dipole is This is also a pre-requisite to have trim coils on the dipole, that act as horizontal correctors. In that case, with At the moment, a
They still function properly as dipoles since HCorrectors are actually dipoles.
To my knowledge, BendingAngleV is not something supported in the standard integrators of AT. XSuite is also not supporting vertical bending. In both codes itt has to be modeled by taking into account misalignment properties that tilt the frame. |
Yes, I was thinking of an alias too. It can be the same implementation underneath. |
4ceb938 to
26c70eb
Compare
The base branch was changed.
|
We can merge this now @gubaidulinvadim @gupichon-soleil (need another approval because I rebased) |

Include BendingAngle when reading PolynomB[0] strengths and subtract it before writing the coefficient.
Strength returned by a magnet that has BendingAngle in its AT element is:
K0L = BendingAngle + sign * PolynomB[0] * length(Only when accessing PolynomB[0])instead of
K0L = sign * PolynomB[0] * lengthEquivalently when changing strength, PolynomB[0] is modified by subtracting the BendingAngle contribution.
With this,
HCorrectorpractically becomes a "Dipole". (Might as well rename it?)It partly solves #136. The dependence on Bρ mentioned in #136 is not addressed (required for ramped machines) but this dependence is an issue for all magnets and not just the dipoles.
P.S. I am comparing it to branch 461-serializedmagnets for now as I based on it since it also affects serialized magnets. We should merge it after #481 is merged.