> 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-6-ph-with-fault.md).

# Constant Param, 6-ph with Fault

## Description

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

The **6‑Phase Constant Parameter (CP) Line** block, located in the **Network Lines and Cables** library, models a transmission line with frequency-independent parameters R, L, and C. L and C are distributed along the line (ideal line), and R is lumped at three locations (R/4 at each end and R/2 in the middle). Shunt conductance G is set to zero. The CP model does not include frequency dependence (skin effect) represented in frequency-dependent (FD) models, but it is robust, simple, fast, and suitable for first-approximation studies.

A transposed or untransposed CP line can be defined by sequence data or by propagation modes with the modal-to-phase transformation matrix (Ti) relating mode currents to phase currents. Implementation details can be found in \[1].

The 6‑phase CP model represents a double‑circuit line or two lines sharing the same right of way. Parameters are identical to those of a 3‑phase line, except that the modal transformation matrix is 6x6 because each conductor bundle is treated as a separate phase.

This model supports internal fault simulation. The number of operations allowed per fault element is four, instead of ten in other cases.

### Type of fault

The fault element uses breakers A, B, C, and Ground. A value of 1 closes the breaker; 0 opens it. Fault types are determined by the combination of these breaker states

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

<details>

<summary>**Types of fault according to the state of breakers**</summary>

| State of Breaker                        | A | B | C | Ground |
| --------------------------------------- | - | - | - | ------ |
| No fault                                | 0 | 0 | 0 | 0      |
| Fault between phase C and Ground        | 0 | 0 | 1 | 1      |
| Fault between phase B and Ground        | 0 | 1 | 0 | 1      |
| Fault between phases B and C            | 0 | 1 | 1 | 0      |
| Fault between phases B, C and Ground    | 0 | 1 | 1 | 1      |
| Fault between phases A and Ground       | 1 | 0 | 0 | 1      |
| Fault between phases A and C            | 1 | 0 | 1 | 0      |
| Fault between phases A, C and Ground    | 1 | 0 | 1 | 1      |
| Fault between phases A and B            | 1 | 1 | 0 | 0      |
| Fault between phases A, B and Ground    | 1 | 1 | 0 | 1      |
| Fault between phases A, B and C         | 1 | 1 | 1 | 0      |
| Fault between phases A, B, C and Ground | 1 | 1 | 1 | 1      |

</details>

To simulate faults on a 3‑phase line, either use:

* 1 line section - no fault, or
* 2 line sections - fault on the line.

Specify the fault distance from side “1”. The fault distance must be less than the line length. Set the fault distance to 0 to disable the fault element.

{% hint style="info" %}
For a phase‑to‑ground fault, it is strongly recommended to use the ground in steady state instead of programming an operation time in transient state
{% endhint %}

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-aea01f989436cbf12cbbe7e13cfa324dada5b8a5%2F6ph_fault.jpg?alt=media" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="General" %}

| Parameter                                            | Description                                                                                                                                                                                                                                                                                                                                                                              |
| ---------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Description**                                      | Text metadata for the component.                                                                                                                                                                                                                                                                                                                                                         |
| **EMTP (.pun) file for line parameters calculation** | Path to the EMTP .pun file containing line parameters.                                                                                                                                                                                                                                                                                                                                   |
| **L‑C units in EMTP (.pun) file**                    | <p>Select units for values read from the .pun file L‑C</p><ul><li>mH/km, uF/km (0): Inductance (L) and capacitance (C)</li><li>Ohm/km, uS/km (1): Inductive reactance (Xl) and capacitive susceptance (1/Xc)</li></ul>                                                                                                                                                                   |
| **Line Length**                                      | Line length (km) length \[0, 1e64]                                                                                                                                                                                                                                                                                                                                                       |
| **Distance of fault from (+) side**                  | Fault location measured from the left (+) side (km) fault\_loc \[0, 1e64]                                                                                                                                                                                                                                                                                                                |
| **Base power (perPhase)**                            | Base power for per‑unit conversion (MVA per phase), pBase \[1, 1e64]                                                                                                                                                                                                                                                                                                                     |
| **Base voltage (rmsLN)**                             | Base line‑to‑neutral RMS voltage for per‑unit conversion (kV rms LN). vBase \[1, 1e64]                                                                                                                                                                                                                                                                                                   |
| **Base frequency**                                   | Base frequency for per‑unit conversion (Hz), fBase \[1, 1e64]                                                                                                                                                                                                                                                                                                                            |
| **Line 1**                                           | <ul><li><strong>Fault resistance:</strong> Per‑phase fault resistance (Ω), RDef1 \[0, 1e64]</li><li><strong>Ropen:</strong> Per‑phase open resistance (Ω), ROpen1 \[0, 1e64]</li><li><strong>Rclose:</strong> Per‑phase closed resistance (Ω), RClose1 \[0, 1e64]</li><li><strong>Chopping current:</strong> Current threshold (A) for opening permission, Imargin1 \[0, 1e64]</li></ul> |
| **Line 2**                                           | <ul><li><strong>Fault resistance:</strong> Per‑phase fault resistance (Ω), RDef2 \[0, 1e64]</li><li><strong>Ropen:</strong> Per‑phase open resistance (Ω), ROpen2 \[0, 1e64]</li><li><strong>Rclose:</strong> Per‑phase closed resistance (Ω), RClose2 \[0, 1e64]</li><li><strong>Chopping current:</strong> Current threshold (A) for opening permission. Imargin2 \[0, 1e64]</li></ul> |
| {% endtab %}                                         |                                                                                                                                                                                                                                                                                                                                                                                          |

