> 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/control-and-measurements/kundurs-two-area-system-with-pmu.md).

# Kundur's Two Area System with PMU

This example shows the use of the PMU (PLL-Based, Positive-Sequence) block within the Kundur's Two-Area System.

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

## Description

The Kundur's Two-Area System used in this example can be found on page 813 in the textbook 'Power System Stability and Control', written by P. Kundur \[1]. Figure below shows basic topology.

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

The system presents eleven buses and two areas, connected by a weak tie between bus B1 and bus B2.

Two loads are applied to the system at buses B1 and B2. In addition, two shunt capacitors are also connected to bus B1 and bus B2 as shown in the topology above.

## Simulation

In Model Configuration Parameters, select 'Fixed-step' as simulation type and 'Discrete' as solver.

PMU sample time is Ts\_PMU = 1/60/64 = 20.42 us. However, the network model sample time Ts = 50 us.

Open the scopes and start the simulation. Zoom on voltage and current phasors right after the fault occurs and notice the transient.

A three-phase fault occurs at 2 seconds of simulation. After 0.10 seconds, the three-phase fault is cleared and a new steady-state is presented until the end of the simulation at 25 seconds, as shown in the plot below.

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

Change the reporting rate factor and the sampling rate. Compare the shape of the waveforms shown on the scope.

Finally, compare the active power computed from the PMU phasors with the three-phase instantaneous power block. The plot below shows how the waveforms match, particularly during fault condition.

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

## Command

Example model name: power\_KundurTwoAreaSystem

{% code lineNumbers="true" %}

```matlab
open('power_KundurTwoAreaSystem')
```

{% endcode %}

## References

\[1] P. Kundur, N. J. Balu, and M. G. Lauby, Power system stability and control, vol. 7. McGraw-hill New York, 1994.


---

# 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/control-and-measurements/kundurs-two-area-system-with-pmu.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.
