Summary
Battery State of Charge (SOC) tracks the energy content of the battery over time. PlantPredict calculates SOC by integrating charge and discharge power flows, accounting for round-trip DC efficiency during charging and maximum capacity constraints. The SOC calculation includes proper time interval scaling in Version 12 for accurate energy accounting.Inputs
| Name | Symbol | Units | Description |
|---|---|---|---|
| Previous SOC | Wh | State of charge from previous timestep | |
| Charge Flag | — | boolean | True if battery is charging |
| Discharge Flag | — | boolean | True if battery is discharging |
| Available Capacity to Charge | W | Power available for charging | |
| Available Capacity to Discharge | W | Power available for discharging | |
| Round-Trip DC Efficiency | — | Battery DC round-trip efficiency | |
| Maximum Capacity | Wh | Current usable energy capacity | |
| Time Interval | minutes | Weather data time interval |
Outputs
| Name | Symbol | Units | Description |
|---|---|---|---|
| State of Charge | Wh | Current battery energy content | |
| Battery DC Power | W | DC power flow (positive=charge, negative=discharge) | |
| Battery AC Charge | W | AC power into battery | |
| Battery AC Discharge | W | AC power out of battery |