> 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/detailed-model-of-a-100-kw-grid-connected-pv-array.md).

# Detailed Model of a 100 kW Grid Connected PV Array

This example shows a detailed model of a 100-kW array connected to a 25-kV grid via a DC-DC boost converter and a three-phase three-level VSC.

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

## Description

A 100-kW PV array is connected to a 25-kV grid via a DC-DC boost converter and a three-phase three-level Voltage Source Converter (VSC). Maximum Power Point Tracking (MPPT) is implemented in the boost converter by means of a Simulink® model using the 'Incremental Conductance + Integral Regulator' technique.

Another example (see PVArrayGridAverageModel model) uses average models for the DC\_DC and VSC converters. In this average model the MPPT controller is based on the 'Perturb and Observe' technique.

The detailed model contains the following components:

* **PV array** delivering a maximum of 100 kW at 1000 W/m^2 sun irradiance.
* **5-kHz DC-DC boost converter** increasing voltage from PV natural voltage (273 V DC at maximum power) to 500 V DC. Switching duty cycle is optimized by a MPPT controller that uses the 'Incremental Conductance + Integral Regulator' technique. This MPPT system automatically varies the duty cycle in order to generate the required voltage to extract maximum power.
* **1980-Hz 3-level 3-phase VSC**. The VSC converts the 500 V DC link voltage to 260 V AC and keeps unity power factor. The VSC control system uses two control loops: an external control loop which regulates DC link voltage to +/- 250 V and an internal control loop which regulates Id and Iq grid currents (active and reactive current components). Id current reference is the output of the DC voltage external controller. Iq current reference is set to zero in order to maintain unity power factor. Vd and Vq voltage outputs of the current controller are converted to three modulating signals Uabc\_ref used by the PWM Generator. The control system uses a sample time of 100 microseconds for voltage and current controllers as well as for the PLL synchronization unit. Pulse generators of Boost and VSC converters use a fast sample time of 1 microsecond in order to get an appropriate resolution of PWM waveforms.
* **10-kvar capacitor bank** filtering harmonics produced by VSC.
* **100-kVA 260V/25kV three-phase coupling transformer**.
* **Utility grid** (25-kV distribution feeder + 120 kV equivalent transmission system).

The 100-kW PV array uses 330 SunPower modules (SPR-305E-WHT-D). The array consists of 66 strings of 5 series-connected modules connected in parallel (66*5*305.2 W= 100.7 kW).

The 'Module' parameter of the PV Array block allows you to choose among various array types of the NERL System Advisor Model (<https://sam.nlr.gov/> ).

The manufacturer specifications for one module are:

* Number of series-connected cells: 96
* Open-circuit voltage: Voc= 64.2 V
* Short-circuit current: Isc = 5.96 A
* Voltage and current at maximum power: Vmp =54.7 V, Imp= 5.58 A

The PV array block menu allows you to plot the I-V and P-V characteristics for one module and for the whole array.

The PV array block has two inputs that allow you varying sun irradiance (input 1 in W/m^2) and temperature (input 2 in degrees C). The irradiance and temperature profiles are defined by a Signal Editor block which is connected to the PV array inputs.

## Simulation

Run the model and observe the following sequence of events on Scopes.

Simulation starts with standard test conditions (25 degrees C, 1000 W/m^2).

From t=0 sec to t= 0.05 sec, pulses to Boost and VSC converters are blocked. PV voltage corresponds to open-circuit voltage (Nser*Voc=5*64.2=321 V, see Vmean trace on PV scope). The three-level bridge operates as a diode rectifier and DC link capacitors are charged above 500 V (see Vmean trace on VSC scope).

At t=0.05 sec, Boost and VSC converters are de-blocked. DC link voltage is regulated at Vdc=500V. Duty cycle of boost converter is fixed (D= 0.5 as shown on PV scope).

Steady state is reached at t=0.25 sec. Resulting PV voltage is therefore V\_PV = (1-D)\*Vdc= (1-0.5)\*500=250 V (see Vmean trace on PV scope). The PV array output power is 96 kW (see Pmean trace on PV scope) whereas specified maximum power with a 1000 W/m^2 irradiance is 100.7 kW. Observe on Scope Grid that phase A voltage and current at 25 kV bus are in phase (unity power factor). At t=0.4 sec MPPT is enabled. The MPPT regulator starts regulating PV voltage by varying duty cycle in order to extract maximum power. Maximum power (100.4 kW) is obtained when duty cycle is D=0.454.

At t=0.6 sec, PV array mean voltage =274 V as expected from PV module specifications (Nser*Vmp=5*54.7= 273.5 V).

From t=0.6 sec to t=1.1 sec, sun irradiance is ramped down from 1000 W/m^2 to 250 W/m^2. MPPT continues tracking maximum power.

At t=1.2 sec when irradiance has decreased to 250 W/m^2, duty cycle is D=0.461. Corresponding PV voltage and power are Vmean= 268 V and Pmean=24.3 kW. Note that the MMPT continues tracking maximum power during this fast irradiance change.

From t=1.2 sec to t=2.5 sec sun irradiance is restored back to 1000 W/m^2 and then temperature is increased to 50 degrees C. in order to observe impact of temperature increase. Note that when temperature increases from 25 degrees C to 50 degrees C, the array output power decreases from 100.7 kW to 93 kW.

## Command

Example model name: power\_PVarray\_grid\_det

{% code lineNumbers="true" %}

```matlab
open('power_PVarray_grid_det')
```

{% endcode %}

## References

For details on various MPPT techniques, refer to the following paper:

Moacyr A. G. de Brito, Leonardo P. Sampaio, Luigi G. Jr., Guilherme A. e Melo, Carlos A. Canesin "Comparative Analysis of MPPT Techniques for PV Applications", 2011 International Conference on Clean Electrical Power (ICCEP).

The module characteristics were extracted from NREL System Advisor Model (<https://sam.nrel.gov/> ).


---

# 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/detailed-model-of-a-100-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.
