> 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/250-kw-grid-connected-pv-array.md).

# 250 kW Grid Connected PV Array

This example shows a detailed model of a 250-kW PV array connected to a 25-kV grid via a three-phase converter.

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

## Description

### PV Array

The PV array consists of 86 parallel strings. Each string has 7 SunPower SPR-415E modules connected in series. Note that the model menu allows you to plot the I-V and P-V characteristics of the selected module or of the whole array.

### Three-phase DC/AC Converter

The converter is modeled using a 3-level IGBT bridge PWM-controlled. The inverter choke RL and a small harmonics filter C are used to filter the harmonics generated by the IGBT bridge. A 250-kVA 250V/25kV three-phase transformer is used to connect the inverter to the utility distribution system.

### Inverter Control

The control system contains five major Simulink®-based subsystems:

* MPPT Controller: The Maximum Power Point Tracking (MPPT) controller is based on the 'Perturb and Observe' technique. This MPPT system automatically varies the VDC reference signal of the inverter VDC regulator in order to obtain a DC voltage which will extract maximum power from the PV array.
* VDC Regulator: Determine the required Id (active current) reference for the current regulator.
* Current Regulator: Based on the current references Id and Iq (reactive current), the regulator determines the required reference voltages for the inverter. In our example, the Iq reference is set to zero.
* PLL & Measurements: Required for synchronization and voltage/current measurements.
* PWM Generator: Generate firing signals to the IGBTs based on the required reference voltages. In our example, the carrier frequency is set to 1980 Hz (33\*60).

### Utility Grid

The grid is modeled as a typical North American distribution grid. It included two 25-kV feeders, loads, grounding transformer and an equivalent 120-kV transmission system.

## Simulation

Run the simulation and observe the resulting signals on the various scopes.

The initial input irradiance to the PV array model is 1000 W/m2 and the operating temperature is 45 degrees C. When steady-state is reached (around t=0.15 sec.), we get a PV voltage (Vdc\_mean) of 481 V and the power extracted (Pdc\_mean) from the array is 236 kW. These values correspond very well to the expected values from the PV module manufacturer specifications.

At t=0.3 sec, sun irradiance is rapidly ramped down from 1000 W/m^2 to 200 W/m^2. Due to the MPPT operation, the control system reduces the VDC reference to 464 V in order to extract maximum power from the PV array (46 kW).

## Command

Example model name: power\_PVarray\_250kW

{% code lineNumbers="true" %}

```matlab
open('power_PVarray_250kW')
```

{% 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/renewables/250-kw-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.
