From 7972637334e42fe5c0f8219eae7aab9125637fb3 Mon Sep 17 00:00:00 2001 From: lisazeyen Date: Tue, 22 Sep 2020 09:54:52 +0200 Subject: [PATCH] add upper energy capacity limit for hydrogen storage per country, caution: for multiple nodes in one country storage potential is distributed by population --- scripts/prepare_sector_network.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index f4ceca9b..582967d9 100644 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -772,10 +772,16 @@ def add_storage(network): h2_capital_cost = costs.at["hydrogen storage underground", "fixed"] + # assumptions: weight storage potential in a country by population + h2_pot = (h2_cavern_ct.loc[cavern_nodes.ct, "TWh"].astype(float) + .reset_index().set_index(cavern_nodes.index)) + h2_pot = h2_pot.TWh * cavern_nodes.fraction + network.madd("Store", cavern_nodes.index + " H2 Store", bus=cavern_nodes.index + " H2", e_nom_extendable=True, + e_nom_max=h2_pot.values, e_cyclic=True, carrier="H2 Store", capital_cost=h2_capital_cost)