Version 2.4 of OpenDC introduces batteries to OpenDC.
The main use case for batteries is to reduce the carbon emissions of a data center.
The battery is charged when green energy is available.
Later, the energy stored in the battery is used when no green energy is available.
Batteries fit into the FlowGraph in the following way:
Adding a battery adds four new nodes:
- A Battery of type SimBattery which can store energy
- An extra distributor that can distribute energy between the battery and the hosts
- An aggregator that takes energy from either the powerSource, or the battery
- A Battery Policy that decides when the battery is charging, discharging, or idle
Currently, a single battery policy is implemented.
This policy works with a single carbon threshold.
If the carbon intensity is lower than the threshold, the battery is being charged.
Otherwise, the battery is being discharged.
The topology json schema is extended with an optional "battery" field.
What's Changed
- Updated the FlowEventQueue by @DanteNiewenhuis in #299
- Added Batteries by @DanteNiewenhuis in #300
Full Changelog: v2.3f...v2.4