pyleecan.GUI.Dialog.DMachineSetup.SWinding.SWinding module¶
- class SWinding(machine, material_dict, is_stator=False)[source]¶
Bases:
Gen_SWinding
,QWidget
Step to define the winding pattern & circuit
- saveNeeded¶
- step_name = 'Winding'¶
- set_type(index)[source]¶
Signal to update the winding type
- Parameters:
self (SWinding) – A SWinding object
index (int) – Index of selected type
- set_Ntcoil()[source]¶
Signal to update the value of Ntcoil according to the spinbox
- Parameters:
self (SWinding) – A SWinding object
- set_Nslot()[source]¶
Signal to update the value of Nslot_shift_wind according to the spinbox
- Parameters:
self (SWinding) – A SWinding object
- set_is_reverse_wind(value)[source]¶
Signal to update the value of is_reverse_wind according to the widget
- Parameters:
self (SWinding) – A SWinding object
value – New value of is_reverse_wind
- set_is_reverse_layer(value)[source]¶
Signal to update the value of is_reverse_layer according to the widget
- Parameters:
self (SWinding) – A SWinding object
value – New value of is_reverse_layer
- set_is_permute_B_C(value)[source]¶
Signal to update the value of is_permute_B_C according to the widget
- Parameters:
self (SWinding) – A SWinding object
value – New value of is_permute_B_C
- set_Npcp()[source]¶
Signal to update the value of Npcp according to the line edit
- Parameters:
self (SWindParam) – A SWindParam object
- comp_output()[source]¶
Update the shape and period Label to match the current winding setup
- Parameters:
self (SWinding) – a SWinding object
- s_plot_linear()[source]¶
Plot linear pattern of the winding defined
- Parameters:
self (SWinding) – A SWinding object
- s_plot_radial()[source]¶
Plot radial pattern of the winding defined
- Parameters:
self (SWinding) – A SWinding object
- static check(lamination)[source]¶
Check that the 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
- staticMetaObject = <PySide2.QtCore.QMetaObject object>¶