SLamParam module

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

Bases: pyleecan.GUI.Dialog.DMachineSetup.SLamParam.Gen_SLamParam.Gen_SLamParam, PyQt5.QtWidgets.QWidget

Step to setup the main lamination parameters

saveNeeded
step_name = 'Lamination'
emit_save()[source]
set_L1()[source]

Signal to update the value of L1 according to the line edit

Parameters:self (SLamParam) – A SLamParam object
set_Kf1()[source]

Signal to update the value of Kf1 according to the line edit

Parameters:self (SLamParam) – A SLamParam object
enable_rad_vent(is_checked)[source]

Clear radial vent value if g_rad_vent is unselected

Parameters:
  • self (SLamParam) – A SLamParam object
  • is_checked (bool) – State of the g_rad_vent checkbox
enable_ax_vent(is_checked)[source]

Clear axial vent value if g_ax_vent is unselected

Parameters:
  • self (SLamParam) – A SLamParam object
  • is_checked (bool) – State of the g_ax_vent checkbox
set_avd()[source]

Open the GUI to allow the edition of the axial ventilation duct

Parameters:self (SLamParam) – A SLamParam object
update_avd_text()[source]

Update the text with the current number of axial vent

Parameters:self (SLamParam) – A SLamParam object
set_Nrvd()[source]

Signal to update the value of Nrvd according to the spinbox

Parameters:self (SLamParam) – A SLamParam object
set_Wrvd()[source]

Signal to update the value of Wrvd according to the line edit

Parameters:self (SLamParam) – A SLamParam object
update_lenght()[source]

Update the text of out_length

Parameters:self (SLamParam) – A SLamParam object
static check(lamination)[source]

Check that the current machine have all the needed field set

Parameters:lamination (Lamination) – Lamination 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 (SLamParam) – A SLamParam object
s_plot()[source]

Plot the lamination (radial and axial) if possible

Parameters:self (SLamParam) – A SLamParam object