MagFEMM (class)

File generated according to pyleecan/Generator/ClassesRef/Simulation/MagFEMM.csv WARNING! All changes made in this file will be lost!

class MagFEMM(Kmesh_fineness=1, Kgeo_fineness=1, type_calc_leakage=0, file_name='', FEMM_dict={}, angle_stator=0, is_get_mesh=False, is_save_FEA=False, is_sliding_band=True, transform_list=[], is_remove_slotS=False, is_remove_slotR=False, is_remove_vent=False, is_mmfs=True, is_mmfr=True, is_stator_linear_BH=0, is_rotor_linear_BH=0, is_symmetry_t=False, sym_t=1, is_antiper_t=False, is_symmetry_a=False, sym_a=1, is_antiper_a=False, init_dict=None)[source]

Bases: pyleecan.Classes.Magnetics.Magnetics

Magnetic module: Finite Element model with FEMM

VERSION = 1
comp_flux_airgap(output)

Compute using FEMM the flux in the airgap

Parameters:
  • self (MagFEMM) – a MagFEMM object
  • output (Output) – an Output object
get_path_save(output)

Return the path to save the FEMM simulation

Parameters:
  • self (MagFEMM) – a MagFEMM object
  • output (Output) –

    an Output object

    Returns

  • -------
  • save_path (str) – Path to save the FEMM simulation
solve_FEMM(output, sym, FEMM_dict)
get_meshsolution(is_get_mesh, is_save_FEA, save_path, j_t0)

Load the mesh data and solution data. FEMM must be working and a simulation must have been solved.

Parameters:
  • self (MagFEMM) – a MagFEMM object
  • is_get_mesh (bool) – 1 to load the mesh and solution into the simulation
  • is_save_FEA (bool) – 1 to save the mesh and solution into a .json file
  • j_t0 (int) – Targeted time step
Returns:

res_path – path to the result folder

Return type:

str

get_path_save_fem(output)

Return the path to save the FEMM simulation

Parameters:
  • self (MagFEMM) – a MagFEMM object
  • output (Output) –

    an Output object

    Returns

  • -------
  • save_path (str) – Path to save the .fem file
save(save_path='')

Save the object to the save_path

Parameters:
  • self – A pyleecan object
  • save_path (str) – path to the folder to save the object
as_dict()[source]

Convert this objet in a json seriable dict (can be use in __init__)

Kmesh_fineness

finner , < 1 : less fine)

Type:global coefficient to adjust mesh fineness in FEMM (1
Type:default , > 1
Kgeo_fineness

finner , < 1 : less fine)

Type:global coefficient to adjust geometry fineness in FEMM (1
Type:default , > 1
type_calc_leakage

0 no leakage calculation / 1 calculation using single slot

file_name

Name of the file to save the FEMM model

FEMM_dict

To enforce user-defined values for FEMM main parameters

angle_stator

Angular position shift of the stator

is_get_mesh

To save FEA mesh for latter post-procesing

is_save_FEA

To save FEA mesh and solution in .dat file

is_sliding_band

0 to desactivate the sliding band

transform_list

label (to select the surface), type (rotate or translate), value (alpha or delta)

Type:List of dictionnary to apply transformation on the machine surfaces. Key