> 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/renewables/2-mw-pv-farm-connected-to-a-25-kv-distribution-system.md).

# 2 MW PV Farm Connected to a 25 kV Distribution System

This example shows a model of a 2-MW PV farm connected to a 25-kV distribution system.

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

## Description

The PV farm consists of two PV arrays: PV Array 1 and PV Array 2 can produce respectively 1.5 MW and 500 kW at 1000 W/m2 sun irradiance and at cell temperature of 25 degrees C. Each PV array is connected to a boost converter. Each boost is individually controlled by a Maximum Power Point Trackers (MPPT) system. The MPPTs use the Perturb and Observe technique to vary the voltage across the terminals of the PV array in order to extract the maximum possible power. The outputs of the boost converters are connected to a common DC bus of 1000 V. A three-level NPC converter converts the 1000 V DC to around 500 V AC. The NPC converter is controlled by a DC voltage regulator whose job is to maintain the DC link voltage to 1000V whatever the amount of active power delivered by the PV arrays. In addition, the controller has a reactive power regulator allowing the converter to generate or absorb up to 1 Mvar. A 2.25-MVA 500V/25kV three-phase coupling transformer is used to connect the converter to the grid. The grid model consists of typical 25-kV distribution feeders and a 120-kV equivalent transmission system.

## Simulation

Start the simulation and see the resulting signals on the various scopes.

In the Scenario & Scopes subsystem you can program four various disturbances: 1) Irradiance variation 2) DC link reference voltage step 3) Reactive power set-point variation 4) System fault.

You can simulate the model with the PV cells temperature set to 45 degrees C or to 25 degrees C by double-clicking on the corresponding blocks below the PV Arrays blocks.

The blocks in yellow in the model are tuned to perform a simulation using the Switching devices modeling technique for the power electronics blocks. You can refer to the documentation pages of the Boost Converter and Three-Level NPC Converter blocks for more information on the available modeling techniques of the power electronics blocks.

The same example is simulated using an average model for the boost converters and a switching function model for the three-level NPC converter. This allows to run the model with a larger sample time resulting in a much faster simulation while obtaining almost identical results.

## Command

Example model name: power\_PVarray\_GridConnected\_SwD

{% code lineNumbers="true" %}

```matlab
open('power_PVarray_GridConnected_SwD')
```

{% endcode %}

## References

1. Horowitz, Kelsey, Zac Peterson, Michael Coddington, Fei Ding, Ben Sigrin, Danish Saleem, Sara E. Baldwin, et al. 2019. An Overview of Distributed Energy Resource (DER) Interconnection: Current Practices and Emerging Solutions. Golden, CO: National Renewable Energy Laboratory. NREL/TP-6A20-72102
2. Haidar Islam, Saad Mekhilef, Noraisyah Binti,Mohamed Shah, Tey Kok Soon,Mehdi Seyedmahmousian, Ben Horan and Alex Stojcevski. Performance Evaluation of Maximum Power Point Tracking Approaches and Photovoltaic Systems. Energies 2018, 11, 365; doi:10.3390/en11020365.


---

# 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/renewables/2-mw-pv-farm-connected-to-a-25-kv-distribution-system.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.
