> 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/pi-section-12-ph-with-fault.md).

# PI Section, 12-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-0bcf2bb9e7f90c57e7702dc87b3dd1f45aab13cc%2Fimage%20(1133).png?alt=media" alt=""><figcaption></figcaption></figure>

The **PI section 12-phase with fault** block, located in the **Network Lines and Cables** library, is mainly used for short transmission lines.

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

It assumes identical capacitances on both sides and coupled RL branches.

The 12‑phase PI model represents four 3‑phase transmission lines in parallel. Its parameters are the same as for 3‑phase PI lines, except that the R, L, and C matrices are 12x12 instead of 3x3.

This model adds sequence parameters. The neutral coupling between the four line circuits (mutual impedance) is represented only in zero sequence.

The model can simulate an internal fault. Note: the number of operations allowed is four per fault element, instead of ten in normal cases.

### Type of fault <a href="#calculation-of-electrical-parameters" id="calculation-of-electrical-parameters"></a>

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><strong>Types of fault according to the state of breakers</strong></summary>

<table><thead><tr><th>State of Breaker</th><th width="100">A</th><th width="100">B</th><th width="100">C</th><th width="100">Ground</th></tr></thead><tbody><tr><td>No fault</td><td>0</td><td>0</td><td>0</td><td>0|</td></tr><tr><td>Fault between phase C and Ground</td><td>0</td><td>0</td><td>1</td><td>1|</td></tr><tr><td>Fault between phase B and Ground</td><td>0</td><td>1</td><td>0</td><td>1|</td></tr><tr><td>Fault between phases B and C</td><td>0</td><td>1</td><td>1</td><td>0|</td></tr><tr><td>Fault between phases B, C and Ground</td><td>0</td><td>1</td><td>1</td><td>1|</td></tr><tr><td>Fault between phases A and Ground</td><td>1</td><td>0</td><td>0</td><td>1|</td></tr><tr><td>Fault between phases A and C</td><td>1</td><td>0</td><td>1</td><td>0|</td></tr><tr><td>Fault between phases A, C and Ground</td><td>1</td><td>0</td><td>1</td><td>1|</td></tr><tr><td>Fault between phases A and B</td><td>1</td><td>1</td><td>0</td><td>0|</td></tr><tr><td>Fault between phases A, B and Ground</td><td>1</td><td>1</td><td>0</td><td>1|</td></tr><tr><td>Fault between phases A, B and C</td><td>1</td><td>1</td><td>1</td><td>0|</td></tr><tr><td>Fault between phases A, B, C and Ground</td><td>1</td><td>1</td><td>1</td><td>1|</td></tr></tbody></table>

</details>

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

* 1 section
* 2 sections
* 3 sections
* 4 sections
* 5 sections

Specify the fault distance on each line measured from side “1”. To disable a fault element on a line, set its fault distance to 0. Each fault distance must be less than the line length. Only one fault element per line can be operated; a total of 3 or 4 can be operated depending on the sectioning. If the required number of sections does not match the entered distances, HYPERSIM reports an error and stops the study.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-0f5345eeca4464ee571aa658616a29ba5c9f7465%2Fimage%20(1134).png?alt=media" alt=""><figcaption><p>4 sections example</p></figcaption></figure>

As shown in the figure, 12 fault elements are available; however, only 3 or 4 can be activated, with no more than one fault per line. The fault elements that are activated are determined by the fault distance parameters.

For example, with the following settings:

– Fault distance – line 1: 85 km\
– Fault distance – line 2: 40 km\
– Fault distance – line 3: 140 km\
– Fault distance – line 4: 40 km

The following fault elements will be activated: **Flt1\_2** (line 1), **Flt2\_1** (line 2), **Flt3\_3** (line 3), and **Flt4\_1** (line 4).

If a fault element is not required, the fault distance for that element must be set to **0**. Note that any specified fault distance must be less than the total line length.

{% 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 %}

## Mask parameters

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-9e400223e3e2212bd3d25a2915d9b4685526d797%2FPI12-fault.png?alt=media" alt=""><figcaption></figcaption></figure>

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

