Disclaimer: This mod is still in active development, balance and features may change in new versions.
An add-on for Power Overload, on its way to becoming standalone.
Power is lost along copper wires, depending on resistance weighted distance, pole type and load.
Runs a DC power flow simulation on each electric network.
Every loss is visible in the electric network statistics.
Check out the notebooks in the github page for a detailed explanation of how the mod works and for some cool graphs!
How it works
This mod simulates power transmission losses, on top of the Power Overload network separation with Transformers.
There exist three kinds of power transmission loss (for now):
-
Line loss: proportional to
i^{2}r, where i is the current (assuming V constant over the whole network) and r the resistance weighted wire length; a DC power flow model simulates the power flow through each electrical network, and consumes part of the transmitted electricity through a hidden consumer; -
Transformer inefficiency: a transformer passes 99% (map setting) of what it receives; Power Overload's own efficiency is locked at 1 to avoid counting it twice.
-
Transformer core loss: a fixed power draw of 0.1% of the transformer rating, which is the rating of the strongest pole on the transformer's weaker side.
Interface
- Line loss and Transformer losses consumers appear in the electricity overview
- Transformer panel to inspect its losses;
- Line loss Toolkit: a new panel including visualisation options, opened with any Line loss map view;
- Map views to draw line loading and power distribution, complementary to PO's network visualisation;
- An Energy Tab (adapted from Energy Category, see credits) to tidily hold all energy related entities;
Line loss calculation
Each wire loses a share of the power P it carries:
loss = P × min(p_tile × R × (0.1 + 0.9 × P / P_ref), 95%)
R = length × (r_A + r_B) / 2: the wire's resistance-weighted length (×2 for a transmission pole wired straight to a distribution pole)p_tile: map setting "Line loss per tile" (0.025%)P_ref=P_rating / 4- At
P = P_refa wire losesp_tile × R; it loses less below that (never under a tenth of it), and more above it: loss grows withP².
Gameplay
- Poles have different resistances based on their PO rating, and are classified as distribution or transmission poles;
r = √(P_big / P_pole), with P_big the big electric pole's rating (300 MW)
| Pole | Power Overload rating | Resistance per tile $r$ | Class |
|---|---|---|---|
| Huge electric pole | 1 GW | 0.55 | Transmission |
| Big electric pole | 300 MW | 1.00 | Transmission |
| Substation | 125 MW | 1.55 | Distribution |
| Compact substation | 125 MW | 1.55 | Distribution |
| Medium electric pole | 60 MW | 2.24 | Distribution |
| Small electric pole | 10 MW | 5.48 | Distribution |
-
Transmission poles have no supply area
-
Wiring a transmission pole straight to a distribution pole incurs in a penalty to the connection's resistance (×2).
-
Power flow naturally splits over the whole network, lower resistance lines draw more power than higher resistance lines!
-
Poles are checked for destruction based on their local power, replacing the PO check which is locked to "Nothing".
-
Fulgora isolated networks are supported, as lightning rods and accumulators are counted as generators;
Performance
The DC power flow simulation is not light, and scales badly with the number of poles in a network. With the use of Transformers, we are breaking down the huge vanilla network into smaller ones, and this is what allows the simulation to be viable. Consider reducing the size of your biggest networks (find them in the Simulation tab) if you encounter slowdowns!
On a 3000 poles base divided in 300 networks of uneven size, each electricity flow update takes about 40 ticks, and is done every 5 seconds.
Credits and licence
- Built on Power Overload by Xorimuth (Tom Burrows),
and uses parts of its code. - The Energy tab is adapted from Energy Category by
Lumme (MIT), including its tab icon; the idea of moving every pole there from
Power poles in energy tab by Ander_PC_. - MIT licence (see LICENCE.txt).