> 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/pe-add-on-simulink/model-and-simulation/add-and-configure-a-circuit-model-to-the-system-definition/machine-section/im-sm-section.md).

# IM SM Section

## Overview

The Induction Machine / Synchronous Machine (IM SM) model can simulate either a Squirrel-Cage Induction Machine (SCIM) or a Round Rotor Synchronous Machine (RRSM), each with integrated resolver and encoder models. The machines can operate in both motoring mode (mechanical torque positive) and generating mode (mechanical torque negative). An optional zero-sequence model can be included to allow the user to model the system as unbalanced.

The Squirrel-Cage Induction Machine model simulates the stator winding and squirrel-cage rotor of a three-phase induction machine.\
The Round Rotor Synchronous Machine model simulates the machine stator, the field winding, and up to three damper windings — one along the d-axis and two along the q-axis.

## Model Description <a href="#model-description" id="model-description"></a>

### Reference Frame Transformation

A sine-based Park transformation, described below, is applied to the three-phase (*abc*) signals to obtain a *dq0* rotating reference frame. The rotating frame is positioned 90 degrees behind the phase A axis, such that the *q* axis is aligned with phase A at ***t*** = 0. Because both machine types are modeled in the rotor reference frame, the value of the angle ***θ*** is equivalent to the rotor electrical angle, ***θ***<sub>***r***</sub>. If the **Zero Sequence** parameter is set to **Don’t Include**, the **V**<sub>**0**</sub> term is not used.

$$
\[1] \qquad  \begin{bmatrix}
V\_q \\
V\_d \\
V\_0
\end{bmatrix}
=============

\frac{2}{3}
\begin{bmatrix}
\cos(\theta) & \cos!\left(\theta - \frac{2\pi}{3}\right) & \cos!\left(\theta + \frac{2\pi}{3}\right) \\
\sin(\theta) & \sin!\left(\theta - \frac{2\pi}{3}\right) & \sin!\left(\theta + \frac{2\pi}{3}\right) \\
\frac{1}{2} & \frac{1}{2} & \frac{1}{2}
\end{bmatrix} \begin{bmatrix}
V\_a \\
V\_b \\
V\_c
\end{bmatrix}
\\\[8pt]

\[2] \qquad  \begin{bmatrix}
V\_a \\
V\_b \\
V\_c
\end{bmatrix}
=============

\begin{bmatrix}
\cos(\theta) & \sin(\theta) & 1 \\
\cos!\left(\theta - \frac{2\pi}{3}\right) & \sin!\left(\theta - \frac{2\pi}{3}\right) & 1 \\
\cos!\left(\theta + \frac{2\pi}{3}\right) & \sin!\left(\theta + \frac{2\pi}{3}\right) & 1
\end{bmatrix}
\begin{bmatrix}
V\_q \\
V\_d \\
V\_0
\end{bmatrix}
\\\[8pt]
$$

### General Equations

The output currents of the machine windings, ***I***, are calculated using the state-space representation of the machine with the magnetic flux linkages ***Ψ*** serving as the state variables. The forward Euler discretization of the state space model can be written as follows:

$$
\[3] \qquad \begin{aligned}
\boldsymbol{\psi}\[n+1] &=\boldsymbol{A\_{d}}\[n] \psi(n)+\boldsymbol{B\_{d}}\[n] \boldsymbol{u}\[n] \\
\boldsymbol{I}\[n+1] &=\boldsymbol{C}\[n+1]\boldsymbol{\psi}\[n+1]
\end{aligned}
$$

where **n** is the timestep index and the coefficient matrices **A**<sub>**d**</sub>, **B**<sub>**d**</sub>, and **C** are defined as:

$$
\begin{aligned}\[4] \qquad  A\_d = T\_s,(-R L^{-1} - \Omega) + I\_d \\\[8pt]

\[5] \qquad  B\_d = T\_s \times I\_d \\\[8pt]

