{"id":57,"date":"2012-06-11T13:24:00","date_gmt":"2012-06-11T13:24:00","guid":{"rendered":"https:\/\/sandrock.co.za\/carl\/2012\/06\/11\/no-free-energy-why-eroei-matters\/"},"modified":"2012-06-11T13:24:00","modified_gmt":"2012-06-11T13:24:00","slug":"no-free-energy-why-eroei-matters","status":"publish","type":"post","link":"https:\/\/sandrock.co.za\/carl\/2012\/06\/no-free-energy-why-eroei-matters\/","title":{"rendered":"No free energy: why EROEI matters"},"content":{"rendered":"<p>This is a follow-up post on <a href=\"http:\/\/negfeedback.blogspot.com\/2012\/06\/quick-look-at-energy-in-south-africa.html\">the previous one<\/a> about energy in SA. After writing it, or more accurately after writing many of the same words in a very long Facebook battle recently, a few links were posted that claimed that EROEI doesn&#8217;t matter.<\/p>\n<p>\nThe Wikipedia article on <a href=\"http:\/\/en.wikipedia.org\/wiki\/Energy_returned_on_energy_invested\">EROEI<\/a> gives a pretty good summary. In short, you use energy to collect energy in the future. It has been argued <a href=\"http:\/\/bountifulenergy.blogspot.com\/2010\/09\/eroi-doesnt-matter.html\">that EROI doesn&#8217;t matter<\/a> when you have a source of energy as bountiful as the sun.&nbsp; Unfortunately, you actually have to build things like solar panels or windmills to capture the energy coming from the sun and convert it into something that we can use. <\/p>\n<p>I wrote a quick simulation in Python that shows why it does matter,<br \/>\nand would like to paste some of the prettier results here for posterity.&nbsp; The scenario I analysed works as follows:<\/p>\n<p>Imagine we live in a world where we are using 1 energy unit every month, and we expect to double that usage over the next 100 years in a linear fasion (this is already a little ambitious, as recent energy demand growth has been closer to an exponential).&nbsp; Further, imagine we have the ability right now to produce 1.2 units of energy every month (20% more than we use), but we want to phase out the dirty old technology linearly over a period of 15 years.&nbsp; Graphically the situation looks like this, for the next 20 years.<\/p>\n<div style=\"clear: both;text-align: center\">\n<a href=\"http:\/\/1.bp.blogspot.com\/-xCU0sJFH3po\/T9XrSD7uh8I\/AAAAAAAABa0\/_Yu85uCX_W4\/s1600\/assumptions.png\" style=\"margin-left: 1em;margin-right: 1em\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"480\" src=\"http:\/\/1.bp.blogspot.com\/-xCU0sJFH3po\/T9XrSD7uh8I\/AAAAAAAABa0\/_Yu85uCX_W4\/s640\/assumptions.png\" width=\"640\" \/><\/a><\/div>\n<p>\nSo, let&#8217;s say we see problems ahead and therefore we use some fraction of the surplus energy every month (say 20%) to build new solar panels which will supply clean energy in the future.&nbsp; For the purposes of this simulation, let&#8217;s use a productive lifetime for these panels of 20 years.&nbsp; The EROEI is the ratio of the energy produced by the panel over its total lifetime to the original energy cost of the panel.&nbsp; The next figure shows the results of our slightly unnatural situation for values near the balance:<\/p>\n<div style=\"clear: both;text-align: center\">\n<a href=\"http:\/\/1.bp.blogspot.com\/-cOHJvj1jUXw\/T9XuVllUX-I\/AAAAAAAABbA\/zmuuWxA3KAs\/s1600\/trajectories.png\" style=\"margin-left: 1em;margin-right: 1em\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"480\" src=\"http:\/\/1.bp.blogspot.com\/-cOHJvj1jUXw\/T9XuVllUX-I\/AAAAAAAABbA\/zmuuWxA3KAs\/s640\/trajectories.png\" width=\"640\" \/><\/a><\/div>\n<p>I&#8217;ve shown three values for EROEI for our theoretical solar panels, chosen so that they either fail to satisfy our energy demand, just manage to do so or do so exponentially well.&nbsp; This illustrates just how important it is to invest in the correct technology, even if it is renewable. In our example, any EROEI less than 10.3 will result in us running out of energy, with no way to build ourselves out of it.&nbsp; There is no Energy Bank where we can borrow a lot of energy to build the new things we need &#8211; the world doesn&#8217;t work that way.&nbsp; The closest we have at the moment is the energy stored as fossil fuels, but that is also not an infinite resource.<\/p>\n<p>Another way of looking at EROEI is that it determines what fraction of the total energy activity of our society is dedicated to building replacement energy devices. In fact, the calculation is very simple, this fraction just the inverse of the EROEI (1\/EROEI). &nbsp;So when EROEI is 2, half of the energy economy is dedicated to building more energy devices.<\/p>\n<p>I post the source code for the simulation here in the interest of transparency. Note that these are fictional numbers in fictional units, but the simulation illustrates a point: there is something like a too-low return when it comes to building the new energy capacity that we will need to ween ourselves off fossil fuels.<\/p>\n<p><\/p>\n<div style=\"background: #ffffff;background: white;border-width: .1em .1em .1em .8em;border: solid gray;color: black;overflow: auto;padding: .2em .6em;width: auto\">\n<pre style=\"line-height: 125%;margin: 0\"><span style=\"color: green;font-weight: bold\">from<\/span> <span style=\"color: #0e84b5;font-weight: bold\">__future__<\/span> <span style=\"color: green;font-weight: bold\">import<\/span> division\n<span style=\"color: green;font-weight: bold\">import<\/span> <span style=\"color: #0e84b5;font-weight: bold\">matplotlib.pyplot<\/span> <span style=\"color: green;font-weight: bold\">as<\/span> <span style=\"color: #0e84b5;font-weight: bold\">plt<\/span>\n\n<span style=\"color: grey\"># Simulation parameters<\/span>\nNyears <span style=\"color: #303030\">=<\/span> <span style=\"color: #0000d0;font-weight: bold\">20<\/span>\nNmonths <span style=\"color: #303030\">=<\/span> <span style=\"color: #0000d0;font-weight: bold\">12<\/span><span style=\"color: #303030\">*<\/span>Nyears\n\n<span style=\"color: grey\"># Installed capacity<\/span>\n<span style=\"color: green;font-weight: bold\">def<\/span> <span style=\"color: #0060b0;font-weight: bold\">installed<\/span>(i):\n    <span style=\"color: #d04020\">\"\"\" Linear decline in installed capacity down to zero\"\"\"<\/span>\n    endt <span style=\"color: #303030\">=<\/span> <span style=\"color: #0000d0;font-weight: bold\">15<\/span><span style=\"color: #303030\">*<\/span><span style=\"color: #0000d0;font-weight: bold\">12<\/span>\n    beginE <span style=\"color: #303030\">=<\/span> <span style=\"color: #6000e0;font-weight: bold\">1.2<\/span>\n    <span style=\"color: green;font-weight: bold\">if<\/span> i <span style=\"color: #303030\">&gt;<\/span> endt:\n        <span style=\"color: green;font-weight: bold\">return<\/span> <span style=\"color: #0000d0;font-weight: bold\">0<\/span>\n    <span style=\"color: green;font-weight: bold\">else<\/span>:\n        <span style=\"color: green;font-weight: bold\">return<\/span> (endt <span style=\"color: #303030\">-<\/span> i)<span style=\"color: #303030\">*<\/span>(beginE)<span style=\"color: #303030\">\/<\/span>endt\n\n<span style=\"color: grey\"># Usage<\/span>\n<span style=\"color: green;font-weight: bold\">def<\/span> <span style=\"color: #0060b0;font-weight: bold\">usage<\/span>(i):\n    <span style=\"color: #d04020\">\"\"\" linear increase of 0.1 unit per year of 1 unit\/month \"\"\"<\/span>\n    <span style=\"color: green;font-weight: bold\">return<\/span> i<span style=\"color: #303030\">*<\/span><span style=\"color: #0000d0;font-weight: bold\">1<\/span><span style=\"color: #303030\">\/<\/span><span style=\"color: #0000d0;font-weight: bold\">100<\/span><span style=\"color: #303030\">\/<\/span><span style=\"color: #0000d0;font-weight: bold\">12<\/span> <span style=\"color: #303030\">+<\/span> <span style=\"color: #0000d0;font-weight: bold\">1<\/span>\n\n<span style=\"color: grey\"># New energy stats<\/span>\nlife <span style=\"color: #303030\">=<\/span> <span style=\"color: #0000d0;font-weight: bold\">20<\/span><span style=\"color: #303030\">*<\/span><span style=\"color: #0000d0;font-weight: bold\">12<\/span>\nbuildfactor <span style=\"color: #303030\">=<\/span> <span style=\"color: #6000e0;font-weight: bold\">0.2<\/span>\n\n<span style=\"color: grey\"># For plotting<\/span>\nmonths <span style=\"color: #303030\">=<\/span> <span style=\"color: #007020\">range<\/span>(Nmonths)\n\n<span style=\"color: green;font-weight: bold\">def<\/span> <span style=\"color: #0060b0;font-weight: bold\">simulate<\/span>(EROEI):\n\n    <span style=\"color: grey\"># Initial energy<\/span>\n    E <span style=\"color: #303030\">=<\/span> <span style=\"color: #0000d0;font-weight: bold\">0<\/span>\n\n    <span style=\"color: grey\"># remember what we have built<\/span>\n    builds <span style=\"color: #303030\">=<\/span> []\n    Eovertime <span style=\"color: #303030\">=<\/span> []\n    <span style=\"color: green;font-weight: bold\">for<\/span> i <span style=\"color: black;font-weight: bold\">in<\/span> months:\n        <span style=\"color: grey\"># add installed capacity<\/span>\n        E <span style=\"color: #303030\">+=<\/span> installed(i)\n\n        <span style=\"color: grey\"># add energy from built capacity<\/span>\n        <span style=\"color: green;font-weight: bold\">for<\/span> (b, Ecost) <span style=\"color: black;font-weight: bold\">in<\/span> builds:\n            <span style=\"color: green;font-weight: bold\">if<\/span> i <span style=\"color: #303030\">-<\/span> b <span style=\"color: #303030\">&lt;<\/span> life:\n                E <span style=\"color: #303030\">+=<\/span> Ecost<span style=\"color: #303030\">*<\/span>EROEI<span style=\"color: #303030\">\/<\/span>life\n\n        <span style=\"color: grey\"># subtract usage<\/span>\n        E <span style=\"color: #303030\">-=<\/span> usage(i)\n\n        <span style=\"color: green;font-weight: bold\">if<\/span> E <span style=\"color: #303030\">&lt;<\/span> <span style=\"color: #0000d0;font-weight: bold\">0<\/span>:\n            E <span style=\"color: #303030\">=<\/span> <span style=\"color: #0000d0;font-weight: bold\">0<\/span> <span style=\"color: grey\"># can't go into energy debt<\/span>\n        <span style=\"color: green;font-weight: bold\">else<\/span>:\n            <span style=\"color: grey\"># spend a fixed fraction of reserves on building new capacity<\/span>\n            Ecost <span style=\"color: #303030\">=<\/span> buildfactor<span style=\"color: #303030\">*<\/span>E\n            E <span style=\"color: #303030\">-=<\/span> Ecost\n            builds<span style=\"color: #303030\">.<\/span>append((i, Ecost))\n\n        <span style=\"color: grey\"># Save what we have after all that<\/span>\n        Eovertime<span style=\"color: #303030\">.<\/span>append(E)\n\n    <span style=\"color: green;font-weight: bold\">return<\/span> Eovertime\n\n\ntimeaxis <span style=\"color: #303030\">=<\/span> [i<span style=\"color: #303030\">\/<\/span><span style=\"color: #0000d0;font-weight: bold\">12<\/span> <span style=\"color: green;font-weight: bold\">for<\/span> i <span style=\"color: black;font-weight: bold\">in<\/span> months]\n\nplt<span style=\"color: #303030\">.<\/span>plot(timeaxis, <span style=\"color: #007020\">map<\/span>(installed, months),\n         timeaxis, <span style=\"color: #007020\">map<\/span>(usage, months))\nplt<span style=\"color: #303030\">.<\/span>xlabel(<span style=\"background-color: #fff0f0\">'Years in future'<\/span>)\nplt<span style=\"color: #303030\">.<\/span>ylabel(<span style=\"background-color: #fff0f0\">'Energy'<\/span>)\nplt<span style=\"color: #303030\">.<\/span>legend([<span style=\"background-color: #fff0f0\">'Old energy installed capacity'<\/span>, <span style=\"background-color: #fff0f0\">'Usage'<\/span>], <span style=\"background-color: #fff0f0\">'best'<\/span>)\nplt<span style=\"color: #303030\">.<\/span>savefig(<span style=\"background-color: #fff0f0\">'assumptions.png'<\/span>)\nplt<span style=\"color: #303030\">.<\/span>figure()\n\nratios <span style=\"color: #303030\">=<\/span> [<span style=\"color: #6000e0;font-weight: bold\">10.5<\/span>, <span style=\"color: #6000e0;font-weight: bold\">10.305<\/span>, <span style=\"color: #6000e0;font-weight: bold\">10.1<\/span>]\n<span style=\"color: green;font-weight: bold\">for<\/span> EROEI <span style=\"color: black;font-weight: bold\">in<\/span> ratios:\n    plt<span style=\"color: #303030\">.<\/span>plot(timeaxis, simulate(EROEI), linewidth<span style=\"color: #303030\">=<\/span><span style=\"color: #0000d0;font-weight: bold\">2<\/span>)\n\nplt<span style=\"color: #303030\">.<\/span>ylim([<span style=\"color: #0000d0;font-weight: bold\">0<\/span>, <span style=\"color: #0000d0;font-weight: bold\">4<\/span>])\nplt<span style=\"color: #303030\">.<\/span>axvline(<span style=\"color: #0000d0;font-weight: bold\">15<\/span>, color<span style=\"color: #303030\">=<\/span><span style=\"background-color: #fff0f0\">'black'<\/span>)\nplt<span style=\"color: #303030\">.<\/span>axhline(<span style=\"color: #0000d0;font-weight: bold\">0<\/span>, color<span style=\"color: #303030\">=<\/span><span style=\"background-color: #fff0f0\">'black'<\/span>)\nplt<span style=\"color: #303030\">.<\/span>xlabel(<span style=\"background-color: #fff0f0\">'Years in future'<\/span>)\nplt<span style=\"color: #303030\">.<\/span>legend(ratios,  <span style=\"background-color: #fff0f0\">'best'<\/span>)\nplt<span style=\"color: #303030\">.<\/span>ylabel(<span style=\"background-color: #fff0f0\">'Energy stored'<\/span>)\nplt<span style=\"color: #303030\">.<\/span>savefig(<span style=\"background-color: #fff0f0\">'trajectories.png'<\/span>)\nplt<span style=\"color: #303030\">.<\/span>show()\n<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This is a follow-up post on the previous one about energy in SA. After writing it, or more accurately after writing many of the same words in a very long Facebook battle recently, a few links were posted that claimed that EROEI doesn&#8217;t matter. The Wikipedia article on EROEI gives a pretty good summary. In [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[],"tags":[114,124,142,170,195],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","tag-analysis","tag-code","tag-energy","tag-model","tag-simulation"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sandrock.co.za\/carl\/wp-json\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sandrock.co.za\/carl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sandrock.co.za\/carl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sandrock.co.za\/carl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sandrock.co.za\/carl\/wp-json\/wp\/v2\/comments?post=57"}],"version-history":[{"count":0,"href":"https:\/\/sandrock.co.za\/carl\/wp-json\/wp\/v2\/posts\/57\/revisions"}],"wp:attachment":[{"href":"https:\/\/sandrock.co.za\/carl\/wp-json\/wp\/v2\/media?parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sandrock.co.za\/carl\/wp-json\/wp\/v2\/categories?post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sandrock.co.za\/carl\/wp-json\/wp\/v2\/tags?post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}