[430] | 1 | title, 'test of rf-multipole'; |
---|
| 2 | option, debug, -echo; |
---|
| 3 | |
---|
| 4 | bunchcharge := 2.e10; |
---|
| 5 | |
---|
| 6 | twss_ebc1 : beta0, |
---|
| 7 | betx=3.3999, bety=3.7645, |
---|
| 8 | alfx=-1.0879, alfy= 1.1907; |
---|
| 9 | |
---|
| 10 | beam_ebc1 : beam, energy=5, npart=bunchcharge, |
---|
| 11 | sige=1.5e-3, sigt=6e-03, |
---|
| 12 | ex=8e-6 * emass/5, ey=20e-9 * emass/5; |
---|
| 13 | |
---|
| 14 | !!! |
---|
| 15 | !!! it creates a sequence with an RF-Multipole and multipole that cancel each other |
---|
| 16 | !!! |
---|
| 17 | |
---|
| 18 | k:=sqrt(pi); |
---|
| 19 | rfm1 : rfmultipole, l=0, tilt=0.5, knl:={0, k, k}, ksl:={0, k, k, k, k }, pnl:={ 0, 0, 0,0,0,0,0,0,0 }, psl:={0,0,0,0,0,0,0,0}; |
---|
| 20 | m1 : multipole, l=0.0, tilt=0.5, knl:={0, k, k}, ksl:={0, k, k, k, k}; |
---|
| 21 | |
---|
| 22 | test_line : line=( m1, rfm1 ); |
---|
| 23 | |
---|
| 24 | !!! |
---|
| 25 | !!! TEST 1: check first and second order matrix elements, geometric terms |
---|
| 26 | !!! |
---|
| 27 | |
---|
| 28 | select,flag=sectormap; |
---|
| 29 | use, period=test_line; |
---|
| 30 | twiss,betx=1,bety=1,x=1,t=1,rmatrix,sectormap,file='sectormap'; |
---|
| 31 | |
---|