> 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/example-models/power-converters/power-converters-modeling-techniques.md).

# Power Converters Modeling Techniques

This example shows the operation of several types of power electronics converters that can be simulated using one of four selectable modeling techniques

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

## Description

### Modeling Techniques Description

You can run this simulation using one of the following modeling techniques:

1. Switching devices: The converter is modeled with IGBT/diode pairs controlled by firing pulses produced by a PWM generator.
2. Switching function: The converter is modeled by a switching function controlled by firing pulses produced by a PWM generator.
3. Switching function (PWM averaging): The converter is modeled by a switching function controlled by firing pulses produced by a PWM generator with pulse averaging. The g input then expects signals values between 0 and 1.
4. Average model (Uref-controlled): The converter is modeled using a switching-function model directly controlled by the reference voltage. A PWM generator is not required.
5. Average model (Uref-controlled, no rectifier mode): The converter is modeled using voltage sources directly controlled by the reference voltage. A PWM generator is not required, and the rectifier mode is not simulated.

Technique 1 is the most accurate, while technique 5 yields to the fastest simulation. Technique 3 (with firing pulses averaged), as well as techniques 4 and 5 are well-suited for real-time simulation.

### Power Converters Description

The simulation allows you to observe operation of several types of power electronics converters:

1-MVA Active Rectifier: This active rectifier will produce the main DC supply (+/-500V) used by several other converters. The rectifier consists of a three-phase, 3-level NPC converter and a closed-loop control system. It can take or give back power to the grid in order to maintain the specified DC level.

60-Hz Load: The load is modeled using a half-bridge converter controlled by a PWM generator having a carrier frequency of 33\*60.

DC Variable Load: The load variation is achieved using a buck converter and a variable DC source at the converter output.

DC Supply: A boost converter transfers power (125 kW) from a 500V DC source to the main DC supply.

DC Motor Drive: The drive consists of a speed-regulated 200-HP motor, a Two-Quadrant DC-DC Converter and a control system.

50-Hz Load: The load is modeled using a full-bridge converter controlled by a PWM generator having a carrier frequency of 1650 Hz and a modulation index of 0.9.

2-MVA STATCOM: This distribution STATCOM consists of two three-phase, 2-level converters (twin topology) and a closed-loop control system. It can generate or absorb 2 Mvars from the grid.

## Simulation

During the simulation, the DC variable load will vary from 125 kW to 350 kW at 5 Hz. At 0.5 s, the DC motor speed setpoint is changed from 1200 to 800 RPM. At 0.6 s, the STATCOM reference (Qref) is changed from -1 Mvar to +1.5 Mvar. Run the simulation and observe the resulting signals on the various scopes. Select a different modeling technique and rerun the simulation, comparing results with previous runs.

## Command

Example model name: power\_converters

{% code lineNumbers="true" %}

```matlab
open('power_converters')
```

{% endcode %}


---

# 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/example-models/power-converters/power-converters-modeling-techniques.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.
