L34 / Power-flow analysis
Power Flow III
Specify slack/PV/PQ data, reproduce the solved three-bus case, and interpret a separate lossless line.
01 / UNDERSTAND & PREDICT
Understand the model, then predict the result
- Derive full P/Q sums including each self term and distinguish them from branch formulas.
- Identify specified and dependent quantities at PQ, PV and slack buses.
- Reproduce the source solution and check load matching, generator outputs and losses.
- Explain the assumptions behind a separate lossless line power-angle curve.
Keep the self term and conjugate the full current
Every Yik is an entry of the assembled Y-bus. The sums include k=i: the diagonal contributes |Vi|²Gii to P and −|Vi|²Bii to Q. The positive Bik sin term follows from (−j)(j)=+1. Net bus powers are generation minus local load on the common three-phase base.
Count all quantities, then the voltage unknowns
Each bus has four real quantities P, Q, |V| and angle. The 2n power relations plus 2n operating specifications determine 2n remaining quantities. After eliminating dependent powers, one connected network with one slack has 2nPQ+nPV voltage unknowns. In this example there are six remaining quantities in total, but only three voltage unknowns.
A bus type chooses specifications, not different physics
PQ fixes P and Q; solve magnitude and angle. PV fixes net P and magnitude; solve angle, then calculate Q. Slack fixes magnitude and reference angle; calculate P and Q. Every bus still obeys both power relations. A generator icon alone does not assign its operating role.
Reproduce the specified three-bus operating point
Use the unchanged L32/L33 series impedances on 100 MVA. Bus 1 now has |V1|=1.03 and angle 0. Bus 2 has net P2=0.55 and |V2|=1.01. Bus 3 has P3=−0.90, Q3=−0.30. Solve theta2, theta3 and |V3| using P2, P3 and Q3. The web numerical helper reproduces the state; iteration methods are developed in later lectures.
Recover generator powers and reconcile the network
At the source solution, Q2≈−16.1649 Mvar means generator 2 absorbs reactive power while supplying 55 MW. PV voltage control does not prescribe the sign of Q. With no local loads at buses 1 and 2, their injections equal generator outputs. Total generation supplies the 90 MW demand plus about 2.8855 MW of resistive losses. This experiment does not impose generator Q limits.
Separate line: ideal power-angle relation
For a separate two-terminal line with z=jX, X>0, no charging or shunts, hold both voltage magnitudes fixed. Its branch susceptance is −1/X, whereas its Y-bus off-diagonal is +j/X. Real power reaches its algebraic maximum at 90°. This is not a thermal rating or proof of secure operation; actual operating margins depend on the network and contingencies.
Zero real loss does not mean zero reactive absorption
Both terminal powers are positive into the line. At equal angles and Vi>Vk, the high-voltage end supplies Q and the other end receives part of it; the line absorbs the difference. At nonzero angle, both ends may supply Q. The separate line controls and curves do not change the full three-bus network or certify a secure operating region.
Baseline example: check each step
- Use the P2, P3 and Q3 equations for the three voltage unknowns (theta2, theta3, |V3|); calculate P1, Q1 and Q2 afterward.
- The reproduced solution is V2=1.01000∠0.31081324° and V3=0.96441375∠−3.65230906°, consistent with the source rounded values.
- P1=37.88547754 MW, Q1=54.88714872 Mvar, and Q2=−16.16487306 Mvar. Negative Q2 is reactive absorption at the regulated generator.
- Total real loss is 37.88547754+55−90=2.88547754 MW. Check the same result by summing branch R|I|².
- The selected mismatches are specified minus calculated (P2, P3, Q3); all approach zero. Full polar P/Q and complex VI* calculations agree.
- For the separate lossless line at 20°, P=176.1404 MW, Qi=46.5083 Mvar and Qk=16.0583 Mvar. Both terminals supply reactive power into that line. Its ideal Pmax is 515 MW at 90°, not an operating rating.
- Set the separate line angle to zero: P=0, Qi=15.45 Mvar, Qk=−15.00 Mvar, so the line absorbs 0.45 Mvar.
Cross-check the original slides
02 / EXPLORE
Change one input and explain the response
Change the load, generator schedule or voltage targets and explain the solved bus 3 voltage, slack P and PV Q. Then expand the independent lossless-line controls: compare delta=0° and 20°, and test the power-angle maximum. These two-terminal controls do not change the three-bus solution.
Advanced parameters / test readings
Preparing the model.
Separate lossless line: fixed-magnitude power-angle curve
Separate lossless line: reactive transfer at equal angles
Current intermediate values and numerical checks
Balanced positive-sequence steady state on 100 MVA; fixed three-bus topology, series impedances, unity taps, no charging or shunts. The numerical helper seeks the high-voltage solution from a flat start; it does not enumerate all roots or impose generator Q, thermal or contingency limits. A nonconverged case is not displayed as a solved point. The separate lossless line uses its own stated inputs; its algebraic maximum is not a secure transfer limit.
03 / EDIT & COMPUTE
Edit code to reproduce the model independently
Reproduce the baseline, then modify the parameter scan. The source contains reusable independent model functions; edit the current function and inspect numerical checks.
case is a snapshot of the controls when you press Run. Call solve(case) and assign the final solution to result to plot it.
The first run needs internet access to download Python. Computation stays in your browser; the solver uses only the standard library.
Ready to run.
Output appears here.
Last Python run and current control reference
Inspect and edit the model source (advanced)
Edit this module's function and run again. case.module selects the module; solve(case) returns values, plots, and checks. The parameter experiment keeps the original JavaScript reference for comparison.
04 / CHECK & EXPLAIN
Companion experiment practice and feedback
Full network: 100 MVA base; z12=0.018+j0.060, z13=0.070+j0.210, z23=0.045+j0.135 pu; unity taps, no charging or shunts. Slack V1=1.03∠0°, PV P2=55 MW and |V2|=1.01; PQ load=90 MW+j30 Mvar. Independently, the illustrative lossless line has |Vi|=1.03, |Vk|=1.00, X=0.20 pu and delta=20° on the same 100 MVA base.
Practice uses fixed baseline inputs independently of the controls. Each field displays its tolerance.
See the worked solution
- Use the P2, P3 and Q3 equations for the three voltage unknowns (theta2, theta3, |V3|); calculate P1, Q1 and Q2 afterward.
- The reproduced solution is V2=1.01000∠0.31081324° and V3=0.96441375∠−3.65230906°, consistent with the source rounded values.
- P1=37.88547754 MW, Q1=54.88714872 Mvar, and Q2=−16.16487306 Mvar. Negative Q2 is reactive absorption at the regulated generator.
- Total real loss is 37.88547754+55−90=2.88547754 MW. Check the same result by summing branch R|I|².
- The selected mismatches are specified minus calculated (P2, P3, Q3); all approach zero. Full polar P/Q and complex VI* calculations agree.
- For the separate lossless line at 20°, P=176.1404 MW, Qi=46.5083 Mvar and Qk=16.0583 Mvar. Both terminals supply reactive power into that line. Its ideal Pmax is 515 MW at 90°, not an operating rating.
- Set the separate line angle to zero: P=0, Qi=15.45 Mvar, Qk=−15.00 Mvar, so the line absorbs 0.45 Mvar.
Finally, explain in your own words
- What are the inputs, references, and main assumptions?
- Change the load, generator schedule or voltage targets and explain the solved bus 3 voltage, slack P and PV Q. Then expand the independent lossless-line controls: compare delta=0° and 20°, and test the power-angle maximum. These two-terminal controls do not change the three-bus solution.
- Did your code edit change physical parameters, the method, or representation bases? Which check helps identify that?
Passing numerical and understanding checks records this lecture’s companion practice as “practice checks passed.”
