Skip to content

Commit

Permalink
bugfix: only add waste chp to buses which have urban central heat bus…
Browse files Browse the repository at this point in the history
…es (#1407)

* prepare_sector_network: only add waste chp to buses which have urban central heat buses

* add release note

* prepare_sector_network: add empty location for CHP if heat network not available
  • Loading branch information
p-glaum authored Nov 7, 2024
1 parent 0c41cec commit 2119f4c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions doc/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Upcoming Release

* Bugfix: Adjusted efficiency2 (to atmosphere) for bioliquids-to-oil Link in `prepare_sector_network` to exactly offset the corresponding oil emissions.

* Bugfix: Waste CHPs were added to all electricity buses even if they were not connected to heating network. This is now fixed.

* Bugfix: Duplicates in build_transmission_projects were caught, but not removed from the network. This is now fixed.

* Replaced the Store representation of biogenic carriers (solid biomass, biogas, bioliquids, MSW) in ``prepare_sector_network`` with the extended Generator component that uses the ``e_sum_min`` and ``e_sum_max`` attributes to enforce minimum usage and limit maximum potential, respectively.
Expand Down
11 changes: 9 additions & 2 deletions scripts/prepare_sector_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -3625,12 +3625,19 @@ def add_industry(n, costs):
waste_source = non_sequestered_hvc_locations

if cf_industry["waste_to_energy"]:
urban_central = spatial.nodes + " urban central heat"
existing_urban_central = n.buses.index[
n.buses.carrier == "urban central heat"
]
urban_central_nodes = urban_central.map(
lambda x: x if x in existing_urban_central else ""
)
n.add(
"Link",
spatial.nodes + " waste CHP",
bus0=waste_source,
bus1=spatial.nodes,
bus2=spatial.nodes + " urban central heat",
bus2=urban_central_nodes,
bus3="co2 atmosphere",
carrier="waste CHP",
p_nom_extendable=True,
Expand All @@ -3649,7 +3656,7 @@ def add_industry(n, costs):
spatial.nodes + " waste CHP CC",
bus0=waste_source,
bus1=spatial.nodes,
bus2=spatial.nodes + " urban central heat",
bus2=urban_central_nodes,
bus3="co2 atmosphere",
bus4=spatial.co2.nodes,
carrier="waste CHP CC",
Expand Down

0 comments on commit 2119f4c

Please sign in to comment.