> 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-with-regenerative-braking-system.md).

# DC1 - Two-Quadrant Single-Phase Rectifier 5 HP DC Drive with Regenerative Braking System

This example shows a two quadrant single-phase rectifier DC drive with regenerative braking system.

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

C.Semaille, Louis-A. Dessaint (Ecole de technologie superieure, Montreal)

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

This circuit is based on the DC1 block of SPS. It models a two-quadrant single-phase rectifier drive for a 5 HP DC motor. A braking unit block has been added in order to simulate regenerative braking (quadrant IV operating mode).

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.

The braking unit block is managed by a finite state machine with two states (normal operating mode and braking operating mode). When the system passes in braking mode, armature switches are activated and allow reversal of the armature current flow. This generates a reverse electromagnetic braking torque for fast speed deceleration. The reversal of the current flow is initiated when the armature current flowing through the switches equals 0 A. This avoids destructive arcs in the switches during commutation.

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

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

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

The initial speed reference is set to 800 rpm. Load torque is 10 N.m. Observe that the motor speed follows the acceleration reference ramp accurately (+350 rpm/s) and reaches steady-state after about 3.5 s. The armature current follows the current reference very well and stays below nominal current. During this phase, the average firing angle value stays below 90 degrees, the thyristor bridge being in rectifier mode (first quadrant operating mode).

At t = 4 s, the speed reference drops to 200 rpm and the system passes in braking mode. The armature switches are activated when the armature current reaches 0 A and reversal of the current flow through the motor takes place (the current flow direction through the bridge is of course unchanged). Observe again that the motor speed follows the deceleration ramp as wanted. The deceleration ramp has been set to a high value (-1250 rpm/s) to clearly show the effect of the braking electromagnetic torque. During this period of time, the bridge works in inverter mode (second quadrant operating mode).

At t = 4.5 s, motor speed is slightly lower than speed reference and the armature current flow through the motor is reversed back to normal. The bridge operates in rectifier mode and motor speed reaches 200 rpm around t = 5.5 s.

Notice the current overshoot during commutation. This is due to the sudden voltage reversal at the bridge output caused by armature switching. The bridge output voltage cannot follow instantaneously this voltage reversal. This sudden voltage difference between bridge and motor creates the current overshooting. However, the overshoot peak is of reasonable value and is not damageable.

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

1. The power system has been discretized with a 10 us time step. The control system (regulators and braking unit) 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.

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

Example model name: dc1\_modified

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

```matlab
open('dc1_modified')
```

{% 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-with-regenerative-braking-system.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.
