find_wind_phase_color (method)

@package find_wind_phase @date Created on juil. 02 12:17 2018 @author franco_i

find_wind_phase_color(label, wind_mat)[source]

Returns Color phase of the Winding surface

Parameters:
  • label (str) – the label of the surface
  • wind_mat (numpy.ndarray) – A matrix [Nrad,Ntan,Zs,qs] representing the winding
Returns:

color – Color of the zone

Return type:

str

get_color(wind_mat, Nrad, Ntan, Zs)[source]

Return the color (corresponding phase) for the zone (Nrad,Ntan,Zs)

Parameters:
  • wind_mat (numpy.ndarray) – A matrix [Nrad,Ntan,Zs,qs] representing the winding
  • Nrad (int) – Zone radial coordinate
  • Ntan (int) – Zone tagential coordinate
  • Zs (int) – Zone slot number coordinate
Returns:

color – Color of the zone

Return type:

str