Two different type keywords are recognised for bending magnets, they are distinguished by the reference system used:
Bending magnets are defined by the commands:
label: SBEND, L=real, ANGLE=real, TILT=real,
K0=real, K1=real, K2=real,
E1=real, E2=real, FINT=real,FINTX=real,
HGAP=real, H1=real, H2=real,
THICK = logical;
label: RBEND, L=real, ANGLE=real, TILT=real,
K0=real, K1=real, K2=real,
E1=real, E2=real, FINT=real, FINTX=real,
HGAP=real, H1=real, H2=real,
ADD_ANGLE={array_of_max_5_angles},
THICK = logical;
Bending magnets have the following attributes:
In order to define RBEND's with a declared length equal to the arc length of the reference orbit, the option RBARC must be previously set to FALSE in MAD-X with Option, RBARC= false;
Fringe fields:
The quantities FINT and HGAP specify
the finite extent of the fringe fields as defined in
[SLAC-75]:
The default values of zero correspond to the hard-edge approximation,
i.e. a rectangular field distribution.
For other approximations, enter the correct value of the half gap,
and one of the following values for FINT:
Linear Field drop-off 1/6 Clamped "Rogowski" fringing field 0.4 Unclamped "Rogowski" fringing field 0.7 "Square-edged" non-saturating magnet 0.45Entering the keyword FINT alone sets the integral to 0.5, which is a reasonable average of the above values.
Note also that the possibility to specify both FINT and FINTX
allows one to set different values at entrance and exit of a bend element.
This can be particularly useful to set the fringe field integral to
zero on one side only, e.g. when slicing a dipole.
Examples:
// rectangular horizontal dipole deflecting to the right BR: RBEND, L=5.5, ANGLE=+0.001; // sector vertical dipole deflecting downwards BD: SBEND, L=5.5, ANGLE=+0.001, TILT=pi/2; // sector horiziontal dipole deflecting to the left BL: SBEND, L=5.5, ANGLE=+0.001, TILT=pi; // rectangular vertical dipole deflecting upwards BU: RBEND, L=5.5, ANGLE=+0.001, TILT=-pi/2;
hansg, frs, August 28, 2003 -- Ghislain Roy, July 9th, 2014