Skip to content

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

Merged
rdemaria merged 7 commits into
MethodicalAcceleratorDesign:masterfrom
jsberg-bnl:exact-solenoid
Aug 15, 2022
Merged

Make track/twiss able to treat a thick solenoid exactly#1129
rdemaria merged 7 commits into
MethodicalAcceleratorDesign:masterfrom
jsberg-bnl:exact-solenoid

Conversation

@jsberg-bnl

Copy link
Copy Markdown
Collaborator

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.

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
Copy Markdown
Collaborator Author

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

@jsberg-bnl

Copy link
Copy Markdown
Collaborator 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.

2 participants