Summary
Power Flow to Grid computes the combined PV+ESS net power delivered to the grid. Battery DC power is converted to AC through the storage and traced through the . During charging, PV output is reduced by the power diverted to storage; during discharging, battery power is added to PV output. The combined output at MV then triggers a re-run of the plant-level power flow—the transformers losses, transmission lines losses, , and limit are re-calculated and applied; the rest of the PV pipeline is not re-run.Inputs
| Name | Symbol | Units | Description |
|---|---|---|---|
| Battery DC Power | W | DC power at battery terminals, positive = charge, negative = discharge (from Battery Model) | |
| ESS Inverter Efficiency | % | ESS inverter conversion efficiency | |
| ESS MV Transformer Rating | MVA | ESS MV transformer nameplate capacity | |
| ESS MV No-Load Loss | % | ESS MV transformer no-load loss as a percentage of | |
| ESS MV Full-Load Loss | % | ESS MV transformer full-load loss as a percentage of | |
| PV MV Transformer Output | W | PV power output from MV transformer, before HV losses | |
| Grid Limit (LGIA) | MW | Maximum allowed power at point of interconnection | |
| Availability Factor | % | Flat percentage deduction for estimated downtime |
Outputs
| Name | Symbol | Units | Description |
|---|---|---|---|
| Combined PV+ESS Power | W | Merged PV and ESS power at MV level before HV losses | |
| Grid Power | W | Final plant output at the POI after HV losses, availability, and LGIA limit |
Detailed Description
The power flow traces battery power from the DC terminals to the grid in four steps:- ESS Inverter — converts DC to AC (or AC to DC) with efficiency losses
- ESS MV Transformer — applies transformer losses to the inverter AC power
- Combined PV+ESS Output — merges PV and ESS power at the MV level (subtracting charge or adding discharge)
- Plant-Level Power Flow Re-Run — applies HV losses, availability, and LGIA limit to the combined output
Step 1: ESS Inverter
The inverter converts between DC power at the battery terminals and AC power on the low-voltage side of the MV transformer. is converted from percentage to fraction before use. When discharging (), the inverter converts DC to AC with efficiency losses: When charging (), the inverter converts AC to DC, requiring more AC input than DC output: The inverter efficiency loss is calculated for reporting during both charge and discharge:Step 2: ESS MV Transformer
The storage MV transformer uses the same quadratic loss model as PV transformers (see Transformer Loss Model), parameterized by —converted from MVA to VA—, and .Discharge
During discharge (power flows battery → grid), the transformer reduces the power delivered to the MV bus:Charge (or Idle)
During charge or when the battery is idle (power flows PV → battery via the MV bus), the transformer increases the power drawn from the MV bus—the PV must supply the charge power plus the transformer loss: When the battery is idle, the transformer still draws power from the grid to maintain core magnetization. The charge power reduces to the no-load loss alone: .Step 3: Combined PV+ESS Output
When charging or idle, PV output is reduced by the total power diverted to storage, (which includes MV transformer loss overhead and collapses to the no-load loss when idle, per Step 2): When discharging, battery power is added to the full PV output: When PV is negative and the battery is discharging—possible at night due to auxiliary loads and transformer energization losses—only the battery discharge is delivered: .Step 4: Plant-Level Power Flow Re-Run
The combined output () replaces the sum of PV block outputs, and the plant-level power flow is re-run with the new PV + ESS combined power value to determine revised HV losses. The upstream portion of the PV pipeline (irradiance, DC performance, inverter, array-level losses) is not run again; those results are retained. The re-run applies the same three stages as the PV-only pass:- HV equipment — enters the HV chain and passes through each transformer and transmission line in series; each element reduces the power by its losses and feeds the result to the next element. The final output is the power upstream of the after all HV losses.
- Availability — a flat percentage deduction for estimated downtime due to maintenance and unplanned outages:
- LGIA limit — power exceeding the interconnect capacity (, converted from MW to W) is curtailed:
- PV alone exceeds the LGIA limit and the battery does not charge—either because the dispatch intent is not to charge (e.g., discharge target period or non-charge custom instruction), or because hardware limits prevent it (inverter at capacity or battery full)
- The battery discharges while PV is already near the limit, pushing the combined output above the cap (only possible with Custom Dispatch algorithm—other algorithms enforce LGIA headroom on discharge)
- Slight inaccuracies in the simplified loss estimates used by the charge and discharge limits cause the combined output to marginally overshoot