Slot (class)

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

class Slot(Zs=36, init_dict=None)[source]

Bases: pyleecan.Classes._frozen.FrozenClass

Generic class for slot (abstract)

VERSION = 1
build_geometry_half_tooth(is_top=False, alpha=0, delta=0)

Build the geometry of a Half Tooth

Parameters:
  • self (LamSlot) – a LamSlot object
  • is_top (bool) – To select the part of the tooth (X>0 or X <0)
  • alpha (float) – Angle for rotation [rad]
  • delta (complex) – Complex value for translation
Returns:

surf_list – list of surfaces needed to draw the half tooth including slot base

Return type:

list

check()

Check that the Slot object is correct

Parameters:self (Slot) – A Slot object
Returns:
Return type:None
comp_angle_opening()

Compute the average opening angle of the Slot

Parameters:self (Slot) – A Slot object
Returns:alpha – Average opening angle of the slot [rad]
Return type:float
comp_height()

Compute the height of the Slot. Caution, the bottom of the Slot is an Arc

Parameters:self (Slot) – A Slot object
Returns:Htot – Height of the slot [m]
Return type:float
comp_surface()

Compute the Slot total surface (by numerical computation). Caution, the bottom of the Slot is an Arc

Parameters:self (Slot) – A Slot object
Returns:S – Slot total surface [m**2]
Return type:float
get_is_stator()

Return True if the parent lamination is stator and False if is a rotor

Parameters:self (Slot) – A Slot object
Returns:is_stator – True if the Lamination is a stator and False if not
Return type:bool
get_Rbo()

Return the parent lamination bore radius

Parameters:self (Slot) – A Slot object
Returns:Rbo – The parent lamination bore radius [m]
Return type:float
get_surface()

Returns the surface delimiting the slot

Parameters:self (Slot) – A Slot object
Returns:surface – A SurfLine object representing the slot
Return type:SurfLine
get_surface_tooth()

Returns the surface delimiting the tooth (including yoke part)

Parameters:self (Slot) – A Slot object
Returns:surface – A SurfLine object representing the slot
Return type:SurfLine
is_outwards()

Return if the slot is outwards (on an external lamination) or inwards (on an internal lamination)

Parameters:self (Slot) – A Slot object
Returns:is_outwards – True if the Lamination is not internal and false if not
Return type:bool
plot(fig=None)

Plot the Slot in a matplotlib fig

Parameters:
  • self (Slot) – A Slot object
  • fig – if None, open a new fig and plot, else add to the current one (Default value = None)
Returns:

Return type:

None

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__)

Zs

slot number