From e550ba915dbfea1a8a4f48dc2efa18ca55741ad5 Mon Sep 17 00:00:00 2001 From: virio-andreyana <114650479+virio-andreyana@users.noreply.github.com> Date: Mon, 24 Apr 2023 14:08:25 +0200 Subject: [PATCH] Update add_extra_components.py Note: - battery charger and battery discharger has no nice name nor plot_color - H2 electrolysis is similar to H2 Electrolysis in the tech_color - H2 fuel cell is similar to H2 Fuel cell in the tech_color - H2 pipeline do have have nice name and tech_color, but the addition of it depends on the link being true in config --- scripts/add_extra_components.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/add_extra_components.py b/scripts/add_extra_components.py index 020370e5..0d3fcc6f 100644 --- a/scripts/add_extra_components.py +++ b/scripts/add_extra_components.py @@ -119,6 +119,8 @@ def attach_stores(n, costs, elec_opts): e_cyclic=True, capital_cost=costs.at["hydrogen storage underground", "capital_cost"], ) + + n.madd("Carrier",["H2 electrolysis","H2 fuel cell"]) n.madd( "Link", @@ -161,6 +163,8 @@ def attach_stores(n, costs, elec_opts): capital_cost=costs.at["battery storage", "capital_cost"], marginal_cost=costs.at["battery", "marginal_cost"], ) + + n.madd("Carrier",["battery charger","battery discharger"]) n.madd( "Link", @@ -213,6 +217,8 @@ def attach_hydrogen_pipelines(n, costs, elec_opts): h2_links.index = h2_links.apply(lambda c: f"H2 pipeline {c.bus0}-{c.bus1}", axis=1) # add pipelines + n.add("Carrier","H2 pipeline") + n.madd( "Link", h2_links.index,