> 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/pulse-and-signal-generators/three-phase-sine-generator.md).

# Three Phase Sine Generator

## Description

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

The **Three Phase Sine Generator** block, located in the **OPAL-RT SPS Software/Sources / Signal Generator Sources** library, generates a three-phase balanced sinusoidal signal (positive-sequence). This vectorized signal usually represents a set of three-phase voltages or currents. Three inputs let you control the amplitude, phase, and frequency of the three-phase output signal.

#### Characteristics

<table data-header-hidden><thead><tr><th width="250.22216796875"></th><th></th></tr></thead><tbody><tr><td>Sample Time</td><td><ul><li>Specified in the <strong>Sample Time</strong> parameter</li><li>Continuous if <strong>Sample Time</strong> = 0</li></ul></td></tr><tr><td>Scalar Expansion</td><td>No</td></tr><tr><td>Dimensionalized</td><td>No</td></tr></tbody></table>

## Parameters

<table data-header-hidden><thead><tr><th width="250.4444580078125"></th><th></th></tr></thead><tbody><tr><td><strong>Sample time</strong></td><td>Specify the sample time of the block, in seconds. Set to 0 to implement a continuous block. Default is 0.</td></tr></tbody></table>

## Inputs and Outputs

<table data-header-hidden><thead><tr><th width="250.111083984375"></th><th></th></tr></thead><tbody><tr><td><strong>mag u</strong></td><td>Specify the amplitude of the three-phase output signal.</td></tr><tr><td><strong>angle u</strong></td><td>Specify the angle, in degrees, of the three-phase output signal.</td></tr><tr><td><strong>Freq</strong></td><td>Specify the frequency, in hertz, of the three-phase output signal.</td></tr><tr><td><strong>abc</strong></td><td>Returns the three-phase signal.</td></tr><tr><td><strong>wt</strong></td><td>Angle (rad) varying between 0 and 2*pi, synchronized on zero crossings of the fundamental (positive-sequence) of phase A.</td></tr></tbody></table>

## Examples

The power\_ThreePhaseSineGenerator model shows the use of the Three-Phase Sine Generator block.

The initial three-phase signal is set to 1 pu, 60 Hz, 90 deg. The following variations are applied on amplitude and frequency while phase stays constant:

* From 0.1 s to 0.4 s, frequency is ramped from 60 Hz to 63 Hz.
* From 0.2 s to 0.4 s, amplitude is sinusoidally modulated with an amplitude of 0.4 pu and a frequency of 5 Hz. Measured amplitude and frequency are compared with specified values.

The model sample time is parameterized with variable Ts (default value Ts = 50e-6). To simulate the continuous Three-Phase Programmable Generator block, specify Ts = 0 in the command window.


---

# 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/pulse-and-signal-generators/three-phase-sine-generator.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.
