> 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/smart-power-simulation-software-sps/blocks-functions-tools/control-and-measurements/transformations/dq0_to_abc-transformation.md).

# dq0\_to\_abc Transformation

## Description

<figure><img src="https://799605156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdlNg8IbOdahCpFCyzxSN%2Fuploads%2Fgit-blob-c7e404cd3414386750b40aa7682a1267a2f14297%2Fdq0toabc_transformation_block.png?alt=media" alt=""><figcaption></figcaption></figure>

The **dq0\_to\_abc Transformation** block, located in the **OPAL-RT SPS Software/Transformations** library, performs Park transformation from dq0 reference frame to abc reference frame.

{% hint style="info" %}
The Transformations section of the Control and Measurements library contains the dq0 to abc to block. This is an improved version of the dq0\_to\_abc Transformation block. The new block features a mechanism that eliminates duplicate continuous and discrete versions of the same block by basing the block configuration on the simulation mode. If your legacy models contain the dq0\_to\_abc Transformation block, they continue to work. However, for best performance, use the dq0 to abcblock in your new models.
{% endhint %}

This block performs the reverse of the so-called Park transformation, which is commonly used in three-phase electric machine models. It transforms three quantities (direct axis, quadratic axis, and zero-sequence components) expressed in a two-axis reference frame back to phase quantities. The following transformation is used:

$$
V\_{a}
======

V\_{d}\sin(\omega t)
\+
V\_{q}\cos(\omega t)
\+
V\_{0}
\\\[8pt]

# V\_{b}

V\_{d}\sin!\left(\omega t - \frac{2\pi}{3}\right)
\+
V\_{q}\cos!\left(\omega t - \frac{2\pi}{3}\right)
\+
V\_{0}
\\\[8pt]

# V\_{c}

V\_{d}\sin!\left(\omega t + \frac{2\pi}{3}\right)
\+
V\_{q}\cos!\left(\omega t + \frac{2\pi}{3}\right)
\+
V\_{0}
\\\[8pt]
$$

where *ω* = rotation speed (rad/s) of the rotating frame.

The transformation is the same for the case of a three-phase current; you simply replace the *V*<sub>*a*</sub>, *V*<sub>*b*</sub>, *V*<sub>*c*</sub>, *V*<sub>*d*</sub>, *V*<sub>*q*</sub>, and *V*<sub>0</sub> variables with the I<sub>a</sub>, I<sub>b</sub>, I<sub>c</sub>, I<sub>d</sub>, I<sub>q</sub>, and I<sub>0</sub> variables.

The dq0\_to\_abc Transformation block is used in the model of the Synchronous Machine block where the stator quantities are referred to the rotor. The Park transformation then eliminates time-varying inductances by referring the stator and rotor quantities to a fixed or rotating reference frame. The I<sub>d</sub> and I<sub>q</sub> currents represent the two DC currents flowing in the two equivalent rotor windings (d winding on the same axis as the field winding, and q winding in quadratic) producing the same flux as the stator I<sub>a</sub>, I<sub>b</sub>, and I<sub>c</sub> currents.

## Inputs and Outputs

<table data-header-hidden><thead><tr><th width="249.6666259765625"></th><th></th></tr></thead><tbody><tr><td><strong>dq0</strong></td><td>Connect to the first input a vectorized signal containing the sequence components [d q 0] to be converted.</td></tr><tr><td><strong>sin_cos</strong></td><td>Connect to the second input a vectorized signal containing the [sin(ωt) cos(ωt)] values, where ω is the rotation speed of the reference frame.</td></tr><tr><td><strong>abc</strong></td><td>The output is a vectorized signal containing the three-phase sinusoidal quantities [phase A phase B phase C], in the same units as the dq0 input signal.</td></tr></tbody></table>

## Examples

See the example of the abc\_to\_dq0 Transformation block for an example using the dq0 to abc block (the improved version of the dq0\_to\_abc Transformation block).

## References <a href="#references" id="references"></a>

\[1] Krause, P. C. *Analysis of Electric Machinery*. New York: McGraw-Hill, 1994, p.135.


---

# 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/smart-power-simulation-software-sps/blocks-functions-tools/control-and-measurements/transformations/dq0_to_abc-transformation.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.
