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

Addressing edge case of already existing chp capacities #1401

Merged
merged 4 commits into from
Oct 31, 2024

Conversation

toniseibold
Copy link
Contributor

@toniseibold toniseibold commented Oct 31, 2024

Closes PyPSA/pypsa-ariadne#250

Changes proposed in this Pull Request

The function add_chp_plants now iterates over every chp plant build before the first planning horizon and checks whether the link is already existing from the rule prepare_sector_network. If that's the case, the minimum capacity of the extendable link is adjusted to the installed capacity.
Since for German CHPs a efficiency depending on size and build year is passed, the efficiency is also adjusted for the extendable links. This is not the case for other European CHP plants.
A side effect of the iteration over all buses is avoiding the warnings WARNING:pypsa.components:Single value sequence for ... is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. in that function.

After executing the rule add_existing_baseyear the following installed capacities of CHPs are added for the year 2015-2020:
image

Checklist

  • I tested my contribution locally and it works as intended.
  • Code and workflow changes are sufficiently documented.
    not applicable
  • Changed dependencies are added to envs/environment.yaml.
    not applicable
  • Changes in configuration options are added in config/config.default.yaml.
    not applicable
  • Changes in configuration options are documented in doc/configtables/*.csv.
    not applicable
  • Sources of newly added data are documented in doc/data_sources.rst.
    not applicable
  • A release note doc/release_notes.rst is added.
    not applicable

@toniseibold toniseibold changed the title Addressing edge case of already existing chp capacities in 2020 and s… Addressing edge case of already existing chp capacities Oct 31, 2024
@toniseibold toniseibold marked this pull request as ready for review October 31, 2024 14:52
@toniseibold toniseibold marked this pull request as draft October 31, 2024 14:54
@toniseibold toniseibold marked this pull request as ready for review October 31, 2024 15:10
@lindnemi lindnemi merged commit 06b1d77 into ariadne2 Oct 31, 2024
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants