> 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/courseware/electric-courseware/electric-motor-drives/squirrel-cage-induction-motor-drive/virtual-test-bench-overview.md).

# Virtual Test Bench Overview

This courseware allows the students to test virtually (using real-time simulation) the operation of a **squirrel-cage induction motor**, henceforth designated **IM**, when a speed control is required.\
The mechanical load of the IM consists of a direct current machine, henceforth designated **DCM**, operating as a generator and feeding a variable load resistance (see figure 1).

<figure><img src="https://4054096626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbyVjpgEQX9nfCkpYoFP%2Fuploads%2FQd3B8g5Z0SebdSlYZSyX%2F3e5d0478-9478-4fdb-943b-24c6def1356f.png?alt=media&amp;token=e6182e49-2876-41d5-81a9-45587b0d978d" alt="" width="488"><figcaption><p><strong>Figure 1</strong>: Basic Configuration of the Simulated Circuit for the IM Drive</p></figcaption></figure>

&#x20;Two main control strategies are implemented for the squirrel-cage induction motor: the well-known indirect field-oriented control (IFOC) and the V/F control.

## Indirect field oriented control (IFOC) <a href="#indirect-field-oriented-control-ifoc" id="indirect-field-oriented-control-ifoc"></a>

The IFOC method can be defined as follows:

* Use of the Concordia transformation which transforms three-phase quantities (a, b, c) into two-phase quantities ($$\alpha$$,$$\beta$$) in a stationary reference frame.
* Use of the Park transformation, which transforms the two-phase quantities ($$\alpha$$,$$\beta$$) in a rotating reference frame.
* Write the equations of the IM in the rotating reference frame.
* Choose the d-axis so that it is aligned with the rotor flux.\
  This goal is achieved by ensuring that a set of equations is verified.
* The speed control of the IM required the three following steps:
  1. Magnetizing the machine through flux control.
  2. Torque control.
  3. Speed control.

### Practical implementation of the IFOC for IM drive <a href="#practical-implementation-of-the-ifoc-for-im-drive" id="practical-implementation-of-the-ifoc-for-im-drive"></a>

First, let define the list of symbols and parameters that are going to be used throughout this document.

#### IM parameters

<table data-search="false"><thead><tr><th>IM parameters</th><th>Definition</th></tr></thead><tbody><tr><td><strong>R</strong><sub><strong>s</strong></sub></td><td>Stator resistance</td></tr><tr><td><strong>R</strong><sub><strong>r</strong></sub></td><td>Rotor resistance</td></tr><tr><td> <strong>L</strong><sub><strong>s</strong></sub></td><td>Rotor resistance</td></tr><tr><td><strong>L</strong><sub><strong>r</strong></sub></td><td>Rotor resistance</td></tr><tr><td><strong>M</strong><sub><strong>sr</strong></sub></td><td>Stator-Rotor mutual inductance</td></tr><tr><td><strong>s</strong></td><td>Dispersion coefficient</td></tr><tr><td> <strong>T</strong><sub><strong>s</strong></sub></td><td>Stator electrical time constant, T<sub>s</sub> = L<sub>s</sub> / R<sub>s</sub></td></tr><tr><td><strong>T</strong><sub><strong>r</strong></sub></td><td>Rotor electrical time constant, T<sub>r</sub> = L<sub>r</sub> / R<sub>r</sub></td></tr></tbody></table>

#### DC machine characteristics

| DC machine characteristics | Description               |
| -------------------------- | ------------------------- |
| **P**<sub>**un**</sub>     | Nominal power.            |
| **V**<sub>**an**</sub>     | Armature nominal voltage. |
| **V**<sub>**fn**</sub>     | Field nominal voltage.    |
| **I**<sub>**fn**</sub>     | Field nominal current.    |
| **N**<sub>**n**</sub>      | Nominal speed in RPM.     |

#### Inverter characteristics

| Inverter characteristics | Description                          |
| ------------------------ | ------------------------------------ |
| **U**<sub>**in**</sub>   | Nominal line to line output voltage. |
| **U**<sub>**dcn**</sub>  | DC nominal input voltage.            |
| **f**<sub>**s**</sub>    | Switching frequency.                 |

#### Other parameters

<table data-search="false"><thead><tr><th>Other symbols</th><th>Description</th></tr></thead><tbody><tr><td><strong>f</strong> </td><td>Stator voltages frequency</td></tr><tr><td><strong>ω</strong> </td><td>Stator voltages angular frequency.</td></tr><tr><td><strong>Ω</strong></td><td>Rotor angular mechanical speed.</td></tr><tr><td><strong>ω</strong><sub>e</sub> </td><td>Rotor angular electrical speed, ω<sub>e</sub> = PΩ</td></tr><tr><td><strong>T</strong><sub><strong>em</strong></sub> </td><td>Electromagnetic torque.</td></tr><tr><td><strong>f</strong><sub><strong>v</strong></sub> </td><td>Viscous friction factor.</td></tr><tr><td><strong>J</strong> </td><td>Total inertia (IM and mechanical load).</td></tr><tr><td><strong>R</strong><sub><strong>L</strong></sub> </td><td>Load resistance connected to the DC generator.</td></tr><tr><td><strong>T</strong><sub><strong>L</strong></sub></td><td>Total load torque.</td></tr><tr><td><strong>T</strong><sub><strong>L0</strong></sub> </td><td>Load torque due to the mechanical load only, proportional to the speed, T<sub>L0</sub> = k<sub>L</sub>.W</td></tr><tr><td><strong>T</strong><sub><strong>f</strong></sub> </td><td>Viscous friction torque, T<sub>f</sub> = f<sub>v</sub>.W</td></tr><tr><td><strong>τ</strong><sub><strong>m0</strong></sub></td><td>Mechanical time constant at no load, τ<sub>m0</sub> = J / f<sub>v</sub></td></tr><tr><td><strong>τ</strong><sub><strong>mL</strong></sub> </td><td>Mechanical time constant at load, τ<sub>mL</sub> = J / (f<sub>v</sub> + k<sub>L</sub>) </td></tr><tr><td><strong>ρ</strong></td><td>Angle between the d-axis of the rotating reference frame and the a-axis of the stationary reference frame (e.g., Phase “a” of the stator).</td></tr><tr><td><strong>ω</strong><sub><strong>mr</strong></sub> </td><td>Angular speed of the rotating reference frame d-q  <span class="math">\omega_{mr} = \frac{d\phi}{dt}</span></td></tr><tr><td><strong>i</strong><sub><strong>mr</strong></sub> </td><td>Rotor magnetizing current.</td></tr><tr><td><strong>v</strong><sub><strong>sα</strong></sub>, <strong>v</strong><sub><strong>sβ</strong></sub>, <strong>i</strong><sub><strong>sα</strong></sub>, <strong>i</strong><sub><strong>sβ</strong></sub> </td><td>Stator voltages and currents expressed in the stationary reference frame.</td></tr><tr><td><strong>v</strong><sub><strong>sd</strong></sub>, <strong>v</strong><sub><strong>sq</strong></sub>, <strong>i</strong><sub><strong>sd</strong></sub>, <strong>i</strong><sub><strong>sq</strong></sub> </td><td>Stator voltages and currents expressed in the rotating reference frame.</td></tr><tr><td><strong>v</strong><sub><strong>sdc</strong></sub>, <strong>v</strong><sub><strong>sqc</strong></sub></td><td>Decoupling stator voltages expressed in the rotating reference frame.</td></tr><tr><td><strong>v</strong><sub><strong>sdref</strong></sub>, <strong>v</strong><sub><strong>sqref</strong></sub></td><td>Reference stator voltages expressed in the rotating reference frame.</td></tr><tr><td><strong>v</strong><sub><strong>sαref</strong></sub>, <strong>v</strong><sub><strong>sβref</strong></sub></td><td>Reference stator voltages expressed in the stationary reference frame.</td></tr><tr><td><strong>t</strong><sub><strong>TCL</strong></sub></td><td>Desired time constant of the torque closed loop.</td></tr><tr><td><strong>t</strong><sub><strong>Tr</strong></sub> </td><td>Torque response time.</td></tr><tr><td><strong>τ</strong><sub><strong>ΦCL</strong></sub> </td><td>Time constant of the regulated flux.</td></tr></tbody></table>

The values of the parameters previously described are summarized in those tables.\
It should be noted that a three-phase, two-level inverter has been considered for the IM drive.

### Nameplate ratings

#### Three-Phase two-level inverter nameplate ratings

