def setUp(self): """Run at the begining of every test to setup the gui""" self.test_obj = MachineSCIM() self.test_obj.stator = LamSlotWind(is_stator=True, L1=0.11, Kf1=0.12, Nrvd=12, Wrvd=0.13) self.test_obj.stator.mat_type.name = "test3" self.test_obj.rotor = LamSlotWind(is_stator=False, L1=0.21, Kf1=0.22, Nrvd=22, Wrvd=0.23) self.test_obj.rotor.mat_type.name = "test2" self.matlib = list() self.matlib.append(Material(name="test1")) self.matlib[-1].elec.rho = 0.31 self.matlib.append(Material(name="test2")) self.matlib[-1].elec.rho = 0.32 self.matlib.append(Material(name="test3")) self.matlib[-1].elec.rho = 0.33 self.widget_1 = SLamParam(machine=self.test_obj, matlib=self.matlib, is_stator=True) self.widget_2 = SLamParam(machine=self.test_obj, matlib=self.matlib, is_stator=False)
def setUp(self): """Run at the begining of every test to setup the gui""" self.test_obj = MachineSCIM() self.test_obj.stator = LamSlotWind() self.test_obj.stator.slot = SlotW22(Zs=36, H0=0.001, H2=0.01, W0=0.1, W2=0.2) self.test_obj.stator.winding = WindingDW2L() self.test_obj.stator.winding.qs = 6 self.test_obj.stator.winding.coil_pitch = 8 self.test_obj.stator.winding.Nslot_shift_wind = 10 self.test_obj.stator.winding.is_reverse_wind = True self.widget = SWindPat(machine=self.test_obj, matlib=[], is_stator=True)
def setUp(self): """Run at the begining of every test to setup the gui""" self.test_obj = MachineSCIM(name="test_machine", type_machine=1) self.test_obj.stator = LamSlotWind( is_stator=True, is_internal=False, Rint=0.21, Rext=0.22 ) self.test_obj.stator.winding.p = 6 self.test_obj.rotor = LamSlotWind( is_stator=False, is_internal=True, Rint=0.11, Rext=0.12 ) self.widget = SMachineType(machine=self.test_obj, matlib=[], is_stator=False)
def setUp(self): """Run at the begining of every test to setup the gui""" self.test_obj = MachineSCIM() self.test_obj.stator = LamSlotWind(is_stator=True) self.test_obj.stator.slot = SlotW22(H0=0.001, H2=0.01, W0=0.1, W2=0.2) self.test_obj.stator.winding = Winding(Npcpp=10, Ntcoil=11) self.test_obj.rotor = LamSlotWind(is_stator=False) self.test_obj.rotor.slot = SlotW22(H0=0.001, H2=0.01, W0=0.1, W2=0.2) self.test_obj.rotor.winding = Winding(Npcpp=20, Ntcoil=21) self.widget_1 = SWindParam(machine=self.test_obj, matlib=[], is_stator=True) self.widget_2 = SWindParam(machine=self.test_obj, matlib=[], is_stator=False)
def setUp(self): """Run at the begining of every test to setup the gui""" self.test_obj = MachineSCIM() self.test_obj.stator = LamSlotWind(Rint=0.1, Rext=0.2) self.test_obj.stator.slot = SlotW10( Zs=123, H0=0.10, H1=0.11, H2=0.12, W0=0.13, W1=0.14, W2=0.15, H1_is_rad=False, ) self.widget = SWSlot(self.test_obj, matlib=[], is_stator=True)
def setUp(self): """Run at the begining of every test to setup the gui""" self.test_obj = MachineSCIM() self.test_obj.stator = LamSlotWind(is_stator=True, is_internal=False, Rint=0.21, Rext=0.22) self.test_obj.rotor = LamSlotWind(is_stator=False, is_internal=True, Rint=0.11, Rext=0.12) self.test_obj.frame = Frame(Rint=0.22, Rext=0.24, Lfra=0.25) self.test_obj.shaft = Shaft(Lshaft=0.333, Drsh=self.test_obj.rotor.Rint * 2) self.widget = SMachineDimension(machine=self.test_obj, matlib=[], is_stator=False)
def setUp(self): """Run at the begining of every test to setup the gui""" self.test_obj = MachineSCIM() self.test_obj.rotor = LamSquirrelCage(Hscr=0.11, Lscr=0.12) self.test_obj.rotor.slot = SlotW22(H0=0.001, H2=0.01, W0=0.1, W2=0.2) self.test_obj.rotor.winding.Lewout = 0.13 self.test_obj.rotor.ring_mat.name = "test3" self.test_obj.rotor.winding.conductor = CondType21(Hbar=0.014, Wbar=0.015) self.test_obj.rotor.winding.conductor.cond_mat.name = "test1" self.matlib = list() self.matlib.append(Material(name="test1")) self.matlib[-1].elec.rho = 0.31 self.matlib.append(Material(name="test2")) self.matlib[-1].elec.rho = 0.32 self.matlib.append(Material(name="test3")) self.matlib[-1].elec.rho = 0.33 self.widget = SBar(machine=self.test_obj, matlib=self.matlib, is_stator=False)
is_internal=True, is_stator=False, Hscr=20e-3, Lscr=15e-3, Nrvd=0, ) rotor.axial_vent = [VentilationCirc(Zh=8, D0=20e-3, H0=70e-3, Alpha0=0)] rotor.slot = SlotW21(Zs=28, H0=3e-3, W0=3e-3, H1=0, H2=20e-3, W1=13e-3, W2=10e-3) rotor.winding = WindingSC(Ntcoil=1, qs=28, Lewout=17e-3, Npcpp=1) rotor.winding.conductor = CondType21(Hbar=0.02, Wbar=0.01, Wins=0) shaft = Shaft(Drsh=90e-3) frame = None # Set materials stator.mat_type = M400_50A stator.winding.conductor.cond_mat = Copper1 rotor.mat_type = M400_50A rotor.ring_mat = Copper1 rotor.winding.conductor.cond_mat = Copper1 SCIM_001 = MachineSCIM(stator=stator, rotor=rotor, shaft=shaft, frame=frame)
Nrvd=0, ) rotor.slot = SlotW22(Zs=28, H0=0.002, H2=0.02, W0=0.067369709127, W2=0.112224670903) rotor.winding = WindingSC(Ntcoil=1, qs=28, Lewout=0, Npcpp=1) rotor.winding.conductor = CondType21(Hbar=0.02, Wbar=0.01, Wins=0) shaft = None frame = None # Set materials stator.mat_type = M400_50A stator.winding.conductor.cond_mat = Copper1 rotor.mat_type = M400_50A rotor.ring_mat = Copper1 rotor.winding.conductor.cond_mat = Copper1 SCIM_006 = MachineSCIM( name="SCIM_006", desc="polar SCIM from K. Boughrara publication", stator=stator, rotor=rotor, shaft=shaft, frame=frame, )
LSW_step = [SLamParam, SWSlot, SWindPat, SWindParam, SWindCond] # Steps needed to setup a LamSlotWind for the rotor of a WRSM LP_step = [SLamParam, SWPole, SWindPat, SWindParam, SWindCond] # Steps needed to setup a LamSquirrelCage LSC_step = [SLamParam, SWSlot, SBar] # Steps needed to setup a LamHole LH_step = [SLamParam, SMHoleMag] # Steps needed to setup a LamSlot LS_step = [SLamParam, SWSlot] # Steps needed to setup a LamSlotMag LSM_step = [SLamParam, SMagnet] # Steps to start the design of a machine with 2 laminations S_step = [SMachineType, SMachineDimension] # Defaut machine for initialization machine1 = MachineSCIM() machine1.stator = LamSlotWind() machine1.stator.winding = WindingDW2L() machine1.rotor = LamSquirrelCage() machine1.rotor.winding = WindingSC() machine1._set_None() # Empty machine machine1.type_machine = 1 machine1.stator.is_stator = True machine1.rotor.is_stator = False machine4 = MachineDFIM() machine4.stator = LamSlotWind() machine4.stator.winding = WindingDW2L() machine4.rotor = LamSlotWind() machine4.rotor.winding = WindingDW2L() machine4._set_None() # Empty machine