> 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/direct-torque-control-with-space-vector-modulation-of-an-induction-motor-drive.md).

# Direct Torque Control with Space Vector Modulation of an Induction Motor Drive

This example demonstrates the speed regulation of a variable-frequency AC drive using the direct torque control (DTC) technique with space vector modulation.

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

## Description

### Electrical Model

The electrical energy is supplied by a three-phase AC/DC diode rectifier connected to a 600 V, 60 Hz grid equivalent. The DC bus is connected to a three-phase, two-level converter. This converter generates the variable voltage and frequency required for variable-speed operation of the 150 HP induction motor. In addition, a braking chopper is connected to the DC bus in order to dissipate the kinetic energy of the motor during deceleration.

An inverter-fed induction motor drive can be controlled through various techniques depending on the application, desired performance, and controller design complexity. Commonly used schemes are scalar control (V/Hz control or open loop flux control) or vector control (field-oriented control or direct torque control). In our example, we use the DTC technique with space vector pulse width modulation (SVPWM).

Compared to the classical hysteresis-based DTC, the SVPWM-DTC technique has a fixed switching frequency. Furthermore, this technique significantly reduces the motor torque ripple in steady-state operation. Refer to the Direct Torque Control of an Induction Motor Drive example to see the torque ripple of a motor drive using hysteresis-based DTC control.

### SVPWM-Based DTC Controller

DTC is a control technique that allows you to instantaneously control the motor magnetic flux and its electromagnetic torque in a decoupled way. Controlling the torque directly permits accurate static and dynamic speed regulation.

The main components of the DTC subsystem are:

1. Flux and Torque Calculation - Stator flux linkage is estimated by integrating the stator voltages, and torque is calculated based on the estimated flux and the motor currents.
2. Speed Regulator - The regulator compares the actual motor speed with the speed reference and generates the torque reference.
3. Flux and torque regulators - The calculated flux magnitude and torque are compared with the reference values. The resulting flux and torque errors are fed to anti-windup PI regulators. The output of the flux regulator is the direct-axis reference voltage Vd\_ref and the output of the torque regulator is the quadrature-axis reference voltage Vq\_ref.
4. Scaling and transformation - Vd\_ref and Vq\_ref are scaled and transformed to a three-phase signal Vref using the rotating frame reference given by the flux position phi\_pha.

The output Vref of the DTC subsystem is fed to a SVPWM modulator that generates pulses to the motor inverter.

## Simulation

Run the simulation and observe waveforms on Scope\_Motor. Initially, the flux reference is set to 0.9 V.s.

At 0.1 s, the speed reference is set to 1500 RPM and the motor starts to accelerate. You can see that the motor speed precisely follows the speed reference, whose maximum rate of change is limited to 1200 RPM/s. The 1500 RPM set point is reached at 1.35 s.

At 1.5 s, a load torque of 500 N.m is applied to the motor. The DTC control maintains the motor speed at 1500 RPM.

At 2 s, the load torque is reduced to 50 N.m and at 2.5s, the speed reference is reduced to 500 RPM. Observe on Scope Supply that the braking chopper operation dissipates the kinetic energy produced by the motor in order to avoid overvoltage on the DC bus.

At 3.5 s, the flux reference is increased from 0.9 to 1.0 V.s

## Command

Example model name: power\_motordrive\_IM\_DTC\_SVPWM

{% code lineNumbers="true" %}

```matlab
open('power_motordrive_IM_DTC_SVPWM')
```

{% endcode %}

## References

Cirrincione, M., M. Pucci, G. Vitale. Power Converters and AC Electrical Drives with Linear Neural Networks. CRC Press, 2012.


---

# 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/direct-torque-control-with-space-vector-modulation-of-an-induction-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.
