Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: only add waste chp to buses which have urban central heat buses #1407

Merged
merged 4 commits into from
Nov 7, 2024
Merged
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
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
Loading