SWindPat module

class SWindPat(machine, matlib, is_stator=False)[source]

Bases: pyleecan.GUI.Dialog.DMachineSetup.SWindPat.Gen_SWindPat.Gen_SWindPat, PySide2.QtWidgets.QWidget

Step to define the winding pattern

saveNeeded
step_name = 'Winding (1)'
set_type(index)[source]

Signal to update the winding type

Parameters
  • self (SWindPat) – A SWindPat object

  • index (int) – Index of selected type

set_qs()[source]

Signal to update the value of qs according to the spinbox

Parameters

self (SWindPat) – A SWindPat object

set_coil_pitch()[source]

Signal to update the value of coil_pitch according to the spinbox

Parameters

self (SWindPat) – A SWindPat object

set_Nslot()[source]

Signal to update the value of Nslot_shift_wind according to the spinbox

Parameters

self (SWindPat) – A SWindPat object

set_is_reverse_wind(value)[source]

Signal to update the value of is_reverse_wind according to the widget

Parameters
  • self (SWindPat) – A SWindPat object

  • value – New value of is_reverse_wind

hide_coil_pitch()[source]

Show coil_pitch only if type(winding) is WindingDW2L

Parameters

self (SWindPat) – A SWindPat object

set_output()[source]

Update the shape and period Label to match the current winding setup

Parameters

self (SWindPat) – a SWindPat object

update_graph()[source]

Plot the lamination with/without the winding

s_plot()[source]

Plot a preview of the winding in a popup

Parameters

self (SWindPat) – A SWindPat object

static check(lamination)[source]

Check that the lamination have all the needed field set

Parameters

lamination (Lamination) – Lamination to check

Returns

error – Error message (return None if no error)

Return type

str

staticMetaObject = <PySide2.QtCore.QMetaObject object>