> 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/control-measurements/power-3-ph.md).

# Power, 3 ph

## Description

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

The **power, 3-phase** block, located in the **Control Measurements** library, computes the mean value of the instantaneous active power P (in watts) and reactive power Q (in vars) for a periodic set of three-phase voltages and currents, using a running window of one cycle at the specified fundamental frequency.

The output signal Q is accurate only for balanced and harmonic-free three-phase voltages and currents.

For the first cycle of the specified fundamental frequency, the outputs are held at the specified Initial active power and Initial reactive power values.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-600e8f167ad3c89102eb58044cd546c6582086ee%2Fimage%20(709).png?alt=media" alt="" width="563"><figcaption><p>Internal circuit of the block</p></figcaption></figure>

The following example demonstrates the usage of the 3-phase power calculation block. A 240V 60Hz signal connected to a 3kW 0.6 kVar load is used for demonstration.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-53a53c29a77a461e54153f3266ab971ed8a38701%2Fimage%20(705).png?alt=media" alt="" width="563"><figcaption><p>Example with a Power 3-phase block</p></figcaption></figure>

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-513f8fa225cb567ec280625b5bdc5483dd147944%2Fimage%20(710).png?alt=media" alt=""><figcaption><p>Simulation results in ScopeView</p></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-a1f3c107a70af20f88470f53e39bb78bad460b8a%2Fimage%20(708).png?alt=media" alt="" width="450"><figcaption></figcaption></figure>

<table><thead><tr><th width="259.60003662109375">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Description</strong></td><td>Use this field to add information about the component.</td></tr><tr><td><strong>Fundamental frequency</strong></td><td>Fundamental frequency (Hz) used for the calculation of the active power (P) and the reactive power (Q) Fnom = [0, 1e12]<br>Cannot be modified during the simulation.</td></tr><tr><td><strong>Initial active power</strong></td><td>Initial active power value of the output magnitude for the first simulation cycle (W) Pmean_init = [-1e64 1e64]<br>Cannot be modified during the simulation.</td></tr><tr><td><strong>Initial reactive power</strong></td><td>Initial reactive power value of the output magnitude for the first simulation cycle (VAR) Qmean_init = [-1e64 1e64]<br>Cannot be modified during the simulation.</td></tr></tbody></table>

## Inputs

<table><thead><tr><th width="259.60003662109375">Input</th><th>Description</th></tr></thead><tbody><tr><td><strong>Vabc</strong></td><td>Vectorized input containing phase-to-ground voltages Va, Vb, and Vc (V).</td></tr><tr><td><strong>Iabc</strong></td><td>Vectorized input containing phase-to-ground currents Ia, Ib, and Ic (A).</td></tr></tbody></table>

## Outputs

| Output    | Description                                                                 |
| --------- | --------------------------------------------------------------------------- |
| **Pmean** | Average active power computed from the voltage and current signals (W).     |
| **Qmean** | Average reactive power computed from the voltage and current signals (Var). |


---

# 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/control-measurements/power-3-ph.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.
