handle potentially diverging spatial resolutions of HVC

This commit is contained in:
Fabian Neumann 2024-05-13 17:40:10 +02:00
parent bc42a573ef
commit a9333458b3
2 changed files with 12 additions and 2 deletions

View File

@ -70,6 +70,11 @@ sector:
gas_network: true gas_network: true
H2_retrofit: true H2_retrofit: true
industry:
HVC_environment_sequestration_fraction: 0.5
waste_to_energy: true
waste_to_energy_cc: true
solving: solving:
solver: solver:
name: glpk name: glpk

View File

@ -2943,12 +2943,17 @@ def add_industry(n, costs):
efficiency=costs.at["oil", "CO2 intensity"], 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"]: if cf_industry["waste_to_energy"]:
n.madd( n.madd(
"Link", "Link",
spatial.nodes + " waste CHP", spatial.nodes + " waste CHP",
bus0=non_sequestered_hvc_locations, bus0=waste_source,
bus1=spatial.nodes, bus1=spatial.nodes,
bus2=spatial.nodes + " urban central heat", bus2=spatial.nodes + " urban central heat",
bus3="co2 atmosphere", bus3="co2 atmosphere",
@ -2968,7 +2973,7 @@ def add_industry(n, costs):
n.madd( n.madd(
"Link", "Link",
spatial.nodes + " waste CHP CC", spatial.nodes + " waste CHP CC",
bus0=non_sequestered_hvc_locations, bus0=waste_source,
bus1=spatial.nodes, bus1=spatial.nodes,
bus2=spatial.nodes + " urban central heat", bus2=spatial.nodes + " urban central heat",
bus3="co2 atmosphere", bus3="co2 atmosphere",