pyleecan.GUI.Dialog.DMachineSetup.SMachineDimension.SMachineDimension module¶
- class SMachineDimension(machine, material_dict, is_stator=False)[source]¶
Bases:
Ui_SMachineDimension
,QWidget
Step to setup the Machine dimension
- saveNeeded¶
- step_name = 'Machine Dimensions'¶
- set_stator_Rint()[source]¶
Signal to update the value of stator.Rint according to the line edit
- Parameters:
self (SMachineDimension) – A SMachineDimension object
- set_stator_Rext()[source]¶
Signal to update the value of stator.Rext according to the line edit
- Parameters:
self (SMachineDimension) – A SMachineDimension object
- set_rotor_Rint()[source]¶
Signal to update the value of rotor.Rint according to the line edit
- Parameters:
self (SMachineDimension) – A SMachineDimension object
- set_rotor_Rext()[source]¶
Signal to update the value of rotor.Rext according to the line edit
- Parameters:
self (SMachineDimension) – A SMachineDimension object
- set_airgap()[source]¶
Signal to update the value of airgap according to the line edit
- Parameters:
self (SMachineDimension) – A SMachineDimension object
- set_Wfra()[source]¶
Signal to update the value of Wfra according to the spinbox
- Parameters:
self (SMachineDimension) – A SMachineDimension object
- set_Lfra()[source]¶
Signal to update the value of Lfra according to the line edit
- Parameters:
self (SMachineDimension) – A SMachineDimension object
- clear_frame(is_checked)[source]¶
Signal to remove the frame if the checkbox is unchecked
- Parameters:
self (SMachineDimension) – A SMachineDimension object
is_checked (bool) – State of the g_frame checkbox
- set_Drsh(is_checked)[source]¶
Signal to set Drsh according to the page context
- Parameters:
self (SMachineDimension) – A SMachineDimension object
is_checked (bool) – State of g_shaft
- 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
- check_gui()[source]¶
Check that the widget are set right according to the current machine
- Parameters:
self (SMachineDimension) – A SMachineDimension object
- staticMetaObject = <PySide2.QtCore.QMetaObject object>¶