source: PSPA/madxPSPA/tests/test-match-7/test-match-7.ref @ 430

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

import madx-5.01.00

File size: 7.3 KB
Line 
1
2  +++++++++++++++++++++++++++++++++++++++++++
3  +    MAD-X 5.00.19  (64 bit, Darwin)      +
4  +    DEBUG Version - use at own risk!     +
5  + Code Modification Date: 2012.12.11      +
6  + Execution Time Stamp: 13.02.13 22.59.48 +
7  +++++++++++++++++++++++++++++++++++++++++++
8!---|----1----|----2----|----3----|----4----|----5----|----6----|----7----|---8;
9
10Option,  warn,info;
11
12
13
14Title, "Matching the tune for the LHC 6.4 lattice with MADX";
15
16
17
18
19
20!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++;
21
22!                        TARGET TUNE;
23
24!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++;
25
26Option, echo;
27
28QX0 = 64.280;
29
30QY0 = 59.310;
31
32
33
34!---------------------------------------------------------------;
35
36!           CALL IN SELECTION, SEQUENCE and OPTICS FILES;
37
38!---------------------------------------------------------------;
39
40option, -echo,-warn;
41
42
43
44Beam, particle = proton, sequence=lhcb1, energy = 450.0,
45
46          NPART=1.05E11, sige=      4.5e-4 ;
47
48Beam, particle = proton, sequence=lhcb2, energy = 450.0,
49
50          bv = -1, NPART=1.05E11, sige=      4.5e-4;         !<<<<
51
52! the 'bv' parameter indicates that beam2 rotates counter-clockwise
53
54
55
56! Select a sequence:
57
58USE, period=lhcb1;
59
60
61
62! Generate a twiss table:
63
64select, flag=twiss, clear;
65
66select, flag=twiss, pattern="IP\.*",column=name,s,betx,bety;
67
68TWISS,sequence=lhcb1,file=twiss.b1.data;
69
70enter Twiss module
71 
72iteration:   1 error:   8.714678E-04 deltap:   0.000000E+00
73orbit:  -4.929560E-04  8.092901E-06  2.107938E-06  1.445684E-04  0.000000E+00  0.000000E+00
74 
75iteration:   2 error:   2.297756E-05 deltap:   0.000000E+00
76orbit:  -4.999995E-04 -1.916166E-09 -1.671521E-10  1.424984E-04  0.000000E+00  0.000000E+00
77 
78iteration:   3 error:   2.548596E-09 deltap:   0.000000E+00
79orbit:  -4.999999E-04  1.982147E-10  8.002226E-12  1.425000E-04  0.000000E+00  0.000000E+00
80
81++++++ table: summ
82
83            length             orbit5               alfa            gammatr
84        26658.8832                 -0    0.0003213813572        55.78143208
85
86                q1                dq1            betxmax              dxmax
87        64.3100005        1.918738979        4402.810724        2.890204757
88
89             dxrms             xcomax             xcorms                 q2
90       1.399969148      0.01141004839    0.0008146081283        59.32000005
91
92               dq2            betymax              dymax              dyrms
93       2.145014314        4402.812514        1.318436553       0.1774138225
94
95            ycomax             ycorms             deltap            synch_1
96    0.006931834736    0.0004834742802                  0                  0
97
98           synch_2            synch_3            synch_4            synch_5
99                 0                  0                  0                  0
100
101
102! Match the tune:
103
104match,sequence=lhcb1;
105
106START MATCHING
107
108number of sequences: 1
109sequence name: lhcb1
110global, q1=QX0,q2=QY0;
111
112vary, name=KQF;
113
114vary, name=KQD;
115
116lmdif,calls=10,tolerance=1.0e-21;
117
118number of variables:    2
119user given constraints: 2
120total constraints:      2
121
122START LMDIF:
123
124Initial Penalty Function =   0.10000310E+00
125
126
127call:       4   Penalty function =   0.22508176E-08
128call:       7   Penalty function =   0.14544945E-18
129call:      10   Penalty function =   0.31150539E-23
130 ++++++++++ LMDIF ended: converged successfully
131call:      10   Penalty function =   0.31150539E-23
132endmatch;
133
134
135MATCH SUMMARY
136
137Node_Name                  Constraint   Type  Target Value       Final Value        Penalty
138--------------------------------------------------------------------------------------------------
139Global constraint:         q1           4     6.42800000E+01     6.42800000E+01     1.29246971E-24
140Global constraint:         q2           4     5.93100000E+01     5.93100000E+01     1.82258424E-24
141
142
143Final Penalty Function =   3.11505394e-24
144
145
146
147
148
149Variable                 Final Value  Initial Value Lower Limit  Upper Limit
150--------------------------------------------------------------------------------
151kqf                       8.98631e-03  8.99010e-03 -1.00000e+20  1.00000e+20
152kqd                      -8.59912e-03 -8.60096e-03 -1.00000e+20  1.00000e+20
153
154END MATCH SUMMARY
155
156VARIABLE "TAR" SET TO   3.11505394e-24
157
158
159Title, " Chromaticity correction";
160
161match,sequence=lhcb1;
162
163START MATCHING
164
165number of sequences: 1
166sequence name: lhcb1
167    vary, name=KSF.B1, step=0.00001;
168
169    vary, name=KSD.B1, step=0.00001;
170
171    global,sequence=lhcb1,DQ1=QPRIME;
172
173    global,sequence=lhcb1,DQ2=QPRIME;
174
175    Lmdif, calls=10, tolerance=1.0e-21;
176
177number of variables:    2
178user given constraints: 1
179total constraints:      2
180
181START LMDIF:
182
183Initial Penalty Function =   0.83427511E-01
184
185
186call:       4   Penalty function =   0.32817134E-21
187 ++++++++++ LMDIF ended: converged successfully
188call:       4   Penalty function =   0.32817134E-21
189endmatch;
190
191
192MATCH SUMMARY
193
194Node_Name                  Constraint   Type  Target Value       Final Value        Penalty
195--------------------------------------------------------------------------------------------------
196Global constraint:         dq1          4     2.00000000E+00     2.00000000E+00     1.76789693E-23
197Global constraint:         dq2          4     2.00000000E+00     2.00000000E+00     3.10492371E-22
198
199
200Final Penalty Function =   3.28171340e-22
201
202
203
204
205
206Variable                 Final Value  Initial Value Lower Limit  Upper Limit
207--------------------------------------------------------------------------------
208ksf.b1                    1.03439e-01  1.03481e-01 -1.00000e+20  1.00000e+20
209ksd.b1                   -1.70566e-01 -1.70877e-01 -1.00000e+20  1.00000e+20
210
211END MATCH SUMMARY
212
213VARIABLE "TAR" SET TO   3.28171340e-22
214
215
216! Generate a twiss table:
217
218select, flag=twiss, clear;
219
220select, flag=twiss, pattern="IP\.*",column=name,s,betx,bety;
221
222TWISS,sequence=lhcb1,file=twiss.b1.data;
223
224enter Twiss module
225 
226iteration:   1 error:   9.132144E-04 deltap:   0.000000E+00
227orbit:  -4.940097E-04  5.441415E-06  2.134811E-06  1.443832E-04  0.000000E+00  0.000000E+00
228 
229iteration:   2 error:   1.715078E-05 deltap:   0.000000E+00
230orbit:  -4.999997E-04 -1.118293E-09 -3.195106E-11  1.424988E-04  0.000000E+00  0.000000E+00
231 
232iteration:   3 error:   1.757368E-09 deltap:   0.000000E+00
233orbit:  -4.999999E-04  2.133986E-10  8.054964E-12  1.425000E-04  0.000000E+00  0.000000E+00
234
235++++++ table: summ
236
237            length             orbit5               alfa            gammatr
238        26658.8832                 -0    0.0003216950826         55.7542257
239
240                q1                dq1            betxmax              dxmax
241             64.28                  2        4405.642411        2.915608702
242
243             dxrms             xcomax             xcorms                 q2
244       1.402207092      0.01141004811    0.0008146081649              59.31
245
246               dq2            betymax              dymax              dyrms
247                 2        4405.200974        1.345196746       0.1817561601
248
249            ycomax             ycorms             deltap            synch_1
250    0.006931834704    0.0004834742781                  0                  0
251
252           synch_2            synch_3            synch_4            synch_5
253                 0                  0                  0                  0
254
255
256stop;
257
258
259  Number of warnings: 0
260
261  ++++++++++++++++++++++++++++++++++++++++++++
262  + MAD-X 5.00.19 (64 bit) finished normally +
263  ++++++++++++++++++++++++++++++++++++++++++++
Note: See TracBrowser for help on using the repository browser.