Slot (class)¶
Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Slot/Slot
-
class
Slot
(Zs=36, init_dict=None, init_str=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
(Ndisc=200)¶ Compute the height of the Slot. Caution, the bottom of the Slot is an Arc
- Parameters
self (Slot) – A Slot object
Ndisc (int) – Number of point to discretize the lines
- Returns
Htot – Height of the slot [m]
- Return type
float
-
comp_surface
(Ndisc=200)¶ Compute the Slot total surface (by numerical computation). Caution, the bottom of the Slot is an Arc
- Parameters
self (Slot) – A Slot object
Ndisc (int) – Number of point to discretize the lines
- 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
-
get_surface_tooth
()¶ Returns the surface delimiting the tooth (including yoke part)
-
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
-
comp_width_opening
()¶ Compute the average opening width of the Slot
- Parameters
self (Slot) – A Slot object
- Returns
W0 – Average opening width of the slot [m]
- Return type
float
-
get_name_lam
()¶ Return the name of the parent lamination
- Parameters
self (Slot) – A Slot object
- Returns
name – The name of the parent lamination
- Return type
string
-
save
(save_path='', is_folder=False)¶ Save the object to the save_path
- Parameters
self – A pyleecan object
save_path (str) – path to the folder to save the object
is_folder (bool) – to split the object in different files: separate simulation machine and materials
-
copy
()¶ Return a copy of the class
-
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
-
property
Zs
¶ slot number
- Type
int
- Min
0
- Max
1000
-