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'
hide_star_widget(is_hide=True)[source]

To display/hide the star of slot widgets

show_layer_widget()[source]
refresh_needed()[source]
s_generate()[source]
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

s_export_csv()[source]

Export the winding matrix to csv

s_import_csv()[source]

Import the winding matrix to csv

comp_output()[source]

Update the shape and period Label to match the current winding setup

Parameters:

self (SWinding) – a SWinding object

update_graph(is_lam_only=False)[source]

Plot the lamination with/without the winding

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

s_plot_mmf()[source]

Plot the unit mmf of the stator

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>