ELEMENT DEFINITION:  COLLIMATOR
 

This is a thin element.

Element name, 1st number, 2nd number, 3rd number, 4th number
COLLIMATOR, Rx [m], nx [1], Ry [m], ny [1]


All particles satisfying the condition


            (x/Rx)^nx + (y/Ry)^y > 1


at the position where the collimator is located are scraped off. The beam matrix XPAR and the total number of particles NPAR are automatically uptodated.

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) = //
alat(n,2) = 8 ( 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) = Rx [m];
alat(n,6) = nx [1];
alat(n,7) = Ry [m];
alat(n,8) = ny [m];
alat(n,9) = //
alat(n,10) = //
alat(n,11) = length of the n-th element [m];
alat(n,12) = //
alat(n,13) = //