Exemplo n.º 1
0
 def __init__(self,
              pockets_settings,
              magnets_settings,
              magnet_type='rectangular'):
     PMPocket.__init__(self, pockets_settings)
     self.pocket_width1 = pockets_settings['Pw1']
     self.pocket_width2 = pockets_settings['Pw2']
     self.bridge_length = pockets_settings['Bl']
     self.hub_radius = pockets_settings['Hr']
     if magnet_type == 'spoke':
         self.magnet_length = magnets_settings['Ml']
         self.magnet_width = magnets_settings['Mw']
         self.magnet_radius = magnets_settings['Mr']
     self.type = self.type + 'SPOKE0'
Exemplo n.º 2
0
    def __init__(self, rotor_settings):
        Rotor.__init__(self, rotor_settings, 'inner')
        self.magnets = []
        for i, magnet_settings in enumerate(
                rotor_settings['magnets']['dimension']):
            self.magnets.insert(
                i,
                Magnet.create(magnet_settings,
                              rotor_settings['magnets']['type'],
                              rotor_settings['magnets']['magnetisation'],
                              rotor_settings['magnets']['material'], 'inner'))

        self.pockets = []
        if 'pockets' in rotor_settings:
            for i, pocket_settings in enumerate(
                    rotor_settings['pockets']['dimension']):
                self.pockets.insert(
                    i,
                    PMPocket.create(pocket_settings,
                                    rotor_settings['pockets']['type'],
                                    rotor_settings['magnets']['dimension'][0],
                                    rotor_settings['magnets']['type']))

        self.initial_position = rotor_settings['init_pos'] * DEG2RAD
        self.type = self.type + 'SPM1'
Exemplo n.º 3
0
 def __init__(self,
              pockets_settings,
              magnets_settings,
              magnet_type='rectangular'):
     PMPocket.__init__(self, pockets_settings)
     self.extension = pockets_settings['Pe']
     self.slit_gap = pockets_settings['Sg']
     self.inner_slit_angle_0 = pockets_settings['iSa0']
     self.inner_slit_angle_1 = pockets_settings['iSa1']
     self.inner_slit_length = pockets_settings['iSl']
     self.inner_slit_width = pockets_settings['iSw']
     self.outer_slit_length = pockets_settings['oSl']
     self.outer_slit_width = pockets_settings['oSw']
     self.flux_barrier_length = pockets_settings['Bl']
     self.flux_barrier_width = pockets_settings['Bw']
     self.bridge_length = pockets_settings['Bl']
     self.pocket_angle = pockets_settings['Va']
     self.magnet_length = None
     self.magnet_width = None
     self.magnet_radius = None
     self.magnet_v_angle = None
     self.rotor_outer_radius = None
     self.type = self.type + 'V'