EUROPEAN ORGANIZATION FOR NUCLEAR RESEARCH

Defining aperture in MAD-X

A new feature of MAD-X is the ability to set an aperture for a particular element, or parent of a set of elements. This removes the need of placing a collimator next to every element to do aperture tracking. The aperture of any elements can be specified (excepts drifts) by the use of the following parameters: Here is an example for setting an ELLIPTICAL aperture for the main dipoles for the LHC.
MB : SBEND, L := l.MB, APERTYPE=ELLIPSE, APERTURE={0.02202,0.02202};
And an example for setting a FILENAME aperture for another magnet. Notice that no aperture parameters are needed.
MB: SBEND, L := 5, APERTYPE=myfile;
The syntax of myfile should be like this:
x0   y0
xi   yi
...
xn   yn
Notes concerning the use of aperture: The APERTYPE and the APERTUREs themselves can be conveniently added to the TWISS table (see Twiss Module) by using the SELECT command. E.G. the command:
select,flag=twiss,clear;
select,flag=twiss,column=name,s,betx,alfx,mux,bety,alfy,muy,apertype,aper_1,aper_2;
and a subsequent TWISS command will put the aperture information together with the specified TWISS parameters into the TWISS table.

Defining tolerances in MAD-X

A parameter closely connected to the aperture is the sum of the mechanical and alignment tolerances. The mechanical tolerance is the maximal error margin of errors in the element body which causes a decrease of aperture, and the alignment tolerance is a mislignment of the element in the accelerator, which also causes a decrease of aperture. The tolerance is given in the transverse plane as a racetrack, like in the picture below.

A tolerance can be assigned to each element in a MAD-X sequence as a vector:
Syntax: APER_TOL = {r, g, s};

MB : SBEND, L := l.MB, APER_TOL={1.5, 1.1, 0};

APERTURE MODULE

Computes the n1 values for a piece of machine. Each element is sliced into thick subelements at given intervals, and the available aperture is computed at the end of each slice. The computation is based on the last Twiss table, so it is important to run the Twiss and aperture commands on the same period or sequence, see the aperture example below. Also showed in the example is how n1 values can be plotted.

The minimum n1 for each element is written to the last Twiss table, to allow for matching by aperture.