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
This commit is contained in:
virio-andreyana 2023-04-24 14:08:25 +02:00 committed by GitHub
parent ad9a67509f
commit e550ba915d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,6 +120,8 @@ def attach_stores(n, costs, elec_opts):
capital_cost=costs.at["hydrogen storage underground", "capital_cost"],
)
n.madd("Carrier",["H2 electrolysis","H2 fuel cell"])
n.madd(
"Link",
h2_buses_i + " Electrolysis",
@ -162,6 +164,8 @@ def attach_stores(n, costs, elec_opts):
marginal_cost=costs.at["battery", "marginal_cost"],
)
n.madd("Carrier",["battery charger","battery discharger"])
n.madd(
"Link",
b_buses_i + " charger",
@ -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,