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

# 400 kW Grid Connected PV Farm

This example shows an average model of a small PV farm (400 kW) connected to a 25-kV grid using two-stage converter.

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

## Description

The PV farm consists of four PV arrays delivering each a maximum of 100 kW at 1000 W/m2 sun irradiance. A single PV array block consist of 64 parallel strings where each string has 5 SunPower SPR-315E modules connected in series.

Each PV array is connected to a DC/DC converter (average model). The outputs of the boost converters are connected to a common DC bus of 500 V. Each boost is controlled by individual Maximum Power Point Trackers (MPPT). The MPPTs use the "Perturb and Observe" technique to vary the voltage across the terminals of the PV array in order get the maximum possible power.

A three-phase Voltage Source Converter (VSC) converts the 500 V DC to 260 V AC and keeps unity power factor. A 400-kVA 260V/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 120-kV equivalent transmission system.

In the average model the boost and VSC converters are represented by equivalent voltage sources generating the AC voltage averaged over one cycle of the switching frequency. Such a model does not represent harmonics, but the dynamics resulting from control system and power system interaction is preserved. This model allows using much larger time steps (50 us), resulting in a much faster simulation.

## Simulation

Start the simulation and see the resulting signals on the various scopes. This three-second simulation allows us to observe the operation of each individual PV Array system under varying irradiances.

## Command

Example model name: power\_4PVarray\_400kW

{% code lineNumbers="true" %}

```matlab
open('power_4PVarray_400kW')
```

{% 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/400-kw-grid-connected-pv-farm.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.
