Purpose: put every part together. For one winding, this gives the full phase inductance matrix and resistance, the synchronous and zero-sequence values, and the imbalance. For several candidate windings on the same stator, it gives a side-by-side table.
What it does:stator_inductances(pattern, stator, end, ...) returns a StatorInductances. It holds the magnetising, harmonic, slot, tooth-tip and end-winding matrices, with total, leakage, positive(), zero(), imbalance() and summary(). compare_windings(patterns, stator, end, ...) puts the key numbers of each winding in one table.
Background: what each part is and what a measurement contains: Inductance Theory.
Assumptions: those of the parts: linear iron, a smooth rotor, a 1-D slot field and an empirical end-winding factor.
For each part, positive(part) gives the positive-sequence (synchronous) value \(L_{aa} - L_{ab}\) (exactly so for a balanced 3-phase winding), and zero(part) the zero-sequence value \(\tfrac1m \sum_{xy} L_{xy}\). imbalance() is phase_imbalance of the total, plus the resistance spread.
Stacked bars of the positive-sequence inductance of four windings on the same 48-slot stator, split into magnetising, harmonic, slot, tooth-tip and end-winding parts, with the self-inductance and resistance spread of each written above its bar.
stator_inductances
def stator_inductances( pattern:WindingPattern, stator:StatorGeometry, end:EndTurn |None=None, g_eff:float|None=None,**resistance, # none given -> resistance is None)->StatorInductances:
All parts of the stator inductance of a winding on a stator, and optionally its resistance.
Parameters
pattern, stator end : EndTurn | None End-turn shape; None -> no end winding and no resistance g_eff : float | None Effective air gap for the air-gap part (see airgap_inductance) resistance : keyword arguments for phase_resistance (a_cond or fill, T, …); none given -> resistance is None
Every part of a winding’s stator inductance, as m × m phase matrices [H], and its resistance.
Build it with stator_inductances.
Attributes
magnetising : np.ndarray Air gap, working harmonic ν = p harmonic : np.ndarray Air gap, all other harmonics (differential leakage) slot : np.ndarray Slot body, opening and tooth-tip transition tooth_tip : np.ndarray Tooth-tip leakage at the gap end_winding : np.ndarray End-winding leakage (empirical, diagonal) resistance : np.ndarray | None DC resistance per phase [Ω], if computed name : str
Side-by-side table of candidate windings on the same stator.
Columns: winding factor, series turns, positive-sequence magnetising, leakage and total inductance [mH], harmonic leakage factor σ_δ, self spread and sequence coupling of the total [%], even fill (every used slot position holds the same number of turns, a quick check that a hand-made winding can be built), and with resistance arguments the mean resistance [mΩ] and its spread [%].
Parameters
patterns : iterable of WindingPattern (their names label the rows) stator, end, g_eff, resistance : as stator_inductances
L_positive [mH] share of total [%]
magnetising 11.888 95.630
harmonic 0.132 1.061
slot 0.228 1.833
tooth_tip 0.032 0.258
end_winding 0.152 1.219
leakage 0.543 4.370
total 12.431 100.000
zero sequence 0.7205 mH, R = [118.91 118.91 118.91] mΩ at 120 °C
Comparing windings on one stator
Three windings on the 48-slot stator of the patent example, each with 48 series turns per phase: - the patent’s one-phase-per-layer winding; - a conventional double layer, short-pitched 10/12; - a single layer.
The end turns are the same shape for all three, with 8 mm tiers for the three-layer winding. Resistance is at 120 °C with fill 0.45. The table shows what the layer arrangement costs in balance, and what the conventional windings give in exchange (higher \(k_{w1}\), so more magnetising inductance per turn).
def ep2237392(order=("1", "2", "3"), turns=2):"""EP 2 237 392 B1: 48 slots, 4 poles, one phase per radial layer (phase k in layer order[k]).""" coils = []for ph, (start, sign0) inenumerate([(0, 1), (4, -1), (8, 1)]):for pole inrange(4): s0, sign = start +12* pole, sign0 * (-1) ** pole pos = order[ph]for k inrange(6): # concentric: spans 1, 3, ..., 11 a, b = (s0 +5- k) %48, (s0 +6+ k) %48if sign <0: a, b = b, a coils.append(Coil(ph, a, pos, b, pos, turns))return WindingPattern.custom(48, 4, coils, layout="over_under", n_layers=3, name="EP2237392")ep_stator = StatorGeometry(Q=48, r_bore=80e-3, g=0.6e-3, l_stk=150e-3, h_y=15e-3, l_ew=30e-3, slot=SlotGeometry.open(5e-3, 24e-3))
The parts add up to the total, the positive-sequence value of the sum is the sum of the parts’ values, and a balanced winding has zero spread and coupling. For a 3-phase balanced winding, \(L_s = L_{aa} - L_{ab}\) and \(L_0 = L_{aa} + 2L_{ab}\).
L = s.totalassert np.allclose(L, airgap_inductance(pat, stator) + slot_leakage_inductance(pat, stator)+ end_winding_inductance(pat, stator, EndTurn(l_ext=12e-3)))assert np.isclose(s.positive(), sum(s.positive(p) for p in ("magnetising", "harmonic", "slot", "tooth_tip", "end_winding")))assert np.isclose(s.positive(), L[0, 0] - L[0, 1]) and np.isclose(s.zero(), L[0, 0] +2* L[0, 1])imb = s.imbalance()assert imb["self_spread"] <1e-12and imb["sequence_coupling"] <1e-12and imb["R_spread"] <1e-12print("parts add up; balanced winding has no spread")
parts add up; balanced winding has no spread
Tests
References
Pyrhönen, J., Jokinen, T., Hrabovcová, V. (2014). Design of Rotating Electrical Machines (2nd ed.). Wiley, ch. 4 — synchronous inductance as magnetising plus leakage.
Krause, P.C., Wasynczuk, O., Sudhoff, S.D., Pekarek, S. (2013). Analysis of Electric Machinery and Drive Systems (3rd ed.). Wiley-IEEE Press — phase, sequence and dq inductances.