Skip to content

Commit

Permalink
Adapt to technology-data changes (#146)
Browse files Browse the repository at this point in the history
* adapt to technology-data changes from PyPSA/technology-data#35

* switch to new H2 (g) pipeline cost
  • Loading branch information
fneum authored Aug 4, 2021
1 parent fab31e6 commit 96afff0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/prepare_sector_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ def add_storage(n, costs):
)

# hydrogen stored overground (where not already underground)
h2_capital_cost = costs.at["hydrogen storage tank", "fixed"]
h2_capital_cost = costs.at["hydrogen storage tank incl. compressor", "fixed"]
nodes_overground = cavern_nodes.index.symmetric_difference(nodes)

n.madd("Store",
Expand Down Expand Up @@ -941,9 +941,9 @@ def add_storage(n, costs):
p_min_pu=-1,
p_nom_extendable=True,
length=h2_links.length.values,
capital_cost=costs.at['H2 pipeline', 'fixed'] * h2_links.length.values,
capital_cost=costs.at['H2 (g) pipeline', 'fixed'] * h2_links.length.values,
carrier="H2 pipeline",
lifetime=costs.at['H2 pipeline', 'lifetime']
lifetime=costs.at['H2 (g) pipeline', 'lifetime']
)

n.add("Carrier", "battery")
Expand Down Expand Up @@ -997,7 +997,7 @@ def add_storage(n, costs):
carrier="Sabatier",
efficiency=costs.at["methanation", "efficiency"],
efficiency2=-costs.at["methanation", "efficiency"] * costs.at['gas', 'CO2 intensity'],
capital_cost=costs.at["methanation", "fixed"],
capital_cost=costs.at["methanation", "fixed"] * costs.at["methanation", "efficiency"], # costs given per kW_gas
lifetime=costs.at['methanation', 'lifetime']
)

Expand Down

0 comments on commit 96afff0

Please sign in to comment.