You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This script will match twiss functions and magnetic elements for designing lattices. It uses linear matrix transport of Courant-Snyder parameters(3x3) linear matrix for matching drift lengths, quadrupole focusing strengths, solenoid focusing strengths as well as find the optimal twiss functions. It uses the following formalism:
Where, $i,f$ stands for initial and final state. Using this approach we can find the optimized magnetic strengths of the elements. Similarly for Dispersion function we have:
Where, $\rho$ is bending radius and $l$ is dipole length. Since we know how dispersion gets transported, this script can also be used for matching dispersion. Where the vertical dispersion is also added for solenoid case.
About
This script will match twiss functions and magnetic elements for designing lattices. It uses linear matrix transport of Courant-Snyder parameters(3x3) linear matrix for matching drift lengths, quadrupole focusing strengths, solenoid focusing strengths as well as find the optimal twiss functions.