\[6] \qquad C = L^{-1} \\\[8pt]
\end{aligned}
$$

where **T**<sub>**s**</sub> is the **Applied Solver Timestep** and ***I***<sub>***d***</sub> is the identity matrix. The state variable matrices and output matrices referenced in equations \[3] through \[6] differ depending on the selected machine type. Their respective definitions can be found by expanding the sections below. Note that all rotor variables are referred to the stator, as distinguished by a prime sign.

Variables containing the subscript ***0*** pertain to the zero sequence model, and are not used if **Zero Sequence** is set to **Don’t Include**.

<details open>

<summary><strong>Squirrel-Cage Induction Machine</strong></summary>

$$u = \begin{bmatrix} V\_{sq} & V\_{sd} & V\_{s0} & V\_{rq}' & V\_{rd}' \end{bmatrix}^{t} \\\[8pt] I = \begin{bmatrix} I\_{sq} & I\_{sd} & I\_{s0} & I\_{rq}' & I\_{rd}' \end{bmatrix}^{t} \\\[8pt] \psi = \begin{bmatrix} \psi\_{sq} & \psi\_{sd} & \psi\_{s0} & \psi\_{rq}' & \psi\_{rd}' \end{bmatrix}^{t} \\\[8pt] R = \begin{bmatrix} R\_s & R\_s & R\_0 & R\_r' & R\_r' \end{bmatrix}^{t} \\\[8pt] L = \begin{bmatrix} L\_{ls} & 0 & 0 & L\_m & 0 \ 0 & L\_{ls} & 0 & 0 & L\_m \ 0 & 0 & L\_0 & 0 & 0 \ L\_m & 0 & 0 & L\_{lr}' & 0 \ 0 & L\_m & 0 & 0 & L\_{lr}' \end{bmatrix} \\\[8pt] \Omega = \begin{bmatrix} 0 & \omega & 0 & 0 & 0 \ -\omega & 0 & 0 & 0 & 0 \ 0 & 0 & 0 & 0 & 0 \ 0 & 0 & 0 & 0 & \omega - \omega\_r \ 0 & 0 & 0 & -(\omega - \omega\_r) & 0 \end{bmatrix} \\\[8pt]$$

where ***ω*** is the rotational speed of the reference frame and ***ω***<sub>***r***</sub> is the rotational speed of the electrical rotor frame. The Squirrel-Cage Induction Machine is modeled in the rotor reference frame, meaning that ***ω*** = ***ω***<sub>***r***</sub>. Furthermore, because the machine rotor is not supplied by an external source, it is always the case that ***V’***<sub>***rq***</sub> = ***V’***<sub>***rd***</sub> = 0.

The following figure illustrates the equivalent circuits of the Squirrel-Cage Induction Machine model in the *dq* reference frame.

<figure><img src="https://2999842053-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fe9Kk9pJCHht2LLBSxPap%2Fuploads%2FegVIs9UgoOHc8786os20%2F417b0ba6-125c-4d6a-a88b-a9a2bb536aba.png?alt=media&amp;token=8081e6cc-4789-496b-ad91-b955737fc187" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary><strong>Round Rotor Synchronous Machine</strong></summary>

