pyleecan.Functions.Winding.gen_phase_list module

gen_color(N)[source]

Generate a list of phase color

Parameters:

N (int) – number of color to generate

Returns:

Color_list – A list of hexa representation of colors (str)

Return type:

list

gen_name(N, is_add_phase=False)[source]

Generate a list of phase name

Parameters:
  • N (int) – number of name the generate

  • is_add_phase (bool) – True to add “Phase ” in the resulting names

Returns:

Name_list – A list of phase name

Return type:

list