> 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/power-transmission-and-distribution/lines/distributed-parameters-line.md).

# Distributed Parameters Line

## Description

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

The **Distributed Parameters Line** block, located in the **OPAL-RT SPS Software/Power Grid Elements** library, implements an N-phase distributed parameter line model with lumped losses. The model is based on Bergeron’s traveling wave method used by the Electromagnetic Transient Program (EMTP) \[1].

In this model, the lossless distributed LC line is characterized by two values (for a single-phase line): the surge impedance $$v=1/\sqrt{lc}$$ and the wave propagation speed. *l* and *c* are the per-unit length inductance and capacitance.

The figure shows the two-port model of a single-phase line.

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

For a lossless line (*r* = 0), the quantity *e* + *Z*<sub>*c*</sub>*i*, where *e* is the line voltage at one end and *i* is the line current entering the same end, must arrive unchanged at the other end after a transport delay τ.

$$
r=\frac{d}{v}
$$

where *d* is the line length and *v* is the propagation speed.

The model equations for a lossless line are:

$$
e\_r(t) - Z\_c, i\_r(t) = e\_s(t - \tau) + Z\_c, i\_s(t - \tau) \\\[8pt]
e\_s(t) - Z\_c, i\_s(t) = e\_r(t - \tau) + Z\_c, i\_r(t - \tau) \\\[8pt]
$$

knowing that

$$
i\_s(t) = \frac{e\_s(t)}{Z} - I\_{sh}(t) \\\[8pt]
i\_r(t) = \frac{e\_r(t)}{Z} - I\_{rh}(t) \\\[8pt]
$$

In a lossless line, the two current sources *I*<sub>*sh*</sub> and *I*<sub>*rh*</sub> are computed as:

$$
I\_{sh}(t) = \frac{2}{Z\_c}, e\_r(t - \tau) - I\_{rh}(t - \tau) \\\[8pt]
I\_{rh}(t) = \frac{2}{Z\_c}, e\_s(t - \tau) - I\_{sh}(t - \tau) \\\[8pt]
$$

When losses are taken into account, new equations for *I*<sub>*sh*</sub> and *I*<sub>*rh*</sub> are obtained by lumping *R/4* at both ends of the line and *R/2* in the middle of the line:

*R* = total resistance = *r* × *d*

The current sources *I*<sub>*sh*</sub> and *I*<sub>*rh*</sub> are then computed as follows:

$$
I\_{sh}(t) =
\left( \frac{1 + h}{2} \right)
\left( \frac{1 + h}{Z}, e\_r(t - \tau) - h, I\_{rh}(t - \tau) \right)
\+
\left( \frac{1 - h}{2} \right)
\left( \frac{1 + h}{Z}, e\_s(t - \tau) - h, I\_{sh}(t - \tau) \right)
\\\[8pt]
I\_{rh}(t) =
\left( \frac{1 + h}{2} \right)
\left( \frac{1 + h}{Z}, e\_s(t - \tau) - h, I\_{sh}(t - \tau) \right)
\+
\left( \frac{1 - h}{2} \right)
\left( \frac{1 + h}{Z}, e\_r(t - \tau) - h, I\_{rh}(t - \tau) \right)
\\\[8pt]
$$

where

$$
Z = Z\_c + \frac{r}{4} \\\[8pt]
h = \frac{Z\_c - \frac{r}{4}}{Z\_c + \frac{r}{4}} \\\[8pt]
Z\_c = \sqrt{\frac{l}{c}} \\\[8pt]
\tau = d \sqrt{lc} \\\[8pt]
$$

*r*, *l*, *c* are the per unit length parameters, and *d* is the line length. For a lossless line, *r* = 0, *h* = 1, and *Z* = *Z*<sub>*c*</sub>.

For multiphase line models, modal transformation is used to convert line quantities from phase values (line currents and voltages) into modal values independent of each other. The previous calculations are made in the modal domain before being converted back to phase values.

In comparison to the PI section line model, the distributed line represents wave propagation phenomena and line end reflections with much better accuracy.

## Ports

### Conserving

