> 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/network-voltage-source-converters/2-level-converter-switching-devices.md).

# 2-Level Converter (Switching Devices)

## Description

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

The **2-Level Converter (Switching Devices)** block, located in the **Network Voltage Source Converters** library, is a three-phase power converter modeled from IGBT and diode elements. It is controlled by firing pulses generated by the PWM Generator for 2-Level Converter (Switching Devices).

Use a time step 100 to 200 times smaller than the PWM carrier period to obtain precise off-line simulation results.

The converter is modeled by 6 IGBT/diodes controlled by firing pulses produced by a PWM generator. The figure below shows the internal circuit of the 2-Level Converter (Switching Devices) using IGBT and diode elements.

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

The PWM generator outputs a vectorized gating signal to control the converter. The gating signal contains six firing pulses. The first two pulses control the Q1 and Q2 switching devices (phase A of the converter), pulses three and four control the Q3 and Q4 switching devices (phase B of the converter), and the last two pulses control the Q5 and Q6 switching devices (phase C of the converter).

{% hint style="danger" %}
This component must be used with the [**PWM Generator for 2-Level Converter (Switching Devices)**](https://www.opal-rt.com/docs/hypersim/library-blocks-reference/control-sources/pwm-generator-for-2-level-converter-switching-devices.md) block available in the Control Sources library of HYPERSIM or with an input FPGA module (contact our [technical support](https://www.opal-rt.com/contact-technical-support/) for an example).

This model does not participate in the load flow solution.
{% endhint %}

## Mask parameters

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

<table><thead><tr><th width="232.4000244140625">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Description</strong></td><td>User-defined text describing the block.</td></tr><tr><td><strong>Diode on-state resistance</strong></td><td>Internal resistance of the internal GTO/diodes (Ohm). Rclose = { [1e-12, 1e12] }.</td></tr><tr><td><strong>Diode snubber resistance</strong></td><td>Snubber resistance of the internal GTO/diodes (Ohm). Rsnubber = { [1e-12, 1e12] }.</td></tr><tr><td><strong>Diode snubber capacitance</strong></td><td>Capacitance of the internal GTO/diodes (F). Csnubber = { [1e-12, 1e12] }.</td></tr></tbody></table>

{% hint style="info" %}
For accurate results, enable **Activate iterative method** and **Solve control inputs before solving power** in **Simulation Settings**.
{% endhint %}

## Conserving ports

<table><thead><tr><th width="232.4000244140625">Port</th><th>Description</th></tr></thead><tbody><tr><td><strong>net_1</strong></td><td>AC-side network connector (supports only 3-phase connections).</td></tr><tr><td><strong>DCplus</strong></td><td>DC-side network connector. Positive terminal (supports only 1-phase connections).</td></tr><tr><td><strong>DCminus</strong></td><td>DC-side network connector. Negative terminal (supports only 1-phase connections).</td></tr></tbody></table>

## Inputs

<table><thead><tr><th width="230.79998779296875">Input</th><th>Description</th></tr></thead><tbody><tr><td><strong>P</strong></td><td>Vectorized signal containing six firing pulses to control the converter.</td></tr></tbody></table>

## Outputs

<table><thead><tr><th width="230.79998779296875">Output</th><th>Description</th></tr></thead><tbody><tr><td><strong>V</strong></td><td>Vectorized voltage signal containing AC-side phase-to-ground voltages Va, Vb, Vc and DC-link voltage Vdc (V).</td></tr><tr><td><strong>I</strong></td><td>Vectorized current signal containing AC-side phase-to-ground currents Ia, Ib, Ic and DC-link current Idc (A).</td></tr></tbody></table>

## Signals available for monitoring and external I/O connections (via sensors form)

All block inputs and outputs are available as signals for monitoring and for external I/O connections.

## References

<mark style="background-color:yellow;">SPS Two-Level Converter</mark>

M. H. Rashid, *Power electronics handbook*, 4<sup>th</sup> ed. Butterworth-Heinemann, 2017.


---

# 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/network-voltage-source-converters/2-level-converter-switching-devices.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.
