quintel / etmodel

Professional interface of the Energy Transition model.
https://energytransitionmodel.com/
MIT License
33 stars 14 forks source link

Sankey not correctly displaying H2 #2795

Closed AlexanderWirtz closed 6 years ago

AlexanderWirtz commented 6 years ago

The Sankey currently does not seem to correctly show all H2 in a system.

For example this scenario that creates only hydrogen from excess electricity and imports hydrogen: image

There is only primary hydrogen (105 PJ of imported hydrogen is indeed primary, but the Sankey shows more, namely 290 PJ of primary hydrogen) and there is no electricity --> hydrogen visible in the Sankey.

Notifying @ChaelKruip and @michieldenhaan. Discussed with @ChaelKruip to assign @marliekeverweij

marliekeverweij commented 6 years ago

Oops! But I am not sure how we want hydrogen to be displayed in this sankey.

Only primary carriers are shown in this sankey. Except for electricity and heat, they are produced from primary carriers in the middle of this sankey through electricity production and CHPs. Do we also want to display secundary hydrogen? Then we have to add many different conversion-blocks to the sankey I think (because now all produced hydrogen is being displayed in the left row but this actually should only be the imported hydrogen). For example we should add:

Is this how we want it?

Then another question; how will we separate the produced hydrogen streams into the different sectors? Do we give each produced hydrogen stream the same split as shown in the 'demand/supply hydrogen mekko'?

Sorry lot of questions ;-)

There is also the easy option to only show the imported hydrogen and not the produced hydrogen from other sources, but I don't think that we want this.

AlexanderWirtz commented 6 years ago

Except for electricity and heat, they are produced from primary carriers in the middle of this sankey through electricity production and CHPs. Do we also want to display secundary hydrogen?

I say yes: hydrogen plays a similar role in the system to electricity. It is interesting to know how much electricity goes into hydrogen production. This is probably complicated by the wish of Gasunie and GasTerra to make dedicated hydrogen production primary hydrogen production and to show hydrogen produced from excess power as secondary hydrogen. Any other hydrogen is secondary anyway.

For example we should add:

  • conversion from electricity --> hydrogen with an electrolyzer-block right of electricity production
  • conversion from gas --> hydrogen with an SMR-block underneath CHPs-block
  • conversion from hydrogen -> electricity in an gas turbine-block

My 2 cts:

Then another question; how will we separate the produced hydrogen streams into the different sectors? Do we give each produced hydrogen stream the same split as shown in the 'demand/supply hydrogen mekko'?

That sounds like a good idea.

marliekeverweij commented 6 years ago

This is probably complicated by the wish of Gasunie and GasTerra to make dedicated hydrogen production primary hydrogen production and to show hydrogen produced from excess power as secondary hydrogen. Any other hydrogen is secondary anyway.

Okay! The one thing I am thinking of is that P2H from excess electricity is now not included in the Sankey. Shall I also include that?

(Maybe @ChaelKruip also wants to join this discussion)

ChaelKruip commented 6 years ago

(Maybe @ChaelKruip also wants to join this discussion)

Yes. But I don't have time for this now unfortunately. We can wait with this until next week.

marliekeverweij commented 6 years ago

@michieldenhaan and I just discussed about this and we were inspired bij the Sankey of CE Delft:

screen shot 2018-06-08 at 10 13 24

We have a question for @antw : is it possible to make a connection from the electricity production block to the hydrogen production and vice versa? (this is also shown in the CE Delft sankey above) Like a kind of loop. Currently this doesn't happen in our ETM Sankey.

antw commented 6 years ago

We have a question for @antw : is it possible to make a connection from the electricity production block to the hydrogen production and vice versa? (this is also shown in the CE Delft sankey above) Like a kind of loop. Currently this doesn't happen in our ETM Sankey.

The answer seems to be: yes this is possible, but it will probably require some adjustments to the chart:

screen shot 2018-06-08 at 12 52 24

the loop gets drawn outside of the left of the chart, and labels on the right are cut off

... and needs some care when choosing what columns to show, and in which order to display the blocks:

screen shot 2018-06-08 at 12 53 36

if hydrogen is positioned vertically close to electricity production, the loop no longer looks like a loop

marliekeverweij commented 6 years ago

Okay it is done for now! In the end I found more things that had to be changed besides hydrogen ;) Before: screen shot 2018-06-19 at 10 25 29 After: screen shot 2018-06-19 at 10 24 23

Things that have changed:

  1. hydrogen production is added with:
    • a link from electricity production to hydrogen production (P2G)
    • a link from hydrogen production to electricity production
    • a link from hydrogen production to central heat production (incl. CHPs)
    • hydrogen import on the left
  2. renewables are split into: solar, wind, geothermal & ambient, water
  3. industry is split into 'industry' (energetic) and 'feedstock' (non-energetic)
  4. the energy sector is added
  5. 'CHPs' is renamed to 'central heat production (incl. CHPs)' and thus includes all central heat production technologies used for district heating and the central heat network
  6. a link is added from electricity production to 'central heat production (incl. CHPS)' so now collective heat pumps are also correctly displayed
  7. I have deleted some links from the sankey (f.e. from nuclear -> households) so that the lists become shorter
  8. I have changed the color used for losses, because it had the same color as hot water. And I have also create a block on the right for losses.

The only thing that still lacks in the Sankey is flexibility, but that was too much for this deploy. I will include this soon. I have only included P2G.

As you can see the sankey is becoming very full, I have some ideas for improvements to keep it understandable (@antw):

Please test the Sankey thoroughly before merging! @MartLubben @michieldenhaan @ChaelKruip Especially the losses; they are not always exactly the inputs - outputs ......

AlexanderWirtz commented 6 years ago

Looks like a big improvement @marliekeverweij !

Just checking, but I assume you are using the output of solar, ambient and wind as the primary energy on the left side, right? This because of the statistical convention that electricity output from solar, for example, is primary energy, not the solar energy that goes into the solar panel.

Maybe a bit pedantic to check, but also an easy mistake to make. :-)

marliekeverweij commented 6 years ago

Yes I am using the output of these nodes as the primary energy :)

ChaelKruip commented 6 years ago

Great work @marliekeverweij! Have you checked if the totals per sector and carrier add up to the correct numbers (consistent with the Mekko's for example)?

This is always a good 'sanity check' to perform :)

marliekeverweij commented 6 years ago

@Michiel and I will fix the sankey tomorrow and cherry-pick it to live!

michieldenhaan commented 6 years ago

The sankey has been updated and is now on BETA (see https://github.com/quintel/etmodel/pull/2819). I put up the 'Under construction' banner as it still needs some testing; I would suggest opening a new issue when concrete bugs are found.