> 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-transformers/2-winding-impedance-matrix-based-transformer-with-internal-fault.md).

# 2 Winding Impedance Matrix Based Transformer with Internal Fault

## Description

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

The **2-Winding Impedance-Matrix-Based Transformer with Internal Fault** block, located in the **Network Transformers** library, reproduces the behavior of a three-phase linear transformer at power frequency. Based on excitation and short-circuit tests in positive- and zero-sequence, the tool computes two matrices \[R] and \[L] that model the transformer. R<sub>i</sub> and L<sub>i</sub> are the resistance and self-inductance of each coil, and M<sub>ij</sub> are the mutual inductances between coils. HYPERSIM simulates the transformer as mutually coupled R–L branches.

**Supports**

* A three-limb core representation
* A five-limb core representation
* Internal faults simulation

**Does not support**

* A three single-phase core representation
* Saturation

### Fault modeling

The development and validation of the method is based on the reference \[2]. Without any faults, matrices \[R] and \[L] are 6 x 6 as follows with the first three columns represents the primary and the second three columns, the secondary.

$$
\[R] =
\begin{bmatrix}
R1 & 0  & 0  & 0  & 0  & 0 \\
0  & R2 & 0  & 0  & 0  & 0 \\
0  & 0  & R3 & 0  & 0  & 0 \\
0  & 0  & 0  & R4 & 0  & 0 \\
0  & 0  & 0  & 0  & R5 & 0 \\
0  & 0  & 0  & 0  & 0  & R6
\end{bmatrix}
$$

To model a turn‑to‑ground fault or a fault between two turns, the affected coil must be subdivided.

**For a turn-to-ground faul**t, the faulted coil is divided into na and nb.

* **na:** from top to fault location T1 (in % of nf)
* **nb:** from fault location T1 to bottom of nf

where fault position T1 in % = nb / (na + nb) \* 100

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-6d7589715914155ae5020517cb8db0882ce41302%2F2-winding-impedance-matrix-transfo-fault.png?alt=media" alt=""><figcaption></figcaption></figure>

Matrices \[R] and \[L] hence become 7 x 7 as follows:

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

$$
\[L] =
\begin{bmatrix}
L\_a   & M\_{ab} & M\_{a2} & M\_{a3} & M\_{a4} & M\_{a5} & M\_{a6} \\
M\_{ba} & L\_b   & M\_{b2} & M\_{b3} & M\_{b4} & M\_{b5} & M\_{b6} \\
M\_{2a} & M\_{2b} & L\_2   & M\_{23} & M\_{24} & M\_{25} & M\_{26} \\
M\_{3a} & M\_{3b} & M\_{32} & L\_3   & M\_{34} & M\_{35} & M\_{36} \\
M\_{4a} & M\_{4b} & M\_{42} & M\_{43} & L\_4   & M\_{45} & M\_{46} \\
M\_{5a} & M\_{5b} & M\_{52} & M\_{53} & M\_{54} & L\_5   & M\_{56} \\
M\_{6a} & M\_{6b} & M\_{62} & M\_{63} & M\_{64} & M\_{65} & L\_6
\end{bmatrix}
$$

**For a turn-to-turn fault**, the faulted coil is divided into na, nb and nc.

* **na:** from top to fault location T1 (in % of nf)
* **nb**: from fault location T1 to fault location T2 (in % of nf)
* **nc**: from fault location T2 to bottom of nf\
  \&#xNAN;**→** Fault position T1 in % = na / (na + nb + nc) \* 100\
  \&#xNAN;**→** Fault position T2 in % = (na + nb) / (na + nb + nc) \* 100\ <br>

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

Matrices \[R] and \[L] hence become 8 x 8.

