source: PSPA/madxPSPA/tests/test-makethin-2/test-makethin-2.madx @ 430

Last change on this file since 430 was 430, checked in by touze, 11 years ago

import madx-5.01.00

File size: 1.3 KB
Line 
1title, "V6.5 Thin Lens" ;    // USE ONLY WITH MAD-X version > June 2005
2
3option,-echo,-warn;
4
5set, format="12.6f";
6select, flag=twiss, clear;
7select, flag=twiss, pattern="IP\.*",     column=name,s,betx,bety,alfx,alfy,dx,dpx,mux,muy,x,px,y,py;
8select, flag=twiss, pattern="s.ds.l\.*", column=name,s,betx,bety,alfx,alfy,dx,dpx,mux,muy,x,px,y,py;
9select, flag=twiss, pattern="e.ds.r\.*", column=name,s,betx,bety,alfx,alfy,dx,dpx,mux,muy,x,px,y,py;
10
11call, file="../share/LHC/LHCRing/V6.503/V6.5.seq";
12call, file="../share/LHC/LHCRing/V6.503/V6.5.inj.str";
13option,echo,warn,info;
14
15beam, particle = proton, sequence=lhcb1, energy = 450.0;
16
17! without this we get poor tune (and more?) in twiss table after makethin
18use,    sequence=lhcb1;
19twiss,  sequence=lhcb1, file=lhc_twiss_b1.before.dat, betx=beta.ip1, bety=beta.ip1, x=+x.ip1, y=+y.ip1, py=+py.ip1;
20
21! convert to THIN
22option, info,  warn, -echo;
23call, file="../share/LHC/LHCRing/V6.503/toolkit/slice.madx";
24option, echo, warn, info;
25makethin, sequence=lhcb1;
26
27! set new strength file
28option,-echo,-warn,-info;
29call, file="../share/LHC/LHCRing/V6.503/V6.5.thin.inj.str";
30option,echo,warn,info;
31
32use,    sequence=lhcb1;
33twiss,  sequence=lhcb1, file=lhc_twiss_b1.dat, betx=beta.ip1, bety=beta.ip1, x=+x.ip1, y=+y.ip1, py=+py.ip1;
34save,sequence=lhcb1,file="V6.5.thin.b1.seq";
35
36stop;
Note: See TracBrowser for help on using the repository browser.