Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,468 changes: 0 additions & 1,468 deletions config/config.default.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions doc/sector.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ Rule ``build_clustered_solar_rooftop_potentials``

.. automodule:: build_clustered_solar_rooftop_potentials

Rule ``build_cop_profiles``
Rule ``build_heat_source_profiles``
==============================================================================

.. automodule:: build_cop_profiles
.. automodule:: build_heat_source_profiles

Rule ``build_direct_heat_source_utilisation_profiles``
==============================================================================
Expand Down
75 changes: 18 additions & 57 deletions rules/build_sector.smk
Original file line number Diff line number Diff line change
Expand Up @@ -641,24 +641,27 @@ rule build_sea_heat_potential:
scripts("build_surface_water_heat_potentials/build_sea_water_heat_potential.py")


rule build_cop_profiles:
rule build_heat_source_profiles:
message:
"Building coefficient of performance (COP) profiles for {wildcards.clusters} clusters and {wildcards.planning_horizons} planning horizon"
"Building heat pump COP and heat source utilisation profiles for {wildcards.clusters} clusters and {wildcards.planning_horizons} planning horizon"
params:
heat_pump_sink_T_decentral_heating=config_provider(
"sector", "heat_pump_sink_T_individual_heating"
),
heat_source_cooling_central_heating=config_provider(
heat_source_cooling=config_provider(
"sector", "district_heating", "heat_source_cooling"
),
heat_pump_cooling_iterative=config_provider(
"sector", "district_heating", "heat_pump_cooling_iterative"
),
heat_pump_cop_approximation_central_heating=config_provider(
"sector", "district_heating", "heat_pump_cop_approximation"
),
heat_sources=config_provider("sector", "heat_sources"),
heat_source_temperatures=config_provider(
"sector", "district_heating", "heat_source_temperatures"
),
snapshots=config_provider("snapshots"),
log_heat_pump_cooling_iterations=config_provider(
"sector", "district_heating", "log_heat_pump_cooling_iterations"
),
constant_temperature_geothermal=config_provider(
"sector",
"district_heating",
Expand All @@ -676,14 +679,20 @@ rule build_cop_profiles:
regions_onshore=resources("regions_onshore_base_s_{clusters}.geojson"),
output:
cop_profiles=resources("cop_profiles_base_s_{clusters}_{planning_horizons}.nc"),
heat_source_direct_utilisation_profiles=resources(
"heat_source_direct_utilisation_profiles_base_s_{clusters}_{planning_horizons}.nc"
),
heat_source_preheater_utilisation_profiles=resources(
"heat_source_preheater_utilisation_profiles_base_s_{clusters}_{planning_horizons}.nc"
),
resources:
mem_mb=20000,
log:
logs("build_cop_profiles_s_{clusters}_{planning_horizons}.log"),
logs("build_heat_source_profiles_s_{clusters}_{planning_horizons}.log"),
benchmark:
benchmarks("build_cop_profiles/s_{clusters}_{planning_horizons}")
benchmarks("build_heat_source_profiles/s_{clusters}_{planning_horizons}")
script:
scripts("build_cop_profiles/run.py")
scripts("build_heat_source_profiles/run.py")



Expand Down Expand Up @@ -753,54 +762,6 @@ rule build_ptes_operations:
scripts("build_ptes_operations/run.py")


rule build_heat_source_utilisation_profiles:
message:
"Building heat source utilization profiles for district heating for {wildcards.clusters} clusters and {wildcards.planning_horizons} planning horizon"
params:
heat_sources=config_provider("sector", "heat_sources", "urban central"),
heat_source_cooling=config_provider(
"sector", "district_heating", "heat_source_cooling"
),
snapshots=config_provider("snapshots"),
heat_source_temperatures=config_provider(
"sector", "district_heating", "heat_source_temperatures"
),
ptes_enable=config_provider("sector", "district_heating", "ptes", "enable"),
constant_temperature_geothermal=config_provider(
"sector",
"district_heating",
"geothermal",
"constant_temperature_celsius",
),
input:
unpack(input_heat_source_temperature),
central_heating_forward_temperature_profiles=resources(
"central_heating_forward_temperature_profiles_base_s_{clusters}_{planning_horizons}.nc"
),
central_heating_return_temperature_profiles=resources(
"central_heating_return_temperature_profiles_base_s_{clusters}_{planning_horizons}.nc"
),
output:
heat_source_direct_utilisation_profiles=resources(
"heat_source_direct_utilisation_profiles_base_s_{clusters}_{planning_horizons}.nc"
),
heat_source_preheater_utilisation_profiles=resources(
"heat_source_preheater_utilisation_profiles_base_s_{clusters}_{planning_horizons}.nc"
),
resources:
mem_mb=20000,
log:
logs(
"build_heat_source_utilisation_profiles_s_{clusters}_{planning_horizons}.log"
),
benchmark:
benchmarks(
"build_heat_source_utilisation_profiles/s_{clusters}_{planning_horizons}"
)
script:
scripts("build_heat_source_utilisation_profiles.py")


rule build_solar_thermal_profiles:
input:
pop_layout=resources("pop_layout_total.nc"),
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_central_heating_temperature_profiles/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def scale_temperature_to_investment_year(
from scripts._helpers import mock_snakemake

snakemake = mock_snakemake(
"build_cop_profiles",
"build_central_heating_temperature_profiles",
clusters=48,
planning_horizons="2050",
)
Expand Down
Loading