> 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/hyperlab/example-models/power-electronics/rl-series.md).

# RL Series

## Description

An RL Series Circuit is a fundamental electrical circuit consisting of a resistor (R) and an inductor (L) connected in series. It is commonly used to study transient behavior, magnetic energy storage, and the response of electrical systems to sudden voltage changes.

When a DC voltage step is applied, the current through the inductor does not increase instantaneously. Instead, it rises progressively according to an exponential curve determined by the resistance and inductance values.

Similarly, when the input voltage returns to zero, the inductor releases its stored magnetic energy, producing an exponential current decay.

This example introduces the concept of the **RL time constant**, which determines how quickly the current responds to changes in the applied voltage.

## Requirements

This example does not require any additional resources.

## Detailed explanation

This example allows users to investigate the transient behavior of an RL Series Circuit by observing the inductor current in response to a rectangular input voltage signal.

The input voltage alternates between **0 V and 10 V**, producing successive current rise and decay phases.

The interactive interface provides a circuit schematic, adjustable resistance and inductance parameters, electrical measurements, and real-time graphs displaying:

* **Input voltage (v\_src):** The rectangular voltage signal applied to the RL circuit.
* **Inductor current (i\_L):** The current flowing through the inductor during the transient response.

Users can modify the resistance and inductance values to investigate their influence on the circuit's time constant and current response.

<figure><img src="https://2712201518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbs0l9jugXixa0ghErrqs%2Fuploads%2FnR3wj3hiYSzWZ2Ucd5Vl%2Frl-series.png?alt=media&amp;token=33714390-7492-4221-b655-f9d491013084" alt=""><figcaption></figcaption></figure>

## Simulation and results

#### **Experiment 1 – Observation of the Current Rise**

Apply a voltage step from 0 V to 10 V and observe the inductor current.

Notice how the current initially increases rapidly before progressively approaching its final steady-state value.

For a resistance of 100 Ω, the theoretical steady-state current approaches **100 mA**.

Identify the characteristic exponential shape of the current rise.

Measure the time required for the current to reach approximately **63.2 mA**, corresponding to 63.2% of the final steady-state current.

Compare this measured time with the theoretical time constant calculated using τ = L/R.

#### **Experiment 2 – Observation of the Current Decay**

Allow the inductor current to reach approximately 100 mA, then observe its response when the input voltage returns to 0 V.

Notice how the current decreases exponentially toward zero.

Measure the time required for the current to fall to approximately **36.8 mA**, assuming an initial current of 100 mA.

Verify that this duration corresponds to one time constant.

#### **Experiment 3 – Influence of Resistance and Inductance**

Modify the resistance and inductance values and observe how the current rise and decay curves change.

Suggested parameter combinations:

| Resistance (R) | Inductance (L) | Time Constant (τ) |
| -------------- | -------------- | ----------------- |
| 100 Ω          | 1 mH           | 10 µs             |
| 100 Ω          | 10 mH          | 100 µs            |
| 100 Ω          | 100 mH         | 1 ms              |
| 1 kΩ           | 100 mH         | 100 µs            |

Observe that increasing the inductance increases the time constant, resulting in a slower current response.

Conversely, increasing the resistance decreases the time constant, producing a faster response while also reducing the final steady-state current.

Notice that different combinations of resistance and inductance can produce the same time constant, resulting in identical normalized current responses.

#### **Experiment 4 – Estimation of the Time Constant**

Select a resistance and inductance combination and record the inductor current over time.

Identify the instant when the input voltage changes from 0 V to 10 V.

Measure the elapsed time required for the inductor current to reach 63.2% of its final steady-state value.

Calculate the theoretical time constant using:

```
τ = L/R
```

Compare the theoretical and measured values to validate the exponential response model.


---

# 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/hyperlab/example-models/power-electronics/rl-series.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.
