ELEMENT DEFINITION: SECTOR BENDING

Element name, 1st number, 2nd number, 3rd number, 4th number, 5th number, 6th number, 7th number, 8th number
SBEND, length [m], angle [degree], PFREN: pole face rotation at entrance [degree], PFREX: pole face rotation at exit [degree], HGAP: half gap of bending [m] FINT [1] half horizontal beam pipe [m] half vertical beam pipe [m]

The data of this element are stored in the matrix alat(n,m). The first index in alat identifies the lattice element as found in the sequence of elements loaded from the lattice file. The number of elements is NELMAX. In the variable alength is stored the lattice length.

alat(n,1) = PFREN [degree];
alat(n,2) = 2 ( number coding the type of element) ;
alat(n,3) = longitudinal coordinate at the enter face of the n-th lattice element;
alat(n,4) = longitudinal coordinate at the exit face of the n-th lattice element;
alat(n,5) = bending angle [degree];
alat(n,6) = //
alat(n,7) = PFREX [degree];
alat(n,8) = HGAP [m];
alat(n,9) = FINT [1];
alat(n,10) = curvature radius of bending [m^{-1}];
alat(n,11) = length of the n-th element [m];
alat(n,12) = half horizontal beam pipe [m];
alat(n,13) = half vertical beam pipe [m];

see MAD manual the units are the same (but the angle)