Skip to content

Battery management restructure#174

Merged
AteZenmo merged 7 commits intomainfrom
BatteryManagementRestructure
Jul 22, 2025
Merged

Battery management restructure#174
AteZenmo merged 7 commits intomainfrom
BatteryManagementRestructure

Conversation

@Luc-Sol
Copy link
Contributor

@Luc-Sol Luc-Sol commented Jul 21, 2025

Battery Management functions are now inside classes that implement the interface I_BatteryManagement.
This Interface must have 1 function, manageBattery, that calculates the powerfraction and operates the asset!
Most of these classes take the context of the GC as an argument in the constructor

resultsUI: Zenmo/zero_results_UI#73
Interface/Loader: Zenmo/zero_Interface-Loader#129

Luc-Sol added 3 commits July 15, 2025 17:36
- Refactored small things like:
getCurrentStateOfCharge() -> getCurrentStateOfCharge_fr()
- removed v_batterySOC_fr from GC canvas, if you want to know the current SOC just ask the asset!
- getCurrentStateOfCharge_fr() is now a method of the J_EAStorage (and J_EAEV) not the base J_EA.
- Added a new function f_batteryManagement that has the switch statement on the OL_BatteryOperationMode, instead of it being in the f_operateFlexAssets
- Cleaned the f_batteryManagement functions for SelfConsumption, Price and PeakShavingSimple (previously Balance)
- Ignored p_batteryOperationMode from GC canvas
- Ignored all battery management functions on GC (and children) canvas
- Grouped Agents and Classes into folders
- Removed subtenant and references
@AteZenmo AteZenmo merged commit 2c4327c into main Jul 22, 2025
1 of 2 checks passed
@AteZenmo AteZenmo deleted the BatteryManagementRestructure branch July 22, 2025 12:14
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