Solar Power Excel sheet

Calculate optimal ratios for feeding recipes, search through the research-tree, specialized tools to view game-information.
Post Reply
Merroc
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Mar 27, 2015 5:37 pm
Contact:

Solar Power Excel sheet

Post by Merroc »

Please read also through https://forums.factorio.com/wiki/inde ... olar_panel -- ssilk

Hi all,

There is a lot of discussions & math going on these forums, about solar power & how many accumulators you need. However just the math isn't going to tell you how many solar panels your factory needs. To help myself (& now others) see how many solar panels I need, I made an Excel sheet with some calculations. If you input your factories power requirement & the number of solar panels/accumulators (edit any of the blue fields) it will show you how many you are short (or over) & which power usage you can support with your given solar panels.

Hope this will make it easier for everyone to plan their power needs!

Cheers,
Factorio.zip
actual fileformat is .xlsx
(12.86 KiB) Downloaded 2909 times

Natha
Fast Inserter
Fast Inserter
Posts: 175
Joined: Sun Mar 15, 2015 1:48 pm
Contact:

Re: Solar Power Excel sheet

Post by Natha »

I tested this with 300kw, but this is not right. It says that I need 8 Solar and 6 Accus, but this is not the real value. I believe the current power comsumption is not included in your calculations.

My calculations were that you need for 15 solar panels 13 (max 24) accus (for 300kw). Then you have a buffer (for laser turrets) and the accu capacity should never falling down to 0.
calc

Koub
Global Moderator
Global Moderator
Posts: 7197
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Solar Power Excel sheet

Post by Koub »

Your formulas don't take into consideration I might have 0 solar panels :)

By the way, it's hard to check if your formulas are right, too many things are in 'Math' and 'Constants' hidden sheets, with passwords everywhere. All we can do is put values in cells, make the calculations on a paper, and check if we agree on the result.

I'll just redo an Excel sheet for myself, was just too lazy until now.
Koub - Please consider English is not my native language.

Merroc
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Mar 27, 2015 5:37 pm
Contact:

Re: Solar Power Excel sheet

Post by Merroc »

Natha wrote:I tested this with 300kw, but this is not right. It says that I need 8 Solar and 6 Accus, but this is not the real value. I believe the current power comsumption is not included in your calculations.

My calculations were that you need for 15 solar panels 13 (max 24) accus (for 300kw). Then you have a buffer (for laser turrets) and the accu capacity should never falling down to 0.
calc
You are not taking into account that your with more than 5 solar panels you are still making more power after dusk starts.
For the day, I agree, 5 solar panels. For night (without dusk) you need 12.5 MJ of power (=2.5 accus).

For dusk & dawn the math should take into account that with more than 5 panels you are still charging for some part of the dusk & dawn. In case of 8 solar panels you are still charging your accus for 1875 ticks of the 5000 ticks that a dawn (or dusk) lasts. Only for the 1876th tick and onwards you actually need an accumulator.
more math
Panel math
Koub wrote:Your formulas don't take into consideration I might have 0 solar panels :)

By the way, it's hard to check if your formulas are right, too many things are in 'Math' and 'Constants' hidden sheets, with passwords everywhere. All we can do is put values in cells, make the calculations on a paper, and check if we agree on the result.

I'll just redo an Excel sheet for myself, was just too lazy until now.
You are right, I didn't consider the fact that there might be 0 solar panels. Chances are however you have some lying around ;).

If you want to unlock anything to verify, I forgot to mention the password:
Factorio!

Natha
Fast Inserter
Fast Inserter
Posts: 175
Joined: Sun Mar 15, 2015 1:48 pm
Contact:

Re: Solar Power Excel sheet

Post by Natha »

i think you cant construct the best proportions of solar panels and accus without buffer. Either the solar panels produce at day too much energy or you have too much accu capacity...
and its very difficult to calculate the production that each second the avaiable performance of each solar panel will be used. That comes from the inappropriate values of day-night-time and performances of solar panels and accus. But i think it is not bad if at the end of day and in dusk/dawn some avaiable performance of solar panels or rather at the and of night some remained energy in accus will not be used respectively is lost.

and i think there are differents between our calculations because yoou calculate with the needed energy of completely day (inc. night, dawn and dusk), so there are excess and shortage, and i calculate with the each second needed performance.

Merroc
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Mar 27, 2015 5:37 pm
Contact:

Re: Solar Power Excel sheet

Post by Merroc »

If you have stable power requirements and meet the mimimum calculated, you will have (near) dry accus after solar panels pick up again and at the start of night, the accus are just full. I've seen this myself ingame.

The biggest problem is that power requirements aren't stable over time and could vary greatly, depending on production. However any model that only calculates mimimums will have this problem, hence it's mimimum. What the model does tell you is that if you have less than the mimimum, you will run out of power at night for sure. I've also seen this ingame (both too little solar panels, or to little accus).

It should be possible to model power consumption, production & accu levels in a graph (per second, or per tick), from the figures in my model.

User avatar
Khyron
Fast Inserter
Fast Inserter
Posts: 178
Joined: Fri May 30, 2014 5:47 pm
Contact:

Re: Solar Power Excel sheet

Post by Khyron »

For each megawatt of power you need, build 23.8 solar panels and 20 accumulators.

If you're curious on the math, view the thread where we worked it out.

Natha
Fast Inserter
Fast Inserter
Posts: 175
Joined: Sun Mar 15, 2015 1:48 pm
Contact:

Re: Solar Power Excel sheet

Post by Natha »

it should be clear that there can be multiple approaches.
my other calculation (the night includes dusk and dawn again, because its too difficult calculate with the linear decrease):

1 solar panel procudes with a performance of 60kW, so 30kW are used for consumption at day and the other 30kW are used to store the energy for night.
I also assume from a needed performance of 300kW.

So if you have 10 solar panels, 300kW are used to provide energy at day and 300kW to store the energy.
1 accu (dis-)charges completely in 16,66667s with 300kW. So 10 solar panel can charge at day (208s) 12,48 accus.
You need at night 62,4MJ energy, and exactly this amount provide 12,48 accus.

=> 10 solar panel + 13 accus for each 300kW (each 600kW 12 accus).

User avatar
MeduSalem
Smart Inserter
Smart Inserter
Posts: 1485
Joined: Sun Jun 08, 2014 8:13 pm
Contact:

Re: Solar Power Excel sheet

Post by MeduSalem »

Hypothetically the 23.8 panels/20 accumulators for 1 MW would be perfect. The ratio is known for a very long time now and the discussion could stop right there as the solution has been found a year ago.

But realistically it never really works out that way. Just never. At least not without peaceful mode.

The problem is that we have to defend our bases. Most commonly that is done by laser turrets... and that's when stuff just gets way too complicated to be pinpointed around a golden ratio.

If you design the solarfarm to match your average consumption you will pretty much end up powerless during heavy attacks no matter if your setup matches the perfect ratio. And if you put more panels/accumulators than you need to cover the attacks then the ratio doesn't really matter anymore since the perfect ratio only kicks in during the consumption spikes when the turrets get ready for a heavy attack. The rest of the time you have either too many solar panels or too many accumulators depending on your perspective and realistically you have too many of both but you need them because otherwise you are doomed when you run out of power before sunrise.

So no matter which way you go about the problem, the perfect ratio is an illusion and not worth to be executed in most games other than in peaceful mode ones when biters never attack.

That's why I stopped bothering with Solar Farms a long time ago, wasting too much space and no amount of math will prevent you from the eventuality of a blackout, especially if you drive them at the edge where the ratio would actually matter.

Post Reply

Return to “Cheatsheets / Calculators / Viewers”