{% tab title="Line data" %}

| Parameter                        | Description                                                                                                       |
| -------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| **Continuously transposed line** | <p>Transposition selection transp<br>No (0) = untransposed line;</p><p>Yes (1}) = transposed line.</p>            |
| **R**                            | Per‑unit‑length resistance for each phase (mode) (Ω/km), R \[-1e64, 1e64]                                         |
| **L**                            | Per‑unit‑length inductance for each phase (mode) (H/km) L \[-1e64, 1e64]                                          |
| **C**                            | Per‑unit‑length capacitance for each phase (mode) (F/km) C \[-1e64, 1e64]                                         |
| **Transformation matrix**        | <p>Modal‑to‑phase matrix Ti \[-1e64, 1e64]<br>\[Iphase] = \[Ti] × \[Imode]<br>not used for a transposed line.</p> |
| {% endtab %}                     |                                                                                                                   |

{% tab title="Timing" %}

| Parameter                    | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Time units**               | <p>Units applied to programmed state transition operations, Ut - Second (s): all T<sub>n</sub> in seconds.</p><p>- Millisecond (ms): all T<sub>n</sub> in milliseconds.</p><p>- Cycle (c): all T<sub>n</sub> in electrical cycles (set the frequency).</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| **Time programming**         | <p>Master switch for executing programmed operations upon acquisition trigger EnaGen<br>- Disable (0): Programmed operations are disabled.</p><p>-Enable (1): Programmed operations are enabled</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **Steady‑state condition**   | <p>Initial breaker states for line 1 iniStateA, iniStateB, iniStateC, iniStateN1 and for line 2 iniStateD, iniStateE, iniStateF, iniStateN2</p><p>“colored” = open,<br>“grey” = closed.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| **Frequency**                | Set using “Base frequency” (Hz), Freq \[45, 70].                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **Switching times – Line 1** | <p>Enable/disable state transitions on Line 1. EnaT1 = {0, 1}, EnaT2 = {0, 1}, ...</p><p>Disable (0): Disables the operation.<br>Enable (1): Enables the operation;<br>if enabled with no values, the operation is ignored</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **Switching times – Line 2** | <p>Enable/disable state transitions on Line 2, EnaT1\_2 , EnaT2\_2, ...</p><p>Disable (0): Disables the operation.<br>Enable (1): Enables the operation;<br>if enabled with no values, the operation is ignored</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **Type (f, i, u, ug)**       | <p>Relative time (with respect to <a href="https://www.opal-rt.com/docs/hypersim/library-blocks-reference/network-tools/point-on-wave-synchronization.md">POW synchronization</a>) for issuing the breaker state‑change command. Enter as a single string. T1, T2, ..., T1\_2, T2\_2, ...</p><p><strong>Fixed:</strong> {f: fixed time}. At each acquisition, Tn is identical for all selected phases.</p><p><strong>Incremental:</strong> {i: initial time/final time/time increment}. Starts at initial time; increments each acquisition until final time, then wraps to initial.</p><p><strong>Uniform:</strong> {u: minimal time/maximal time}. Random time per acquisition with uniform probability over the range; phases are independent.</p><p><strong>Uniform gaussian:</strong> {ug: minimal time/maximal time/dispersion}. Random time with gaussian probability over the range; phases are independent.</p><p><strong>Important notes:</strong></p><p>- Respect T<sub>n</sub> > T<sub>n-1</sub>.</p><p>- If a field is blank or “-”, no switching occurs for that line.</p><p>- No alias exists for timing types in the API; type and values are entered as one string.</p><p>- With referenced operations, the computed time applies after the referenced command is received.</p> |
| **Referenced operations –**  | <p>Trigger T<sub>n</sub> from another breaker’s programmed state transition. All columns must be filled. .<br><strong>Ref operation:</strong> Name (or path) of the breaker to reference for line 1 Eref1, Eref2, ... and for line 2 Eref1\_2, Eref2\_2, ... <strong>Ref time:</strong> Referenced breaker’s time step ID for line 1 Tref1,Tref2, .. and for line 2 Tref1\_2,Tref2\_2, .. <strong>Phase/Command</strong>: Activate dependency for line 1 T1RPh, T2RPh ,... and for line 2 T1\_2RPh, T2\_2RPh ,...</p><p>Activate Phase (1) or deactivate Command (0).</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| **Phase operated**           | <p>Phases that change state when timing is reached. After each T<sub>n</sub>, phases listed toggle state accordingly for line 1 T1Pa, T1Pb, T1Pc; T2Pa, T2Pb, T2Pc .. and for line 2 T1\_2Pa, T1\_2Pb, T1\_2Pc; T2\_2Pa, ....<br>ON (1): “colored” (state transition occurs).<br>OFF (0): “grayed out” (no transition).</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| {% endtab %}                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

