> 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/full-bridge-converter-switching-function.md).

# Full-bridge converter (Switching Function)

## Description

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

The **Full-bridge converter (Switching Function)** block, located in the **Network Voltage Source Converters** library, models a single-phase voltage source converter (VSC) using a switching function suitable for real-time simulation. The switching function offers a compromise between the real-time performance of an average model and the accuracy of detailed switches by preserving the harmonic content of the switching device.

{% hint style="danger" %}
This model must be used with [**PWM Average Generator for Full-Bridge Converter (Switching Function)**](https://www.opal-rt.com/docs/hypersim/library-blocks-reference/control-sources/pwm-average-generator-for-full-bridge-converter-switching-function.md) in Control Sources library of HYPERSIM or with an input FPGA module
{% endhint %}

Switches are represented by two voltage sources and two diodes on the AC side, and a current source on the DC side.

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

The converter is controlled by firing pulses produced by a PWM generator or by firing pulses averaged over the simulation time step (1/Ts), providing signals between 0 and 1 (see **PWM Average Generator for Full-Bridge Converter (Switching Function)**). Both operating modes produce harmonics. The model simulates rectifier operation and blanking time.

{% hint style="info" %}
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-9240a529cba3c33320c2f58af4051e3b9f785a93%2Fimage%20(1066).png?alt=media" alt="" width="440"><figcaption></figcaption></figure>

<table><thead><tr><th width="261.20001220703125">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Description</strong></td><td>Free-text field to document the block.</td></tr><tr><td><strong>Diode on-state resistance</strong></td><td>Internal resistance of the diodes (Ohm), Rclose range [1e-12, 1e12].</td></tr><tr><td><strong>Diode snubber resistance</strong></td><td>Snubber resistance of the diodes (Ohm), Rsnubber 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="260.4000244140625">Port</th><th>Description</th></tr></thead><tbody><tr><td><strong>1</strong></td><td>AC-side network connector (single-phase only).</td></tr><tr><td><strong>2</strong></td><td>AC-side network connector (single-phase only).</td></tr><tr><td><strong>DCplus</strong></td><td>DC-side positive terminal (single-phase only).</td></tr><tr><td><strong>DCminus</strong></td><td>DC-side negative terminal (single-phase only).</td></tr></tbody></table>

## Inputs

<table><thead><tr><th width="260.4000244140625" valign="top">Input</th><th>Description</th></tr></thead><tbody><tr><td valign="top"><strong>P</strong></td><td><p>Vector containing four firing pulses to control the converter:<br>P1 Gating signal controlling Q1<br>P2 Gating signal controlling Q2</p><p>P3 Gating signal controlling Q3</p><p>P4 Gating signal controlling Q4</p></td></tr></tbody></table>

## Outputs

<table><thead><tr><th width="260.39996337890625">Output</th><th>Description</th></tr></thead><tbody><tr><td><strong>V</strong></td><td>Vector with AC-side voltage Vac and DC-link voltage Vdc (V).</td></tr><tr><td><strong>I</strong></td><td>Vector with AC-side current Iac 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;">MathWorks,</mark> *<mark style="background-color:yellow;">Full-Bridge Converter</mark>* [<mark style="background-color:yellow;">Mathworks.com</mark>](http://mathworks.com/)<mark style="background-color:yellow;">.</mark> [<mark style="background-color:yellow;">https://www.mathworks.com/help/physmod/sps/powersys/ref/fullbridgeconverter.html</mark>](https://www.mathworks.com/help/physmod/sps/powersys/ref/fullbridgeconverter.html)

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/full-bridge-converter-switching-function.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.
