SWindCond module

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

Bases: pyleecan.GUI.Dialog.DMachineSetup.SWindCond.Ui_SWindCond.Ui_SWindCond, PyQt5.QtWidgets.QWidget

Step to define the winding conductor

saveNeeded
step_name = 'Winding Conductor'
emit_save()[source]

Send a saveNeeded signal to the DMachineSetup

s_set_cond_type(index)[source]

Setup the Gui for the selected conductor type

Parameters:
  • self (SWindCond) – A SWindCond object
  • index (int) – Index of the selected conductor type
s_update(index)[source]

Update the GUI to show the current conductor widget

Parameters:
  • self (SWindCond) – a SWindCond object
  • index (int) – Index of the selected conductor type
static check(lamination)[source]

Check that the current 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