comp_wind_periodicity (method)

comp_wind_periodicity(wind_mat)[source]

Computes the winding pattern periodicity and symmetries

Parameters

wind_mat (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