> 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/phase-shifting-zigzag-transformer.md).

# Phase Shifting Zigzag Transformer

## Description

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

The **Phase-shifting ZigZag transformer** block, located in the **Network Transformers** library, connects the primary and tertiary windings in a zigzag configuration and specifies the phase shift with respect to a reference winding.

The secondary winding corresponds to the winding that does not have the zigzag connection. The zigzag winding is split in two parts: Z (primary) and Y (tertiary) according the following equations:

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

$$
n =
\frac{\lvert \text{Voltage Y winding (tertiary)} \rvert}
{\lvert \text{Voltage Zigzag winding (primary)} \rvert}
=======================================================

\frac{\sin(\alpha)}{\sin(60^\circ - \alpha)} \\\[8pt]
\lvert \text{Voltage Zigzag winding (primary)} \rvert
=====================================================

\frac{\lvert \text{Voltage Van} \rvert}
{\cos(\alpha) + n \cdot \cos(60^\circ - \alpha)}\\\[8pt]
\lvert \text{Voltage Y winding (tertiary)} \rvert
=================================================

\frac{\lvert \text{Voltage Van} \rvert \cdot n}
{\cos(\alpha) + n \cdot \cos(60^\circ - \alpha)}
$$

The following example shows the use of the equations as well as the connection diagram of the transformer Zy with phase angle -7.5 degrees (see previous ZigZag parameters image where the transformer data is shown)

Base primary winding Voltage = 10.735 kV (rms LL), Base secondary winding Voltage = 693 V (rms LL), Base Tertiary winding Voltage = 639 V (rms LL):

$$
n =
\frac{\lvert \text{Voltage Y winding (tertiary)} \rvert}
{\lvert \text{Voltage Zigzag winding} \rvert}
=============================================

\frac{\sin(7.5^\circ)}{\sin(60^\circ - 7.5^\circ)}
\= 0.1645 \\\[8pt]
\lvert \text{Voltage Zigzag winding} \rvert
===========================================

\frac{\left| \dfrac{10.735\ \text{kV}}{\sqrt{3}} \right|}
{\cos(7.5^\circ) + n \cdot \cos(60^\circ - 7.5^\circ)}
\= 5.6778\ \text{kV} \\\[8pt]
\lvert \text{Voltage Y winding (tertiary)} \rvert
=================================================

\frac{\left| \dfrac{10.735\ \text{kV}}{\sqrt{3}} \right| \cdot n}
{\cos(7.5^\circ) + n \cdot \cos(60^\circ - 7.5^\circ)}
\= 0.934\ \text{kV}
$$

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

The vector diagram of this transformer (referred to the ZigZag side) is shown in the following figure

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

## Mask parameters

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-067e01aa7696b59a86ed10fada36ba9047affba0%2Fzigzag.jpg?alt=media" alt=""><figcaption></figcaption></figure>

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

<table><thead><tr><th width="242">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Description</strong></td><td>Free-form notes about the component.</td></tr><tr><td><strong>Base primary/secondary/tertiary winding voltage (rmsLL)</strong></td><td><p>Base value for PU conversion (kV).</p><ul><li>Voltage expressed in kV rms LL.</li><li>The base and nominal voltages change if the winding connection switches between delta and Y.</li></ul></td></tr><tr><td><strong>Base power (total)</strong></td><td>Base value for PU conversion (MVA).</td></tr><tr><td><strong>Base frequency</strong></td><td>Base value for PU conversion (Hz).</td></tr><tr><td><strong>Rm</strong></td><td>Equivalent resistance of iron losses of the magnetic circuit (Ω).</td></tr><tr><td><strong>Lm</strong></td><td>Magnetization inductance (H).</td></tr><tr><td><strong>Secondary connection</strong></td><td><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</p><p><strong>Y neutral</strong>: Y connection with impedance connected at the input pin N1 or N2<br><strong>Delta lead</strong>: Delta connection with lead of 30°<br><strong>Delta ground</strong>: Grounded delta connection (Phase C is grounded)<br><strong>Delta lag</strong>: Delta connection with lag of 30°</p></td></tr><tr><td><strong>Voltage (rmsLL)</strong></td><td><p>Rated voltage of the winding (kV).</p><ul><li>Y connections: Voltage expressed in kV rms LL.</li><li>Delta connections: Voltage expressed in kV rms LL.</li></ul></td></tr><tr><td><strong>R1, R2, R3</strong></td><td>Leakage resistance of the winding (Ω).</td></tr><tr><td><strong>L1, L2, L3</strong></td><td>Leakage inductance of the winding (H).</td></tr><tr><td><strong>Zigzag - Phase shift</strong></td><td>Amplitude of the phase shift with respect to the reference winding; must be positive (deg).</td></tr><tr><td><strong>Zigzag - Voltage (rmsLL)</strong></td><td>Rated voltage of the zigzag winding (kV).</td></tr><tr><td><strong>Zigzag - Voltage phase-shift type</strong></td><td>Direction of the phase shift with respect to the reference winding (None, Lagging, Leading).</td></tr></tbody></table>
{% endtab %}

{% tab title="Neutral impedance" %}

<table><thead><tr><th width="255">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>R2</strong></td><td>Neutral resistance of the secondary winding; only applies to Y ground (Ω).</td></tr><tr><td><strong>L2</strong></td><td>Neutral inductance of the secondary winding; only applies to Y ground (H).</td></tr><tr><td><strong>C2</strong></td><td>Neutral capacitance of the secondary winding; only applies to Y ground (F).</td></tr></tbody></table>
{% 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_3</strong></td><td>Tertiary winding connection (supports only 3-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></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="220">Signal</th><th>Description</th></tr></thead><tbody><tr><td><strong>ILMAG(a,b,c)</strong></td><td>Magnetization current for each phase (A)</td></tr><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><tr><td><strong>ISEC(a,b,c)</strong></td><td>Tertiary current for each phase (A).</td></tr></tbody></table>

## Reference

\[1] H.K. Hoidalen and R. Sporild, Using Zigzag Transformers with Phase-shift to reduce Harmonics in AC-DC Systems, International Conference on Power Systems Transients (IPST’05), Montreal, Canada, June 19-23, 2005.


---

# 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/phase-shifting-zigzag-transformer.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.
