From 54c2128419d7ad21f382e00f8cfed9436ed11d7b Mon Sep 17 00:00:00 2001 From: lisazeyen Date: Mon, 4 Dec 2023 10:47:41 +0100 Subject: [PATCH] add heat vent --- config/config.default.yaml | 2 ++ config/config.perfect.yaml | 3 ++- config/test/config.perfect.yaml | 3 ++- scripts/prepare_sector_network.py | 15 +++++++++++++-- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/config/config.default.yaml b/config/config.default.yaml index 81dda14a..5a588650 100644 --- a/config/config.default.yaml +++ b/config/config.default.yaml @@ -451,6 +451,7 @@ sector: coal_cc: false dac: true co2_vent: false + central_heat_vent: false allam_cycle: false hydrogen_fuel_cell: true hydrogen_turbine: false @@ -878,6 +879,7 @@ plotting: services rural heat: '#ff9c9c' central heat: '#cc1f1f' urban central heat: '#d15959' + urban central heat vent: '#a74747' decentral heat: '#750606' residential urban decentral heat: '#a33c3c' services urban decentral heat: '#cc1f1f' diff --git a/config/config.perfect.yaml b/config/config.perfect.yaml index f355763c..51a0bcb0 100644 --- a/config/config.perfect.yaml +++ b/config/config.perfect.yaml @@ -39,5 +39,6 @@ co2_budget: sector: - min_part_load_fischer_tropsch: 0 + central_heat_vent: true + # min_part_load_fischer_tropsch: 0 min_part_load_methanolisation: 0 diff --git a/config/test/config.perfect.yaml b/config/test/config.perfect.yaml index c99f4122..d00d11ec 100644 --- a/config/test/config.perfect.yaml +++ b/config/test/config.perfect.yaml @@ -42,7 +42,8 @@ electricity: renewable_carriers: [solar, onwind, offwind-ac, offwind-dc] sector: - min_part_load_fischer_tropsch: 0 + central_heat_vent: true + # min_part_load_fischer_tropsch: 0 min_part_load_methanolisation: 0 atlite: default_cutout: be-03-2013-era5 diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index ee72042f..648fe358 100644 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -1692,7 +1692,19 @@ def add_heat(n, costs): carrier=name + " heat", unit="MWh_th", ) - + + if (name == "urban central") & (options["central_heat_vent"]): + n.madd( + "Generator", + nodes[name] + f" {name} heat vent", + location=nodes[name], + carrier=name + " heat vent", + p_nom_extendable=True, + p_max_pu=0, + p_min_pu=-1, + unit="MWh_th", + ) + ## Add heat load for sector in sectors: @@ -3290,7 +3302,6 @@ def set_temporal_aggregation(n, opts, solver_name): break return n - if __name__ == "__main__": if "snakemake" not in globals(): from _helpers import mock_snakemake