> 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/doubly-fed-induction-machine-dfim-drive/virtual-test-bench-overview.md).

# Virtual Test Bench Overview

The Double Fed Induction Machine (DFIM) is advantageous in applications that have limited speed range, allowing the reduction in size of the supplying power electronic converter as, for instance, in variable-speed generation, water pumping and so on.\
The stator is supplied by three-phase voltages directly from the grid at constant amplitude and frequency.\
The rotor is also supplied by three-phase voltages that take a different amplitude and frequency at steady-state to reach different operating conditions of the machine (speed, torque, etc.).\
This is achieved by using a back-to-back three-phase converter, which generally consists of the rotor-side converter (RSC) and Grid-Side Converter (GSC).\
In this laboratory, DFIM with only the RSC is investigated, and the typical configuration of the studied system is shown in figure 1.

<figure><img src="https://4054096626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbyVjpgEQX9nfCkpYoFP%2Fuploads%2FXmP8YHpqdj9LYdpY0ax8%2F7b5cf15a-b414-4e71-8611-ff0e325cf1aa.png?alt=media&amp;token=dcdb8bdc-23fb-41a9-913d-96a74b634465" alt=""><figcaption><p><strong>Figure 1</strong>: DFIM System with Rotor Side Converter</p></figcaption></figure>

## Operating Modes

The relationships between the frequencies of the machine are basics that must be known prior to study of electrical equations of the DFIM.\
Thus, the equation that relates, ω<sub>s</sub> (frequency of stator voltages and currents), ω<sub>r</sub> (frequency of rotor voltages and currents) and ω<sub>m</sub> (rotor electrical speed) are given in (1):

**(1)**

$$
\omega\_s = \omega\_r + \omega\_m \\\[8pt]
s = \frac{\omega\_s - \omega\_m}{\omega\_s} \\\[8pt]
$$

ω<sub>r</sub> obviously depends on the shaft’s electrical speed ω<sub>m</sub>, which leads to three operating modes of the machine dependent on the speed, as shown in figure 2:

<figure><img src="https://4054096626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbyVjpgEQX9nfCkpYoFP%2Fuploads%2FJylUPvd3WCVqIP5mKZLP%2F83ebf4d1-93fd-42a7-9bb1-44f22c0c708e.png?alt=media&amp;token=1d9d29cc-500f-4f37-b22a-45a20c9de26a" alt=""><figcaption><p><strong>Figure 2</strong>: DFIM Operating Speed Modes</p></figcaption></figure>

The basic active power balance of the DFIM release adopting a motor convention, the addition of the stator active power $$P\_s$$ and rotor active power $$P\_r$$ is equal to mechanical power in the shaft $$P\_m$$ minus the copper losses in the stator and rotor.\
The positive values of $$P\_s$$ and $$P\_r$$ are interpreted as the power absorbed by the machine, whereas a positive value of $$P\_m$$ means mechanical power developed by the motor through the shaft.

The mechanical power and the stator electric power output are computed as follows:

**(2)**

$$
P\_m = T\_m \omega\_r \quad P\_s = T\_{em} \omega\_s \\\[8pt]
$$

In steady state at fixed speed for a lossless generator,

**(3)**

$$
T\_m = T\_{em} \quad \text{and} \quad P\_m = P\_s + P\_r \\\[8pt]
$$

It is followed that:

**(4)**

$$
P\_r = P\_m - P\_s = -s T\_m \omega\_s = -s P\_s \\\[8pt]
$$

$$P\_r$$ >0 for negative slip and $$P\_r$$ <0 for positive slip.

Generally, the absolute value of slip is much lower than 1 and, consequently, $$P\_r$$ is only a fraction of $$P\_s$$ .\
$$P\_r$$ is positive for negative slip (speed greater than synchronous speed) and it is negative for positive slip (speed lower than synchronous speed).\
For super-synchronous speed operation, $$P\_r$$ is transmitted to DC bus capacitor and tends to raise the DC voltage. For subsynchronous speed operation, $$P\_r$$  is taken out of DC bus capacitor and tends to decrease the DC voltage.\
Therefore, it is possible to distinguish four combinations of torque (positive and negative) and speed (sub-synchronism and hyper-synchronism), which lead to four quadrants operation modes of the DFIM, as presented in figure 3.

<figure><img src="https://4054096626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbyVjpgEQX9nfCkpYoFP%2Fuploads%2FYN9nnrPOunicDRHBprTp%2F1466ae57-23aa-4c9a-8e20-5d88f9392c31.png?alt=media&amp;token=68fed2de-ee9f-4a85-b3e7-53f00ffcae47" alt=""><figcaption><p><strong>Figure 3</strong>: Four Quadrant Operation Modes of DFIM</p></figcaption></figure>