<table><thead><tr><th width="250.17779541015625">Port</th><th>Description</th></tr></thead><tbody><tr><td><strong>Cons 1</strong> — Electric terminal (Specialized electrical)</td><td>Specialized electrical conserving port associated with terminal 1 on the sending end of the line.</td></tr><tr><td><strong>Cons 2</strong> — Electric terminal (Specialized electrical)</td><td>Specialized electrical conserving port associated with terminal 2 on the sending end of the line.</td></tr><tr><td><strong>Cons 3</strong> — Electric terminal (Specialized electrical)</td><td>Specialized electrical conserving port associated with terminal 3 on the sending end of the line.</td></tr><tr><td><strong>Cons 4</strong> — Electric terminal (Specialized electrical)</td><td>Specialized electrical conserving port associated with terminal 1 on the receiving end of the line.</td></tr><tr><td><strong>Cons 5</strong> — Electric terminal (Specialized electrical)</td><td>Specialized electrical conserving port associated with terminal 2 on the receiving end of the line.</td></tr><tr><td><strong>Cons 6</strong> — Electric terminal (Specialized electrical)</td><td>Specialized electrical conserving port associated with terminal 3 on the receiving end of the line.</td></tr></tbody></table>

## Parameters

<table><thead><tr><th width="250.35546875">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Number of phases [N]</strong> — Number of phases (3 default) | scalar ≥ 1</td><td>Number of phases, N, of the model. The block icon changes according to the number of phases you specify. Applying parameters or closing the dialog updates the number of inputs and outputs.</td></tr><tr><td><strong>Line length (km)</strong> — Line section length (100 default) | positive scalar</td><td>Line length in kilometers (km).</td></tr><tr><td><strong>Frequency used for rlc specification (Hz)</strong> — Frequency used for specification of per unit length rlc line parameters (60 default) | positive scalar</td><td>Frequency used to compute the per unit length resistance <em>r</em>, inductance <em>l</em>, and capacitance <em>c</em> matrices of the line model.</td></tr><tr><td><strong>Resistance per unit length</strong> (Ohms/km) [NxN matrix] or [r1 r0 r0m] ([0.01273 0.3864] default) | N×N matrix</td><td><p>Resistance <em>r</em> per unit length, as an N×N matrix in Ω/km. For a symmetrical line you can specify the N×N matrix or sequence parameters: for 2- or 3-phase continuously transposed lines, use positive and zero-sequence resistances [r1 r0].</p><p>For symmetrical six-phase lines, use [r1 r0 r0m].</p><p>For asymmetrical lines, specify the complete N×N resistance matrix.</p></td></tr><tr><td><strong>Inductance per unit length</strong> (H/km) [NxN matrix] or [l1 l0 l0m] ([0.9337e-3 4.1264e-3] default) | N×N matrix</td><td>Inductance <em>l</em> per unit length, as an N×N matrix in H/km. Same sequence/matrix options as Resistance.</td></tr><tr><td><strong>Capacitance per unit length</strong> (F/km) [NxN matrix] or [c1 c0 c0m] ([12.74e-9 7.751e-9] default) | N×N matrix</td><td>Capacitance <em>c</em> per unit length, as an N×N matrix in F/km. Same sequence/matrix options as Resistance. Note: The powergui Preview block provides the RLC Line Parameters tool to calculate R, L, C per unit length based on geometry and conductor characteristics.</td></tr><tr><td><strong>Measurements</strong> — Block measurements (None default) | Phase-to-ground voltages</td><td>Select Phase-to-ground voltages to measure the sending-end and receiving-end voltages for each phase. Place a Multimeter block to display selected measurements. Measurement labels in the Multimeter's Available Measurements list:<br>- Sending end phase-to-ground: Us_ph1_gnd:<br>- Receiving end phase-to-ground: Ur_ph1_gnd:</td></tr></tbody></table>

## Limitations

This model does not accurately represent the frequency dependence of RLC parameters of real power lines. Due to skin effects in conductors and ground, the R and L matrices exhibit strong frequency dependence, causing attenuation of high frequencies.


---

# 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/power-transmission-and-distribution/lines/distributed-parameters-line.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.
