1 | <?xml version="1.0" encoding="ISO-8859-1" ?> |
---|
2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
---|
3 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
---|
4 | |
---|
5 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
6 | |
---|
7 | <head> |
---|
8 | <meta http-equiv=Content-Type content="text/html; charset=iso-8889-2"> |
---|
9 | <meta name=Generator content="NEdit"> |
---|
10 | <meta name=Originator content="Skowron"> |
---|
11 | <link rel="stylesheet" type="text/css" href="madxdoc_ps.css" /> |
---|
12 | <title>PTC_SetCavities</title> |
---|
13 | <style> |
---|
14 | </style> |
---|
15 | </head> |
---|
16 | |
---|
17 | <body bgcolor="#ffffff"'> |
---|
18 | |
---|
19 | <div style="text-align:center;"> |
---|
20 | <center> |
---|
21 | EUROPEAN ORGANIZATION FOR NUCLEAR RESEARCH |
---|
22 | <IMG SRC="http://cern.ch/madx/icons/mx7_25.gif" align="right"> |
---|
23 | <h1>PTC_SetCavities</h1> |
---|
24 | <h2> f90 routine that adjusts cavities and sets appropriate reference momenta |
---|
25 | for a layout containing traveling wave cavities |
---|
26 | </h2> |
---|
27 | </center> |
---|
28 | </div> |
---|
29 | |
---|
30 | |
---|
31 | <!-- ########################################################## --> |
---|
32 | |
---|
33 | <div class="madxdocContent"> |
---|
34 | |
---|
35 | |
---|
36 | |
---|
37 | <h3> PROGRAMMERS MANUAL </h3> |
---|
38 | |
---|
39 | <p> <strong> CAUTION </strong> For the time being cavities MUST not be placed |
---|
40 | one after another, and at least a marker must be inserted between two |
---|
41 | neighboring accelerating structures. |
---|
42 | Otherwise, program will stop with the error message. |
---|
43 | |
---|
44 | <h4> Description </h4> |
---|
45 | |
---|
46 | <p> This routine sets up the properties of a layout and traveling wave cavities. |
---|
47 | The main goal is to update reference beam energy for the elements |
---|
48 | that follow a traveling wave cavity. |
---|
49 | It traces the synchronous particle, i.e. one that has |
---|
50 | all its parameters set to zero at the beginning |
---|
51 | of the layout under study. At the point it arrives to a cavity, |
---|
52 | the parameters of the latter one are adjusted according to the switches |
---|
53 | defined by the user. There are 2 cases |
---|
54 | |
---|
55 | <ol> |
---|
56 | <li> <b>Leaves all parameters untouched</b></li> |
---|
57 | <li> <b>Phase of cavity is adjusted so it gives the maximum acceleration </b> |
---|
58 | Afterwards to the calculated phase the lag is added. |
---|
59 | This setting is acquired using set_switch command, setting maxaccel |
---|
60 | parameter to true. |
---|
61 | </li> |
---|
62 | </ol> |
---|
63 | Afterwards, the synchronous particle is tracked through traveling wave cavity |
---|
64 | and its energy gain is known. |
---|
65 | This energy becomes the reference one for all the elements downstream of the cavity. |
---|
66 | The particle is tracked further to the next cavity, |
---|
67 | for which the procedure described above is repeated. |
---|
68 | |
---|
69 | <p> Parameters of the cavities are dumped to the file named twcavsettings.txt. |
---|
70 | |
---|
71 | <p> At the end patches at the ends of the cavities are set, |
---|
72 | so the parameters after them are |
---|
73 | calculated taking to the account reference energy increase. |
---|
74 | |
---|
75 | <p> The exact program behavior depends on the |
---|
76 | <a href="PTC_SetSwitch.html"> PTC switches settings</a>. |
---|
77 | |
---|
78 | <p> Please note that in PTC phase velocity of a cavities wave is always equal to speed of light. |
---|
79 | Hence, if PTC internal state TIME is TRUE, what is the most correct setting, |
---|
80 | then voltage seen by a particle is varying along the structure. If TIME is FALSE, |
---|
81 | track is assumed to fly with speed of light |
---|
82 | and in such case a particle moves together with the wave front. |
---|
83 | |
---|
84 | |
---|
85 | </div> |
---|
86 | |
---|
87 | </body> |
---|
88 | |
---|
89 | </html> |
---|