Пример #1
0
    def __init__(
        self,
        radius=0.0,
        magnetic_field=1.72,
        center_of_straight_section=12.405 / 2,
        length=1.05 / 2,
        transition_steepness=60,
        z_start=-8.0,
        z_end=8.0,
        n_points=16001,
    ):

        BendingMagnet.__init__(self, radius, magnetic_field, length)

        self.center_of_straight_section = center_of_straight_section
        self.transition_steepness = transition_steepness
        self.z_start = z_start
        self.z_end = z_end
        self.n_points = n_points
Пример #2
0
 def __init__(self,
              radius = 0.0,
              magnetic_field = 0.0,
              length = 0.0):
     BendingMagnet.__init__(self, radius, magnetic_field, length)