<table data-search="false"><thead><tr><th>DC Input</th><th>Value</th></tr></thead><tbody><tr><td><strong>Voltage DC</strong></td><td>1000 V</td></tr><tr><td><strong>Maximum Current</strong></td><td>13.5 A</td></tr><tr><td><strong>AC Output</strong></td><td>3-phase</td></tr><tr><td><strong>Voltage LL RMS</strong></td><td>460 V</td></tr><tr><td><strong>Maximum Current</strong></td><td>24 A</td></tr><tr><td><strong>Power</strong></td><td>13.5 kW</td></tr></tbody></table>

#### DCM nameplate ratings

| **Nominal Power**            | P<sub>un</sub> | 16 HP    |
| ---------------------------- | -------------- | -------- |
| **Armature Nominal Voltage** | V<sub>an</sub> | 460 V    |
| **Field Nominal Voltage**    | V<sub>fn</sub> | 460 V    |
| **Field Nominal Current**    | I<sub>fn</sub> | 1.11 A   |
| **Nominal Speed**            | N<sub>n</sub>  | 1746 rpm |

{% hint style="info" %}
The values of the DC machine nameplate ratings in table 2 are given for motor operation.\
When the DC machine is operating as a generation, some of these values may change.
{% endhint %}

### IM parameters values and nameplate ratings

<table data-search="false"><thead><tr><th width="264.39996337890625">Parameters</th><th width="137.60003662109375">Designation</th><th width="113.60009765625">Value</th><th width="76.800048828125">Unit</th></tr></thead><tbody><tr><td><strong>IM Stator resistance</strong></td><td>R<sub>s</sub></td><td>0.6837</td><td>Ω</td></tr><tr><td><strong>IM Stator self-inductance</strong></td><td>L<sub>s</sub></td><td>0.1528</td><td>H</td></tr><tr><td><strong>IM Rotor resistance referred to the stator</strong></td><td>R<sub>r</sub></td><td>0.451</td><td>Ω</td></tr><tr><td><strong>IM Rotor self-inductance referred to the stator</strong></td><td>L<sub>r</sub></td><td>0.1528</td><td>H</td></tr><tr><td><strong>IM Stator-rotor mutual inductance</strong></td><td>M<sub>sr</sub></td><td>0.1486</td><td>H</td></tr><tr><td><strong>IM Dispersion coefficient</strong></td><td><span class="math">\sigma = 1 - \frac{M_{sr}^2}{L_s L_r}</span></td><td>0.0536</td><td><br><br></td></tr><tr><td><strong>IM Pole pairs</strong></td><td>P</td><td>2</td><td></td></tr><tr><td><strong>IM base speed</strong></td><td>N<sub>b</sub></td><td>1800</td><td>rpm</td></tr><tr><td><strong>IM Nominal torque</strong></td><td>T<sub>n</sub></td><td>54.7</td><td>N.m</td></tr><tr><td><strong>IM Rotor nominal flux in dq axis</strong></td><td>Φ<sub>rdn</sub></td><td>1.22</td><td>Wb</td></tr><tr><td><strong>IM Rotor nominal magnetizing current in dq axis</strong></td><td>i<sub>mrn</sub></td><td>8.21</td><td>A</td></tr><tr><td><strong>IM Viscous friction factor</strong></td><td>f<sub>v</sub></td><td>0.0135</td><td>kg.m<sup>2</sup>.s<sup>-1</sup></td></tr><tr><td><strong>Total inertia (IM and DC machine)</strong></td><td>J</td><td>0.31</td><td>kg.m<sup>2</sup></td></tr><tr><td><strong>IM Apparent nominal power</strong></td><td>S<sub>IMn</sub></td><td>12700</td><td>VA</td></tr><tr><td><strong>IM Nominal Line-to-line voltage</strong></td><td>U<sub>IMn</sub></td><td>460</td><td>V</td></tr><tr><td><strong>IM Nominal current</strong></td><td>I<sub>IMn</sub></td><td>16</td><td>A</td></tr><tr><td><strong>IM Nominal Speed</strong></td><td>N<sub>IMn</sub></td><td>1746</td><td>rpm</td></tr></tbody></table>

### IFOC control

The general IFOC scheme used to implement the speed control of the IM is shown in figure 2.

<figure><img src="https://4054096626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbyVjpgEQX9nfCkpYoFP%2Fuploads%2FCYoj2LWopZysJeQgQkez%2Ff26d4b12-564f-4f94-ab30-9d39873d2317.png?alt=media&amp;token=a8928693-9a93-4fbc-bb3f-8e7a9d6b5e64" alt=""><figcaption><p><strong>Figure 2</strong>: General scheme of the IFOC</p></figcaption></figure>