| Parameter                                            | Description                                                                                                                                                                                                                                                  |
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Description**                                      | Use this field to add information about the component.                                                                                                                                                                                                       |
| **EMTP (.pun) file for line parameters calculation** | Path to the EMTP file (pun file) containing the line parameters. the EMTP “.pun” format is **not allowed with this model**.                                                                                                                                  |
| **Type**                                             | <p>The line data can be taken using Matrix or Sequence parameters.<br><strong>Matrix (0)</strong>: Untransposed line. The data is filled in the matrices tab.<br><strong>Sequence (1)</strong>: Transposed line. The data is filled in the sequences tab</p> |
| **Fault distance from (+) side**                     | Fault distance from (+) side for each Line (km) fault\_loc1, fault\_loc2, fault\_loc3, fault\_loc4 \[0, 1e64].                                                                                                                                               |
| **Line Length**                                      | The length of the line (km), length \[0, 1e64]                                                                                                                                                                                                               |
| **Base power (perPhase)**                            | Base value for PU conversion (MVA) per phase, pBase \[1, 1e64]                                                                                                                                                                                               |
| **Base voltage (rmsLN)**                             | Base value for PU conversion (kV) rms LN, vBase \[1, 1e64]                                                                                                                                                                                                   |
| **Base frequency**                                   | Base value for PU conversion (Hz), fBase \[1, 1e64]                                                                                                                                                                                                          |
| {% endtab %}                                         |                                                                                                                                                                                                                                                              |

{% tab title="Matrix" %}

