S12 · Lesson 19 · Synchronous machine lab
Solving round-rotor and salient-pole phasor diagrams in code, tracing V-curves and their stability limit, finding a salient machine's maximum power, and modeling a generator on a power system
Lessons 10 to 18 drew phasor diagrams by hand: excitation from terminal conditions, V-curves from the field, the salient machine's two reactances, the power-angle curve through a network. Each is a few lines of complex arithmetic, and once it's in code the questions a designer actually asks become easy: how the field must change across a load range, where the stability limit lies, how much saliency adds. In this lab you'll write those functions and check them against the lessons' worked examples.
- The curves are V-curves: armature current against excitation for a machine with = 1 pu on a 1 pu bus, at the three real powers shown.
- Each has its minimum at unity power factor, where the current equals the real power, and ends on the left at the stability limit .
- Overexcited (right) the machine supplies reactive power; underexcited (left) it absorbs it.
Predict
On its 0.8 pu V-curve ( = 1 pu), a machine's excitation is raised from 1.281 pu (unity power factor) to 2.0 pu. What happens to its armature current?
Real power is fixed by the shaft, so only the reactive part changes. At = 2.0, sin δ = 0.4 and the current is pu: 0.8 pu real and 0.83 pu reactive, supplied to the bus. Task 3 traces the whole curve.
Name it
What the lab computes
- Round rotor (generator, neglected): , with for a lagging power factor.
- Salient pole: gives the direction of (the angle δ); then and .
- V-curves: at real power P on a 1 pu bus, and the current is ; the curve exists only for .
- Salient maximum power: peaks below 90°.
Check
Write round_rotor(V, I, pf, Xs, lagging=True) returning in per unit and degrees for a generator.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write salient(V, I, pf, Xd, Xq, lagging=True) returning by the two-reaction method.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write v_curve(P, Xs, E): the armature current for real power P and excitation E on a 1 pu bus, or None below the stability limit, and stability_limit(P, Xs).
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write salient_pmax(E, Xd, Xq): the maximum of on a 1 pu bus and its angle in degrees, by golden-section search between 0 and 90°.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
Why does a synchronous machine's armature current have a minimum as its field current is varied at constant real power?
With the shaft power fixed, the real part of the armature current is fixed too, because the terminal voltage is set by the bus. The field current sets the excitation voltage, which decides how much reactive power the machine exchanges with the bus: overexcited it supplies reactive power, underexcited it absorbs it. The armature current is the vector sum of its fixed real part and this reactive part, so it is smallest when the reactive part is zero, at unity power factor, and grows on either side. Lowering the field further eventually reaches the point where the excitation can no longer hold the real power at any angle, which ends the curve.