LamSlot (class)

Warning : this file has been generated, you shouldn’t edit it

class LamSlot(slot=-1, L1=0.35, mat_type=-1, Nrvd=0, Wrvd=0, Kf1=0.95, is_internal=True, Rint=0, Rext=1, is_stator=True, axial_vent=[], init_dict=None)[source]

Bases: pyleecan.Classes.Lamination.Lamination

Lamination with empty Slot

VERSION = 1
build_geometry(sym=1, alpha=0, delta=0)

Build the geometry of the LamSlot object

Parameters:
  • self (LamSlot) – a LamSlot object
  • sym (int) – Symmetry factor (1= full machine, 2= half of the machine…)
  • alpha (float) – Angle for rotation [rad]
  • delta (complex) – Complex value for translation
Returns:

surf_list – list of surfaces needed to draw the lamination

Return type:

list

check()

Check that the Lamination object is correct

Parameters:

self (LamSlot) – A LamSlot object

Returns:

Return type:

None

Raises:
  • LSC_SlotTooLong – The Slot is too long for the lamination (HYoke <0)
  • LSC_OverlappingSlot – The Lamination has overlapping slot
comp_height_yoke()

Compute the yoke height

Parameters:self (LamSlot) – A LamSlot object
Returns:Hy – yoke height [m]
Return type:float
comp_radius_mec()

Compute the mechanical radius of the Lamination [m]

Parameters:self (LamSlot) – A LamSlot object
Returns:Rmec – Mechanical radius [m]
Return type:float
comp_surfaces()

Compute the Lamination surfaces (Lamination, Ventilation, Slot).

Parameters:self (LamSlot) – A LamSlot object
Returns:S_dict – Lamination surface dictionnary (Slam, Svent, Sslot) [m**2]
Return type:dict
get_pole_pair_number()

Return the number of pair of pole of the Lamination

Parameters:self (LamSlot) – A LamSlot object
Returns:p – Number of pair of pole
Return type:int
plot(fig=None, sym=1, alpha=0, delta=0)

Plot the Lamination with empty Slots in a matplotlib fig

Parameters:
  • self (LamSlot) – A LamSlot object
  • fig – if None, open a new fig and plot, else add to the current one (Default value = None)
  • sym (int) – Symmetry factor (1= full machine, 2= half of the machine…)
  • alpha (float) – Angle for rotation [rad]
  • delta (complex) – Complex value for translation
Returns:

Return type:

None

as_dict()[source]

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

slot

lamination Slot