SlotWind (class)¶
Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Slot/SlotWind
-
class
SlotWind
(Zs=36, init_dict=None, init_str=None)[source]¶ Bases:
pyleecan.Classes.Slot.Slot
Slot for winding (abstract)
-
VERSION
= 1¶
-
comp_angle_wind_eq
()¶ Compute the equivalent angle of the winding part of the slot (Ideal polar shape with the same surface and height)
- Parameters
self (SlotWind) – A SlotWind object
- Returns
alpha – Average angle of the slot [rad]
- Return type
float
-
comp_height_wind
(Ndisc=200)¶ Compute the height of the winding area
- Parameters
self (SlotWind) – A SlotWind object
Ndisc (int) – Number of point to discretize the lines
- Returns
Hwind – Height of the winding area [m]
- Return type
float
-
comp_radius_mid_wind
()¶ Compute the radius at the middle of the winding part of the slot
- Parameters
self (SlotWind) – A SlotWind object
- Returns
Rmw – Mid winding radius [m]
- Return type
float
-
comp_surface_wind
(Ndisc=200)¶ Compute the Slot winding surface (by numerical computation). Caution, the bottom of the Slot is an Arc
- Parameters
self (SlotWind) – A SlotWind object
Ndisc (int) – Number of point to discretize the lines
- Returns
S – Slot total surface [m**2]
- Return type
float
-
plot_wind
(wind_mat=None, fig=None, is_bar=False)¶ Plot the winding area of the lamination according to the wind_mat
- Parameters
self (SlotWind) – A SlotWind object
wind_mat (numpy.ndarray) – A matrix [Nrad,Ntan,Zs,qs] representing the winding (Default value = None)
fig – if None, open a new fig and plot, else add to the current one (Default value = None)
is_bar (bool) – To adapt the legend text for squirrel cage bar (Default value = False)
- Returns
- Return type
None
-
build_geometry_wind
(Nrad, Ntan, is_simplified=False, alpha=0, delta=0)¶ Split the slot winding area in several zone This method assume that the winding area is centered on X axis and symetrical Otherwise a dedicated build_geometry_wind method must be provided
- Parameters
self (SlotWind) – A SlotWind object
Nrad (int) – Number of radial layer
Ntan (int) – Number of tangentiel layer
is_simplified (bool) – boolean to specify if coincident lines are considered as one or different lines (Default value = False)
alpha (float) – Angle for rotation (Default value = 0) [rad]
delta (Complex) – complex for translation (Default value = 0)
- Returns
List of surface delimiting the winding zone
- Return type
surf_list
-
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
-