pyleecan.GUI.Dialog.DMachineSetup.SLamShape.SLamShape module

class SLamShape(machine, material_dict, is_stator=False)[source]

Bases: Gen_SLamShape, QWidget

Step to define the Lamination Shape and 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 (SLamShape) – A SLamShape object

set_Kf1()[source]

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

Parameters:

self (SLamShape) – A SLamShape object

enable_rad_vent(is_checked)[source]

Clear radial vent value if g_radial is unselected

Parameters:
  • self (SLamShape) – A SLamShape object

  • is_checked (bool) – State of the g_radial checkbox

enable_ax_vent(is_checked)[source]

Clear axial vent value if g_axial is unselected

Parameters:
  • self (SLamShape) – A SLamShape object

  • is_checked (bool) – State of the g_axial checkbox

set_avd()[source]

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

Parameters:

self (SLamShape) – A SLamShape object

validate_avd()[source]

Validate the ventilation

Parameters:

self (SLamShape) – A SLamShape object

update_avd_text()[source]

Update the text with the current number of axial vent

Parameters:

self (SLamShape) – A SLamShape object

set_Nrvd()[source]

Signal to update the value of Nrvd according to the spinbox

Parameters:

self (SLamShape) – A SLamShape object

set_Wrvd()[source]

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

Parameters:

self (SLamShape) – A SLamShape object

enable_notches()[source]

Clear notches values if g_notches is unselected

set_notches()[source]

Opens widget to define notches to add to the lamination

Parameters:

self (SLamShape) – A SLamShape object

validate_notches()[source]

validates the notches defined by the user :param self: A SLamShape object :type self: SLamShape

update_notches_text()[source]

Update the text with the current number of notches

Parameters:

self (SLamShape) – A SLamShape object

enable_bore()[source]

Clear bore if g_bore is unselected

set_bore()[source]

Opens widget to define bore to add to the lamination

Parameters:

self (SLamShape) – A SLamShape object

validate_bore()[source]

validates the bore shape defined by the user :param self: A SLamShape object :type self: SLamShape

update_lenght()[source]

Update the text of out_length

Parameters:

self (SLamShape) – A SLamShape 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 (SLamShape) – A SLamShape object

staticMetaObject = <PySide2.QtCore.QMetaObject object>
update_graph()[source]

Plot the lamination without the winding