## Dynamic model of DFIM <a href="#dynamic-model-of-dfim" id="dynamic-model-of-dfim"></a>

Figure 4 presents the different rotating reference frames typically used to develop space-vector-based models of the DFIM.\
The stationary reference frame (α - β) is the stationary reference frame, the rotor reference frame ( $$DQ$$ ) rotates at the ω<sub>m</sub> and the synchronous reference frame ( $$dq$$ ) rotates at ω<sub>s</sub>.

<figure><img src="https://4054096626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbyVjpgEQX9nfCkpYoFP%2Fuploads%2FnTBrqzWn0K5geDikhQSr%2F445ac804-afd2-4770-8735-4247116fdce5.png?alt=media&amp;token=42b58f98-aa87-49cb-9645-34d18898eae0" alt=""><figcaption><p><strong>Figure 4:</strong> Different References for Space Vectors Representation of DFIM</p></figcaption></figure>

The space vector model of the DFIM represented in a synchronously rotating frame is obtained through the following equations:

**(5)**

$$
\left{
\begin{matrix}
V\_{ds} = R\_s I\_{ds} + \frac{d}{dt}\Phi\_{ds} - \omega\_s \Phi\_{qs} \\
V\_{qs} = R\_s I\_{qs} + \frac{d}{dt}\Phi\_{qs} - \omega\_s \Phi\_{ds}
\end{matrix}
\right.
\\\[8pt]
$$

**(6)**

$$
\left{
\begin{matrix}
V\_{dr} = R\_r I\_{dr} + \frac{d}{dt}\Phi\_{dr} - \omega\_s \Phi\_{qr} \\
V\_{qr} = R\_r I\_{qr} + \frac{d}{dt}\Phi\_{qr} - \omega\_s \Phi\_{dr}
\end{matrix}
\right.
\\\[8pt]
$$

Similarly, the flux yields:

**(7)**

$$
\left{
\begin{matrix}
\Phi\_{ds} = L\_s I\_{ds} + L\_m I\_{dr} \\
\Phi\_{qs} = L\_s I\_{qs} + L\_m I\_{qr}
\end{matrix}
\right.
\\\[8pt]
$$

**(8)**

$$
\left{
\begin{matrix}
\Phi\_{dr} = L\_r I\_{dr} + L\_m I\_{ds} \\
\Phi\_{qr} = L\_r I\_{qr} + L\_m I\_{qs}
\end{matrix}
\right.
\\\[8pt]
$$

Hence, from the above equations, the equivalent electric circuit in $$dq$$ is obtained, as shown in figure 5.

<figure><img src="https://4054096626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbyVjpgEQX9nfCkpYoFP%2Fuploads%2F0ncRECgjGvd2tmXjxf6e%2Fbe1b5121-87b9-4379-9c86-09d18da301a6.png?alt=media&amp;token=30dfb3b5-1672-4fb5-bc39-36b170f2dd52" alt=""><figcaption><p><strong>Figure 5</strong>: DFIM Modeling in <span class="math">dq</span>  Frame</p></figcaption></figure>

## Vector control of DFIM <a href="#vector-control-of-dfim" id="vector-control-of-dfim"></a>

The vector control of DFIM is performed in a synchronously rotating $$dq$$ frame, in which the d-axis is aligned, in this case, with the stator space vector as illustrated in figure 6 below.\
As seen in this figure, only rotor current control and rotor speed control loops are implemented in this case.\
The current loops work with the rotor currents referred to the stator side, while the conversion to rotor-referred quantities is performed at the measurement stage for the currents and before the creation of the pulses for the converter for the voltages.\
It is possible to obtain the angle of the stator voltage space vector, then subtract 90° from this estimated angle, and then obtain θ<sub>s</sub>.

<figure><img src="https://4054096626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbyVjpgEQX9nfCkpYoFP%2Fuploads%2FnXO6WalMK4tl5ilkSLHj%2Ff810f507-bf34-4c6a-b56c-50cefbaecc54.png?alt=media&amp;token=9d4700fa-7664-4675-9103-a7555aba3b83" alt=""><figcaption><p><strong>Figure 6</strong>: Overall Vector Control Structure</p></figcaption></figure>

The analytical model of the closed loop current controls with PI regulator is presented in figure 7.

<figure><img src="https://4054096626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbyVjpgEQX9nfCkpYoFP%2Fuploads%2Fcq6L2TpZ5lkK2wAmPflL%2Fccee4ee0-6742-4c5e-9095-49637e1ffc5a.png?alt=media&amp;token=17994e68-5067-445d-9b92-ec43ad40d868" alt=""><figcaption><p><strong>Figure 7</strong>: Analytical Model of the Closed Loop PI Controllers</p></figcaption></figure>


---

# 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/doubly-fed-induction-machine-dfim-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.