$$u = \begin{bmatrix} V\_{sq} \ \ V\_{sd} \ \ V\_{s0} \ \ V'*{f} \ \ V'*{kd} \ \ V'*{kq1} \ \ V'*{kq2} \end{bmatrix}^{t} \\\[8pt] I = \begin{bmatrix} I\_{sq} \ \ I\_{sd} \ \ I\_{s0} \ \ I'*{f} \ \ I'*{kd} \ \ I'*{kq1} \ \ I'*{kq2} \end{bmatrix}^{t} \\\[8pt] \psi = \begin{bmatrix} \psi\_{sq} \ \ \psi\_{sd} \ \ \psi\_{s0} \ \ \psi'*{f} \ \ \psi'*{kd} \ \ \psi'*{kq1} \ \ \psi'*{kq2} \end{bmatrix}^{t} \\\[8pt] R = \begin{bmatrix} R\_{s} \ \ R\_{s} \ \ R\_{s} \ \ R'*{f} \ \ R'*{kd} \ \ R'*{kq1} \ \ R'*{kq2} \end{bmatrix}^{t} \\\[8pt] L = \begin{bmatrix} L\_{q} & 0 & 0 & 0 & 0 & L\_{mq} & L\_{mq} \ 0 & L\_{d} & 0 & L\_{md} & L\_{md} & 0 & 0 \ 0 & 0 & L\_{0} & 0 & 0 & 0 & 0 \ 0 & L\_{md} & 0 & L'*{f} & L*{md} & 0 & 0 \ 0 & L\_{md} & 0 & L\_{md} & L'*{kd}& 0 & 0 \ L*{mq} & 0 & 0 & 0 & 0 & L'*{kq1} & L*{mq} \ L\_{mq} & 0 & 0 & 0 & 0 & L\_{mq} & L'\_{kq1} \end{bmatrix} \\\[8pt] \Omega = \begin{bmatrix} 0 & \omega & 0 & 0 & 0 & 0 & 0 & 0 \ -\omega & 0 & 0 & 0 & 0 & 0 & 0 & 0 \ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \ 0 & 0 & 0 & 0 & 0 & \omega - \omega\_r & 0 & 0 \ 0 & 0 & 0 & 0 & -(\omega - \omega\_r) & 0 & \omega - \omega\_r & 0 \ 0 & 0 & 0 & 0 & 0 & -(\omega - \omega\_r) & 0 & 0 \ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \end{bmatrix} \\\[8pt]$$

where Vf is the Field Voltage supplied to the machine, ω is the rotational speed of the reference frame and ωr is the rotational speed of the electrical rotor frame. Note that the Field Voltage must be greater than 0V to ensure proper operation of the model. Additionally, the Round Rotor Synchronous Machine is modeled in the rotor reference frame, meaning that ω = ωr.

</details>

### Torque Equation

For both machine types, the electromagnetic torque is described by the following equation, where ***Ψ*** is the flux linkage.

$$
T\_e = \frac{3}{2},PP,(\psi\_d I\_q - \psi\_q I\_d) \\\[8pt]
$$

### Including a Zero Sequence Model

The **Zero Sequence** option provides configurable **Zero-Sequence Resistance** and **Zero-Sequence Inductance** parameters, allowing the user to model an unbalanced system with an open winding, and resulting in better fidelity. When the zero sequence model is included, all three machine stator currents should be mapped back to the circuit model, rather than two currents as is typically done without the zero sequence model. See the **Three Phase Open Winding** in Template Circuit example for reference.

## Configuration Page

In the System Explorer window configuration tree, expand the Power Electronics Add-On custom device and select Circuit Model >> IM SM to display this page and configure the IM SM machine model.

### General Parameters

The following parameters are available for any selected Machine Type. They are configurable at edit-time only.

#### Machine Model Settings

<table><thead><tr><th width="219.24444580078125">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Name</strong></td><td>Specifies the name of the machine model.</td></tr><tr><td><strong>Description</strong></td><td>Specifies a description for the machine model.</td></tr></tbody></table>

#### Machine Configuration

<table><thead><tr><th width="219.86663818359375">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Machine Type</strong></td><td><p>Choose from one of the following types:</p><ul><li><strong>Squirrel-Cage Induction Machine</strong></li><li><strong>Round Rotor Synchronous Machine</strong></li></ul><p>Default value: Squirrel-Cage Induction Machine</p></td></tr></tbody></table>

#### Input Mapping Configuration

