> 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/distribution-pv-average-converter.md).

# Distribution Connected Photovoltaic Generation System with Average Converter

## Description

The **Photovoltaic Generation System** example, located in **File > Open an Example File > Renewable Energy**, demonstrates the control of a PV generation system (PVGS) connected to a 22.9 kV distribution feeder with active and reactive loads. The objective is to illustrate PV operation in maximum power point tracking (MPPT) and curtailment modes using average models of the converters.

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

## Requirements

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

## Detailed explanation

The PVGS has a nominal power of 750 kW and a 1050 V DC link. It includes a PV array, coupling inductor, step-up transformer, boost DC-DC converter, and inverter. The system connects to a simplified three-phase, 22.9 kV, 60 Hz distribution network. The internal topology of the PVGS is described in [Photovoltaic Generation System (PVGS) - Average](https://www.opal-rt.com/docs/hypersim/examples/renewable-energy/distribution-fuel-cell-average-converter/fuel-cell-generation-system-fcgs.md).

The PVGS connects to the point of common coupling (PCC) through a 22.9 kV/480 V, 0.9 MVA star–delta distribution transformer. The transformer secondary connects to the grid-side converter via a 250 µH choke filter. The switching frequency is 1640 Hz; with average inverters, the actual switching events are not simulated.

The PV array interfaces with the inverter through a boost DC-DC converter operating in two modes: (1) MPPT and (2) curtailment. In MPPT mode, a perturb-and-observe (P\&O) algorithm computes the duty cycle to extract maximum available power. In curtailment mode, the duty cycle follows an active power reference. The DC-DC converter is modeled as an average converter. The inverter regulates the DC link voltage and reactive power to their commanded values at the PCC.

Inside the block “Model\_Control,” set time delays and reference values as listed in the operating-point table. The maximum irradiance of the PV array is 1000 W/m<sup>2</sup>, which corresponds to maximum available PV power. Available power in pu is assumed proportional to irradiance: power (pu) = irradiance / maximum irradiance.

In both modes, the duty cycle is adjusted to achieve the desired active power. The DC link is maintained at 1050 V. The reactive power settling time depends on the reactive power regulator gains.

The reactive power limit is ±0.3 pu, and the system follows the PQ relationship:

$$
Q = \sqrt{1 - P^2}
$$

## Simulation and results

The PV system operates in MPPT or curtailment. Set the curtailment input to 1 to enable curtailment; set it to 0 for MPPT. When irradiance (in pu) is lower than the active power reference, the system operates in MPPT. When the active power reference is lower than the available solar power and curtailment is enabled, the system curtails to the reference. If the requested curtailment power reference exceeds the available PV power, the reference is ignored. The control sequence is summarized below. The model was tested with a 50 µs time step.

| Operating points | From  | To    | Curtailment | Pref (pu) | Qref (pu) | Irradiance (W/m<sup>2</sup>) | Temperature (°C) |
| ---------------- | ----- | ----- | ----------- | --------- | --------- | ---------------------------- | ---------------- |
| 1                | 0 s   | 2 s   | No          | 0.3       | 0         | 800                          | 25               |
| 2                | 2 s   | 2.5 s | No          | 0.3       | 0.3       | 800                          | 25               |
| 3                | 2.5 s | 4 s   | No          | 1         | 0.3       | 800                          | 25               |
| 4                | 4 s   | 5 s   | Yes         | 1         | 0.3       | 800                          | 25               |
| 5                | 5 s   | 6.5 s | Yes         | 0.5       | 0.3       | 800                          | 25               |
| 6                | 6.5 s | 7.5 s | Yes         | 0.8       | 0.3       | 800                          | 25               |
| 7                | 7.5 s | 8 s   | Yes         | 0.8       | 0         | 800                          | 25               |
| 8                | 8 s   | 10 s  | No          | 0.3       | 0         | 800                          | 25               |
| 9                | 10 s  | 15 s  | No          | 0.3       | -0.3      | 800                          | 25               |
| 10               | 15 s  | 18 s  | No          | 0.3       | -0.3      | 1000                         | 25               |
| 11               | 18 s  | 22 s  | No          | 0.3       | -0.3      | 1000                         | 35               |

The expected waveforms can be reproduced using the ScopeView template provided with the example. Between 5 s and 10 s, the duty cycle increases to curtail the output power to its reference. The same active power can also occur at a lower duty cycle because a typical PV array power–voltage curve yields two operating voltages for the same power. In that case, the duty cycle may decrease and then increase while the output power remains constant.

During operating points 1–3 (MPPT), the active power reference is ignored and the array delivers the maximum available power at 800 W/m<sup>2</sup>. At 4 s (operating point 4), curtailment is enabled but the demanded power exceeds available power, so the system remains in MPPT. At 5 s (operating point 5), the active power reference is 0.5 pu and the controller curtails the array power to meet the reference. At 6.5 s (operating point 6), the reference again exceeds available power, so the system returns to MPPT and raises active power. At 15 s (operating point 10), irradiance steps to 1000 W/m<sup>2</sup> and active power reaches 1 pu; at 18 s (operating point 11), temperature rises from 25°C to 35°C and the active power decreases due to temperature dependence.

The measured reactive power follows its reference (operating points 1, 2, and 5–9) except when the demanded or measured active power would violate system ratings. In those cases (operating points 3, 4, 10, and 11), reactive power is reduced to respect the limits.

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

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

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

## References

\[1] J. Rocabert, A. Luna, F. Blaabjerg and P. Rodríguez, "Control of Power Converters in AC Microgrids," in *IEEE Transactions on Power Electronics*, vol. 27, no. 11, pp. 4734-4749, Nov. 2012.doi: 10.1109/TPEL.2012.2199334

\[2] Gray, J.L, “The Physics of the Solar Cell”, in Handbook of Photovoltaic Science and Engineering, A. Luque, Hegedus, S., Editor. 2011, John Wiley and Sons.


---

# 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/distribution-pv-average-converter.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.
