-
Notifications
You must be signed in to change notification settings - Fork 44
Foxification of e-lenses (final) #1056
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
Conversation
… distribution read from file AT the same time: * added units to debug echo of input parameters; * more readable code for calculating theta_r2;
* handling of empty lines in files of radial profile; * change of printout in echo of radial profile + warning about point at R=0.0; * added debug lines in fox calculation with radial profile;
…g of geometrical normalisation factor
These follow the addition of a warning line when echoeing the profile in STDOUT
…enses, Rref must be introduced as reference radius at which the theta_ref is computed, instead of R2 and theta_r2
Hi @rdemaria , Please find here the updated .pdf with all the math - now it should be correct. |
…n repo space occupancy
ok - I have updated the slides, showing also that (last slide):
I have also compiled a more detailed cross-check of the tune shifts computed by FOX for the uniform, Gaussian and radial distributions, evaluating what happens also when the kick is lowered by a factor 10 - please find the table here. The tune shift predicted by SixTrack agrees much better to that predicted analytically, showing that the implementation is sound and the tests use quite strong kicks. I will re-set the tests to use the weaker kicks, then. @rdemaria , if this is all fine for you, I will then update the documentation and the elens tests that were already existing, and then merge :) |
…ear tune-shifts with equivalent quadrupolar gradient
…red by a factor 10
… with radial profile from file nearby r=0
ok, @rdemaria , I am done here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me, but I haven't checked in details. The things I checked all looked good!
ok to merge, as agreed with @tpersson |
This PR aims at finalising the foxification of e-lenses, as discussed with @rdemaria recently.
For Gaussian and uniform electron beam distribution, I have added the explicit expression for R1=0, both in the FOX and in the tracking part.
In addition, for the Gaussian distribution, I have added a linearisation of the kick of the full lens when r<1E-7 mm.
I have added few tests, each checking that the de-tuning for a single full e-lens with a specific profile and kick is sound.
The check is done reducing all the beam distributions to a constant one, and comparing to the tune-shift of a quad with the same normalised kick.
At the same time, I allow the use of the elens in the very degenerate case of the wire.
I have added a test for that - checking only kick during tracking and in FOX, but no specific test on tune-shift.
At the same time: