Main Content

Three-Phase Grid-Connected Solar Photovoltaic System

This example shows how to model a three-phase grid-connected solar photovoltaic (PV) system. This example supports design decisions about the number of panels and the connection topology required to deliver the target power. The model represents a grid-connected rooftop solar PV that is implemented without an intermediate DC-DC converter. To parameterize the model, the example uses information from a solar panel manufacturer datasheet. Solar power is injected into the grid with unity power factor (UPF).

To track the maximum power point (MPP), the example uses these maximum power point tracking (MPPT) techniques:

  • Incremental conductance

  • Perturbation and observation

Three inverter options are available:

  • Average

  • Two-level

  • Three-level

This example linearizes the system to generate an open-loop Bode plot from which phase and gain margin can be determined.

To open a script that provides information on the parameterization, features, and options in this example, at the MATLAB® command line, enter: edit 'GridConnectedPVData'

PV System Model

****          For the given solar panel, estimated boostless PV plant parameters           ****
*** Power rating input from the user = 35.00 kW 
*** Minimum number of panel required per string = 33 
*** Maximum number of panel connected per string without reaching maximum system voltage = 41 
*** Minimum power rating of the boost-less solar PV plant = 7.43 kW 
*** Maximum power possible per string without reaching maximum DC voltage = 9.23 kW 
*** Actual number of panel per string = 39 
*** Number of strings connected in parallel = 4 
*** Actual solar PV plant power = 35.12 kW

Solar Plant Subsystem

The solar plant subsystem models a solar plant that contains parallel-connected strings of solar panels. The solar panel is modeled using the Solar Cell block from the Simscape™ Electrical™ library. The number of series-connected solar panels in a string is estimated based on supply voltage, voltage drop across the line inductor, supply voltage fluctuation, open circuit voltage dependence on temperature and irradiance. The number of solar panel strings connected in parallel is estimated based on the plant power rating. Connecting multiple panels can slow the simulation because it increases the number of elements in a model. By assuming uniform irradiance and temperature across all the solar panels, the number of solar elements can be reduced by using the controlled current and voltage sources as shown in the solar panel subsystem. Parasitic capacitance of solar panel is modelled using two lumped capacitors connected in both the terminal of the solar plant.

Maximum Power Point Tracking (MPPT)

Two MPPT techniques are implemented. By using the variant variable 'MPPT', you can choose incremental conductance MPPT or perturbation and observation MPPT. For perturbation and observation, set the variable MPPT to zero and MPPT to one for incremental conductance. The voltage controller that tracks the maximum power point influences the current that is supplied to the grid.

Open Loop Bode Plot

Before linearizing the system, to disconnect the MPPT outer loop and break the current inner current loop, set the workspace variable 'closeLoop' to zero and use the average inverter model.

To use an average mode inverter, set the variant workspace variable 'powerCircuit' to zero.