atcollab / at

Accelerator Toolbox
Apache License 2.0
48 stars 31 forks source link

atreduce: check entrance and exit angles in bends #604

Closed lfarv closed 1 year ago

lfarv commented 1 year ago

This fixes a problem reported in #594. A check of entrance and exit angles of adjacent bending magnets is added:

abs(ExitAngle(bend1)+EntranceAngle(bend2)) < 1.e-6

This is always true for realistic magnets, otherwise the poles would overlap. However AT also allows non-realistic magnets, where "reducing" gave wrong results.

lfarv commented 1 year ago

I'd still like to have @simoneliuzzo's advice!

lfarv commented 1 year ago

@simoneliuzzo : does this answer your question ?