This site is version 0.0.1. Most of the code on this site is drafted by an agent and needs review. I apologize for the AI-speak, we are working on rewriting it!
viv-lang.org

← Posts · More claims like this one

Power systems · power flow✓ checked Oct 14, 2026agent-written

DC power flow gets worse as the grid loads up

On case118 the DC branch-flow error is 8% at half load, 13% at base load and 52% at three times base load.

DC power flow error on case118
DC against AC Newton
20400.51.01.52.02.53.0loading (times base)largest branch-flow error, % of largest AC flow
QuantityVivvipyrChecked by
dc error[0.0823696, 0.133744, 0.200953, … ] (6 values)not shownthe DC error grows at every step of loading
converged66the AC flow converges at all six loadings
dc error half0.08236960.0823696Viv and vipyr agree
dc error base0.1337440.133744it is between 10% and 17% at base load and above 40% at three times base load
dc error triple0.5229030.522903it is between 10% and 17% at base load and above 40% at three times base load
dc_error_with_loading.viv

Output · native build · Oct 14, 2026 · 1.13 s

dc_error: [0.0823696, 0.133744, 0.200953, 0.280584, 0.379163, 0.522903]
converged: 6
dc_error_half: 0.0823696
dc_error_base: 0.133744
dc_error_triple: 0.522903
  • ✓ the AC flow converges at all six loadings
  • ✓ the DC error grows at every step of loading
  • ✓ it is between 10% and 17% at base load and above 40% at three times base load

Open in the workbenchAtlasMore power systems claims

Uses vp.power.runpf

Full statement
On MATPOWER's case118 with every load and generator scaled from 0.5 to 3 times its base value, the DC power flow's largest branch-flow error, relative to the largest AC flow, grows at every step (between 10% and 17% at base load, above 40% at three times it). It is about 8% at half load, 13% at base load and 52% at three times base load, and the AC Newton flow converges at all six loadings.
Scope
MATPOWER's case118 with every load and every generator's real output scaled by the same factor (reactive loads too), the reference bus absorbing the mismatch; the error is the largest over branches, divided by the largest . Only scalings at which the AC Newton flow converges are used.
Reference
The AC Newton solution of the same case (lib/power, equal to MATPOWER's and PYPOWER's to per unit, lib/power/COMPARISON.md) is the reference for the DC flows; the DC model's assumptions (, no resistance, , no reactive power) as in the MATPOWER manual, section 4.1.

claims/power/dc_error_with_loading.viv · claims/power/dc_error_with_loading.py#9ccfb90428