> 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/smart-power-simulation-software-sps/example-models/renewables/islanded-operation-of-an-inverter-based-microgrid-using-droop-control-technique.md).

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

This example shows the islanded operation of an inverter-based microgrid using the droop control technique.

<figure><img src="https://799605156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdlNg8IbOdahCpFCyzxSN%2Fuploads%2Fgit-blob-f6a82690e43cb8ee4efb1e9e6795cfc736e4cfc1%2Fislanded_operation_inverter_basedmicrogris_droopcontroltechnique.png?alt=media" alt=""><figcaption></figcaption></figure>

## Description

The example illustrate the operation of an inverter-based microgrid disconnected from the main grid (islanded mode), using the droop control technique. The U.S. Department of Energy defines a microgrid as a local energy grid with control capability, which means it can disconnect from the traditional grid and operate autonomously.

Droop control is a well-established technique to control an autonomous grid. In fact, the Active Power/ Frequency (P/F) and Reactive Power/Voltage (Q/V) droop control mimics the operation of synchronous generators in a transmission system. With the droop control technique, PLL are not required to achieve system-wide synchronization because all inverters reach the same frequency. In addition, power sharing among each inverter can be achieved since each inverter gives power in proportion to its capacity.

The microgrid consists of three parallel inverters subsystems, with power ratings of 500 kW, 300 kW and 200 kW respectively, connected to the PCC (Point-of-Common-Coupling) bus. A dynamic load model is used to dynamically change the microgrid total load. The Microgrid Supervisory Control system, when enabled, modifies the inverters P/F and Q/V droop set points in order to bring back the microgrid frequency and voltage at their nominal values (60 Hz and 600 Volts respectively).

Each inverter subsystem contains a three-phase two-level power converter, an LC filter, a 480/600V transformer as well as an ideal DC source to represent the DC link of a typical renewable energy generation system (such as PV array, wind turbine, battery energy storage system). Each subsystem also includes a control system and a PWM generator feeding the inverter.

The main components of the inverter control system are:

**Droop Control:** The Figure shows the droop characteristics of the inverter control.

The droop P/F is set to 1%, meaning that microgrid frequency is allowed to vary from 60.3 Hz (inverter produces no active power) to 59.7 Hz (inverter produces its nominal active power). The droop Q/V is set to 4%, meaning that the microgrid voltage at the PCC bus is allowed to vary from 612 Vrms (inverter produces its full inductive power) to 588 Vrms (inverter produces its full capacitive power). Note that Qmax is specified as half of the nominal active power Pnom.

**Measurements:** Based on the frequency value given by the Droop control, the measurement subsystem computes the active and reactive power generated by the inverter. It also computes the d-q components of the three-phase voltages and currents at the microgrid PCC bus.

**Voltage Regulators:** Reference voltage Vref given by the Droop Control is fed to the Voltage Regulators. The regulators process the measured d-q voltages and reference voltage Vref to generate the reference currents Id\_ref and the Iq\_ref.

**Current Regulators:** The Id\_ref and the Iq\_ref reference currents are fed to the Current Regulators. The regulators process the measured and reference currents to produce the required d-q voltages (VdVq\_conv) for the inverter. Note that the regulators dynamics benefits from a feedforward calculation.

**Vref Generation:** VdVq\_conv are scaled and transformed to a three-phase signal Vref feeding the PWM modulator generating pulses to the inverter.

## Simulation

At 1 s, the total microgrid load is increased from 450kW/100kvar to 850kW/200kvar. At 3 s, droop control is enabled on all inverters. We can see that the microgrid load is now shared equally among the three inverters. At 5 s, the supervisory control is enabled. The frequency is then being slowly increased to 60Hz and the line voltage to 600V.

To demonstrate the impact of the inverters PWM carrier's initial phase on the PCC bus voltage harmonic content, first open the FFT Analyzer App to perform an FFT analysis of the PCC phase A bus voltage.

In the App, set the **Structure with time** parameter to PCC , the **Signal** parameter to V\_PCC, and the **Dimension** parameter to `1` to analyze the PCC phase A bus voltage. Set the **Zoom on** parameter to FFT window , the **Start time** parameter to 7.9 , and the **Max frequency** parameter to `7000`. Click **Compute FFT**. In the FFT plot, the maximum harmonic occurs around the switching frequency (2700 Hz) and is close to 2%.

Now, double-click on the Inverter 2 (300 kW) subsystem and change the Carrier initial phase parameter to -90 degrees. Rerun the simulation and again, perform an FFT analysis on the PCC phase A voltage. You should see that this new carrier phase setting significantly reduces the harmonic content around the switching frequency (2700 Hz). This is due to the fact that Inverter 1 carrier phase is set to +90, so switching harmonics are then partially canceled.

## Command

Example model name: power\_Microgrid\_IslandedOperation\_DroopControl

{% code lineNumbers="true" %}

```matlab
open('power_Microgrid_IslandedOperation_DroopControl')
```

{% endcode %}

## References

1. NREL report: Research Roadmap on Grid-Forming Inverters Yashen Lin, Joseph H. Eto, Brian B. Johnson, Jack D. Flicker, Robert H. Lasseter, Hugo N. Villegas Pico, Gab-Su Seo, Brian J. Pierre, and Abraham Ellis
2. IEEE paper: Dynamic Operation and Control of a Multi-DG Unit Standalone Microgrid Hossein arimi-Davijani, Student Member and Olorunfemi Ojo, Senior Member, 2011


---

# 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/smart-power-simulation-software-sps/example-models/renewables/islanded-operation-of-an-inverter-based-microgrid-using-droop-control-technique.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.