&#x20;In what follows, the three main steps of the IFOC are discussed.

{% stepper %}
{% step %}

#### Flux Control

The flux control is performed using the following equations:

$$
(1 + T\_r s), I\_{mr}(s) = I\_{sd}(s) \\\[8pt]

H\_{\Phi O}(s) = \frac{I\_{mr}(s)}{V\_{sdc1}(s)} = \frac{1/R\_s}{1 + (T\_s + T\_r)s + \sigma T\_s T\_r s^2} \\\[8pt]

H\_{\Phi L}(s) = \frac{I\_{mr}(s)}{I\_{mr}^\*(s)} = \frac{1}{1 + \tau\_{LL} s} \\\[8pt]
$$

Where,

i<sub>mr ref</sub> = i<sub>mr</sub>\* = Φ<sub>rd</sub>\* / M<sub>sr</sub>             (Φ<sub>rd</sub>\* = Φ<sub>rd ref</sub> is the flux reference)

The flux response time t<sub>Φr</sub> at 95 % of the final value, is given by:

t<sub>Φr</sub> = 3. $$\tau$$ <sub>ΦCL</sub>    &#x20;

The block diagram of the flux loop is presented in figure 3.

<figure><img src="https://4054096626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbyVjpgEQX9nfCkpYoFP%2Fuploads%2FwvBHwW587xQ800jvCvWd%2Fa08806f9-ba88-4f63-9584-cf37407f89fd.png?alt=media&amp;token=ca15214a-321c-4269-925f-7c80c17228ad" alt=""><figcaption><p><strong>Figure 3</strong>: Flux Control Loop</p></figcaption></figure>

The curve of the flux reference versus speed is given in figure 4.

<figure><img src="https://4054096626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbyVjpgEQX9nfCkpYoFP%2Fuploads%2FlakPodELhkRVgRaAlDM2%2Fcc0b0b08-39a0-47c1-97a5-b9f0b1b4a494.png?alt=media&amp;token=eea5e5a4-7228-4bbb-8fee-d16904cbf5f0" alt=""><figcaption><p><strong>Figure 4</strong>: Flux Reference Computation</p></figcaption></figure>

The flux reference Φ<sub>rd ref</sub> is computed by the following equation:

