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

Make track/twiss able to treat a thick solenoid exactly #1129

Merged

Conversation

jsberg-bnl
Copy link

For twiss, uses the exact flag to twiss to choose between the original algorithm and the exact calculation. Switch track to using the exact calculation. For track, the original time of flight computation is significantly improved for the case in test-thick-solenoid (compare the thin and thick results). twiss does everything through second order. Created a new test case comparing to ptc_twiss results. Radiation calculations should be nearly unchanged (only differences should be related to using the exactly computed longitudinal momentum), I did not attempt to add radiation in the solenoid body.

J. Scott Berg added 6 commits July 15, 2022 16:42
Used only when the EXACT flag is set for TWISS
Probably not complete for a nonzero XTILT (undocumented parameter)
No attempt to make xtilt exact; would be possible with some refactoring
Updated original test-thick-solenoid test with new results
Note original time calculation for the thick case was particularly bad
Updated test-twiss-17
@jsberg-bnl
Copy link
Author

Also, I don't change the xtilt behavior, the entrance/exit patches are still approximate.

@jsberg-bnl
Copy link
Author

And I make no attempt to fix the two solenoid-related bug reports I've recently submitted (which I won't reference, since Github will then erroneously claim that this pull request fixes them...)

@rdemaria rdemaria merged commit 602c8f7 into MethodicalAcceleratorDesign:master Aug 15, 2022
@rdemaria rdemaria mentioned this pull request Aug 12, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants