# Clarke Transform (`clarke`)

> Turns three phase quantities into two fixed components, alpha and beta.

![clarke](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/img/clarke.svg)

[Component reference](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/) · [繁體中文](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/control/clarke/)

**Group:** Control · **Kind:** `{"block":"clarke","kind":"control"}`

## When to use it

Use it to see three phase quantities as one fixed vector, for example before Park Transform. Use abc to dq Transform for both steps in one block.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `a` | signal | Phase a input |
| `b` | signal | Phase b input |
| `c` | signal | Phase c input |
| `alpha` | signal | Component along the axis of phase a |
| `beta` | signal | Component 90 degrees ahead of alpha |
| `zero` | signal | Zero-sequence output, (a + b + c)/3; 0 for a balanced set. |

## Model

The outputs are `alpha = (2*a - b - c)/3` and `beta = (b - c)/sqrt(3)`. The scaling is amplitude-invariant: a balanced set `a = A*cos(th)`, `b = A*cos(th - 120 deg)`, `c = A*cos(th + 120 deg)` gives `alpha = A*cos(th)` and `beta = A*sin(th)`. The zero-sequence part `(a + b + c)/3` is not in alpha and beta; it comes out on `zero`. Three-phase power is then 1.5 times (vd*id + vq*iq).

## Common mistakes

- In a three-wire machine the three phases add up to zero, so the dropped zero-sequence part does no harm. With four wires or an unbalanced fault that current is lost, and this block cannot show it.
- With this scaling, three-phase power is 1.5 times (vd times id plus vq times iq), so leaving out the 1.5 gives a wrong result. An input left open reads 0.

Problems rules: `pin.unconnected`

## Datasheet and sources

No datasheet applies. The inputs are the three phase quantities you measure with ammeters or voltmeters, in A or V, and the outputs keep that unit.

## Example

Open the example with the command `file.openExample` and the name `demo:clarke`.

---
Generated by `cargo xtask reference` from the usage texts and parameter specs. Do not edit by hand.
