slactrac.Quad

class slactrac.Quad(length=0, K1=0, order=1, name=None, **kwargs)[source]

Represents a quadrupole element.

Parameters:

length : float

The length of the magnet.

K1 : float

Geometric focusing strength of the quad.

order : float

Order to calculate matrix elements.

name : str

Unique name to identify the element.

Attributes

K1 The geometric focusing strength.
R The transfer matrix R for the quad.
angle
ele_name Returns the elegant-styled name.
ele_string Returns the full elegant entry.
length The length of the quad.
name
order
radlength
rotate
thickness

Methods

change_E(old_gamma, new_gamma) Scale the setpoint energy of the magnet from the old energy old_gamma to new energy new_gamma.

Previous topic

slactrac.Drift.change_E

Next topic

slactrac.Quad.K1