plot_wind (method)¶
-
plot_wind
(self, wind_mat=None, fig=None, is_bar=False)[source]¶ 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
-
get_color
(wind_mat, Nrad, Ntan, Zs)[source]¶ Return the color (corresponding phase) for the zone (Nrad,Ntan,Zs)
- Parameters
wind_mat – A matrix [Nrad,Ntan,Zs,qs] representing the winding
Nrad – Zone radial coordinate
Ntan – Zone tagential coordinate
Zs – Zone slot number coordinate
- Returns
color: Color of the zone
- Return type
str