Skip to content

Commit

Permalink
Solve #352: Add hydrogen demand of Fischer Tropsch process in Germany
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaraBuettner committed Jan 8, 2025
1 parent 9466d12 commit 604039c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/egon/data/datasets/industrial_gas_demand.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
initialise_bus_insertion,
)
from egon.data.datasets.etrago_setup import link_geom_from_buses
from egon.data.datasets.pypsaeur import prepared_network
from egon.data.datasets.pypsaeur import (read_network, prepared_network)
from egon.data.datasets.scenario_parameters import get_sector_parameters

logger = logging.getLogger(__name__)
Expand All @@ -48,7 +48,7 @@ class IndustrialGasDemand(Dataset):
#:
name: str = "IndustrialGasDemand"
#:
version: str = "0.0.5"
version: str = "0.0.6"

def __init__(self, dependencies):
super().__init__(
Expand Down Expand Up @@ -488,13 +488,21 @@ def insert_industrial_gas_demand_egon100RE():
# CH4 demand = 0 in 100RE, therefore scale H2 ts
# fallback values see https://github.com/openego/eGon-data/issues/626
n = prepared_network()
solved_network = read_network()

try:
H2_total_PES = (
n.loads[n.loads["carrier"] == "H2 for industry"].loc[
"DE0 0 H2 for industry", "p_set"
]
* 8760
# Add h2 demand of Fischer-Tropsch process from pypsa-eur
+ solved_network.links_t.p0[
solved_network.links.loc[
solved_network.links.index.str.contains(
"DE0 0 Fischer-Tropsch")].index].mul(
solved_network.snapshot_weightings.generators,
axis= 0).sum().sum()
)
except KeyError:
H2_total_PES = 42090000
Expand Down

0 comments on commit 604039c

Please sign in to comment.