> 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/hypersim/library-blocks-reference/network-lines-and-cables/constant-param-2-ph.md).

# Constant Param, 2-ph

## Description

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-2d938c37ecfc0759b0bcfb41ccafba62e3fe8cf2%2Fimage%20(424).png?alt=media" alt="" width="266"><figcaption></figcaption></figure>

The **Constant Parameter (CP) 2-ph Line** block, located in the **Network Lines and Cables** library, models a transmission line with frequency-independent parameters R, L, and C. The model treats L and C as distributed (ideal line) and lumps R at three locations (R/4 at each end and R/2 in the middle). Shunt conductance G is zero. While frequency dependence (as in the FD model) can improve waveform and peak-value accuracy, the CP model is robust, simple, and fast, and it is suitable for first-approximation analyses.

A transposed or untransposed CP line can be represented by (a) its sequence components or (b) its propagation modes with the transformation matrix (Ti) between mode currents and phase currents. Implementation details can be found in \[1].

The electrical parameters of CP lines can be calculated using the **Line Generator**.

The propagation delay is calculated as follows:

$$
Propagation\_delay=length\_of\_line \times \sqrt{L\[i] \times C\[i]}
$$

where i denotes each phase, and L and C are the per-unit-length inductance and capacitance.

{% hint style="danger" %}
When the propagation delay is smaller than the time step, the Constant Param block is automatically replaced by an equivalent PI line.
{% endhint %}

* If the Transposed parameter is set to yes, the following warning appears in the console:

{% code overflow="wrap" %}

```
WARNING in line: : The propagation delay ( X ) is less than the sample time ( Y ). A PI line is automatically used.
```

{% endcode %}

* If the Transposed parameter is set to no, a similar error message appears.

## Mask parameters

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-ab0000669675182981a5638112e5d7982fc4f9b9%2Fimage%20(426).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

<table><thead><tr><th width="240">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Description</strong></td><td>Free-text field to document the component.</td></tr><tr><td><strong>EMTP (.pun) file for line parameters calculation</strong></td><td>Path to the EMTP .pun file containing the line parameters.</td></tr><tr><td><strong>L-C units in EMTP (.pun) file</strong></td><td>Units used in the .pun file, L-C units<br>0: mH/km, uF/km — inductance (L) and capacitance (C).<br>1: Ohm/km, uS/km — inductive reactance (Xl) and capacitive susceptance (1/Xc).</td></tr><tr><td><strong>Line length</strong></td><td>Length of the line (km), length [0, 1e64]</td></tr><tr><td><strong>R</strong></td><td>Per-unit-length resistance for each phase (mode) (Ω/km), R [-1e64, 1e64]</td></tr><tr><td><strong>L</strong></td><td>Per-unit-length inductance for each phase (mode) (H/km), L [-1e64, 1e6]</td></tr><tr><td><strong>C</strong></td><td>Per-unit-length capacitance for each phase (mode) (F/km), C [1e64, 1e64]</td></tr><tr><td><strong>Base power (perPhase)</strong></td><td>Base value for per-unit conversion (MVA) per phase, pBase [1, 1e64]</td></tr><tr><td><strong>Base voltage (rmsLN)</strong></td><td>Base value for per-unit conversion (kV rms) LN, vBase [1, 1e64]</td></tr><tr><td><strong>Base frequency</strong></td><td>Base value for per-unit conversion (Hz), fBase [1, 1e64]</td></tr><tr><td><strong>Continuously transposed line</strong></td><td>Transposition flag transp<br>0: No (untransposed line)<br>1: Yes (transposed line)</td></tr><tr><td><strong>Transformation matrix</strong></td><td>Transformation matrix between mode current and phase current Ti [-1e64, 1e64]<br>[Iphase] = [Ti] × [Imode].<br>Not used for a transposed line.</td></tr></tbody></table>

## Conserving ports

| Port          | Description                                  |
| ------------- | -------------------------------------------- |
| **net\_1\_1** | Network connection of phase 1 left (+) side. |
| **net\_1\_2** | Network connection of phase 1 right side.    |
| **net\_2\_1** | Network connection of phase 2 left (+) side. |
| **net\_2\_2** | Network connection of phase 2 right side.    |

## Inputs

This block has no inputs.

## Outputs

This block has no outputs.

## Signals available for monitoring and external I/O connections (via sensors form)

All block inputs and outputs are available as signals for monitoring and for external I/O connections.

Additional signals are also available and are listed below with their descriptions.

<table><thead><tr><th width="322.800048828125">Signal</th><th>Description</th></tr></thead><tbody><tr><td><strong>I(phase 1</strong><em><strong>, phase 2</strong></em><strong>)_Node(phase </strong><em><strong>1, phase 2</strong></em><strong>)_(</strong><em><strong>1,2</strong></em><strong>)</strong></td><td>Current for each phase (phase 1, phase 2) (A)</td></tr><tr><td><strong>V_Node(phase </strong><em><strong>1, phase 2</strong></em><strong>)_(</strong><em><strong>1,2</strong></em><strong>)</strong></td><td>Bus voltage for each phase (phase 1, phase 2) (V)</td></tr><tr><td><strong>P(phase 1</strong><em><strong>, phase 2</strong></em><strong>)_Node(phase </strong><em><strong>1, phase 2</strong></em><strong>)_(</strong><em><strong>1,2</strong></em><strong>)</strong></td><td>Active power on each phase (phase 1, phase 2) (W)</td></tr><tr><td><strong>Q(phase 1</strong><em><strong>, phase 2</strong></em><strong>)_Node(phase </strong><em><strong>1, phase 2</strong></em><strong>)_(</strong><em><strong>1,2</strong></em><strong>)</strong></td><td>Reactive power on each phase (phase 1, phase 2) (VAR)</td></tr></tbody></table>

{% hint style="info" %}
(1,2) indicates the bus name at each end of the line (1 for the left (+) side and 2 for the right side).
{% endhint %}

## References

1. H. W. Dommel, "Digital computer solution of electromagnetic transients in single and multiphase networks," IEEE Trans. Power App. Syst., vol. pas-88, pp. 388-99, 04/ 1969.


---

# 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/hypersim/library-blocks-reference/network-lines-and-cables/constant-param-2-ph.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.
