60 likes | 198 Views
Code development for Dynamic aperture study. Mau-Sen Chiu Beam Dynamics Group National Synchrotron Radiation Research Center, Taiwan. Outline. Code structure and function description Demonstrate the code Conclusion and further development. Code structure.
E N D
Code development for Dynamic aperture study Mau-Sen Chiu Beam Dynamics Group National Synchrotron Radiation Research Center, Taiwan
Outline • Code structure and function description • Demonstrate the code • Conclusion and further development
Code structure • The code is designed as GUI form by GTK+2.0 for input parameters and data visualization. Users do not write any code. Just input parameters and push button. • Use C++ to define base class as the parent class for dipole, quadrupole, sextupole, and drift space. (correctors, kicker, ID has not been yet included) • Use list (double linked list) to link all elements in accelerator for tracking. • Adopt and modify part of TRACY and OPA code and integrate them • together. I merely add a GUI to TRACY, modify the data structure of TRACY, and add the function of the nonlinear driving terms optimization. • In OPA: a. Nonlinear driving terms calculations. • b. Optimization method: Powell method. • In TRACY: a. getdynap: dynamic aperture tracking. • b. NuDp: Tune shift with momentum. • c. NuDx: Tune shift with amplitude. • d. fmap : Frequency map analysis (not ready). • e. MomentumAcceptance: Momentum acceptance (not ready).
Code Functions (at present) 1. Linear lattice functions 2. Nonlinear driving terms optimization 3. Tune shift with momentum 4. Tune shift with amplitude 5. Dynamic aperture 6. Phase space tracking 7. Frequency map (not ready) 8. Qx- Qy diagram plus resonance lines (not ready) 9. Momentum acceptance (not ready) 10. Touschek lifetime (not ready) The treatment of multipole errors, misalignment errors, emittance coupling, and IDs has not been yet included.
Conclusion and future development 1. The code has not been yet finished and still has bug. a. The corrector, kicker, and ID have not been yet included. b. The treatment of multipole errors, misalignment errors, and emittance coupling has not been yet included. 2. Future development: a. Use TPSA (Truncated power series) (from Yiton) to do particle tracking and treat the sextupole strengths as variables, so that we can get the map relation between the dynamic aperture and sextupole strength or tune variation versus the sextupole strength. b. Based on a. and use genetic algorithm for dynamic aperture optimization. c. Phase I: Single PC version. Phase II: Parallel version (MPI, …)