Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atreduce: check entrance and exit angles in bends #604

Merged
merged 1 commit into from
Jun 3, 2023
Merged

Conversation

lfarv
Copy link
Contributor

@lfarv lfarv commented May 23, 2023

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 lfarv added Matlab For Matlab/Octave AT code bug fix labels May 23, 2023
@lfarv
Copy link
Contributor Author

lfarv commented May 24, 2023

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

@lfarv
Copy link
Contributor Author

lfarv commented May 31, 2023

@simoneliuzzo : does this answer your question ?

@lfarv lfarv merged commit b040a20 into master Jun 3, 2023
31 checks passed
@lfarv lfarv deleted the atreduce branch June 3, 2023 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix Matlab For Matlab/Octave AT code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants