> 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/example-models/simulation-and-analysis/initializing-a-5-bus-network-with-the-load-flow-tool-of-powergui.md).

# Initializing a 5 Bus Network with the Load Flow Tool of Powergui

This example shows the use of the Load Flow tool of Powergui to initialize a simple 5-bus network consisting of a wind farm connected to a 25-kV distribution feeder and exporting power to a 120 kV network.

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

## Description

The model shows a 9 MW wind farm using asynchronous generators and exporting power to a 120 kV network through a 25-kV distribution feeder. The 120 kV network is modeled by a simple inductive voltage source (short circuit power of 1200 MVA) using the Three-Phase Source block. A 150 MW power plant using a 13.8 kV synchronous generator is connected at the 120 kV bus through a 13.8 kV/ 120 kV transformer.

## Simulation

The five Load Flow Bus blocks are used to specify the bus base voltages and to specify the voltage at PV bus and the voltage and angle of the swing bus.

The Load flow parameters are defined in the Load Flow tab of the Synchronous and Asynchronous machine blocks, Three-Phase Source block, Three-Phase Dynamic Load block, and the Three-Phase RLC Load blocks.

Press the 'Apply' button to apply the load flow solution to the model in order to start the simulation in steady-state. Note that the Load flow Bus block displays the bus voltage magnitude and phase angle as block annotations.

Press the 'Report' button to get a report that shows a load flow summary and detailed load flow results at each bus.

Finally, start simulation and check that it starts in steady state.

## Command

Example model name: power\_LFnetwork\_5bus

{% code lineNumbers="true" %}

```matlab
open('power_LFnetwork_5bus')
```

{% endcode %}


---

# 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/example-models/simulation-and-analysis/initializing-a-5-bus-network-with-the-load-flow-tool-of-powergui.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.
