def create_fsl(): machine = dict(name="PM 130 L4", lfe=0.1, poles=4, outer_diam=0.13, bore_diam=0.07, inner_diam=0.015, airgap=0.001, stator=dict(num_slots=12, stator1=dict(slot_rf1=0.057, tip_rh1=0.037, tip_rh2=0.037, tooth_width=0.009, slot_width=0.003)), magnet=dict(magnetIronV=dict(magn_height=4e-3, magn_width=18e-3, magn_angle=130, iron_hs=1e-3, iron_height=2e-3, gap_ma_iron=1e-3, air_triangle=2e-3, condshaft_r=12e-3, magn_rem=1.2, magn_num=2, iron_shape=0)), windings=dict(num_phases=3, num_wires=100, coil_span=3.0, num_layers=1)) return femagtools.create_fsl(machine)
def create_fsl(): machine = dict(name="statorfsl", desc="Stator FSL Demo", poles=10, outer_diam=0.1, bore_diam=0.055, inner_diam=0.033, airgap=0.001, lfe=0.15, stator=dict(num_slots=12, mcvkey_yoke='M270-35A', statorfsl=dict(yoke_height=0.008, slot_h1=0.0015, slot_h2=0.002, slot_width=0.003, tooth_width=0.007)), magnet=dict(mcvkey_yoke="M270-35A", ring=dict(magn_height=0.005)), windings=dict(num_phases=3, num_layers=2, num_wires=100, coil_span=1, cufilfact=0.4, culength=1.4)) return femagtools.create_fsl(machine)
def create_fsl(): machine = dict(name="example2", lfe=0.1, poles=4, outer_diam=0.143, bore_diam=0.07, inner_diam=0.015, airgap=0.001, stator=dict(num_slots=12, mcvkey_yoke="dummy", rlength=1.0, stator1=dict(slot_rf1=0.057, tip_rh1=0.037, tip_rh2=0.037, tooth_width=0.011, slot_width=0.003)), magnet=dict(mcvkey_yoke="dummy", spokefml=dict(magn_height=0.008, shaft_diam=0.01, slot_width=0.004, magn_width=0.024)), windings=dict(num_phases=3, num_wires=100, coil_span=3.0, num_layers=1)) return femagtools.create_fsl(machine)
def create_fsl(): machine = dict(name="PM 130 L4", lfe=0.1, poles=4, outer_diam=0.13, bore_diam=0.07, inner_diam=0.015, airgap=0.001, stator=dict(num_slots=12, stator1=dict(slot_rf1=0.057, tip_rh1=0.037, tip_rh2=0.037, tooth_width=0.009, slot_width=0.003)), magnet=dict(magnetIron4=dict(magn_height=4e-3, magn_width=36e-3, gap_ma_iron=1e-3, air_space_h=3e-3, iron_bfe=2.5e-3, magn_di_ra=8e-3, corner_r=2e-3, air_sp_ori=0.0, condshaft_r=7e-3, magn_ori=1, magn_num=2, iron_shape=0)), windings=dict(num_phases=3, num_wires=100, coil_span=3.0, num_layers=1)) return femagtools.create_fsl(machine)
def create_fsl(): machine = dict( name="PM 130 L4", lfe=0.1, poles=4, outer_diam=0.13, bore_diam=0.07, inner_diam=0.015, airgap=0.001, stator=dict( num_slots=12, num_slots_gen=3, mcvkey_yoke="dummy", rlength=1.0, stator1=dict( slot_rf1=0.057, tip_rh1=0.037, tip_rh2=0.037, tooth_width=0.009, slot_width=0.003) ), magnet=dict( mcvkey_shaft="dummy", mcvkey_yoke="dummy", magnetSector=dict( magn_num=1, magn_width_pct=0.8, magn_height=0.004, magn_shape=0.0, bridge_height=0.0, magn_type=1, condshaft_r=0.02, magn_ori=2, magn_rfe=0.0, bridge_width=0.0, magn_len=1.0) ), windings=dict( num_phases=3, num_wires=100, coil_span=3.0, num_layers=1) ) operatingConditions = dict( calculationMode="pm_sym_fast", current=12.0, angl_i_up=0.0, speed=15.0, wind_temp=60.0, magn_temp=60.0) return femagtools.create_fsl(machine, operatingConditions)
def create_fsl(): magnetmat = [ dict(name='M45', remanenc=1.1, relperm=1.04, spmaweight=7.4, temcoefbr=-0.0015, temcoefhc=-0.0013, magncond=625000.0) ] machine = dict(name="PM 886 32", lfe=0.224, poles=32, outer_diam=0.886, bore_diam=0.76, inner_diam=0.4956, airgap=0.007, external_rotor=1, stator=dict(num_slots=120, mcvkey_yoke="dummy", rlength=1.0, stator4=dict(slot_height=0.035, slot_h1=0.002, slot_h2=0.0, slot_h3=0.004, slot_h4=0.0, slot_width=0.01, slot_r1=0.0, wedge_width1=0.01, wedge_width2=0.01, wedge_width3=0.01)), magnet=dict(mcvkey_yoke="dummy", material='M45', magnetSector=dict(magn_num=1, magn_height=0.014, magn_width_pct=0.85, condshaft_r=0.0, magn_rfe=0.0, magn_len=1.0, magn_shape=0.0, bridge_height=0.0, bridge_width=0.0, magn_ori=1, magn_type=1)), windings=dict(num_phases=3, num_wires=5, coil_span=1, num_layers=2)) return femagtools.create_fsl(machine, magnetmat=magnetmat)
def create_fsl(): machine = dict( name="PM 130 L4", lfe=0.1, poles=4, outer_diam=0.04, bore_diam=0.022, inner_diam=0.005, airgap=0.001, stator=dict( num_slots=12, statorBG=dict( yoke_diam_ins=0.0344, slot_h1=0.0005, slot_h3=0.004, slot_width=0.00395, slot_r1=0.0008, slot_r2=0.0007, tooth_width=0.0032, middle_line=1, tip_rad=-0.03, slottooth=0) ), magnet=dict( magnetSector=dict( magn_num=1, magn_width_pct=0.8, magn_height=0.002, magn_shape=0.0, bridge_height=0.0, magn_type=1, condshaft_r=0.005, magn_ori=2, magn_rfe=0.0, bridge_width=0.0, magn_len=1.0) ), windings=dict( num_phases=3, num_wires=10, coil_span=1, num_layers=2) ) return femagtools.create_fsl(machine)
def create_fsl(): machine = dict( name="IPM 270 L8", desc="IPM FML Demo", poles=8, outer_diam=0.26924, bore_diam=0.16192, inner_diam=0.11064, airgap=0.00075, lfe=0.08356, stator=dict( num_slots=48, mcvkey_yoke='M270-35A', zeroangle=67.5, statorRotor3=dict( slot_height=0.0335, slot_h1=0.001, slot_h2=0.0, slot_width=0.00193, slot_r1=0.0001, slot_r2=0.00282, wedge_width1=0.00295, wedge_width2=0.0, middle_line=0.0, tooth_width=0.0, slot_top_sh=0.0) ), magnet=dict( mcvkey_yoke="M270-35A", ipmfml=dict( magn_height=0.004, magn_width=0.042, gap_ma_iron=0.009, gap_air_iron=0.0015, gamma=49) ), windings=dict( num_phases=3, num_layers=1, num_wires=9, coil_span=6.0, cufilfact=0.4, culength=1.4, slot_indul=0.5e-3 ) ) return femagtools.create_fsl(machine)
def create_fsl(): machine = dict(name="PM 130 L4", lfe=0.1, poles=4, outer_diam=0.13, bore_diam=0.07, inner_diam=0.015, airgap=0.001, stator=dict(num_slots=12, statorRotor3=dict(slot_height=0.02, slot_h1=0.002, slot_h2=0.004, slot_r1=0.0, slot_r2=0.0, wedge_width1=0, wedge_width2=0, middle_line=0, tooth_width=0.009, slot_top_sh=0.0, slot_width=0.003)), magnet=dict(magnetIron=dict(magn_width=39e-3, magn_height=4e-3, gap_ma_iron=0.0, air_triangle=5e-3, iron_height=0.8e-3, magn_rem=1.2, condshaft_r=5e-3, bridge_height=0, magn_ori=1, bridge_width=0.0, iron_shape=33.5e-3)), windings=dict(num_phases=3, num_wires=100, coil_span=3.0, num_layers=1)) return femagtools.create_fsl(machine)
outer_diam=0.13, bore_diam=0.07, inner_diam=0.015, airgap=0.001, stator=dict(num_slots=12, stator1=dict(slot_rf1=0.057, tip_rh1=0.037, tip_rh2=0.037, tooth_width=0.009, slot_width=0.003)), magnet=dict(magnetIron4=dict(magn_height=4e-3, magn_width=36e-3, gap_ma_iron=1e-3, air_space_h=3e-3, iron_bfe=2.5e-3, magn_di_ra=8e-3, corner_r=2e-3, air_sp_ori=0.0, condshaft_r=7e-3, magn_ori=1, magn_num=2, iron_shape=0)), windings=dict(num_phases=3, num_wires=100, coil_span=3.0, num_layers=1)) fsl = femagtools.create_fsl(machine) with open('femag.fsl', 'w') as f: f.write('\n'.join(fsl))
tip_rh2=0.037, tooth_width=0.009, slot_width=0.003)), magnet=dict(mcvkey_shaft="dummy", mcvkey_yoke="dummy", magnetSector=dict(magn_num=1, magn_width_pct=0.8, magn_height=0.004, magn_shape=0.0, bridge_height=0.0, magn_type=1, condshaft_r=0.02, magn_ori=2, magn_rfe=0.0, bridge_width=0.0, magn_len=1.0)), windings=dict(num_phases=3, num_wires=100, coil_span=3.0, num_layers=1)) operatingConditions = dict(calculationMode="pm_sym_fast", current=12.0, angl_i_up=0.0, speed=15.0, wind_temp=60.0, magn_temp=60.0) fsl = femagtools.create_fsl(machine, operatingConditions) print('\n'.join(fsl))
wedge_width1=0.00295, wedge_width2=0.0, middle_line=0.0, tooth_width=0.0, slot_top_sh=0.0) ), magnet=dict( mcvkey_yoke="M270-35A", magnetFsl=dict( magn_height=0.004, magn_width=0.042, gap_ma_iron=0.009, gap_air_iron=0.0015, gamma=49, content_template="ipm-fml.fsl") ), windings=dict( num_phases=3, num_layers=1, num_wires=9, coil_span=6.0, cufilfact=0.4, culength=1.4, slot_indul=0.5e-3 ) ) workdir = os.path.join(os.path.expanduser('~'), 'femag') with open(os.path.join(workdir, 'stator3-ipm.fsl'), 'w') as f: f.write('\n'.join(femagtools.create_fsl(machine)))