| Parameter           | Description                                |
| ------------------- | ------------------------------------------ |
| **Resistance - R**  | Resistance matrix (Ω/km) R \[-1e64, 1e64]  |
| **Inductance - L**  | Inductance matrix (H/km), L \[-1e64, 1e64] |
| **Capacitance - C** | Capacitance matrix (F/km, C \[-1e64, 1e64] |
| {% endtab %}        |                                            |

{% tab title="Sequence" %}
**Self impedance - Line 1**

| Parameter | Description                                                                     |
| --------- | ------------------------------------------------------------------------------- |
| **R**     | Resistance value for Zero and Positive sequences ( Ω/km), Rself1 \[-1e64, 1e64] |
| **L**     | Inductance value for Zero and Positive sequences (H/km), Lself1 \[-1e64, 1e64]  |
| **C**     | Capacitance value for Zero and Positive sequences (F/km), Cself1 \[-1e64, 1e64] |

**Self impedance - Line 2**

| Parameter | Description                                                                     |
| --------- | ------------------------------------------------------------------------------- |
| **R**     | Resistance value for Zero and Positive sequences ( Ω/km), Rself2 \[-1e64, 1e64] |
| **L**     | Inductance value for Zero and Positive sequences (H/km), Lself2 \[-1e64, 1e64]  |
| **C**     | Capacitance value for Zero and Positive sequences (F/km), Cself2 \[-1e64, 1e64] |

**Self impedance - Line 3**

| Parameter | Description                                                                     |
| --------- | ------------------------------------------------------------------------------- |
| **R**     | Resistance value for Zero and Positive sequences ( Ω/km), Rself3 \[-1e64, 1e64] |
| **L**     | Inductance value for Zero and Positive sequences (H/km), Lself3 \[-1e64, 1e64]  |
| **C**     | Capacitance value for Zero and Positive sequences (F/km), Cself3 \[-1e64, 1e64] |

**Self impedance - Line 4**

| Parameter | Description                                                                     |
| --------- | ------------------------------------------------------------------------------- |
| **R**     | Resistance value for Zero and Positive sequences ( Ω/km), Rself4 \[-1e64, 1e64] |
| **L**     | Inductance value for Zero and Positive sequences (H/km), Lself4 \[-1e64, 1e64]  |
| **C**     | Capacitance value for Zero and Positive sequences (F/km), Cself4 \[-1e64, 1e64] |

**Mutual impedance 1-2, 1-3, 1-4, 2-3, 2-4, 3-4**

| Parameter    | Description                                                                                                                                                                                                              |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **R**        | Mutual values between lines 1 and 2 Rmut12, between lines 1 and 3 Rmut13, between lines 1 and 4 Rmut14, between lines 2 and 3 Rmut23, between lines 2 and 4 Rmut24, between lines 3 and 4 Rmut34,( Ω/km), \[-1e64, 1e64] |
| **L**        | Mutual values between lines 1 and 2 Lmut12, between lines 1 and 3 Lmut13, between lines 1 and 4 Lmut14, between lines 2 and 3 Lmut23, between lines 2 and 4 Lmut24, between lines 3 and 4 Lmut34,( H/km), \[-1e64, 1e64] |
| **C**        | Mutual values between lines 1 and 2 Cmut12, between lines 1 and 3 Cmut13, between lines 1 and 4 Cmut14, between lines 2 and 3 Cmut23, between lines 2 and 4 Cmut24, between lines 3 and 4 Rmut34,( F/km), \[-1e64, 1e64] |
| {% endtab %} |                                                                                                                                                                                                                          |

{% tab title="Timing" %}

| Parameter                                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Time units**                           | <p>Units applied to programmed state transition operations, Ut<br>- Second (s): all T<sub>n</sub> in seconds.<br>- Millisecond (ms): all T<sub>n</sub> in milliseconds.<br>- Cycle (c): all T<sub>n</sub> in electrical cycles (set the frequency).</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **Steady-state condition**               | <p>State of phase breakers in steady-state for line 1 iniStateA, iniStateB, iniStateC, iniStateG, for line 2 iniStateA2, iniStateB2, iniStateC2, iniStateG2, for line 3 iniStateA3, iniStateB3, iniStateC3, iniStateG3, for line 4 iniStateA4, iniStateB4, iniStateC4, iniStateG4<br>“colored” = open,<br>“grey” = closed.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| **Time programming**                     | <p>Master switch for programmed operations EnaGen<br>- Disable (0): operations are disabled.<br>- Enable (1): operations are enabled.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| **Frequency**                            | Set using “Base frequency” (Hz), Freq \[45, 70].                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| **Switching times (Line1)**              | <p>Enable/disable the state transition on a line for line1 EnaT1, EnaT2,.. and for line 2 EnaT1\_2, EnaT2\_2,..<br>If enabled with no time specified, the operation is ignored.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| **Switching times — 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>) T1, T2 , ... when the breaker command is issued. Enter as a single string.<br><strong>- Fixed</strong> f (fixed time). At each acquisition, T<sub>n</sub> is the same for all selected phases.<br><strong>- Incremental</strong> i (initial time/final time/time increment). Advances by increment each acquisition; loops back after final time.<br><strong>- Uniform</strong> u (minimal time/maximal time). Random time with uniform probability; phases do not switch simultaneously.<br><strong>- Uniform gaussian</strong> ug (minimal time/maximal time/dispersion). Random time with gaussian probability; phases do not switch simultaneously.<br><strong>Important notes</strong>:<br>- Respect T<sub>n</sub> > T<sub>n-1</sub>.<br>- If a field is blank or “-”, no switching occurs for that line.<br>- No alias exists for timing types in the API; type and values are entered as one string.<br>- With referenced operations, the computed time applies after the referenced command is received. See <a href="https://www.opal-rt.com/docs/hypersim/library-blocks-reference/network-switches-and-breakers/circuit-breaker-3-phase.md#using-referenced-operations">Referenced Operations</a>.</p> |
| **Referenced operations**                | <p>Trigger T<sub>n</sub> from another breaker’s programmed state transition. All columns must be filled. ee <a href="https://www.opal-rt.com/docs/hypersim/library-blocks-reference/network-switches-and-breakers/circuit-breaker-3-phase.md#using-referenced-operations">Referenced Operations</a>.<br><strong>Ref operation:</strong> Name (or path) of the breaker to reference for line 1 Eref1, Eref2, ..., for line 2 Eref1\_2, Eref2\_2, ... , for line 3 Eref1\_3, Eref2\_, ... and for line 4 Eref1\_, Eref2\_4, ...<br><strong>Ref time:</strong> Referenced breaker’s time step ID for line 1 Tref1,Tref2, .., for line 2 Tref1\_2,Tref2\_2, .., for line 3 Tref1\_3,Tref2\_3, ..<br><strong>Phase/Command</strong>: Activate dependency for line 1 T1RPh, T2RPh ,..., for line 2 T1\_2RPh, T2\_2RPh ,... , for line 3 T1\_3RPh, T2\_3RPh ,... and for line 4 T1\_4RPh, T2\_4RPh ,...</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 .., for line 2 T1\_2Pa, T1\_2Pb, T1\_2Pc; T2\_2Pa, ...., for line 3 T1\_3Pa, T1\_3Pb, T1\_3Pc; T2\_3Pa, .... and for line 4 T1\_4Pa, T1\_4Pb, T1\_4Pc; T2\_4Pa, ....<br>ON (1): “colored” (state transition occurs).<br>OFF (0): “grayed out” (no transition).</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| {% endtab %}                             |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |

{% tab title="Fault" %}
**Line 1**

