Magnetics (class)

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

class Magnetics(is_remove_slotS=False, is_remove_slotR=False, is_remove_vent=False, is_mmfs=True, is_mmfr=True, type_BH_stator=0, type_BH_rotor=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._frozen.FrozenClass

Magnetic module abstract object

VERSION = 1
run()

Run the Magnetics module

comp_time_angle(output)

Compute the time and space discretization of the Magnetics module

Parameters:
  • self (Magnetic) – a Magnetic object
  • output (Output) – an Output object (to update)
comp_emf()

Compute the Electromotive force [V]

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
get_logger()

Get the object logger or its parent’s one

Parameters:obj – A pyleecan object
Returns:logger – Pyleecan object dedicated logger
Return type:logging.Logger
as_dict()[source]

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

is_remove_slotS

1 to artificially remove stator slotting effects in permeance mmf calculations

is_remove_slotR

1 to artificially remove rotor slotting effects in permeance mmf calculations

is_remove_vent

1 to artificially remove the ventilations duct

is_mmfs

1 to compute the stator magnetomotive force / stator armature magnetic field

is_mmfr

1 to compute the rotor magnetomotive force / rotor magnetic field

type_BH_stator

0 to use the B(H) curve, 1 to use linear B(H) curve according to mur_lin, 2 to enforce infinite permeability (mur_lin =100000)

type_BH_rotor

0 to use the B(H) curve, 1 to use linear B(H) curve according to mur_lin, 2 to enforce infinite permeability (mur_lin =100000)

is_symmetry_t

0 Compute on the complete time vector, 1 compute according to sym_t and is_antiper_t

sym_t

Number of symmetry for the time vector

is_antiper_t

To add an antiperiodicity to the time vector

is_symmetry_a

0 Compute on the complete machine, 1 compute according to sym_a and is_antiper_a

sym_a

Number of symmetry for the angle vector

is_antiper_a

To add an antiperiodicity to the angle vector