pyleecan.Functions.FEMM.create_FEMM_materials module

create_FEMM_materials(femm, machine, surf_list, FEMM_dict, Is, Ir, is_mmfs, is_mmfr, type_BH_stator, type_BH_rotor, is_eddies, j_t0)[source]

Add materials in FEMM

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

  • machine (Machine) – the machine to simulate

  • surf_list (list) – List of surface of the machine

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

  • 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

  • is_eddies (bool) – 1 to calculate eddy currents

  • jt_0 (int) – Current time step for winding calculation

Returns:

prop_dict, FEMM_dict – Dictionary of properties and dictionary containing the main parameters of FEMM

Return type:

(dict, dict)