> 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/library-blocks-reference/control-microgrid/islanding-management.md).

# Islanding Management

## Description

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

The **islanded Control** block, located in the **Control Microgrid** library, regulates active and reactive power when the microgrid is disconnected from an external AC grid (islanded mode). It allows the user to set active and reactive power and manages transitions into and out of islanded mode using PCC voltage/current thresholds and phase-error frequency compensation.

## Mask parameters

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

<table><thead><tr><th width="260">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Frequency</strong></td><td>Expected grid frequency during islanded mode. (Hz)</td></tr><tr><td><strong>PCC dq-voltage threshold for Grid Connected transition</strong></td><td>Maximum dq-frame voltage at the PCC allowed to close the main grid breaker and leave islanded mode (V).</td></tr><tr><td><strong>PCC dq-current threshold for Islanded transition</strong></td><td>Minimum dq-frame current at the PCC required to open the main grid breaker and enter islanded mode (A).</td></tr><tr><td><strong>Duration of below-threshold V/A for PCC switching</strong></td><td>Time the condition must persist to switch modes (s).<br>To enter islanded mode, the current must remain below the threshold for at least this duration.<br>To leave islanded mode, the voltage must remain below the threshold for at least this duration.</td></tr><tr><td><strong>Microgrid phase error frequency compensation</strong></td><td>Gain applied to the diesel generator frequency to compensate phase error between the islanded microgrid and the grid, enabling synchronization before leaving islanded mode (Hz/rad).</td></tr></tbody></table>

## Inputs

<table><thead><tr><th width="260">Input</th><th>Description</th></tr></thead><tbody><tr><td><strong>P import Grid</strong></td><td>Active power commanded by dispatch (pu).</td></tr><tr><td><strong>Q import Grid</strong></td><td>Reactive power commanded by dispatch (pu).</td></tr><tr><td><strong>P ref Grid</strong></td><td>Active power commanded by user (pu).</td></tr><tr><td><strong>Q ref Grid</strong></td><td>Reactive power commanded by user (pu).</td></tr><tr><td><strong>P Grid</strong></td><td>Active power measured at the PCC (pu).</td></tr><tr><td><strong>Q Grid</strong></td><td>Reactive power measured at the PCC (pu).</td></tr><tr><td><strong>wt Grid</strong></td><td>wt of infeed grid (rad·sec).</td></tr><tr><td><strong>Current Grid</strong></td><td>Current measurement of infeed grid (A).</td></tr><tr><td><strong>Voltage Grid</strong></td><td>Voltage measurement of infeed grid (V).</td></tr><tr><td><strong>Voltage Microgrid</strong></td><td>Voltage measurement of microgrid (V).</td></tr><tr><td><strong>Islanded enable</strong></td><td>User island command<br>Set to 1 to enter islanded mode.</td></tr><tr><td><strong>Angle Error Microgrid</strong></td><td>Difference between microgrid and external grid angles.</td></tr></tbody></table>

## Outputs

<table><thead><tr><th width="260">Output</th><th>Description</th></tr></thead><tbody><tr><td><strong>P error Grid</strong></td><td>Error between commanded and measured active power (pu).</td></tr><tr><td><strong>Q error Grid</strong></td><td>Error between commanded and measured reactive power (pu).</td></tr><tr><td><strong>PCC current zero enable</strong></td><td>PCC current is low enough to open PCC.</td></tr><tr><td><strong>Current comparison result</strong></td><td>PCC current status.</td></tr><tr><td><strong>Current value</strong></td><td>PCC current (pu).</td></tr><tr><td><strong>PCC voltage zero enable</strong></td><td>Voltage difference across PCC low enough to close.</td></tr><tr><td><strong>Voltage comparison result</strong></td><td>PCC voltage status.</td></tr><tr><td><strong>Voltage value</strong></td><td>PCC voltage (pu).</td></tr><tr><td><strong>Islanded</strong></td><td>Microgrid is islanded.</td></tr><tr><td><strong>w Ref DG</strong></td><td>w reference for diesel generator to compensate microgrid angle error (rad).</td></tr></tbody></table>


---

# 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/library-blocks-reference/control-microgrid/islanding-management.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.
