> 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/blocks-functions-tools/machines/blocks/switched-reluctance-motor.md).

# Switched Reluctance Motor

## Description

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

The **Switched Reluctance Motor** block, located in the **OPAL-RT SPS Software/Electrical Machines** library, represents three most common switched reluctance motors: three-phase 6/4 SRM, four-phase 8/6 SRM, five-phase 10/8 SRM, as shown in the following figure.

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

The electric part of the motor is represented by a nonlinear model based on the magnetization characteristic composed of several magnetizing curves and on the torque characteristic computed from the magnetization curves. The mechanic part is represented by a state-space model based on inertia moment and viscous friction coefficient.

To be versatile, two models are implemented for the SRM block: specific and generic models. In the specific SRM model, the magnetization characteristic of the motor is provided in a lookup table. The values are obtained by experimental measurement or calculated by finite-element analysis. In the generic model, the magnetization characteristic is calculated using nonlinear functions and readily available parameters.

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

## Ports

### Input

| <p><strong>TL</strong> — Mechanical load torque<br>Physical signal</p> | Mechanical load torque (in N.m). TL is positive in motor operation and negative in generator operation. |
| ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |

### Output

<table data-header-hidden><thead><tr><th width="250.33331298828125"></th><th></th></tr></thead><tbody><tr><td><strong>m</strong> — Measurement signal<br>Vector</td><td>Vector containing several signals. You can demultiplex these signals by using the Bus Selector block from Simulink<sup>®</sup> library.</td></tr></tbody></table>

<table data-header-hidden><thead><tr><th width="249.77777099609375"></th><th></th></tr></thead><tbody><tr><td><strong>Measurement signal name</strong></td><td><strong>Definition</strong></td></tr><tr><td><strong>V</strong></td><td>Stator voltages (V)</td></tr><tr><td><strong>flux</strong></td><td>Flux linkage (V.s)</td></tr><tr><td><strong>I</strong></td><td>Stator currents (A)</td></tr><tr><td><strong>Te</strong></td><td>Electromagnetic torque (Nm)</td></tr><tr><td><strong>w</strong></td><td>Rotor speed (rad/s)</td></tr><tr><td><strong>theta</strong></td><td>Rotor position (rad)</td></tr></tbody></table>

### Conserving

<table data-header-hidden><thead><tr><th width="250.02215576171875"></th><th></th></tr></thead><tbody><tr><td><strong>A1</strong> — Phase A<br>SPS electrical</td><td>SPS electrical conserving port associated with phase A.</td></tr><tr><td><strong>A2</strong> — Phase A<br>SPS electrical</td><td>SPS electrical conserving port associated with phase A.</td></tr><tr><td><strong>B1</strong> — Phase B<br>SPS electrical</td><td>SPS electrical conserving port associated with phase B.</td></tr><tr><td><strong>B2</strong> — Phase B<br>SPS electrical</td><td>SPS electrical conserving port associated with phase B.</td></tr><tr><td><strong>C1</strong> — Phase C<br>SPS electrical</td><td>SPS electrical conserving port associated with phase C.</td></tr><tr><td><strong>C2</strong> — Phase C<br>SPS electrical</td><td>SPS electrical conserving port associated with phase C.</td></tr><tr><td><strong>D1</strong> — Phase D<br>SPS electrical</td><td><p>SPS electrical conserving port associated with phase D.</p><p><strong>Dependencies</strong> To enable this port, set <strong>Type</strong> to 8/6, 10/8, 8/6 (75 kw preset model), or 10/8 (10 kw preset model).</p></td></tr><tr><td><strong>D2</strong> — Phase D<br>SPS electrical</td><td><p>SPS electrical conserving port associated with phase D.</p><p><strong>Dependencies</strong> To enable this port, set <strong>Type</strong> to 8/6, 10/8, 8/6 (75 kw preset model), or 10/8 (10 kw preset model).</p></td></tr><tr><td><strong>E1</strong> — Phase E<br>SPS electrical</td><td><p>SPS electrical conserving port associated with phase E.</p><p><strong>Dependencies</strong> To enable this port, set <strong>Type</strong> to 10/8 or 10/8 (10 kw preset model).</p></td></tr><tr><td><strong>E2</strong> — Phase E<br>SPS electrical</td><td><p>SPS electrical conserving port associated with phase E.</p><p><strong>Dependencies</strong> To enable this port, set <strong>Type</strong> to 10/8 or 10/8 (10 kw preset model).</p></td></tr></tbody></table>

