SlotWind (class)

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

class SlotWind(Zs=36, init_dict=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()

Compute the height of the winding area

Parameters:self (SlotWind) – A SlotWind object
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()

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

Parameters:self (SlotWind) – A SlotWind object
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

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