> 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/motor-drives/ac-drives/ac2-space-vector-pwm-vsi-induction-3hp-motor-drive.md).

# AC2 - Space Vector PWM VSI Induction 3HP Motor Drive

This example shows a PWM VSI induction motor drive with a braking chopper for a 3HP AC motor.

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

H.Blanchette, L.-A. Dessaint (Ecole de technologie supérieure, Montreal)

## Description <a href="#description" id="description"></a>

The induction motor is fed by a PWM inverter, which is built using a Universal Bridge Block. The speed controller consists in a PI regulator that produces a slip compensation, which is added to the rotor speed in order to derive the commanded stator voltage frequency. A constant volts per hertz ratio is also applied to the motor. The motor drives a mechanical load characterized by inertia J, friction coefficient B, and load torque TL.

Motor current, speed, and torque signals are available at the output of the block.

## Simulation <a href="#simulation" id="simulation"></a>

Start the simulation. You can observe the motor stator current, the rotor speed, the electromagnetic torque and the DC bus voltage on the scope. The speed set point and the torque set point are also shown.

At time t = 0 s, the speed set point is 1000 rpm. As shown in Figure 0-10, the speed follows precisely the acceleration ramp.

At t = 0.5 s, the full load torque is applied to the motor shaft while the motor speed is still ramping to its final value. This forces the electromagnetic torque to increase to a high value and then to stabilize at 11 N.m once the speed ramping is completed and the motor has reached 1000 rpm.

At t = 1 s, the speed set point is changed to 1500 rpm and the electromagnetic torque reaches again a high value so that the speed ramps precisely at 1800 rpm/s up to 1500 rpm under full load.

At t = 1.5 s, the mechanical load passed from 11 N.m to -11 N.m , which causes the electromagnetic torque to stabilize at approximately at -11 N.m shortly after. Note that the DC bus voltage increases since the motor is in the braking mode. This increase is limited by the action of the braking chopper.

#### Notes <a href="#notes" id="notes"></a>

1. The power system has been discretized with a 2 us time step. The speed controller uses a 100 us sample time and the space vector modulator uses a 20 us sample time in order to simulate a microcontroller control device.
2. In order to reduce the number of points stored in the scope memory, a decimation factor of 25 is used.
3. A simplified version of the model using average-value inverter can be used by selecting 'Average' in the 'Model detail level' menu of the graphical user-interface. The time step can then be increased up to the control system sample time value.This can be done by typing 'Ts = 20e-6' in the workspace in the case of this example.

## Command <a href="#command" id="command"></a>

Example model name: ac2\_example

{% code lineNumbers="true" expandable="true" %}

```matlab
open('ac2_example')
```

{% 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/motor-drives/ac-drives/ac2-space-vector-pwm-vsi-induction-3hp-motor-drive.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.