## Parameters

To edit block parameters interactively, use the Property Inspector. From the Simulink Toolstrip, on the **Simulation** tab, in the **Prepare** gallery, select **Property Inspector**.

<table data-header-hidden><thead><tr><th width="249.99993896484375"></th><th></th></tr></thead><tbody><tr><td><strong>Type</strong> — Machine type<br>6/4 (default) | 8/6 | 10/8 | 6/4 (60 kw preset model) | 8/6 (75 kw preset model) | 10/8 (10 kw preset model)</td><td><p>Set to 6/4 (default) to specify a three-phase 6/4 motor. Set to 8/6 to specify a four-phase 8/6 motor. Set to 10/8 to specify a five-phase 10/8 motor.</p><p>Set to 6/4 (60 kw preset model), 8/6 (75 kw preset model), or 10/8 (10 kw preset model) to use a predetermined specific model of a switched reluctance motor.</p><p>When you use these presets, you do not need to specify the parameters in the <strong>Model</strong> tab.</p></td></tr><tr><td><strong>Stator resistance (Ohm)</strong> — Stator resistance<br>0.01 (default)</td><td>Resistance Rs (Ω) of each stator phase winding.</td></tr><tr><td><strong>Inertia (kg.m.m)</strong> — Inertia momentum<br>0.0082 (default)</td><td>Inertia momentum J (kg.m<sup>2</sup>).</td></tr><tr><td><strong>Friction (N.m.s)</strong> — Friction coefficient<br>0.01 (default)</td><td>Friction coefficient B (N.m.s).</td></tr><tr><td><strong>Initial speed and position [w0(rad/s) Theta0(rad)]</strong> — Initial rotation speed and rotor position<br>[0 0] (default)</td><td>Initial rotation speed w0 (rad/s) and initial rotor position Theta0 (rad).</td></tr><tr><td><strong>Sample time (-1 for inherited)</strong> — Block sample time<br>−1 (default)</td><td><p>Sample time used by the block.</p><p>To inherit the sample time specified in the powergui block, set this parameter to −1.</p></td></tr></tbody></table>

### Model