$$
\Phi\_{rd,ref} =
\left{
\begin{matrix}
\Phi\_{rdn} \quad \text{if } |\Omega| \le \Omega\_b ;; \text{Normal speed range operation} \\
\dfrac{\Omega\_b}{|\Omega|},\Phi\_{rdn} \quad \text{if } \Omega\_b < |\Omega| \le \Omega\_M ;; \text{Over speed operation}
\end{matrix}
\right.
\\\[8pt]
$$

Where,

* Φ<sub>rd</sub> n is the nominal rotor flux in the rotating reference frame d-q.
* Ω<sub>b</sub> is the base speed.
* Ω<sub>M</sub> is the maximum speed authorized for a limited duration as defined by the manufacturer with Ω<sub>b</sub> < Ω<sub>M</sub>
  {% endstep %}

{% step %}

#### Torque Control

The torque control is performed using the following equations:

$$
\frac{I\_{mr}(s)}{I\_{mr}^\*(s)} = \frac{1}{1 + \tau\_{FL} s} \\\[8pt]

\left{
\begin{matrix}
T\_{em} = \dfrac{P M\_{sr}^2}{L\_r}, i\_{mr} i\_{sq} \\
\dfrac{I\_{sq}(s)}{V\_{sqc1}(s)} = \dfrac{1}{R\_s + \sigma L\_s s}
\end{matrix}
\right.
\\\[8pt]
$$

The open loop torque transfer function H<sub>TOL</sub>(s) is given by the following equation,

$$
H\_{TOL}(s) = \frac{T\_{em}(s)}{V\_{sqc1}(s)} =
\frac{P M\_{sr}^2}{R\_s L\_r},
\frac{I\_{mr,ref}}{(1 + \sigma T\_s s)(1 + \tau\_{OCL} s)} \\\[8pt]
$$

To obtain a fast closed loop response for the torque, we usually seek a second order response.\
Since the torque is an electrical quantity while the speed is a mechanical quantity, we will assume, for the sake of simplification of the speed control loop that the transfer function of the torque closed loop H<sub>TCL</sub>(s), can be written as:

$$
H\_{TCL}(s) = \frac{T\_{em}(s)}{T\_{em}^\*(s)} = 1 \\\[8pt]
$$

With T<sub>em</sub>\* = T<sub>emref</sub> : Electromagnetic torque reference.

The block diagram of the torque loop is shown in figure 5.

<figure><img src="https://4054096626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbyVjpgEQX9nfCkpYoFP%2Fuploads%2F1zonFZEzr0FndleD43AA%2Faf931a27-7784-4ade-8d1d-14d317ab5f12.png?alt=media&amp;token=5b5be5ec-537b-4725-92f1-35f378920b25" alt=""><figcaption><p><strong>Figure 5</strong>: Torque Control Loop</p></figcaption></figure>
{% endstep %}

{% step %}

#### Speed Control

The speed control is performed using the equations below:

$$
J \frac{d\Omega}{dt} = T\_{em}(t) - T\_L(t) = T\_{em}(t) - T\_{L0}(t) - f\_v \Omega(t) \\\[8pt]
(J s + f\_v),\Omega(s) = T\_{em}(s) - T\_{L0}(s) \\\[8pt]
$$

Assuming that the load torque T<sub>r0</sub>(t) is proportional to the speed, T<sub>r0</sub>(t) = k<sub>L</sub>.Ω(t), the open loop speed transfer function H<sub>ΩOL</sub>(s) is given by the following equation:

$$
H\_{\Omega OL}(s) = \frac{\Omega(s)}{T\_{em}(s)} = \frac{1}{J s + f\_v + k\_L} = \frac{1/(f\_v + k\_L)}{1 + \tau\_{mL} s} \\\[8pt]
$$

The mechanical time constant at load $$\tau$$<sub>mL</sub> is given as:

$$
\tau\_{mL} = \frac{J}{f\_v + k\_L} \\\[8pt]
H\_{\Omega OL}(s) = \frac{\Omega(s)}{T\_{em}^\*(s)} = \frac{1/(f\_v + k\_L)}{1 + \tau\_{mL} s} \\\[8pt]
$$

To make the speed control independent of the load torque T<sub>L0</sub> which will then be considered as a disturbance, we calculate its parameters using the following transfer function:

$$
H\_{\Omega OL}(s) = \frac{\Omega(s)}{T\_{em}^\*(s)} = \frac{1/f\_v}{1 + \tau\_{m0} s} \\\[8pt]
$$

Where $$\tau$$<sub>m0</sub> is the mechanical time constant at no load:

$$
\tau\_{m0} = \frac{J}{f\_v} \\\[8pt]
$$

The simplified speed control loop scheme is given in figure 6.

<figure><img src="https://4054096626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbyVjpgEQX9nfCkpYoFP%2Fuploads%2FpjNdEjJ4sOCmGBGnchkK%2Fa72ee773-4e63-4ed0-b1cc-1a3ec7c9e2a6.png?alt=media&amp;token=55d1b75d-93e7-4ce1-a446-a657804a0f21" alt=""><figcaption><p><strong>Figure 6</strong>: Simplified Speed Control Loop</p></figcaption></figure>
{% endstep %}
{% endstepper %}

## V/F Control <a href="#v-f-control" id="v-f-control"></a>

V/F is abbreviated from voltage/frequency.\
V/F control is an induction motor control method which ensures the output voltage proportional with the frequency, so it maintains a constant motor flux, preventing weak magnetic and magnetic saturation phenomenon from happening.

**Control principle**: V/F control principle is to produce a circuit called voltage-controller oscillator with oscillator frequency.\
It is a voltage-dependent capacitance, when subjected to a change in voltage, its capacity will change, and then the change in capacity will cause changes in the oscillation frequency, resulting in [**variable frequency**](https://www.veichi.org/product/electric-drive/).\
This controlled frequency is used to control the frequency of the output voltage, in order to achieve speed changes of the controlled electric motors.

**Applications**: Asynchronous electric motor torque is a result of the interaction of flux and rotor flux.\
At a rated frequency, if the voltage is set to a certain value and only reduce the frequency, then there will be large magnetic flux and magnetic circuit saturation (severely, it will burn motor).\
Therefore, the frequency and voltage must be changed proportionally.\
When changing the frequency, we should control the output voltage of [**AC drive**](https://www.veichi.org/product/electric-drive/), in order to keep constant flux and avoid weak magnetic and magnetic saturation phenomenon.\
This control method is commonly applied to fans and pumps.


---

# 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/courseware/electric-courseware/electric-motor-drives/squirrel-cage-induction-motor-drive/virtual-test-bench-overview.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.
