pyleecan.Functions.FEMM.draw_FEMM module¶
- draw_FEMM(femm, output, is_mmfr, is_mmfs, sym, is_antiper, type_calc_leakage, is_remove_ventS=False, is_remove_ventR=False, is_remove_slotS=False, is_remove_slotR=False, type_BH_stator=0, type_BH_rotor=0, kgeo_fineness=1, kmesh_fineness=1, user_FEMM_dict={}, path_save='FEMM_model.fem', is_sliding_band=True, transform_list=[], rotor_dxf=None, stator_dxf=None, is_fast_draw=False, T_mag=20)[source]¶
Draws and assigns the property of the machine in FEMM
- Parameters:
femm (FEMMHandler) – client to send command to a FEMM instance
output (Output) – Output object
is_mmfr (bool) – 1 to compute the rotor magnetomotive force / rotor magnetic field
is_mmfs (bool) – 1 to compute the stator magnetomotive force/stator magnetic field
sym (int) – the symmetry applied on the stator and the rotor (take into account antiperiodicity)
is_antiper (bool) – To apply antiperiodicity boundary conditions
type_calc_leakage (int) – 0 no leakage calculation, 1 calculation using single slot
is_remove_ventS (bool) – True to remove the ventilation ducts on stator in FEMM (Default value = False)
is_remove_ventR (bool) – True to remove the ventilation ducts on rotor in FEMM (Default value = False)
is_remove_slotS (bool) – True to solve without slot effect on the Stator (Default value = False)
is_remove_slotR (bool) – True to solve without slot effect on the Rotor (Default value = False)
type_BH_stator (int) – 2 Infinite permeability, 1 to use linear B(H) curve according to mur_lin, 0 to use the B(H) curve
type_BH_rotor (bool) – 2 Infinite permeability, 1 to use linear B(H) curve according to mur_lin, 0 to use the B(H) curve
kgeo_fineness (float) – global coefficient to adjust geometry fineness in FEMM (1: default ; > 1: finner ; < 1: less fine)
kmesh_fineness (float) – global coefficient to adjust mesh fineness in FEMM (1: default ; > 1: finner ; < 1: less fine)
user_FEMM_dict (dict) – To enforce parameters in the FEMM_dict
path_save (str) – Path to save resulting fem file
is_sliding_band (bool) – True to use sliding band else use airgap surface
transform_list (list) – List of transfromation to apply on the surfaces
rotor_dxf (DXFImport) – To use a dxf version of the rotor instead of build_geometry
stator_dxf (DXFImport) – To use a dxf version of the stator instead of build_geometry
is_fast_draw (bool) – True to use lamination symetry to accelerate the drawing of the machine
T_mag (float) – Permanent magnet temperature [deg Celsius]
- Returns:
FEMM_dict – dictionary containing the main parameters of FEMM (including circuits and materials)
- Return type:
dict