Explicit representation of n largest district heating systems#1995
Draft
Explicit representation of n largest district heating systems#1995
Conversation
lkstrp
reviewed
Jan 27, 2026
doc/configtables/sector.csv
Outdated
| @@ -0,0 +1,243 @@ | |||
| ,Unit,Values,Description | |||
| transport,--,"{true, false}",Flag to include transport sector. | |||
| heating,--,"{true, false}",Flag to include heating sector. | |||
Member
There was a problem hiding this comment.
All doctables are gone and this needs to be merged in the pydantic schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
District Heating Subnodes Feature
Summary
This PR introduces district heating (DH) subnode modeling to PyPSA-Eur, enabling finer spatial resolution for urban central heating systems. Key capabilities include:
sector.district_heating.subnodes.countriesData Source
The feature is based on ISI/seenergies district heating area shapes derived from heating density data. These shapes provide:
Structural Integration
New Scripts
scripts/identify_district_heating_subnodes.pyscripts/prepare_district_heating_subnodes.pyscripts/map_dh_systems_to_cities.pyModified Scripts
prepare_sector_network.pydefine_spatial()for district heating nodes; heat buses, loads, and technologies now iterate overheat_nodes(including subnodes); parent node mapping for resource bus lookupsrules/build_sector.smkidentify_district_heating_subnodesandprepare_district_heating_subnodes; conditional inputs for subnode-extended data filesConfiguration
Testing
Test Configuration
Three scenarios are compared:
master_branch(code before this PR),subnodes_off(PR code with subnodes disabled), andsubnodes_on(PR code with subnodes enabled).config/config_subnodes.yaml:config/scenarios_subnodes.yaml:Network Topology
Heat Demand Preservation
District Heating Energy Balance
Total System Costs
Scale-up
I also tested the feature with 39 clusters and 200 subnodes at 3h resolution including river water and geothermal as heat sources for district heating supply to ensure robustness. The network was solved in 6 h with max mem usage of 172 GB.
Here are some related results:
District heating balance
Composition of system costs:
District heating balance map
References
Remaining TODOs