> 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-opal-rt/model-in-schematic-editor/library-blocks-reference/passive-blocks/variable-serie-rl.md).

# Variable Serial RL

## Description

<figure><img src="https://1300141755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCyfrFRdgX5VC5iwM13Zm%2Fuploads%2FOuJxqGQk2Vn1AQ3zuXCv%2Fimage.png?alt=media&amp;token=9efff474-1300-4149-b853-0b7e22517e85" alt=""><figcaption></figcaption></figure>

The **Variable Serial RL** block models a controlled current source in parallel with an RC snubber. The generated current is determined by the measured voltage, as well as the resistance and inductance values provided as inputs.

<figure><img src="https://1300141755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCyfrFRdgX5VC5iwM13Zm%2Fuploads%2FArFVJpL8posCrlYjQlGy%2Fimage.png?alt=media&amp;token=5ef902cf-13b8-47ab-8cd2-7d31454b781c" alt="" width="308"><figcaption></figcaption></figure>

{% hint style="info" %}
This block is only available in the eHS library.
{% endhint %}

### Model equations <a href="#model-formulation" id="model-formulation"></a>

The voltage across a variable series RL component is the sum of the resistive voltage drop (Ohm’s law) and the induced voltage due to changing magnetic flux (Faraday’s law), given by the equation:

$$
V\_{input}(t) = R(t), I\_L(t) + \frac{d\psi}{dt}(t)
$$

The self-inductance $$L$$ is the ratio between magnetic flux and the current:

$$
\psi(t)=L(t)i(t)
$$

thus,

$$
\begin{aligned}
V\_{input}(t) = R(t), I\_L(t) + \frac{d}{dt}\big\[L(t), I\_L(t)\big] \\\[8pt]
\= R(t), I\_L(t) + L(t), \frac{d I\_L}{dt}(t) + \frac{dL}{dt}(t), I\_L(t)
\end{aligned}
$$

It is considered that the voltage drop related to the change of inductance $$\frac{dL}{dt}(t)I\_L(t)$$ is negligible as compared with the drop from the change of current.

$$
V\_{input}(t) = R(t), I\_L(t) + L(t), \frac{d I\_L}{dt}(t)
$$

The discretization of equation above results in:

$$
V\_{input}\[k] = R\[k], I\_L\[k] + L\[k], \frac{I\_L\[k+1] - I\_L\[k]}{T\_S}
$$

Finally,

$$
I\_L\[k+1] = \frac{T\_S}{L\[k]}, V\_{input}\[k] + \left(1 - \frac{R\[k]}{L\[k]} T\_S \right) I\_L\[k]
$$

The current through the inductance $$I\_L$$ is the state variable and its initial value $$I\_L\[0]$$ is a parameter of the block, the Initial current (I<sub>0</sub>).

### Limitations <a href="#limitations" id="limitations"></a>

For the model to be stable, the following condition must be satisfied on the resistance and inductance values:

$$
\frac{L\[k]}{R\[k]} = \tau \ge \frac{T\_S}{2}
$$

Three phase systems that use the variable serie RL feature, require grounded neutral point connections in order to obtain correct results:

<figure><img src="https://1300141755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCyfrFRdgX5VC5iwM13Zm%2Fuploads%2FtXiXU97fYJvpgNSVjC0V%2Fimage.png?alt=media&amp;token=e6279633-ed29-4749-8dd7-5c84453fcb4a" alt="" width="480"><figcaption></figcaption></figure>

## Parameters

<figure><img src="https://1300141755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCyfrFRdgX5VC5iwM13Zm%2Fuploads%2FOxoPtPWHWTPUHRYo8Cdx%2Fimage.png?alt=media&amp;token=d90b0fee-f297-4bb2-909e-86ec42bc5430" alt=""><figcaption></figcaption></figure>

| Parameter                                        | Description                               | Sets feature | I/O & Monitoring |
| ------------------------------------------------ | ----------------------------------------- | ------------ | ---------------- |
| **Resistance (R)**                               | Units of resistance, in ohms              | Yes          | From model       |
| **Inductance (L)**                               | Inductance, in henries (L)                | Yes          | From model       |
| **Initial current (I**<sub>**0**</sub>**)**      | Initial current, in amperes               | No           | N/A              |
| **Maximum current (I**<sub>**max**</sub>**)**    | Maximum saturation current in amperes (A) | No           | N/A              |
| **Snubber resistance (R**<sub>**sn**</sub>**)**  | Snubber resistance value in ohm (Ω).      | No           | N/A              |
| **Snubber capacitance (C**<sub>**sn**</sub>**)** | Snubber capacitance value in farad (F).   | No           | N/A              |

## Conserving ports

| Port   | Description   |
| ------ | ------------- |
| **p1** | Positive port |
| **n1** | Negative port |


---

# 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-opal-rt/model-in-schematic-editor/library-blocks-reference/passive-blocks/variable-serie-rl.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.
