SMachineType module

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

Bases: pyleecan.GUI.Dialog.DMachineSetup.SMachineType.Gen_SMachineType.Gen_SMachineType, PyQt5.QtWidgets.QWidget

First Step to setup the Machine Type

saveNeeded
step_name = 'Machine Type'
s_set_name()[source]

Set the name of the machine

Parameters:self (SMachineType) – A SMachineType object
set_p()[source]

Signal to update the value of p according to the spinbox

Parameters:self (SMachineType) – A SMachineType object
set_inner_rotor(is_checked)[source]

Signal to update the value of is_internal according to the widget

Parameters:
  • self (SMachineType) – A SMachineType object
  • is_checked (bool) – State of is_internal
set_machine_type(index)[source]

Change the machine type according to the combobox

Parameters:
  • self (SMachineType) – A SMachineType object
  • index (int) – Selected machine type index
static check(machine)[source]

Check that the current machine have all the needed field set

Parameters:machine (Machine) – Machine to check
Returns:error – Error message (return None if no error)
Return type:str