comp_wind_sym (method)

@package Functions.comp_wind_sym computes the winding pattern periodicity and symmetries fonction @date Created on Tue Dec 23 09:51:35 2014 @copyright (C) 2014-2015 EOMYS ENGINEERING. @author pierre_b

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 greater commun diviser of a and b

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

gcd – greater commun diviser 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