| Parameter            | Description                                                      |
| -------------------- | ---------------------------------------------------------------- |
| **Fault resistance** | Fault resistance per phase (Ω.), RDef \[0, 1e64].                |
| **Ropen**            | Open resistance per phase (Ω), ROpen \[0, 1e64].                 |
| **Rclose**           | Closed resistance per phase (Ω), RClose \[0, 1e64].              |
| **Chopping current** | Current threshold for opening permission (A), Imargin \[0, 1e64] |

**Line 2**

| Parameter            | Description                                                       |
| -------------------- | ----------------------------------------------------------------- |
| **Fault resistance** | Fault resistance per phase (Ω.), RDef2 \[0, 1e64].                |
| **Ropen**            | Open resistance per phase (Ω), ROpen2 \[0, 1e64].                 |
| **Rclose**           | Closed resistance per phase (Ω), RClose2 \[0, 1e64].              |
| **Chopping current** | Current threshold for opening permission (A), Imargin2 \[0, 1e64] |

**Line 3**

| Parameter            | Description                                                       |
| -------------------- | ----------------------------------------------------------------- |
| **Fault resistance** | Fault resistance per phase (Ω.), RDef3 \[0, 1e64].                |
| **Ropen**            | Open resistance per phase (Ω), ROpen3 \[0, 1e64].                 |
| **Rclose**           | Closed resistance per phase (Ω), RClose3 \[0, 1e64].              |
| **Chopping current** | Current threshold for opening permission (A), Imargin3 \[0, 1e64] |

**Line 4**

| Parameter            | Description                                                       |
| -------------------- | ----------------------------------------------------------------- |
| **Fault resistance** | Fault resistance per phase (Ω.), RDef4 \[0, 1e64].                |
| **Ropen**            | Open resistance per phase (Ω), ROpen4 \[0, 1e64].                 |
| **Rclose**           | Closed resistance per phase (Ω), RClose4 \[0, 1e64].              |
| **Chopping current** | Current threshold for opening permission (A), Imargin4 \[0, 1e64] |
| {% endtab %}         |                                                                   |

{% tab title="Line Generator" %}
The EMTP “.pun” format is not allowed with this model. However, the electrical parameters of PI lines can be calculated using the Line Generator.\
For more information see [Line Parameter Generator](https://github.com/Opal-RT-Technologies/product-docs-hypersim/tree/release-2026.4/model-and-simulation/use-parameter-generators/line-parameters/README.md)
{% endtab %}
{% endtabs %}

## Conserving ports

| Port                 | Description                                                             |
| -------------------- | ----------------------------------------------------------------------- |
| **net\_1\_1(a,b,c)** | Network connection of phases (a,b,c) of the **left (+)** side of line 1 |
| **net\_1\_2(a,b,c)** | Network connection of phases (a,b,c) of the **right** side of line 1    |
| **net\_2\_1(a,b,c)** | Network connection of phases (a,b,c) of the **left (+)** side of line 2 |
| **net\_2\_2(a,b,c)** | Network connection of phases (a,b,c) of the **right** side of line 2    |
| **net\_3\_1(a,b,c)** | Network connection of phases (a,b,c) of the **left (+)** side of line 3 |
| **net\_3\_2(a,b,c)** | Network connection of phases (a,b,c) of the **right** side of line 3    |
| **net\_3\_1(a,b,c)** | Network connection of phases (a,b,c) of the **left (+)** side of line 4 |
| **net\_4\_2(a,b,c)** | Network connection of phases (a,b,c) of the **right** side of line 4    |

## 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)\_FLT1**     | Voltage (V) on fault bus of line 1 phases (a,b,c)         |
| **V(a,b,c)\_FLT2**     | Voltage (V) on fault bus of line 2 phases (a,b,c)         |
| **V(a,b,c)\_FLT3**     | Voltage (V) on fault bus of line 3 phases (a,b,c)         |
| **V(a,b,c)\_FLT4**     | Voltage (V) on fault bus of line 4 phases (a,b,c)         |
| **I(a,b,c,n)\_FLT1**   | Fault current (A) of line 1 (a,b,c,n)                     |
| **I(a,b,c,n)\_FLT2**   | Fault current (A) of line 2 (a,b,c,n)                     |
| **I(a,b,c,n)\_FLT3**   | Fault current (A) of line 3 (a,b,c,n)                     |
| **I(a,b,c,n)\_FLT4**   | Fault current (A) of line 4 (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 |
| **CMD(a,b,c,n)\_FLT3** | Command for states of phase and ground breakers of line 3 |
| **CMD(a,b,c,n)\_FLT4** | Command for states of phase and ground breakers of line 4 |


---

# 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/pi-section-12-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.