<table data-header-hidden><thead><tr><th width="250.0665283203125"></th><th></th></tr></thead><tbody><tr><td><strong>Machine model</strong> — Machine model<br>Generic model (default) | Specific model</td><td><p>Select Generic model (default) or Specific model.</p><p>The <strong>Model</strong> tab is modified accordingly.</p></td></tr><tr><td><strong>Unaligned inductance (H)</strong> — Stator inductance when rotor is in unaligned position<br>0.67e-3 (default)</td><td><p>Stator inductance when the rotor is in unaligned position L<sub>q</sub> (H).</p><p><strong>Dependencies</strong> To enable this parameter, set <strong>Machine model</strong> to Generic model.</p></td></tr><tr><td><strong>Aligned inductance (H)</strong> — Unsaturated stator inductance when rotor is in aligned position<br>23.6e-3 (default)</td><td><p>Unsaturated stator inductance when the rotor is in aligned position Ld (H).</p><p><strong>Dependencies</strong> To enable this parameter, set <strong>Machine model</strong> to Generic model.</p></td></tr><tr><td><strong>Saturated aligned inductance (H)</strong> — Saturated stator inductance when rotor is in aligned position<br>0.15e-3 (default)</td><td><p>Saturated stator inductance when the rotor is in aligned position L<sub>dsat</sub> (H).</p><p><strong>Dependencies</strong> To enable this parameter, set <strong>Machine model</strong> to Generic model.</p></td></tr><tr><td><strong>Maximum current (A)</strong> — Stator maximum current<br>450 (default)</td><td><p>Stator maximum current I<sub>m</sub> (A).</p><p><strong>Dependencies</strong> To enable this parameter, set <strong>Machine model</strong> to Generic model.</p></td></tr><tr><td><strong>Maximum flux linkage (V.s)</strong> — Maximum flux linkage<br>0.486 (default)</td><td><p>Maximum flux linkage ψ<sub>m</sub> (Wb or V.s) corresponding to I<sub>m</sub>.</p><p><strong>Dependencies</strong> To enable this parameter, set <strong>Machine model</strong> to Generic model.</p></td></tr><tr><td><strong>Plot magnetization curves</strong> — Option to plot magnetization curves<br>off (default) | on</td><td><p>If selected, the mask plots the magnetization curves corresponding to the lookup table provided.</p><p>The magnetization curves represent the machine flux linkage versus the stator current with the rotor position as a parameter.</p></td></tr><tr><td><strong>Source</strong> — Source option<br>Dialog (default) | MAT-file</td><td><p>Select Dialog to specify the magnetization characteristic directly in the mask of the block. Select Mat file (default) to specify the magnetization characteristic from data in a MAT file.</p><p><strong>Dependencies</strong> To enable this parameter, set <strong>Machine model</strong> to Specific model.</p></td></tr><tr><td><strong>Magnetization characteristic table</strong> — Magnetization characteristic table<br>'srm64_60kw.mat' (default)</td><td><p>When the <strong>Source</strong> parameter is set to Dialog, enter the 2-D lookup table containing the flux linkage as a function of stator current and rotor position.</p><p>When the <strong>Source</strong> parameter is set to MAT-file, enter the name of the MAT-file that contains the 2-D lookup table flux linkage table, the rotor angle vector, and the stator current vector.</p><p>The MAT-file must contain these three variable names: FTBL, RotorAngles, and StatorCurrents.</p><p><strong>Dependencies</strong> To enable this parameter, set <strong>Machine model</strong> to Generic model.</p></td></tr><tr><td><strong>Rotor angle vector (degrees)</strong> — Rotor position for flux linkage<br>[0 10 20 30 40 45] (default)</td><td><p>Rotor position Θ (deg) for which the flux linkage is specified.</p><p><strong>Dependencies</strong> To enable this parameter, set <strong>Machine model</strong> to Generic model and <strong>Source</strong> to Dialog.</p></td></tr><tr><td><strong>Stator current vector (A)</strong> — Stator current for flux linkage<br>[0:25:450] (default)</td><td><p>The stator current I<sub>s</sub> (A) for which the flux linkage is specified.</p><p><strong>Dependencies</strong> To enable this parameter, set <strong>Machine model</strong> to Generic model and <strong>Source</strong> to Dialog.</p></td></tr></tbody></table>

## Examples

The [Switched Reluctance Motor Example](https://www.opal-rt.com/docs/smart-power-simulation-software-sps/blocks-functions-tools/machines/blocks/switched-reluctance-motor.md) (power\_SwitchedReluctanceMotor) illustrates the simulation of the Switched Reluctance Motor.

To develop positive torque, the currents in the phases of a SRM must be to the rotor position. The following figure shows the ideal waveforms (Phase A inductance and current) in a 6/4 SRM. Turn-on and turn-off angles refer to the rotor position where the converter’s power switch is turned on and turned off, respectively.

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

### References <a href="#references" id="references"></a>

\[1] T.J.E. Miller, *Switched Reluctance Motors and Their Control*, Clarendon Press, Oxford, 1993.

\[2] R. Krishnan, *Switched Reluctance Motor Drives*, CRC Press, 2001.

\[3] D.A. Torrey, X.M. Niu, E.J. Unkauf, “Analytical modelling of variable-reluctance machine magnetisation characteristics,” IEE Proceedings - Electric Power Applications, Vol. 142, No. 1, January 1995, pp. 14-22.

\[4] H. Le-Huy, P. Brunelle, “Design and Implementation of a Switched Reluctance Motor Generic Model for Simulink SimPowerSystems,” Electrimacs 2005 Conference.


---

# 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/blocks-functions-tools/machines/blocks/switched-reluctance-motor.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.
