Next: sbend, Previous: drift, Up: Physical elements
rbend
rbend
defines a rectangular bending magnet.
Attributes:
l
- length [m] (default 0)
angle
- bending angle [rad] (default 0)
B
- magnetic field [T]
aper
- aperture [m] (default same as beampipe radius)
outR
- external radius [m] of magnet (default set to aper
+22cm)
material
- the magnet material (default set to “Iron”)
when B
is set, this defines a magnet with appropriate field strength
and angle
is not taken into account. Otherwise, the value of B
that corresponds to bending angle angle
for a particle in use (defined
by the beam
command, with appropriate energy and rest mass) is
calculated and used in the simulations.
Example :
rb1 : rbend, l=0.5*m, angle = 0.01;