source: PSPA/madxPSPA/tests/test-match-3/test-match-3.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: 614 bytes
Line 
1TITLE,'Transferline matching with MAD-X';
2
3option,-info,-warn;
4
5call file="fv9.opt"; 
6call file="fv9.seq";
7
8option,info,warn;
9
10kqf = 0.0089;
11kqd = -0.0097;
12
13Beam, particle = proton, sequence=fivecell, energy = 450.0,
14          NPART=1.05E11, sige=      4.5e-4 ;
15
16use,period=fivecell;
17
18savebeta,label=abc,place=#s;
19select,flag=twiss,range=full,column=name,s,betx,bety;
20twiss, sequence=fivecell;
21
22match,sequence=fivecell,beta0=abc;
23constraint,sequence=fivecell,range=#e,betx=180.0,bety=30.0;
24vary,name=kqf,step=1.0e-6;
25vary,name=kqd,step=1.0e-6;
26lmdif,calls=500,tolerance=1.e-15;
27endmatch;
28
29value, kqf;
30value, kqd;
Note: See TracBrowser for help on using the repository browser.