> 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/examples/renewable-energy/2-mw-grid-connected-pv-array.md).

# 2 MW Grid Connected PV array

## Description

The **2 MW Grid-Connected PV Array** example, located in **File > Open an Example File > Renewable Energy**, demonstrates the operation and control of a 2 MW, ±1 Mvar photovoltaic power station.

The objective is to showcase maximum power point tracking (MPPT) using the Perturb and Observe method, DC-link voltage regulation at 1000 V, reactive power control, and grid interconnection through a three-level NPC converter and coupling transformer.

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

## Requirements

This example model does not require any additional hardware or licenses.

## Detailed explanation

The [**PV array**](https://www.opal-rt.com/docs/hypersim/library-blocks-reference/network-renewable-energy/photovoltaic-array-pv.md) produces 2 MW at 1000 W/m<sup>2</sup> irradiance and a cell temperature of 25°C (P–V characteristics as documented in the model reference).

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-ea7dbf4032329bd8de210ca78252c4b47945fd3b%2Fimage%20(1508).png?alt=media" alt=""><figcaption><p>the P-V characteristics for the PV array</p></figcaption></figure>

A [**boost converter (Switching Function)**](https://www.opal-rt.com/docs/hypersim/library-blocks-reference/network-voltage-source-converters/boost-converter-switching-function.md) is connected to the PV array and it is controlled by a Maximum Power Point Tracker (MPPT) control system. The MPPT uses a technique called "Perturb and Observe" which allows extracting the maximum possible power of the PV by varying the voltage across its terminals.

The figure below shows how the Perturb and Observe technique works for extracting the maximum possible power of the PV.

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

There is a [**three-level NPC converter (switching function)**](https://www.opal-rt.com/docs/hypersim/library-blocks-reference/network-voltage-source-converters/3-level-npc-converter-switching-function.md) fed by a PWM generator with pulse averaging) that converts the 1000 V DC (the output of the boost converter is connected to a common DC bus) to around 500 V AC. A DC voltage regulator is used to control the three-level NPC converter. This regulator maintains the DC link voltage to 1000 V whatever the amount of active power delivered by the PV array. In addition, the controller has a reactive power regulator allowing the converter to generate or absorb up to +/- 1 Mvar.

Finally, a 2.25-MVA 500V/25kV three-phase coupling transformer is used to connect the converter to the grid. The grid is modeled by 25 kV distribution feeders and a 120 kV equivalent transmission system.

The figure below illustrates each component of the example.

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

## Simulation and results

Before starting the simulation, in enable **Activate iterative method** and **Solve control inputs before solving power** for accurate results.

Start the simulation and use the SCOPEVIEW template to visualize signals.

You can program the following disturbances:

* Irradiance variation
* DC-link reference voltage step
* Reactive power set-point variation
* System fault

To select which disturbance to simulate, simply go to the **Programming Sequences** section of this example and set one or both **Target Digital Output** blocks. In SCOPEVIEW, select **Trig** option in **Acquisition Parameters** tab and use the template to study the impact of the selected disturbance in the network.

You can also simulate the model with the PV cells' temperature set to 45<sup>o</sup>C instead of 25<sup>o</sup>C by double-clicking the **PV and Boost Converter Variable Settings** block located in the **Programming Sequences** section of this example.

The results are shown in the figure below. The model was tested at a time-step of 25 us. In addition, active iterative method is enable and applied to all nonlinear elements.

When there is no disturbance presented in the network, the **Network Measurements** tab of the SCOPEVIEW template for this example shows the AC voltages and currents at the primary of the decoupling transformer (BUS\_EAST) as well as the DC link voltage, which is maintained to 1000 V as requested by the DC voltage regulator (see figure below).

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

In addition, the next figure (**Control Measurement** tab of the SCOPEVIEW template) shows the measured and the referenec reactive power (0.5 MVar) for the Inverter Control block, the solar irradiance (set to 1000 W/m<sup>2</sup>) for the PV array and the boost input voltage (mean value) which should match the voltage at maximum power point since the solar irradiance is set at its maximum for the P-V characteristics curve of the array.

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

Finally, the next figure (**Converters Power Balance** tab of the SCOPEVIEW template) shows that **there is no active power invention for both the boost and the inverter converters**. The PV array supplies around 2 MW to the boost converter, which supplies around 1.975 MW to the inverter, which supplies around 1.925 MW to the grid (4% of losses between the PV and the grid).

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

## References

L. G. Monteiro Oliveira *et al*., "Computational implementation of photovoltaic modules mathematical models for software application to estimate PV systems energy production," *2015 International Conference on Solar Energy and Building (ICSoEB)*, Sousse, 2015, pp. 1-6

W. De Soto, S. A. Klein and W. Beckman. « Improvement and validation of a model for photovoltaic array performance ». *Solar energy*, vol. 80, no. 1, pp. 78-88, 2007

M. H. Rashid, *Power electronics handbook*, 4<sup>th</sup> ed. Butterworth-Heinemann, 2017

H. Islam, S. Mekhilef, N. Shah, T. Soon, M. Seyedmahmousian, B. Horan, and A. Stojcevski, “Performance Evaluation of Maximum Power Point Tracking Approaches and Photovoltaic Systems,” *Energies*, vol. 11, no. 2, p. 365, Apr. 2018


---

# 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/examples/renewable-energy/2-mw-grid-connected-pv-array.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.
