Skip to content

Commit

Permalink
Merge pull request #695 from openego/features/gas-extendable-settings
Browse files Browse the repository at this point in the history
Features/gas extendable settings
  • Loading branch information
ClaraBuettner authored Nov 15, 2023
2 parents f8d1972 + 348cabe commit 024e852
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions etrago/tools/extendable.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ def extendable(
network.stores.e_nom_extendable = False
network.generators.p_nom_extendable = False

if "H2_feedin" not in extendable_settings["extendable_components"]:
network.mremove(
"Link", network.links[network.links.carrier == "H2_feedin"].index
)

if "network" in extendable_settings["extendable_components"]:
network.lines.s_nom_extendable = True
network.lines.s_nom_min = network.lines.s_nom
Expand Down
5 changes: 5 additions & 0 deletions etrago/tools/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -2846,3 +2846,8 @@ def manual_fixes_datamodel(etrago):
].index,
"p_max_pu",
] = 0.65

# Set costs for CO2 from DAC for needed for methanation
etrago.network.links.loc[
etrago.network.links.carrier == "H2_to_CH4", "marginal_cost"
] = 25

0 comments on commit 024e852

Please sign in to comment.