> 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/dc-drives/dc1-two-quadrant-single-phase-rectifier-5-hp-dc-drive.md).

# DC1 - Two-Quadrant Single-Phase Rectifier 5 HP DC Drive

This example shows the DC1 two-quadrant single-phase rectifier DC drive 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-55bfed5761d3d1d5570f520c3bcd1f8dda507e73%2FDC1_drive.png?alt=media" alt=""><figcaption></figcaption></figure>

C.Semaille, Louis-A. Dessaint (Ecole de technologie supérieure, Montreal)

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

This circuit uses the DC1 block of SPS. It models a two-quadrant single-phase rectifier drive for a 5 HP DC motor.

The 5 HP DC motor is separately excited with a constant 150 V DC field voltage source. The armature voltage is provided by a single-phase rectifier controlled by two PI regulators. The rectifier is fed by a 220 V AC 50 Hz voltage source followed by a linear transformer to boost the voltage up to a sufficient value.

The regulators control the firing angle of the rectifier thyristors. The first regulator is a speed regulator, followed by a current regulator. The speed regulator outputs the armature current reference (in p.u.) used by the current controller in order to obtain the electromagnetic torque needed to reach the desired speed. The speed reference change rate follows acceleration and deceleration ramps in order to avoid sudden reference changes that could cause armature over-current and destabilize the system. The current regulator controls the armature current by computing the appropriate thyristor firing angle. This generates the rectifier output voltage needed to obtain the desired armature current.

A 150 mH smoothing inductance is placed in series with the armature circuit to reduce armature current oscillations.

## Simulation <a href="#simulation" id="simulation"></a>

Start the simulation. You can observe the motor armature voltage and current, the rectifier firing angle and the motor speed on the scope. The current and speed references are also shown.

The speed reference is set at 1750 rpm at t = 0 s. Initial load torque is 15 N.m.

Observe that the motor speed follows the reference ramp accurately (+250 rpm/s) and reaches steady state around t = 8.5 s. The armature current follows the current reference very well, and the firing angle stays below 90 degrees, the converter being in rectifier mode (first quadrant operating mode). The lower limit of the firing angle has been set to 20 degrees.

At t = 8.75 s, the load torque passes from 15 N.m to 20 N.m. The motor speed recovers fast and is back at 1750 rpm at t = 10 s. The current reference rises to about 17.5 A to generate a higher electromagnetic torque to maintain the needed speed. As observed before, the armature current follows its reference perfectly.

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

1. The power system has been discretized with a 25 us time step. The control system (regulators) uses a 100 us time step in order to simulate a microcontroller control device.
2. In order to reduce the number of points stored in the scope memory, a decimation factor of 20 is used.
3. A simplified version of the model using an average-value rectifier can be used by selecting 'Average' in the 'Model detail level' menu of the graphical user-interface. The time step can then be increased up to the control system sample time value. This can be done by typing 'Ts = 100e-6' in the workspace in the case of this example. See also **dc1\_example\_simplified** model.

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

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

Example model name: dc1\_example

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

```matlab
open('dc1_example')
```

{% 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/dc-drives/dc1-two-quadrant-single-phase-rectifier-5-hp-dc-drive.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.
