From 8bfca9ce696d930b823e4df784c665b8cab23aff Mon Sep 17 00:00:00 2001 From: lisazeyen Date: Fri, 2 Aug 2024 14:05:42 +0200 Subject: [PATCH] enable electrobiofuels also without biomass spatially resolved --- scripts/prepare_sector_network.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index 7ecdb836..81acb418 100644 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -200,7 +200,7 @@ def define_spatial(nodes, options): spatial.geothermal_heat = SimpleNamespace() spatial.geothermal_heat.nodes = ["EU enhanced geothermal systems"] spatial.geothermal_heat.locations = ["EU"] - + return spatial @@ -2514,13 +2514,14 @@ def add_biomass(n, costs): # Electrobiofuels (BtL with hydrogen addition to make more use of biogenic carbon). # Combination of efuels and biomass to liquid, both based on Fischer-Tropsch. # Experimental version - use with caution - if options["electrobiofuels"] and options.get( - "biomass_spatial", options["biomass_transport"] - ): + if options["electrobiofuels"]: + efuel_scale_factor = costs.at["BtL", "C stored"] + name = (pd.Index(spatial.biomass.nodes) + " " + + pd.Index(spatial.h2.nodes.str.replace(" H2", ""))) n.madd( "Link", - spatial.biomass.nodes, + name, suffix=" electrobiofuels", bus0=spatial.biomass.nodes, bus1=spatial.oil.nodes,