Skip to content

Commit

Permalink
Solve #352: Add Fischer-Tropsch h" demands for foreign countries
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaraBuettner committed Jan 8, 2025
1 parent 604039c commit 3d3a2e8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/egon/data/datasets/pypsaeur/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,17 @@ def neighbor_reduction():
network_solved.buses.loc[foreign_buses.index].index
)

# Add H2 demand of Fischer-Tropsch process to industrial H2 demands
industrial_hydrogen = network_prepared.loads.loc[
network_prepared.loads.carrier== "H2 for industry"]
fischer_tropsch = network_solved.links_t.p0[
network_solved.links.loc[
network_solved.links.carrier=="Fischer-Tropsch"].index
].mul(network_solved.snapshot_weightings.generators, axis=0).sum()
for i, row in industrial_hydrogen.iterrows():
network_prepared.loads.loc[i, "p_set"] += fischer_tropsch[
fischer_tropsch.index.str.startswith(row.bus[:5])].sum()/8760

# drop foreign lines and links from the 2nd row

network_solved.lines = network_solved.lines.drop(
Expand Down

0 comments on commit 3d3a2e8

Please sign in to comment.