Next: matdef, Previous: element, Up: Physical elements
line
Elements are grouped into sequences by the line
command.
line_name : line=(
element_1,
element_2,...);
where element_n can be any element or another line. Lines can also be
reversed using line_name : line=-(
line_2)
, or within
another line by line=(
line_1,-
line_2)
. Reversing a line also
reverses all nested lines within.
Example :
A sequence of FODO cells can be defines as
qf: quadrupole, l=0.5, k1=0.1
;qd: quadrupole, l=0.5, k1=-0.1
;d: drift, l=0.5
;fodo : line=(qf,d,qd,d)
;section : line=(fodo,fodo,fodo);
beamline : line=(section,section,section);