> For the complete documentation index, see [llms.txt](https://www.opal-rt.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.opal-rt.com/docs/hypersim/examples/renewable-energy/distribution-bess-average-converter.md).

# Distribution Connected Battery Energy Storage System with Average Converter

## Description

The **Battery Energy Storage System (BESS)** example, located in **File > Open an Example File > Renewable Energy**, models a single-stage BESS connected to a distribution network.

The objective is to demonstrate BESS operation in grid-following (PV, PQ) and grid-forming modes using an average inverter model.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-bce875e209bdd7810cad86da381caeb8859aa1b0%2Fimage%20(1514).png?alt=media" alt=""><figcaption></figcaption></figure>

## Requirements

This example model does not require any additional hardware or licenses.

## Detailed explanation

This model simulates a 1 MW, 1050 V, 5 MWh BESS connected, via a feeder, to a simplified 22.9 kV, 50 Hz three‑phase distribution system. Feeders are modeled using their equivalent direct-sequence and zero-sequence impedances. BUS2 includes a 0.5244 MW and 0.1669 MVAr load. Opening breaker CB2 islands the load and the BESS.

The BESS connects to the PCC through a 22.9 kV/480 V, 1.2 MVA star–delta distribution transformer. The transformer secondary connects to the grid-side converter through a 440 µH choke filter. The choke limits the total harmonic distortion of the BESS current injected into the grid to 5% at a switching frequency of 1350 Hz (the inverter in this example is an average model). The DC-side filter limits the battery current ripple to 5% in charging mode. The inverter controls active and reactive power at the transformer secondary.

The block DEV1 generates the stimuli to execute the event sequence demonstrating BESS operation.

For detailed information about the BESS model, see Battery [Energy Storage System (BESS) - Average.](https://www.opal-rt.com/docs/hypersim/examples/renewable-energy/distribution-bess-average-converter/battery-energy-storage-system-bess-average.md)

## Simulation and results

The demonstration exercises all operating modes described in Battery Energy Storage System (BESS) - Average. The sequence of operating modes is listed in the table below. The model was tested with a 50 µs time step.

| From | To   | Mode         | Pref (pu) | Qref (pu)         |
| ---- | ---- | ------------ | --------- | ----------------- |
| 0 s  | 6 s  | PV           | 0.8 pu    | Voltage Regulator |
| 6 s  | 9 s  | PQ           | -0.5 pu   | 0.3 pu            |
| 9 s  | 12 s | PQ           | -0.5 pu   | -0.3 pu           |
| 12 s | 15 s | PQ           | 1 pu      | 0.3 pu            |
| 15 s | 20 s | Grid Forming | -         | -                 |
| 20 s | 25 s | PQ           | 0.8 pu    | 0.3 pu            |

During 0–6 s (PV mode), the BESS voltage regulator attempts to reduce the PCC voltage from 1.01 pu to 1 pu. Because the grid sets the voltage, the BESS has limited influence and increases Qref magnitude accordingly.

From 6–15 s (PQ mode), the BESS tracks the active and reactive power references listed above. From 12–15 s, when Pref = 1 pu and Qref = 0.3 pu, active power follows its reference while reactive power is reduced to zero to respect converter ratings, prioritizing active power.

At 15 s, breaker CB2 opens and remains open until 20 s, and the BESS switches to grid-forming mode. The PCC voltage initially drops and is then regulated to 1 pu by the BESS. During islanded operation, active and reactive power references are ignored; P and Q supplied by the BESS equal the two loads connected to BUS2. No current flows through the islanding breaker while islanded. System frequency remains at 50 Hz throughout.

At 20 s, CB2 closes and the BESS returns to PQ mode, following the references listed in the table.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-7d8ff432567ef330dc0ca64b8dede92323d3127f%2Fimage%20(282).png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-81c525cb9be1560458a0e288bb4dda973bc642a3%2Fimage%20(283).png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-60a1d6f176813644ddc56c5b85dc47ac7ec37360%2Fimage%20(284).png?alt=media" alt=""><figcaption></figcaption></figure>

## References

\[1]J. Rocabert, A. Luna, F. Blaabjerg and P. Rodríguez, "Control of Power Converters in AC Microgrids," in *IEEE Transactions on Power Electronics*, vol. 27, no. 11, pp. 4734-4749, Nov. 2012.doi: 10.1109/TPEL.2012.2199334

\[2] Amirnaser Yazdani and Reza Iravani. *Voltage-Sourced Converters in Power Systems: Modeling, Control, and Applications*. John Wiley & Sons Inc, 2010.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.opal-rt.com/docs/hypersim/examples/renewable-energy/distribution-bess-average-converter.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
