I couldn't find my files, however, you could define your dipole magnet as follows.
M1: MULT, KNL=1000,ORDER=4
B1: CSBEND,L=2,ANGLE=0.2
B1C: LINE=(M1,B1,M1)
Or, you could define multipole components in a CSBEND, such as:
B1: CSBEND,L=2.62,ANGLE=0.10471975511966,K1=-2.783243054167499e-05,&
K2=0.01351257586567354,K3=1.786068558864681,K4=-359.0143037099425,&
K5=-66059.96402158705,K6=44393778.18114738,E1=0.05236,E2=0.05236
These Kn values could be obtained from fitting the magnetic field.
Weiming
High-resolution dynamic aperture
Moderators: cyao, michael_borland
-
- Posts: 1959
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: High-resolution dynamic aperture
The preferred approach is the second of those shown by Weiming. This way, the correct expansion of the fields in curvilinear coordinates is used.
--Michael
--Michael