The flag "sectormap" on the Twiss command (together with an element selection via select,flag=sectormap,...) causes a file "sectormap" to be written.
For each user-selected element, it contains the user-selected coefficients of the kick vector K
(6 values), of the first-order map R
(6 x 6 values) and of the second-order map T
(6 x 6 x 6 values)
The sector file is the output of a standard TFS table, which means that the set of columns of interest may be selected through a MAD-X command such as the following:
select,flag=my_sect_table,column=name,pos,k1,r11,r66,t111; |
@ NAME | %13s | "MY_SECT_TABLE" |
@ TYPE | %09s | "SECTORMAP" |
@ TITLE | %08s | "no-title" |
@ ORIGIN | %19s | "MAD-X 3.04.62 Linux" |
@ DATE | %08s | "18/12/08" |
@ TIME | %08s | "10.33.58" |
* NAME | POS | K1 | R11 | R66 | T111 |
$ %s | %le | %le | %le | %le | %le |
"FIVECELL$START" | 0 | 0 | 1 | 1 | 0 |
"SEQSTART" | 0 | 0 | 1 | 1 | 0 |
"QF.1" | 3.1 | -1.305314637e-05 | 1.042224745 | 1 | 0 |
"DRIFT_0" | 3.265 | 7.451656548e-21 | 1 | 1 | 0 |
"MSCBH" | 4.365 | -1.686090613e-15 | 0.9999972755 | 1 | 0.006004411526 |
"CBH.1" | 4.365 | 0 | 1 | 1 | 0 |
"DRIFT_1" | 5.519992305 | -6.675347543e-21 | 1 | 1 | 0 |
"MB" | 19.72000769 | 2.566889547e-18 | 1.000000091 | 1 | -4.135903063e-25 |
"DRIFT_2" | 21.17999231 | -1.757758802e-20 | 1 | 1 | 0 |
"MB" | 35.38000769 | 2.822705549e-18 | 1.000000091 | 1 | -4.135903063e-25 |
"DRIFT_2" | 36.83999231 | 2.480880093e-20 | 1 | 1 | 0 |
"MB" | 51.04000769 | 3.006954115e-18 | 1.000000091 | 1 | -4.135903063e-25 |
"DRIFT_3" | 52.21 | -4.886652187e-20 | 1 | 1 | 0 |
... | ... | ... | ... | ... | ... |
... | ... | ... | ... | ... | ... |
... | ... | ... | ... | ... | ... |
select
statement can be combined with additional options to filter-out the list of elements, such as in the following statement, which for instance only retains drift-type elements:
select,flag=my_sect_table,class=drift,column=name,pos,k1,r11,r66,t111; |
K
coefficients range:
K1
... K6
R
coefficients range:
R11 | ... | R61 |
R12 | ... | R62 |
... | ... | ... |
R61 | ... | R66 |
T
coefficients range:
T111 | ... | T611 |
T121 | ... | T621 |
... | ... | ... |
T161 | ... | T661 |
T112 | ... | T612 |
... | ... | ... |
T166 | ... | T666 |
In the above notation, Rij
stands for "effect on the i
-th coordinate of the j
-th coordinate in phase-space", whereas Tijk
stands for "combined effect on the i
-th coordinate of both the j
-th and k
-th coordinates in phase-space" along the lattice.