> 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-average.md).

# 2-Level Converter (Average)

## Description

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

The **2-Level Converter (Average) – Non-Rectifier Mode** block, located in the **Network Voltage Source Converters** library, models a three-phase VSC (Voltage Source Converter) using a switching-function average model directly controlled by reference voltages, so no PWM generator is required. Rectifier operation is not simulated. Typical applications include the integration of renewable energy sources and motor drives. Internally, the switches are replaced by controlled voltage sources on the AC side (three per phase) and a controlled current source on the DC side.

The converter is modeled by a switching function model. The switches are replaced by three voltage sources per phase on the AC side and a current source on the DC side.

The figure below shows the internal circuit of the converter. Although the topology of the converter is similar to that of the **Full-bridge converter (Switching Function)**, the equations for controlling the amplitude of voltage and current sources are different.

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

The converter is directly controlled by the reference voltage so that a PWM generator is not required. In addition the rectifying operations are not simulated.

{% hint style="danger" %}
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-ae1bd8c709d7ca3ad8c8a4f5070f137527402d26%2Fimage%20(480).png?alt=media" alt="" width="443"><figcaption></figcaption></figure>

<table><thead><tr><th width="280.4000244140625">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Description</strong></td><td>User-defined text for documenting the block.</td></tr><tr><td><strong>AC voltage source resistance</strong></td><td>Internal resistance of the AC voltage sources (Ohm), Rac; valid range [1e-12, 1e12].</td></tr><tr><td><strong>DC current source parallel resistance</strong></td><td>Internal resistance in parallel with the DC current source (Ohm), Rdc; valid range [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="279.5999755859375">Port</th><th>Description</th></tr></thead><tbody><tr><td><strong>net_1</strong></td><td>AC-side network connector (3-phase only).</td></tr><tr><td><strong>DCplus</strong></td><td>DC-side network connector (positive terminal; 1-phase only).</td></tr><tr><td><strong>DCminus</strong></td><td>DC-side network connector (negative terminal; 1-phase only).</td></tr></tbody></table>

## Inputs

<table><thead><tr><th width="280.4000244140625">Input</th><th>Description</th></tr></thead><tbody><tr><td>Vref</td><td>Vector (3) of phase-to-ground reference voltages used to control the converter (pu).</td></tr></tbody></table>

## Outputs

<table><thead><tr><th width="278.79998779296875">Output</th><th>Description</th></tr></thead><tbody><tr><td>V</td><td>Vector containing AC-side phase-to-ground voltages Va, Vb, Vc, and DC-link voltage Vdc (V).</td></tr><tr><td>I</td><td>Vector containing AC-side phase 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,</mark> *<mark style="background-color:yellow;">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-average.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.