{% tab title="Line Generator" %}
The electrical parameters of CP lines can be calculated using the Line Generator.\
For more information see [Line Generator](https://www.opal-rt.com/docs/hypersim/model-and-simulation/optimize-the-model/use-parameter-generators/line-parameters.md)
{% endtab %}
{% endtabs %}

## Conserving ports

| Port                 | Description                                        |
| -------------------- | -------------------------------------------------- |
| **net\_1\_1(a,b,c)** | Network connection of phase (a,b,c) left (+) side. |
| **net\_1\_2(a,b,c)** | Network connection of phase (a,b,c) right side.    |
| **net\_2\_1(a,b,c)** | Network connection of phase (a,b,c) left (+) side. |
| **net\_2\_2(a,b,c)** | Network connection of phase (a,b,c) 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.

| Signal                                                              | Description                                               |
| ------------------------------------------------------------------- | --------------------------------------------------------- |
| **V(a,b,c)1\_Node*****1*****\_(*****1,2*****)**                     | Bus voltage (V) for each phase (a,b,c) of line 1          |
| **V(a,b,c)2\_Node*****2*****\_(*****1,2*****)**                     | Bus voltage (V) for each phase (a,b,c) of line 2          |
| **I(*****a,b,c*****)*****1*****\_Node*****1*****\_(*****1,2*****)** | Current (A) for each phase (a,b,c) of line 1              |
| **I(*****a,b,c*****)*****2*****\_Node*****2*****\_(*****1,2*****)** | Current (A) for each phase (a,b,c) of line 2              |
| **V(a*****,b,c*****)\_FLT1**                                        | Voltage on fault bus of line 1 phases (a,b,c)             |
| **V(a*****,b,c*****)\_FLT2**                                        | Voltage on fault bus of line 2 phases (a,b,c)             |
| **I(a*****,b,c,n*****)\_FLT1**                                      | Fault current of line 1 (a,b,c,n)                         |
| **I(a*****,b,c,n*****)\_FLT2**                                      | Fault current of line 2 (a,b,c,n)                         |
| **CMD(a*****,b,c,n*****)\_FLT1**                                    | Command for states of phase and ground breakers of line 1 |
| **CMD(a*****,b,c,n*****)\_FLT2**                                    | Command for states of phase and ground breakers of line 2 |

{% 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-6-ph-with-fault.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.
