> 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/fundamental.md).

# Fundamental

## Description

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

The **Fundamental** block, located in the **Control Measurements** library, computes the fundamental value of the input u over a running window of one cycle at the fundamental frequency provided by input f. The computation uses the reference angle provided by input wt. The output is held constant to the specified Initial magnitude and Initial phase for one cycle of the specified initial frequency.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-b0d07b3ee5fc03ff649c8d453140d4b1bfd08aa5%2Fimage%20(919).png?alt=media" alt=""><figcaption><p>Internal circuit of the block</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-cc1951378a126db70c020000554a6996eb8cc957%2Fimage%20(924).png?alt=media" alt="" width="450"><figcaption></figcaption></figure>

<table><thead><tr><th width="260.0986328125">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>Initial frequency</strong></td><td>Initial frequency for the first simulation cycle (Hz); Variable [0, 1e12]<br>Cannot be modified during the simulation.</td></tr><tr><td><strong>Minimum frequency</strong></td><td>Minimum expected frequency of the input signal (Hz); Variable [0, 1e12]<br>Cannot be modified during the simulation.</td></tr><tr><td><strong>Initial magnitude</strong></td><td>Initial magnitude of the output for the first simulation cycle; MagInit [0, 1e12] .<br>Cannot be modified during the simulation.</td></tr><tr><td><strong>Initial phase</strong></td><td>Initial phase of the output for the first simulation cycle (°) PhaseInit = [0, 360]<br>Cannot be modified during the simulation.</td></tr></tbody></table>

## Inputs

<table><thead><tr><th width="260.0986328125">Input</th><th>Description</th></tr></thead><tbody><tr><td><strong>In</strong></td><td>Input signal.</td></tr><tr><td><strong>f</strong></td><td>Frequency signal used to calculate the fundamental value of the input signal In (Hz).</td></tr><tr><td><strong>wt</strong></td><td>Reference angle used to calculate the fundamental value of the input signal In (rad/s).</td></tr></tbody></table>

## Outputs

<table><thead><tr><th width="260.09857177734375">Output</th><th>Description</th></tr></thead><tbody><tr><td><strong>Mag</strong></td><td>Amplitude of the fundamental value of the input signal In (same units as In).</td></tr><tr><td><strong>Pha</strong></td><td>Phase of the fundamental value of the input signal In.</td></tr></tbody></table>


---

# 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/fundamental.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.
