> 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/rt-lab/simulink-blocks-reference/smart-inverter-library.md).

# Smart Inverter Library

## Overview <a href="#overview" id="overview"></a>

The **Smart Inverter Library** is a HYPERSIM control and protection library developed in accordance with the requirements of **IEEE Std. 1547‑2018** for the interconnection and interoperability of Distributed Energy Resources (DERs). It provides modular and configurable control architectures for both **grid‑following (GFL)** and **grid‑forming (GFM)** power electronic converters, supporting a wide range of real‑time simulation, prototyping, and testing applications.

The **grid‑following control library** includes current controllers, power controllers, protection functions, and configurable grid support features such as **Constant Power Factor (CPF)**, **Volt‑Var control**, and **droop control**. The **grid‑forming control library** incorporates a hierarchical structure with **secondary control**, multiple types of **inner control loops**, and several **primary control strategies**.

The Smart Inverter Library enables users to perform **Rapid Control Prototyping (RCP)** efficiently using a real‑time simulator. In this setup, the simulator acts as the controller and interfaces directly with a physical power converter.

Additionally, the library includes an expanding set of **control and plant‑level blocks** aligned with the functional structure of **WECC generic renewable energy system models**. These blocks are designed to replicate, within an EMT and real‑time simulation environment, the control behaviors typically represented by WECC generic models used in bulk power system dynamic studies.

The library also supports **Hardware‑in‑the‑Loop (HIL)** testing, allowing real control and protection hardware to be integrated with digitally represented smart inverters in real‑time simulation. Interfaces between simulated inverter models and physical devices can be implemented using communication protocols such as **Modbus TCP** and **IEC 61850 GOOSE**.

## Library Content <a href="#library-content" id="library-content"></a>

<table><thead><tr><th width="179.666748046875">Section</th><th>Content</th><th>Intellectual Property Disclaimer</th></tr></thead><tbody><tr><td><strong>Grid Following</strong></td><td><p>GFL Primary Control Three-Phase</p><p>GFL Secondary Control Three-Phase</p><p>GFL Signal Conditioning Three-Phase</p><p>GFL Wave Reference Three-Phase</p></td><td><strong>Natural Resources Canada</strong> owns intellectual property rights of blocks part of Grid Following section in the Smart Inverter Library</td></tr><tr><td><strong>Grid Forming</strong></td><td><p>GFM Inner Control Loop Three-Phase</p><p>GFM Primary Control Three-Phase</p><p>GFM Reference Generation Three-Phase</p><p>GFM Secondary Control Three-Phase</p><p>GFM Signal Conditioning Three-Phase</p></td><td><strong>Natural Resources Canada</strong> owns intellectual property rights of blocks part of Grid Following section in the Smart Inverter Library</td></tr><tr><td><strong>Protection Elements</strong></td><td><p>Bridge Protection</p><p>Frequency Protection</p><p>Protection Latch</p><p>Voltage Protection</p></td><td><strong>Natural Resources Canada</strong> owns intellectual property rights of blocks part of Grid Following section in the Smart Inverter Library</td></tr></tbody></table>

{% hint style="info" %}

## Acknowledgements <a href="#acknowledgements" id="acknowledgements"></a>

**CanmetENERGY** at Natural Resource Canada has contributed in the implementation of all the components in the Smart Inverter Modeling Toolbox software.
{% endhint %}


---

# 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/rt-lab/simulink-blocks-reference/smart-inverter-library.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.
