Slot (class)

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

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

Bases: pyleecan.Classes.frozen.FrozenClass

Generic class for slot (abstract)

VERSION = 1
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
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

as_dict()[source]

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

Zs

slot number