Windings (free from eddy-currents)

Function: wkey = def_new_wdg(x, y, col, label, turns, curr_re, curr_im, con)

Definition of a winding conductor (strand). The imaginary part of the current is meaningful only with FEMAG-AC, and it can be omitted in FEMAG-DC.

Parameter
x/y Coordinates of ‘seed’ point in a superelement
col Colour (“blue”, “green”, …)
label Name of the strand (limited to 16 characters), in quotation marks, e.g. “Strang 1
turns Effective No. of conductors in a coil-side
curr_re Peak value (Spitzenwert) of the real component of conductor current
curr_im Peak value of the imaginary component of conductor current
con Current direction: wi = into the plane, wo = out of the plane
Return value

wkey Winding number, or 0 in case of an error.

Example

wkey = def_new_wdg(0,5.5,"cyan","Phase U",100,0.0,"wo")   -- define a new winding phase
wkey = def_new_wdg(0,5,5,cyan,"Phase U",100,0.0,wo)       -- deprecated version

Command: add_to_wdg (x, y, wky, con1, con2)

Add a coil side to the winding strand.

Parameter
x/y Coordinates of ‘seed’ point in a superelement
wkey Winding number of the strand to which to add, or “wsamekey” for last defined strand.
con1 Current direction: wi = into the plane, wo = out of the plane
con2 Circuit connection: wser = series, wpar = parallel

Command: add_to_wdg_nt(x, y, wkey, con1, con2, turns)

Hinzufügen einer Spulenseite zum Wicklungsstrang mit individueller Windungszahl

Parameter
x/y Punkt innerhalb eines Superelementes
wkey Winding number of the strand to which to add, or “wsamekey” for last defined strand.
con1 Current direction: wi = into the plane, wo = out of the plane
con2 Circuit connection: wser = series, wpar = parallel
turns Effective No. of conductors in a coil-side

Example

add_to_wdg_nt(x,y,"wsamekey","wo","wser",101)   -- add a coil side with an individual number of turns
add_to_wdg_nt(x,y,wsamekey,wo,wser,101)         -- deprecated version

Command: del_all_coils()

Delete the entire winding from the current model.

Command: del_curr_wdg(wky, curr_re, curr_im)

Definition of the conductor current in a winding strand. The imaginary part of the current is meaningful only with FEMAG-AC, and it can be omitted in FEMAG-DC.

Parameter
wkey Winding number of the strand to which to add, or wsamekey for last strand.
curr_re Peak value of the real component of conductor current [A]
curr_im Peak value of the imaginary component of current [A] (optional)

Command: def_currdens_se(x, y, cdens)

Definition of the current-density in a superelement.

Parameter
x,y Coordinates of ‘seed’ point in a superelement
cdens Current-density [A/mm²]

Command: def_currdens_sr(x, y, cdens)

Definition of the current-density in a subregion.

Parameter
x,y Coordinates of ‘seed’ point in a superelement
cdens Current-density [A/mm²]

Command: def_currdens(x, y, cdens, type)

Definition of the current-density in a subregion or a superelement.

Parameter
x,y Coordinates of ‘seed’ point in a superelement or a subregion
cdens Current-density [A/mm²]
type Subregion = 0, Superelement <> 0,

Command: shift_windings(radius)

Shifts one or all of the windings of the machine through one slot-pitch clock-wise.

The argument radius is optional. If not specified, the air-gap radius, if known in the model, is used, i.e. the winding outside the air-gap is selected and moved. Positive values of radius move the winding outside the circle defined by radius; negative values move the winding within the circle specified by the value of radius. The value zero for radius moves all winding systems of the machine.

Parameter

radius Radius to select the winding to be shifted, in global length units.

Return value

Execution status (0 = error, 1 = no error)