### Another approach to Cable Resistance (with fluid network)

Posted:

**Thu May 05, 2016 6:54 pm**The topic of cable resistance has been discussed before in

"Cable Resistance / Non-looseless Power Transmission"

viewtopic.php?f=80&t=15546&p=145539

and the show-stopper was the time-complexity of calculating a Flow network

https://en.wikipedia.org/wiki/Flow_network

.

I'd like to propose another approach which works like the water flow in pipes: You give every pole a small capacitance and every cable a resistance. Instead of calculating the equilibrium state with the complex algorithm, at each update cycle you only calculate the flow between each pair of connected poles. (Difference in voltage divided by the connecting resistance gives the current. Sum of currents times update time divided by capacitance gives the voltage in the next frame.) I assume this is how the pipe network works.

In order for these differential equations to converge using the incremental solution the RC-constants should be larger than the update time. With a constant consumption the whole network should converge against the real flow network solution. The solar cells and batteries couldn't be treated as one big thing anymore but they could be lumped together into local (neighboring) groups, which wouldn't be too bad.

This would enable great things like:

* having to plan your power distribution on large maps

* separating low-voltage and high-voltage networks for local and distant energy distribution

* having the transformer translate between the two networks

"Cable Resistance / Non-looseless Power Transmission"

viewtopic.php?f=80&t=15546&p=145539

and the show-stopper was the time-complexity of calculating a Flow network

https://en.wikipedia.org/wiki/Flow_network

.

I'd like to propose another approach which works like the water flow in pipes: You give every pole a small capacitance and every cable a resistance. Instead of calculating the equilibrium state with the complex algorithm, at each update cycle you only calculate the flow between each pair of connected poles. (Difference in voltage divided by the connecting resistance gives the current. Sum of currents times update time divided by capacitance gives the voltage in the next frame.) I assume this is how the pipe network works.

In order for these differential equations to converge using the incremental solution the RC-constants should be larger than the update time. With a constant consumption the whole network should converge against the real flow network solution. The solar cells and batteries couldn't be treated as one big thing anymore but they could be lumped together into local (neighboring) groups, which wouldn't be too bad.

This would enable great things like:

* having to plan your power distribution on large maps

* separating low-voltage and high-voltage networks for local and distant energy distribution

* having the transformer translate between the two networks