draw_FEMM (method)

draw_FEMM(femm, output, is_mmfr, is_mmfs, sym, is_antiper, type_calc_leakage, is_remove_vent=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)[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

  • type_calc_leakage (int) – 0 no leakage calculation 1 calculation using single slot

  • is_remove_vent (bool) – True to remove the ventilation ducts 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)

  • sym (int) – the symmetry applied on the stator and the rotor (take into account antiperiodicity)

  • is_antiper (bool) – To apply antiperiodicity boundary conditions

  • 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

Returns

FEMM_dict – Dictionnary containing the main parameters of FEMM (including circuits and materials)

Return type

dict

exception FEMMError[source]

Bases: Exception

Raised when FEMM is not possible to run