{% hint style="info" %}
It works with the Transformer data Tab of the Parameter Form. All computation details of **matrices \[R] and \[L]** are provided in the Transformer data Tab documentation.
{% 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-d4985f60f1c16999d6d01d3cfda9df56eb94bbba%2F3PIT_fault.jpg?alt=media" alt="" width="563"><figcaption></figcaption></figure>

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

| Parameter                                          | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| -------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Description**                                    | Use this field to add information and pertinent details about the component.                                                                                                                                                                                                                                                                                                                                                                                                  |
| **Primary/secondary connection**                   | <p>Winding type:<br><strong>Y ground</strong>: Grounded Y connection (can use the internal neutral impedance specified in the other tab)<br><strong>Y floating</strong>: Floating Y connection Y neutral: Y connection with impedance connected at the input pin N1 or N2<br><strong>Delta lead</strong>: Delta connection with lead of 30° Delta ground: Grounded delta connection (Phase C is grounded)<br><strong>Delta lag</strong>: Delta connection with lag of 30°</p> |
| **Base primary/secondary winding voltage (rmsLL)** | Base value for PU conversion defined in Transformer data Tab (kV). Voltage expressed in kV rms LL. This base voltage and nominal voltage change if the corresponding winding connection switches between delta and Y.                                                                                                                                                                                                                                                         |
| **Base power (total)**                             | Base value for PU conversion (MVA).                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| **Base frequency**                                 | Base value for PU conversion (Hz).                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| **Rm - positive sequence**                         | Defined in Transformer data Tab (Ω).                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **Rm - zero sequence**                             | Defined in Transformer data Tab (Ω).                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **\[R]**                                           | Leakage resistance matrix (Ω).                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| **\[L]**                                           | Leakage inductance matrix (H).                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| {% endtab %}                                       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |

{% tab title="Fault" %}

<table><thead><tr><th width="220">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Faulted winding</strong></td><td>Primary or secondary.</td></tr><tr><td><strong>Leg of faulted winding</strong></td><td>A, B, or C.</td></tr><tr><td><strong>Fault type</strong></td><td>When a fault is enabled, new [L] and [R] matrices are computed but are not displayed in the mask (none, turn-to-ground, or turn-to-turn).</td></tr><tr><td><strong>Fault resistance</strong></td><td>(Ω).</td></tr><tr><td><strong>Fault inductance</strong></td><td>(H).</td></tr><tr><td><strong>Fault turns A</strong></td><td>Determines the position of the faulty connection for turn-to-ground faults, or for turn-to-turn faults in combination with the parameter Fault turns B (% total turns).</td></tr><tr><td><strong>Fault turns B</strong></td><td>Determines the position of the faulty connection for turn-to-turn faults in combination with the parameter Fault turns A (% total turns).</td></tr><tr><td><strong>Sigma AB</strong></td><td>Leakage factor between the two turns A and B of the faulty connection. Sigma AB = 1 - M<sub>AB</sub><sup>2</sup> / (L<sub>A</sub> * L<sub>B</sub>)</td></tr><tr><td><strong>Epsilon</strong></td><td><p>Ratio of leakage factor between faulted winding and other windings. Epsilon = Sigma Ai / Sigma fi</p><ul><li>Sigma Ai: Leakage factor between subwinding A and i</li><li>Sigma fi: Leakage factor between faulted winding (A+B) and i</li></ul></td></tr></tbody></table>
{% endtab %}

{% tab title="Neutral impedance" %}

<table><thead><tr><th width="220">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>R1, R2</strong></td><td>Neutral resistance of the winding; only applies to Y ground (Ω).</td></tr><tr><td><strong>L1, L2</strong></td><td>Neutral inductance of the winding; only applies to Y ground (H).</td></tr><tr><td><strong>C1, C2</strong></td><td>Neutral capacitance of the winding; only applies to Y ground (F).</td></tr></tbody></table>

{% hint style="info" %}
The neutral impedance parameters are computed in the Transformer data Tab.
{% endhint %}
{% endtab %}

{% tab title="Transformer data" %}
To Learn How to Generate Transformer parameters see [\[Z\]-Based Transformer Parameters](https://github.com/Opal-RT-Technologies/product-docs-hypersim/tree/release-2026.4/model-and-simulation/use-parameter-generators/z-based-transformer-parameters.md).
{% endtab %}
{% endtabs %}

## Conserving ports

<table><thead><tr><th width="200">Port</th><th>Description</th></tr></thead><tbody><tr><td><strong>Net_1</strong></td><td>Primary winding connection (supports only 3-phase connections).</td></tr><tr><td><strong>Net_2</strong></td><td>Secondary winding connection (supports only 3-phase connections).</td></tr><tr><td><strong>Net_N1</strong></td><td>Neutral connection for the primary winding (supports only 1-phase connections).</td></tr><tr><td><strong>Net_N2</strong></td><td>Neutral connection for the secondary winding (supports only 1-phase connections).</td></tr><tr><td><strong>Net_TG</strong></td><td>Used for turn-to-ground faults by connecting a 1-phase fault-to-ground component.</td></tr><tr><td><strong>Net_TT</strong></td><td>Used for turn-to-turn faults by connecting a 1-phase circuit breaker component between Net_TG and Net_TT.</td></tr></tbody></table>

## 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="201">Signal</th><th>Description</th></tr></thead><tbody><tr><td><strong>IPRIM(a,b,c)</strong></td><td>Primary current for each phase (A)</td></tr><tr><td><strong>ISEC2(a,b,c</strong></td><td>Secondary current for each phase (A)</td></tr></tbody></table>

## References

\[1] Dommel, H., et al., Electromagnetic Transients Program Reference Manual (EMTP Theory Book), 1986\
\[2] A transformer model for winding fault studies, Partrick Bastard, Pierre Bertrand, Michel Meunier, IEEE, Vol 9, No 2, April 1994


---

# 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-transformers/2-winding-impedance-matrix-based-transformer-with-internal-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.
