From a9333458b316690d5c28da2e98e5972687e06dc0 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Mon, 13 May 2024 17:40:10 +0200 Subject: [PATCH] handle potentially diverging spatial resolutions of HVC --- config/test/config.overnight.yaml | 5 +++++ scripts/prepare_sector_network.py | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/config/test/config.overnight.yaml b/config/test/config.overnight.yaml index 09342ae9..813211be 100644 --- a/config/test/config.overnight.yaml +++ b/config/test/config.overnight.yaml @@ -70,6 +70,11 @@ sector: gas_network: true H2_retrofit: true +industry: + HVC_environment_sequestration_fraction: 0.5 + waste_to_energy: true + waste_to_energy_cc: true + solving: solver: name: glpk diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index 89d5cd7d..d35af1c9 100755 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -2943,12 +2943,17 @@ def add_industry(n, costs): efficiency=costs.at["oil", "CO2 intensity"], ) + if len(non_sequestered_hvc_locations) == 1: + waste_source = non_sequestered_hvc_locations[0] + else: + waste_source = non_sequestered_hvc_locations + if cf_industry["waste_to_energy"]: n.madd( "Link", spatial.nodes + " waste CHP", - bus0=non_sequestered_hvc_locations, + bus0=waste_source, bus1=spatial.nodes, bus2=spatial.nodes + " urban central heat", bus3="co2 atmosphere", @@ -2968,7 +2973,7 @@ def add_industry(n, costs): n.madd( "Link", spatial.nodes + " waste CHP CC", - bus0=non_sequestered_hvc_locations, + bus0=waste_source, bus1=spatial.nodes, bus2=spatial.nodes + " urban central heat", bus3="co2 atmosphere",