> 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/pe-add-on-opal-rt/examples/simulate-a-three-phase-voltage-source-using-sinewave-generators.md).

# Simulate a Three Phase Voltage Source using Sinewave Generators

## Introduction

Source components in the circuit model can be behave differently based on how they are configured allowing them to act as either AC or DC sources. For example, we can use **AC Voltage Source** blocks to simulate a three phase AC voltage source in the **Circuit** by following the steps below.

<figure><img src="https://1300141755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCyfrFRdgX5VC5iwM13Zm%2Fuploads%2FPqNDMI8A7xR2jv2vxcv6%2Fimage.png?alt=media&amp;token=554e7f5f-23f2-4284-94e8-59c3a686e13a" alt=""><figcaption></figcaption></figure>

{% file src="/files/WMTnB7gn5k8tVqsT1lAG" %}

## Simulation

{% stepper %}
{% step %}

### Create the VeriStand project

In the VeriStand System Definition, browse to the **Circuit section**. Add the above circuit to the project by following the steps in [**Create Your First Project**](https://www.opal-rt.com/docs/pe-add-on-opal-rt/get-started/create-your-first-project.md)**.**

Build the circuit model containing three voltage sources or use the model as a starting point. Click **Edit** button to open the circuit in the Schematic Editor.
{% endstep %}

{% step %}

### Configure each AC Source to have a unique Phase in the Schematic Editor

For example, set PhaseA=0, PhaseB=120 , and PhaseC=240) and save the circuit.

<figure><img src="https://1300141755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCyfrFRdgX5VC5iwM13Zm%2Fuploads%2FzSjaOK5IbpLjT8eBO9Ey%2Fimage.png?alt=media&amp;token=8c1f9ad4-152e-4598-9e98-092f4bc416f4" alt="" width="480"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### In VeriStand, r**eload** to import the latest circuit changes

In the **Circuit section** of the VeriStand System Definition, click **Reload** to import the latest circuit changes. **Save** the System Definition file.
{% endstep %}

{% step %}

### Run the simulation

The voltage source blocks in the circuit model will behave as a synchronized three phase voltage source with a 120 degree phase shift between each signal.
{% endstep %}
{% endstepper %}


---

# 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/pe-add-on-opal-rt/examples/simulate-a-three-phase-voltage-source-using-sinewave-generators.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.
