comp_wind_sym (method)

comp_wind_sym(wind_mat)[source]

Computes the winding pattern periodicity and symmetries

Parameters:wind_mat (numpy.ndarray) – Matrix of the Winding
Returns:Nperw – Number of electrical period of the winding
Return type:int
gcd(a, b)[source]

Return the greatest common divisor of a and b

Parameters:
  • a (int) – first number
  • b (int) – second number
Returns:

gcd – greatest common divisor of a and b

Return type:

int

lcm(a, b)[source]

Return the least common multiple of a and b

Parameters:
  • a (int) – first number
  • b (int) – second number
Returns:

lcm – least common multiple of a and b

Return type:

int