# Solar Panel Parameterization Validation

This example shows how to model a solar panel by using data from a manufacturer datasheet. This example uses the datasheet data to generate current-voltage and power-voltage curves for the solar panel. The power-voltage curve helps you identifying the peak power for a given irradiance level and panel cell temperature. This peak power is then useful when designing an inverter.

### Solar Panel Subsystem

The Solar Panel subsystem models a solar panel that contains parallel-connected strings of series-connected solar cells. The solar cell strings are modeled by a single Solar Cell block from the Simscape™ Electrical™ library. The workspace variables Np_cell and Ns_cell define the number of parallel strings and the number of series-connected cells in each string, respectively.

Connecting multiple solar cell strings in parallel slows down the simulation because it increases the number of elements in a model. To avoid a reduction in performance, a controlled-current source scales up the current to the fulfill the demand of the requisite number of parallel paths. The current source is modeled by a Current-Controlled Current Source block from the Simscape™ Foundation Library.

The implicit assumptions are that:

• All of the solar cells are identical.

• Temperature and irradiance levels are the same for each cell.

### Simulation Results

This plot shows the current and power as a function of voltage for various irradiance and cell temperatures. The table shows the peak power values extracted from the plot. If the datasheet includes a similar plot, then you can use it to validate the correct parameterization of the Solar Cell block.

```Maximum power operating points PanelIrradiance CellTemperature MaximumCurrent MaximumVoltage MaximumPower _______________ _______________ ______________ ______________ ____________ 200 25 1.5067 27.11 40.847 500 25 3.7887 29.066 110.12 1000 25 7.6059 30.557 232.41 200 50 1.4954 23.88 35.712 500 50 3.7665 25.992 97.899 1000 50 7.5762 27.576 208.92 ```

### Results from Real-Time Simulation

This example has been tested on a Speedgoat Performance real-time target machine with an Intel® 3.5 GHz i7 multi-core CPU. This model can run in real time with a step size of 30 microseconds.