> 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/analysis/mean-phasor.md).

# Mean (Phasor)

## Description

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

The **Mean (Phasor)** block, located in the **OPAL-RT SPS Software/Sensors and Measurements** library, filters an AC sinusoidal component that is added to the DC component of a phasor signal.

Filtering is performed by computing the average values of real and imaginary parts of the input phasor, using a running window of one cycle of the specified fundamental frequency.

## Parameters

<table data-header-hidden><thead><tr><th width="249.5555419921875"></th><th></th></tr></thead><tbody><tr><td><strong>Fundamental frequency (Hz)</strong></td><td>Specify the fundamental frequency, in hertz, to determine the period (1/<em>F</em>) of the running average window. Default is <code>60</code>.</td></tr><tr><td><strong>Initial input (DC component)</strong></td><td>Specify the initial DC component of the input signal. If the input is a vectorized signal, specify a 1-by-N vector, where each value corresponds to a particular input. Default is <code>0</code>.</td></tr><tr><td><strong>Sample time</strong></td><td>Specify the sample time of the block, in seconds. Set to <code>0</code> to implement a continuous block. Default is <code>0</code>.</td></tr></tbody></table>

## Characteristics

<table><thead><tr><th width="250.08880615234375">Direct Feedthrough</th><th>Yes</th></tr></thead><tbody><tr><td>Sample Time</td><td>Specified in the <strong>Sample Time</strong> parameter Continuous if <strong>Sample Time</strong> = 0</td></tr><tr><td>Scalar Expansion</td><td>Yes, of the parameters</td></tr><tr><td>States</td><td>Two states per filter</td></tr><tr><td>Dimensionalized</td><td>Yes</td></tr></tbody></table>

## Examples

The power\_PhasorMeasurements example shows the use of the Mean (Phasor) block.


---

# 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/analysis/mean-phasor.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.
