> 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-1-ph.md).

# Power, 1 ph

## Description

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

The **power, 1-phase** block, located in the **Control Measurements** library, computes the active power (P), in watts, and the reactive power (Q), in vars, of a voltage-current pair at the specified fundamental frequency.

The output is held at the specified Initial active power and Initial reactive power values for one cycle of the fundamental frequency.

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

The following example demonstrates the usage of 1-phase power block. A 1-phase 240V, 60Hz source connected to a 3kW and 0.6kVar load is demonstrated.

<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=""><figcaption></figcaption></figure>

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-4259ef9295b3aa6ccdb98f05cb24c1f1d88586e6%2Fimage%20(706).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-cbb74205693d2cff2bfb8331ad3baf8eaed1db89%2Fimage%20(703).png?alt=media" alt="" width="450"><figcaption></figcaption></figure>

<table><thead><tr><th width="240.4000244140625">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Description</strong></td><td>Use this field to add all kinds of 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 magnitude of the output signal for the first simulation cycle (W) Pinit = [-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 magnitude of the output signal for the first simulation cycle (VAR) Qinit = [-1e64 1e64]<br>Cannot be modified during the simulation.</td></tr></tbody></table>

## Inputs

| Input | Description                     |
| ----- | ------------------------------- |
| **V** | Single-phase voltage signal (V) |
| **I** | Single-phase current signal (A) |

## Outputs

| Output | Description                 |
| ------ | --------------------------- |
| **P**  | Active power signal (W)     |
| **Q**  | Reactive power signal (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-1-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.
