Skip to content

Include solar and wind battery systems in the energy flow sankey. - #3529

Merged
kndehaan merged 6 commits into
masterfrom
solar-wind-battery
Nov 20, 2026
Merged

kndehaan merged 6 commits into
masterfrom
solar-wind-battery

Conversation

@robindesmit-quintel

@robindesmit-quintel robindesmit-quintel commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Context

People often use the energy sankey (Energy flow overview) to get a feeling for what their energy system looks like.
Electricity produced from a nonzero slider wind onshore (with battery system) or solar PV on land (with battery system) do not show up in the energy sankey. Additionally, battery losses and curtailment are not correctly incorporated in the energy sankey.

Implemented changes

  • Energy sankey: Include the solar and wind battery into conversion_from_solar/wind_to_electricity.
  • Battery losses: Use the hourly curves to update the calculation of battery losses in energy_flexibility_solar/wind_batteries_electricity_losses.
  • Curtailment: Update the conversion_loss_electricty_to_electricity to include all curtailed electricity.

Related

Closes issue 4833

Checklist

  • I have tested these changes
  • I have updated documentation as needed
  • I have tagged the relevant people for review

Comment on lines +21 to +26
V(
energy_flexibility_curtailment_electricity,
energy_battery_curtailed_solar_electricity,
energy_battery_curtailed_wind_electricity,
demand
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you create a new query in which the demand of these three nodes are queried? That would look more neat it here.

@kndehaan

Copy link
Copy Markdown
Member

Looking good! Only one cosmetic comment that you could process. Once done, we can merge this!

@kndehaan kndehaan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work! I did some very minor changes which are rather a personal preference:

  • I omitted some excessive explanation here and there. It's good to add descriptions in the doc strings, but some information is in my opinion too excessive to mention
  • Swapped the line V(energy_power_hv_network_loss, demand) to be below the new query line. I like to have all the queries first and finally the individual querying on node bases.

robindesmit-quintel and others added 6 commits November 20, 2026 15:54
The output nodes of the solar PV and inland wind parks with batteries have no
solar radiation or wind input, so they were filtered out of the overview
sankey. Use the existing producer groups that add these nodes explicitly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kndehaan
kndehaan merged commit 47665b0 into master Nov 20, 2026
8 checks passed
@kndehaan
kndehaan deleted the solar-wind-battery branch November 20, 2026 14:58
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