1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
---|
2 | <html> |
---|
3 | <head> |
---|
4 | <title>Geometric Layout</title> |
---|
5 | <!-- Created by: Andre VERDIER, 21-Jun-2002 --><!-- Changed by: Andre Verdier, 25-Jun-2002 --><!-- Changed by: Hans Grote, 30-Sep-2002 --><!-- Changed by: Andre Verdier, 14-Jan-2003 --><!-- Directory : /afs/cern.ch/eng/sl/MAD-X/pro/docu/survey/ --> |
---|
6 | </head> |
---|
7 | <body bgcolor="#ffffff"> |
---|
8 | <center> |
---|
9 | EUROPEAN ORGANIZATION FOR NUCLEAR RESEARCH |
---|
10 | <img SRC="http://cern.ch/madx/icons/mx7_25.gif" align="right"> |
---|
11 | <h1>GEOMETRIC LAYOUT</h1> |
---|
12 | </center> |
---|
13 | <br> |
---|
14 | <p> |
---|
15 | The SURVEY command computes the coordinates of all machine elements in |
---|
16 | a |
---|
17 | <a href="../Introduction/conventions.html">global reference system</a>. |
---|
18 | These coordinates can be used for installation. In order to produce |
---|
19 | coordinates in a particular system, the initial coordinates and angles |
---|
20 | can be specified. The computation results are written on an |
---|
21 | internal table (survey) and can be written on |
---|
22 | an external file. Each line contains the coordinates at the end of the |
---|
23 | element.<br> |
---|
24 | The last "USEd" sequence is used |
---|
25 | except if another one is specified.<br> |
---|
26 | </p> |
---|
27 | <center>-----------------------------------------------------------------------------------------</center> |
---|
28 | <br> |
---|
29 | WARNING : in the case a machine geometry is constructed with thick |
---|
30 | lenses, |
---|
31 | the circumference will change if the structure is converted into thin |
---|
32 | lenses (via the <a href="../makethin/makethin.html">makethin</a> |
---|
33 | command). |
---|
34 | This is an unavoidable feature. ONLY the structure with thick lenses |
---|
35 | must be used |
---|
36 | for practical purposes.<br> |
---|
37 | INFORMATION : The skew dipole component of a MULTIPOLE element |
---|
38 | (MULTIPOLE, KSL={FLOAT}) is NOT taken into account in the survey |
---|
39 | calculation. You should use a tilted normal MULTIPOLE or BEND instead.<br> |
---|
40 | <br> |
---|
41 | <center>-----------------------------------------------------------------------------------------</center> |
---|
42 | <br> |
---|
43 | The survey calculation is launched by a single command line with the |
---|
44 | following syntax : |
---|
45 | <br> |
---|
46 | <br> |
---|
47 | <pre> |
---|
48 | SURVEY, x0=double, y0=double, z0=double, |
---|
49 | theta0=double, phi0=double, psi0=double, |
---|
50 | file=string, table=string, sequence=string; |
---|
51 | |
---|
52 | parameter meaning default value |
---|
53 | x0 initial horizontal transverse coordinate 0.0 |
---|
54 | y0 initial vertical transverse coordinate 0.0 |
---|
55 | z0 initial longitudinal coordinate 0.0 |
---|
56 | theta0 initial horizontal angle 0.0 |
---|
57 | phi0 initial vertical angle 0.0 |
---|
58 | psi0 initial transverse tilt 0.0 |
---|
59 | file name of external file null (default name survey) |
---|
60 | table name of internal table null (ignored, always table='survey') |
---|
61 | sequence name of sequence to be surveyed last used sequence |
---|
62 | </pre> |
---|
63 | |
---|
64 | <h2> Example : average LHC ring with CERN coordinates.</h2> |
---|
65 | |
---|
66 | <pre> |
---|
67 | real const R0 = 1.0; ! to obtain the average ring |
---|
68 | OPTION, -echo, -info; |
---|
69 | CALL, file="V6.4.seq.070602"; ! follow this <a href="V6.4.seq.070602">link</a> for the file |
---|
70 | OPTION, echo; |
---|
71 | BEAM, particle=proton, energy=450, sequence=lhcb1; |
---|
72 | USE, period=lhcb1; |
---|
73 | ! SELECT, flag=survey,clear; ! uncomment if the optional select below is used |
---|
74 | ! optional SELECT to specify a class and the output columns |
---|
75 | ! SELECT, flag=survey, class=marker, column=name,s,psi; |
---|
76 | SURVEY, x0=-2202.21027, z0=2710.63882, y0=2359.00656, |
---|
77 | theta0=-4.315508007, phi0=0.0124279564, psi0=-0.0065309236, |
---|
78 | file=survey.lhcb1; |
---|
79 | <a href="../control/general.html#write">WRITE</a>, table=survey; ! to display the results immediately |
---|
80 | STOP; |
---|
81 | !*********** The external file "survey.lhcb1" can now be read ************** |
---|
82 | </pre> |
---|
83 | <i>F.Tecker, March 2006</i> |
---|
84 | </body> |
---|
85 | </html> |
---|