> 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/ac8-comparison-between-detailed-and-simplified-models.md).

# AC8 - Comparison Between Detailed and Simplified Models

This example shows the AC8 detailed model and the AC8 average model during speed regulation.

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

J-F. Doyon, L.-A. Dessaint (Ecole de technologie supérieure, Montreal)

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

This circuit uses two AC8 blocks of SPS Software library. It models a five-phase permanent magnet (PM) synchronous motor drive with a braking chopper for a 4.4kW motor. The first block is set to average value model and the second is set to detailed model.

For the detailed model, the five-phase PM synchronous motor is fed by a PWM voltage source inverter, which is built using a Universal Bridge Block. The average value model uses ideal voltage and current sources to feed the PM synchronous motor. The speed control loop uses a PI regulator to produce the flux and torque references for the vector control block. The vector control block computes the five reference motor line currents corresponding to the flux and torque references and then feeds the motor with these currents using a five-phase current regulator.

Motor currents, voltages, 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 first scope. The speed set point and the torque set point are also shown. On the second scope, the dq currents and voltages are displayed. Note that all signals are multiplexed to compare the two models.

At time t = 0 s, the speed set point is 900 rpm and a 25 Nm load torque is applied to the motor. Observe that the speed follows precisely the acceleration ramp.

At t = 0.45 s, the speed set point is reached by both drives.

At t = 1.2 s, the speed set point is changed to -900 rpm.

At t = 2 s., the mechanical load passes from 25 Nm to -25 Nm. You can observe a small disturbance in the motor speed, which stabilizes very quickly.

At t = 2.1 s., the speed set point is reached by both drives.

Finally, note how the simplified model reacts well compared to the detailed model.

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

To evaluate the speed gain of the average value model, see **ac8\_example\_simplified** and compare the simulation speed with **ac8\_example**.

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

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

```matlab
open('ac8_example_comparison')
```

{% 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/ac8-comparison-between-detailed-and-simplified-models.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.
