> 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/islanded-microgrid-droop-control.md).

# Islanded Operation of an Inverter based Microgrid Using Droop Control Technique

## Description

The **Microgrid Droop Control** example, located in **File > Open an Example File > Renewable Energy**, demonstrates islanded operation of an inverter-based microgrid using droop control.

The objective is to illustrate active and reactive power sharing among parallel inverters and the action of a supervisory controller that adjusts droop set points to restore the microgrid frequency to 60 Hz and the line voltage to 600 V at the PCC.

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

## Requirements

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

## Detailed explanation

The microgrid consists of three parallel inverters rated at **500 kW**, **300 kW**, and **200 kW**, connected to the **PCC** bus. A dynamic load varies the total demand. When enabled, a **Microgrid Supervisory Control** slowly adjusts the **P/F** and **Q/V** droop set points to bring frequency and voltage back to their nominal values (**60 Hz**, **600 V**).

The power stage includes a three-phase [**two-level converter (Switching Function Model)**](https://www.opal-rt.com/docs/hypersim/library-blocks-reference/network-voltage-source-converters/2-level-converter-switching-function.md), an **LC filter**, a **480 / 600 V** transformer, and an ideal DC source representing the DC link of a renewable generation system. Each inverter includes a control system and a [**PWM generator**](https://www.opal-rt.com/docs/hypersim/library-blocks-reference/control-sources/pwm-average-generator-for-2-level-converter-switching-function.md).

Main control blocks:

* **Measurements** block: Using the frequency provided by the **Droop Control** block, it computes the inverter active and reactive power and the d–q components of three-phase voltages and currents at the **PCC**.
* **Droop Control** block: The **P/F** droop is set to **1%**, allowing frequency to vary from **60.3 Hz** (no active power) to **59.7 Hz** (nominal active power). The **Q/V** droop is **4%**, allowing voltage at the **PCC** to vary from **612 Vrms** (full inductive power) to **588 Vrms** (full capacitive power). **Qmax** is half of the nominal active power **Pnom**.
* **Voltage Regulator** block: The reference voltage **Vout** from the **Droop Control** block feeds the regulator. It processes the measured d–q voltages and the reference voltage **Vref** to generate the reference currents **Id\_ref** and **Iq\_ref**.
* **Current Regulator** block: The **Id\_ref** and **Iq\_ref** currents are used with measured currents to produce the required d–q converter voltages **VdVq\_conv**. The regulators include feed-forward terms.
* **Reference Voltage** block: The d–q voltages **VdVq\_conv** are scaled and transformed to a three-phase signal **Vref** that drives the PWM modulator.

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

## Simulation and results

Before starting the simulation, ensure the following options are **enabled** in the Simulation Settings:

* **Activate iterative method** (General tab)
* **Solve control inputs before solving power** (Advanced tab)

Run the simulation and use the SCOPEVIEW template to observe the following sequence:

1. At **1 s**, increase the total microgrid load from **450 kW / 100 kvar** to **850 kW / 200 kvar**.
2. At **3 s**, enable droop control on all inverters to share the load among them.
3. At **5 s**, enable the supervisory control to slowly restore frequency to **60 Hz** and line voltage to **600 V**.

PCC bus behavior (time step **50 us**): at the beginning, the frequency is **60.3 Hz** and the line voltage is **600 Vrms**. When the load increases at **1 s**, the line voltage decreases. When droop control is enabled at **3 s**, the frequency drops from **60.3 Hz** to **59.8 Hz**. After enabling supervisory control at **5 s**, both frequency and line voltage increase slowly toward **60 Hz** and **600 Vrms**.

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

Power sharing: at the beginning, the inverters deliver different active powers (**Inverter 1 = 0.52 pu**, **Inverter 2 = 0.31 pu**, **Inverter 3 = 0.41 pu**). After droop control is enabled at **3 s**, they converge to an equal active power of approximately **0.83 pu** each.

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

## References

This example is based on a MATLAB 2021b model using specialized components and algorithms from the **Smart Power Simulation** libraries: [Islanded operation of an Inverter-based Microgrid Using Droop Control Technique](https://www.opal-rt.com/docs/smart-power-simulation-software-sps/example-models/renewables/islanded-operation-of-an-inverter-based-microgrid-using-droop-control-technique.md)


---

# 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/islanded-microgrid-droop-control.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.