Use the Input Mapping Configuration to route signals to the **Voltage Phase A**, **Voltage Phase B**, and **Voltage Phase C** inputs of the machine model. In the case of the RRSM, an input is also provided for the **Field Voltage** of the rotor. Available routing options may vary depending on the selected [**Hardware Configuration**](https://www.opal-rt.com/docs/pe-add-on-simulink/hardware-configurations-reference/default-hardware-configurations.md).

{% hint style="info" %}
The **Field Voltage** supplied to the RRSM must be greater than 0V.
{% endhint %}

<table><thead><tr><th width="220.04443359375">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Group</strong></td><td>Specifies the group that will be routed to the input voltages of the machine. The available routing options are defined by the selected Hardware Configuration; typical options include Measurements (eHS circuit model measurements).</td></tr><tr><td><strong>Element</strong></td><td>Specifies the index of the measurement in the group that has been selected as the input voltage of the machine.</td></tr></tbody></table>

### Machine-Specific Parameters

Certain parameters of the IM SM page are populated based on the selected Machine Type. Parameters are configurable at edit-time only.

<details>

<summary><strong>Squirrel-Cage Induction Machine</strong></summary>

<table><thead><tr><th width="218.5555419921875">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Enable</strong></td><td>Indicates whether the selected machine model is enabled. When enabled, it computes and generates output data at the specified Applied Solver Timestep. Because up to four machines can be simulated at once, the number of enabled machines impacts the minimum achievable time step of each machine.<br>Default Value: True</td></tr><tr><td><strong>Stator Resistance</strong></td><td>Stator winding resistance of phases A, B, and C, Rs (Ω)<br>Default Value: 0.6</td></tr><tr><td><strong>Stator Leakage Inductance</strong></td><td>Stator winding leakage inductance of phases A, B, and C, Lls (H)<br>Default Value: 0.00035</td></tr><tr><td><strong>Mutual Inductance</strong></td><td><p>Stator-rotor mutual (magnetizing) inductance of phases A, B, and C, Lm (H)</p><p>Default Value: 0.62</p></td></tr><tr><td><strong>Rotor Resistance</strong></td><td>Equivalent rotor winding resistance of phases A, B, and C, referred to the stator, R'r (Ω)<br>Default Value: 0.62</td></tr><tr><td><strong>Rotor Leakage Inductance</strong></td><td>Equivalent rotor winding leakage inductance of phases A, B, and C, referred to the stator, L'lr (H)<br>Default Value:0.00547</td></tr><tr><td><strong>Pole Pairs</strong></td><td>Number of machine pole pairs, pp<br>Default Value: 2</td></tr><tr><td><strong>Initial Speed</strong></td><td>Initial speed of the machine, ω0 (RPM)<br>Default Value: 0</td></tr><tr><td><strong>Applied Solver Timestep</strong></td><td>The timestep at which the machine model executes. New outputs are computed by the FPGA machine model at each timestep. If Optimize Solver Timestep is enabled in the Circuit Model page, the Applied Solver Timestep is automatically set to an optimal value and cannot be edited, Ts (s) (Default Value: 4.81E-7)</td></tr><tr><td><strong>Minimum Solver Timestep</strong></td><td><p>The minimum achievable timestep at which the machine model can execute when all four machines are enabled. The minimum achievable timestep is a function of the number of enabled machines, Tsm (s)</p><p>Default Value: 4.81E-7</p></td></tr><tr><td><strong>Zero Sequence</strong></td><td>When Include is selected, the Zero-Sequence Resistance and Zero-Sequence Inductance parameters are enabled to include a Zero Sequence Model.</td></tr><tr><td><strong>Zero-Sequence Resistance</strong></td><td><p>Zero-sequence stator winding resistance. Enabled when Zero Sequence is set to Included, R0 (Ω)</p><p>Default Value: 0.0029069</p></td></tr><tr><td><strong>Zero-Sequence Inductance</strong></td><td><p>Zero-sequence stator winding inductance. Enabled when Zero Sequence is set to Included, L0 (h)</p><p>Default Value: 0.00030892</p></td></tr></tbody></table>

</details>

<details>

<summary><strong>Round Rotor Synchronous Machine</strong></summary>

<table><thead><tr><th width="219.86669921875">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Enable</strong></td><td><p>Indicates whether the selected machine model is enabled. When enabled, it computes and generates output data at the specified Applied Solver Timestep. Because up to four machines can be simulated at once, the number of enabled machines impacts the minimum achievable time step of each machine,</p><p>Default Value: True</p></td></tr><tr><td><strong>Pole Pairs</strong></td><td><p>Number of machine pole pairs, pp</p><p>Default Value: 2</p></td></tr><tr><td><strong>Initial Speed</strong></td><td><p>Initial speed of the machine, ω0 (RPM)</p><p>Default Value: 0</p></td></tr><tr><td><strong>Stator Resistance</strong></td><td>Stator winding resistance of phases A, B, and C, Rs (Ω)<br>Default Value: 0.6</td></tr><tr><td><strong>Stator Leakage Inductance</strong></td><td><p>Stator winding leakage inductance of phases A, B, and C, Lls (H)</p><p>Default Value: 0.00035</p></td></tr><tr><td><strong>Damper Kd Resistance</strong></td><td><p>Direct-axis damper winding resistance, referred to the stator, R’kd (Ω)</p><p>Default Value: 0.0664</p></td></tr><tr><td><strong>Damper Kq1 Resistance</strong></td><td><p>Quadrature-axis damper winding 1 resistance, referred to the stator, R’kq1 (Ω)</p><p>Default Value: 0.0292</p></td></tr><tr><td><strong>Damper Kq2 Resistance</strong></td><td><p>Quadrature-axis damper winding 2 resistance, referred to the stator, R’kq2 (Ω)</p><p>Default Value: 0.007907</p></td></tr><tr><td><strong>Damper Leakage Inductance (d)</strong></td><td><p>Direct-axis damper winding leakage inductance, referred to the stator, L’lkd (H)</p><p>Default Value: 0.001387</p></td></tr><tr><td><strong>Damper Leakage Inductance (q1)</strong></td><td><p>Quadrature-axis damper winding 1 leakage inductance, referred to the stator, L’lkq1 (H)</p><p>Default Value: 0.0006896</p></td></tr><tr><td><strong>Damper Leakage Inductance (q2)</strong></td><td><p>Quadrature-axis damper winding 2 leakage inductance, referred to the stator, L’lkq2 (H)</p><p>Default Value: 0.002477</p></td></tr><tr><td><strong>Stator D Magnetizing Inductance</strong></td><td><p>Direct-axis magnetizing inductance, Lmd (H)</p><p>Default Value: 0.00097153</p></td></tr><tr><td><strong>Stator Q Magnetizing Inductance</strong></td><td><p>Quadrature-axis magnetizing inductance, Lmq (H)</p><p>Default Value: 0.0032164</p></td></tr><tr><td><strong>Field Resistance</strong></td><td><p>Rotor field winding resistance, referred to the stator, R'f (Ω)</p><p>Default Value: 0.00059013</p></td></tr><tr><td><strong>Field Leakage Inductance</strong></td><td><p>Rotor field winding leakage inductance, referred to the stator, L'lf (H)</p><p>Default Value: 0.00030712</p></td></tr><tr><td><strong>Applied Solver Timestep</strong></td><td><p>The timestep at which the machine model executes. New outputs are computed by the FPGA machine model at each timestep. If Optimize Solver Timestep is enabled in the Circuit Model page, the Applied Solver Timestep is automatically set to an optimal value and cannot be edited, Ts (s)</p><p>Default Value: 4.81E-7</p></td></tr><tr><td><strong>Minimum Solver Timestep</strong></td><td><p>The minimum achievable timestep at which the machine model can execute when all four machines are enabled. The minimum achievable timestep is a function of the number of enabled machines, Tsm (s)</p><p>Default Value: 4.81E-7</p></td></tr><tr><td><strong>Zero Sequence</strong></td><td>When Include is selected, the Zero-Sequence Resistance and Zero-Sequence Inductance parameters are enabled to include a Zero Sequence Model.</td></tr><tr><td><strong>Zero-Sequence Resistance</strong></td><td><p>Zero-sequence stator winding resistance. Enabled when Zero Sequence is set to Included, R0 (Ω)</p><p>Default Value: 0.0029069</p></td></tr><tr><td><strong>Zero-Sequence Inductance</strong></td><td><p>Zero-sequence stator winding inductance. Enabled when Zero Sequence is set to Included, L0 (H)</p><p>Default Value: 0.00030892</p></td></tr></tbody></table>

</details>

## Section Channels

The list of available channels in the IM SM section depends on the selected Machine Type. Channel values can be modified dynamically at execution time. Channels named "Reserved" are not used.

<details>

<summary><strong>Squirrel-Cage Induction Machine</strong></summary>

<table><thead><tr><th width="240.20001220703125">Channel Name</th><th>Description</th></tr></thead><tbody><tr><td><p><strong>Stator Current Phase A</strong></p><p><strong>(Output)</strong></p></td><td>Phase A stator current, Isa(A) (Default Value:0)</td></tr><tr><td><p><strong>Stator Current Phase B</strong></p><p><strong>(Output)</strong></p></td><td>Phase B stator current, Isb(A) (Default Value: 0)</td></tr><tr><td><p><strong>Stator Current Phase C</strong></p><p><strong>(Output)</strong></p></td><td>Phase C stator current, Isc(A) (Default Value: 0)</td></tr><tr><td><strong>Stator Direct Axis Current (Output)</strong></td><td>Direct-axis stator current, as defined by the rotor reference frame, Isd(A) (Default Value: 0)</td></tr><tr><td><strong>Stator Quadrature Axis Current (Output)</strong></td><td>Quadrature-axis stator current, as defined by the rotor reference frame, Isq(A) (Default Value: 0)</td></tr><tr><td><strong>Stator Direct Axis Voltage (Output)</strong></td><td>Direct-axis stator voltage, as defined by the rotor reference frame, Vsd(V) (Default Value: 0)</td></tr><tr><td><strong>Stator Quadrature Axis Voltage (Output)</strong></td><td>Quadrature-axis stator voltage, as defined by the rotor reference frame, Vsq(V) (Default Value: 0)</td></tr><tr><td><p><strong>Stator Direct Axis Flux</strong></p><p><strong>(Output)</strong></p></td><td>Direct-axis stator flux, as defined by the rotor reference frame, Φsd(Wb) (Default Value: 0)</td></tr><tr><td><strong>Stator Quadrature Axis Flux (Output)</strong></td><td>Quadrature-axis stator flux, as defined by the rotor reference frame, Φsq(Wb) (Default Value: 0)</td></tr><tr><td><p><strong>Rotor Current Phase A</strong></p><p><strong>(Output)</strong></p></td><td>Rotor phase A current (symbol provided; default/description as in product), L'ra (A)</td></tr></tbody></table>

</details>

<details>

<summary><strong>Round Rotor Synchronous Machine</strong></summary>

<table><thead><tr><th width="239.5111083984375">Channel Name</th><th>Description</th></tr></thead><tbody><tr><td><p><strong>Stator Current Phase A</strong></p><p><strong>(Output)</strong></p></td><td>Phase A stator current, Isa (A) (Default Value: 0)</td></tr><tr><td><p><strong>Stator Current Phase B</strong></p><p><strong>(Output)</strong></p></td><td>Phase B stator current, Isb (A) (Default Value: 0)</td></tr><tr><td><p><strong>Stator Current Phase C</strong></p><p><strong>(Output)</strong></p></td><td>Phase C stator current, Isc (A) (Default Value: 0)</td></tr><tr><td><p><strong>Stator Direct Axis Current</strong></p><p><strong>(Output)</strong></p></td><td>Direct-axis stator current, as defined by the rotor reference frame, Isd (A) (Default Value: 0)</td></tr><tr><td><p><strong>Stator Quadrature Axis Current</strong></p><p><strong>(Output)</strong></p></td><td>Quadrature-axis stator current, as defined by the rotor reference frame, Isq (A) (Default Value: 0)</td></tr><tr><td><p><strong>Stator Direct Axis Voltage</strong></p><p><strong>(Output)</strong></p></td><td>Direct-axis stator voltage, as defined by the rotor reference frame, Vsd (V) (Default Value: 0)</td></tr><tr><td><p><strong>Stator Quadrature Axis Voltage</strong></p><p><strong>(Output)</strong></p></td><td>Quadrature-axis stator voltage, as defined by the rotor reference frame, Vsq (V) (Default Value: 0)</td></tr><tr><td><p><strong>Stator Direct Axis Flux</strong></p><p><strong>(Output)</strong></p></td><td>Direct-axis stator flux, as defined by the rotor reference frame, Φ<sub>sd</sub> (Wb) (Default Value: 0)</td></tr><tr><td><p><strong>Stator Quadrature Axis Flux</strong></p><p><strong>(Output)</strong></p></td><td>Quadrature-axis stator flux, as defined by the rotor reference frame, Φ<sub>sq</sub> (Wb) (Default Value: 0)</td></tr><tr><td><p><strong>Rotor Current Phase A</strong></p><p><strong>(Output)</strong></p></td><td>Phase A rotor current referred to the stator, I'ra(A) (Default Value: 0)</td></tr><tr><td><p><strong>Rotor Current Phase B</strong></p><p><strong>(Output)</strong></p></td><td>Phase B rotor current referred to the stator, I'rb (A) (Default Value: 0)</td></tr><tr><td><p><strong>Rotor Current Phase C</strong></p><p><strong>(Output)</strong></p></td><td>Phase C rotor current referred to the stator, I'rc (A) (Default Value: 0)</td></tr><tr><td><p><strong>Rotor Direct Axis Current</strong></p><p><strong>(Output)</strong></p></td><td>Direct-axis rotor current referred to the stator, as defined by the rotor reference frame, I'rd (A) (Default Value: 0)</td></tr><tr><td><p><strong>Rotor Quadrature Axis Current</strong></p><p><strong>(Output)</strong></p></td><td>Quadrature-axis rotor current referred to the stator, as defined by the rotor reference frame, I'rq (A) (Default Value: 0)</td></tr><tr><td><p><strong>Rotor Direct Axis Voltage</strong></p><p><strong>(Output)</strong></p></td><td>Direct-axis rotor voltage referred to the stator, as defined by the rotor reference frame, V'rd (V) (Default Value: 0)</td></tr><tr><td><p><strong>Rotor Quadrature Axis Voltage</strong></p><p><strong>(Output)</strong></p></td><td>Quadrature-axis rotor voltage referred to the stator, as defined by the rotor reference frame, V'rq (V) (Default Value: 0)</td></tr><tr><td><p><strong>Rotor Direct Axis Flux</strong></p><p><strong>(Output)</strong></p></td><td>Direct-axis rotor flux referred to the stator, as defined by the rotor reference frame, Φ'<sub>rd</sub> (Wb) (Default Value: 0)</td></tr><tr><td><p><strong>Rotor Quadrature Axis Flux</strong></p><p><strong>(Output)</strong></p></td><td>Quadrature-axis rotor flux referred to the stator, as defined by the rotor reference frame, Φ'<sub>rq</sub> (Wb) (Default Value: 0)</td></tr></tbody></table>

</details>


---

# 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/pe-add-on-simulink/model-and-simulation/add-and-configure-a-circuit-model-to-the-system-definition/machine-section/im-sm-section.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.
