pyleecan.Functions.Winding.find_wind_phase_color module

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_phase_id(wind_mat, Nrad, Ntan, Zs)[source]

Return the id of the 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:

q_id – Id of the phase

Return type:

int