WindingUD (class)

Warning : this file has been generated, you shouldn’t edit it

class WindingUD(user_wind_mat=None, is_reverse_wind=False, Nslot_shift_wind=0, qs=3, Ntcoil=7, Npcpp=2, type_connection=0, p=3, Lewout=0.015, conductor=-1, init_dict=None)[source]

Bases: pyleecan.Classes.Winding.Winding

User defined winding

VERSION = 1
comp_connection_mat(Zs)

Compute the Winding Matrix (for winding type 0) Type 0 : User defined

Parameters:
  • self (Winding) – A: Winding object
  • Zs (int) – Number of Slot (Integer >0)
Returns:

wind_mat – Winding Matrix (Nlay_rad, Nlay_tan, Zs, qs)

Return type:

numpy.ndarray

Raises:
  • WindingT0DefSumError – the sum of the element in user_wind_mat must be null
  • WindingT0DefShapeError – user_wind_mat shape must be (Nlay_rad, Nlay_tan,Zs,qs)
get_dim_wind()

Get the two first dimension of the winding matrix

Parameters:self (WindingUD) – A WindingUD object
Returns:(Nrad, Ntan) – Number of layer in radial and tangential direction
Return type:tuple
as_dict()[source]

Convert this objet in a json seriable dict (can be use in __init__)

user_wind_mat

user defined Winding matrix