def __init__(self, K_vertical, K_horizontal, period_length, periods_number): MagneticStructure.__init__(self) self._K_vertical = K_vertical self._K_horizontal = K_horizontal self._period_length = period_length self._periods_number = periods_number
def __init__(self, radius, magnetic_field, length): """ Constructor. :param radius: Physical Radius/curvature of the magnet in m :param magnetic_field: Magnetic field strength in T :param length: physical length of the bending magnet (along the arc) in m. """ MagneticStructure.__init__(self) self._radius = radius self._magnetic_field = magnetic_field self._length = length