> 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/blocks-functions-tools/control-and-measurements/pulse-and-signal-generators/overmodulation.md).

# Overmodulation

## Description

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

The **Overmodulation** block, located in the **OPAL-RT SPS Software/Power Electronics/Power Electronics Control** library, increases the linear region of a three-phase PWM generator by adding a third harmonic or triplen harmonic zero-sequence signal *V*<sub>*0*</sub> to the three-phase original reference signal U<sub>ref</sub>. This zero-sequence signal does not appear in the line-to-line voltages.

A modulation index of up to 1.1547 (exact value = 2/sqrt(3)) can be used without pulse dropping.

The Overmodulation block implements three overmodulation techniques:

* The Third Harmonic overmodulation technique. In this technique the third-harmonic signal V0 subtracted from the original signal is calculated as

$$
V\_{0}
======

\frac{|U|}{6}
;\times;
\sin!\left\[,3 \cdot (\omega t + \angle U)\right]
\\\[8pt]
$$

* The Flat Top overmodulation technique. In this technique the portion of the three-phase input signal exceeding values +/−1 is computed. The three resulting signals are then summed and removed from the original signal U<sub>ref</sub>. The resulting modified signal U<sub>ref</sub>\* is therefore a flat-top three-phase signal that contains zero-sequence triplen-harmonics. The block outputs a value between −1 and 1.
* The Min-Max overmodulation technique. In this technique the minimum and maximum values of the three components of input signal U<sub>ref</sub> are summed and divided by two, and then subtracted from the input signal. The resulting modified signal U<sub>ref</sub>\* also contains zero-sequence triplen-harmonics. The block outputs a value between −1 and 1.

## Parameters

<table data-header-hidden><thead><tr><th width="250.22222900390625"></th><th></th></tr></thead><tbody><tr><td><strong>Overmodulation type</strong></td><td>Select the overmodulation technique you want to apply to the Uref signal: Third harmonic (default), Flat top, or Min-Max.</td></tr></tbody></table>

## Inputs and Outputs

<table data-header-hidden><thead><tr><th width="250.22216796875"></th><th></th></tr></thead><tbody><tr><td><strong>Uref</strong></td><td>The three-phase reference signal of three-phase PWM generator.</td></tr><tr><td><strong>Uref</strong>*</td><td>The overmodulated three-phase signal of three-phase PWM generator.</td></tr></tbody></table>

## Characteristics

<table><thead><tr><th width="250.22222900390625">Sample Time</th><th>Inherited</th></tr></thead><tbody><tr><td>Scalar Expansion</td><td>No</td></tr><tr><td>Dimensionalized</td><td>Yes</td></tr></tbody></table>

## Examples

The power\_OverModulation example compares the three overmodulation techniques implemented in the Overmodulation block. Choose the overmodulation technique (type 1, 2, or 3 on the first input of the Multiport Switch) and run the simulation. Observe the resulting waveforms in Scope 1.

The model sample time is parameterized with variable Ts (default value of 5e-6). To run a continuous simulation, at the MATLAB® command prompt, enter

{% code lineNumbers="true" %}

```matlab
Ts = 0
```

{% endcode %}

and set the **Simulation type** parameter of the Powergui block to Continuous before starting the simulation.


---

# 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/blocks-functions-tools/control-and-measurements/pulse-and-signal-generators/overmodulation.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.
