Solar Power Ratios

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
GregFirehawk
Inserter
Inserter
Posts: 27
Joined: Tue Dec 17, 2024 9:47 am
Contact:

Solar Power Ratios

Post by GregFirehawk »

I was looking at the wiki and can't seem to understand how they arrived at the ratio for solar panels to accumulators there. The solar panel has an effective uptime of 70%, and the remaining 30% needs to be buffered for when there isn't light. This gives an average power rating of 42 kW. So far everything makes sense.

If you actually calculate how much power you need to buffer though, its ~5.2 MJ, and the ratio of panels to accumulators is 1:1.0584. This is extremely different to what is written on the wiki, where it says the ratio is 1:~0.85. Can someone explain to me how the numbers can be so far off?
Tertius
Smart Inserter
Smart Inserter
Posts: 1643
Joined: Fri Mar 19, 2021 5:58 pm
Contact:

Re: Solar Power Ratios

Post by Tertius »

You don't need to supply power for the whole dusk+dawn+night phase from the accumulator, just for the phase where solar panel output is below 42 kW.
dusk and dawn is 84 seconds each, night is 42 seconds.

We need to supply power for the dusk+dawn part where power is below 42 kW.
This is 70% power, so it is 70% of dusk+dawn, so it's for 0.7*84 = 58.8 seconds.

So we need to buffer for this 58.8 seconds of dusk+dawn and for the night of 42s to sustain 42 kW. Not for 84 seconds + 42 seconds.
energy = (58.8s + 42s) * 42 kW = 4233.7 kJ

Comparing this with the capacity of the accumulator of 5000 kJ: 4233.7 / 5000 = 0,84672

And this is the well known ratio.
Hurkyl
Fast Inserter
Fast Inserter
Posts: 171
Joined: Mon Dec 02, 2024 10:54 am
Contact:

Re: Solar Power Ratios

Post by Hurkyl »

Is that 5:2:1:2 breakdown of the day-night cycle the same on all planets? I've had trouble finding any documentation on that.
Tertius wrote: Wed May 27, 2026 1:02 pmSo we need to buffer for this 58.8 seconds of dusk+dawn and for the night of 42s to sustain 42 kW. Not for 84 seconds + 42 seconds.
energy = (58.8s + 42s) * 42 kW = 4233.7 kJ
You're missing that the solar panels are sill supplying half of the energy during those 58.8 seconds as they scale linearly between 70% and 0% power.

But fixing that, the breakdown is (with "max power" being the daylight power generation of the solar panels)
  • You spend 0.5 days during daylight, with 30% of max power going into charging the accumulators
  • You spend 0.4 * 0.3 days during dusk/dawn, averaging 15% of max power going into charging the accumulators
  • You spend 0.4 * 0.7 days during dusk/dawn, averaging 35% of max power being drained from the accumulators
  • You spend 0.1 days during night, averaging 70% of max power being drained from the accumulators
So 0.5 * 30% + 0.4 * 0.3 * 15% = 16.8% = 0.4 * 0.7 * 35% + 0.1 * 70% of a day's energy needing to be buffered.
Tertius
Smart Inserter
Smart Inserter
Posts: 1643
Joined: Fri Mar 19, 2021 5:58 pm
Contact:

Re: Solar Power Ratios

Post by Tertius »

Hurkyl wrote: Wed May 27, 2026 3:25 pm Is that 5:2:1:2 breakdown of the day-night cycle the same on all planets? I've had trouble finding any documentation on that.
Tertius wrote: Wed May 27, 2026 1:02 pmSo we need to buffer for this 58.8 seconds of dusk+dawn and for the night of 42s to sustain 42 kW. Not for 84 seconds + 42 seconds.
energy = (58.8s + 42s) * 42 kW = 4233.7 kJ
You're missing that the solar panels are sill supplying half of the energy during those 58.8 seconds as they scale linearly between 70% and 0% power.
It's not missing. Look at the graph in the wiki and take into account we compute energy as the area of shapes (rectangles and triangles):

Image

dusk is 58.8 seconds and dawn is 58.8 seconds.
We don't have to deal with triangles. Do a bit of cut+paste with paper and scissors, and you get this. Cut the triangle of dusk and paste it against dawn to get a rectangle:
05-27-2026, 19-48-12.png
05-27-2026, 19-48-12.png (20.97 KiB) Viewed 205 times
Now, area A is neither consuming nor charging the accumulator - it's balanced for the time of dawn (A). But dusk (night+B) is now completely supplied by the accumulator. This area is what we need as charge in the accumulator. Its length is night + length of dusk until 42 kW, which is 70%. This is the energy we need to supply from the accumulator, which is 42 kW * (42s + 0.7*84s) = 4233.6 kWs = 4233.6 kJ.

The whole energy collected by the solar panel can be calculated the same way, also cutting the triangle of the whole dusk and paste it to dawn to make it a rectangle, so the length of the whole rectangle is day + dusk (or dawn, but not both) = 210 s + 84 s = 294 s. The height is 60 kW, so:
energy production = 294 s * 60 kW = 17640 kJ.

At the same time consumption is the whole area below the 42 kW line.
This is the whole day+dusk+dawn+night (420 s) with 42 kW:
energy consumption = 420 s * 42 kW = 17640 kJ

We see, consumption equals production.

ps.
after looking at the wiki tutorial cited by Loewchen I have to apologize to ignore integrals but use just ordinary rectangles for area calculation. But it's really not that complicated. As far as I see, this tutorial page is too convoluted to be of practical use. A wiki article should be up to the point and not a lengthy monograph about a single topic.
Last edited by Tertius on Wed May 27, 2026 6:14 pm, edited 3 times in total.
Tertius
Smart Inserter
Smart Inserter
Posts: 1643
Joined: Fri Mar 19, 2021 5:58 pm
Contact:

Re: Solar Power Ratios

Post by Tertius »

Hurkyl wrote: Wed May 27, 2026 3:25 pm Is that 5:2:1:2 breakdown of the day-night cycle the same on all planets? I've had trouble finding any documentation on that.
According to a comment in
"C:\Program Files (x86)\Steam\steamapps\common\Factorio\data\core\prototypes\utility-constants.lua"
"C:\Program Files (x86)\Steam\steamapps\common\Factorio\data\space-age\prototypes\planet\planet.lua"
-- Should be based on the default day/night times, ie
-- sun starts to set at 0.25
-- sun fully set at 0.45
-- sun starts to rise at 0.55
-- sun fully risen at 0.75
All planets seem to have the same values. Although the color distortion at sunset/sunrise is different, it seems the day/night ratio relevant for solar panel power production is the same everywhere.
GregFirehawk
Inserter
Inserter
Posts: 27
Joined: Tue Dec 17, 2024 9:47 am
Contact:

Re: Solar Power Ratios

Post by GregFirehawk »

I made a more intuitive graph. If you look at the net kW line things become a lot more intuitive

https://wiki.factorio.com/File:Alternat ... _Graph.png

My mistake was I was calculating in net kW like you're supposed to, but I still did the integration off of gross kW, which is where the error comes up. With the net kW line on the graph its much clearer and simpler to get the numbers straight
Post Reply

Return to “Gameplay Help”