pyleecan.Functions.FEMM.draw_FEMM_surfaces module

draw_FEMM_surfaces(femm, machine, surf_list, FEMM_dict, BC_dict, Is, Ir, is_mmfs, is_mmfr, type_BH_stator, type_BH_rotor, type_assign=0, type_set_BC=0, is_draw=True)[source]

Draw a list of surfaces in FEMM

Parameters:
  • femm (FEMMHandler) – client to send command to a FEMM instance

  • machine (Machine) – Machine object to draw

  • surf_list (list) – List of surfaces to draw

  • FEMM_dict (dict) – dictionary containing the main parameters of FEMM

  • BC_dict (dict) – Boundary condition dict ([line label] = BC name)

  • Is (ndarray) – Stator current matrix [A]

  • Ir (ndarray) – Rotor current matrix [A]

  • is_mmfs (bool) – 1 to compute the stator magnetomotive force/stator magnetic field

  • is_mmfr (bool) – 1 to compute the rotor magnetomotive force / rotor magnetic field

  • 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 (int) – 2 Infinite permeability, 1 to use linear B(H) curve according to mur_lin, 0 to use the B(H) curve

  • type_assign (int) – 2 to assign all but WIND and MAG, 1 to assign WIND and MAG and 0 to assign all

  • type_set_BC (bool) – 1 to set BC of the yoke only, 0 to set all

  • is_draw (bool) – 1 to draw the list of surfaces given

Returns:

FEMM_dict – dictionary containing the main parameters of FEMM

Return type:

dict