181015_MBD_TU2_Solar_PA_Guidelines 181015 MBD TU2 Solar Cell Guide

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 7

Download181015_MBD_TU2_Solar_PA_Guidelines 181015 MBD TU2 Solar Cell Guide
Open PDF In BrowserView PDF
ENGINEERING

ECE MBD: Training Unit 2
Solar Cell Modelling
During these exercises you will be trained how to implement equations within Simulink, how to run and treat
different experiments as well as how to display the outcome of those experiments.
Check list: After these exercises, you should be capable to convert and implement equations in Simulink-like
blocks, to prepare scripts for post processing and to handle algebraic loops.

Preparation
As a preparation for this Training Unit (TU), please read the presentation and the lecture notes available
at the e-learning platform (Moodle).

Laboratory work
In this TU, a solar cell model will be implemented within the Simulink environment.
Description of solar cell model
A solar cell is a large semiconductor area with similar electrical properties to a diode, such as the photovoltaic
effect. This effect allows creating an electrical current from semiconductor material exposed to light, if the circuit
is closed by means of an electrical load. For obtaining a higher voltage/current the cells can be connected in series
or/and parallel to form a solar panel.
An ideal solar cell can be modelled by a current source connected in parallel with a diode (D). The current source
provides a current Iph (photo) directly proportional to the irradiance G. However, in a real solar cell some losses
are present. First, voltage losses occur at the boundary and at external contacts and second, leakage currents are
present throughout the cell. Voltage losses can be represented with a series resistance Rs (series) and leakage
currents with a parallel resistance Rsh (shunt). The resulting equivalent circuit of a solar cell is shown in Figure 1.

Figure 1: Equivalent Circuit/Model of Solar Cell

A. Steinhuber

WS2018

1

ENGINEERING

The solar cell is described by the following equations, according to the representation above.

I = I ph − I D − I sh

(1)

I:

output current (A)

Iph :

photo generated current (A)

ID :

diode current (A)

Ish :

shunt current (A)

The currents within equation (1) are obtained by means of the following formulas:

I ph

G
= J sc ⋅ A ⋅
Gn

Jsc : short circuit current density (A/cm2)
G:

(2)

actual irradiance (W/m2)

Gn : nominal irradiance (1000 W/m2 )
A:
I0 :

cell area (cm2)
reverse saturation current (A)

VT :

thermal voltage (25.85 mV at 300 K)

Note: For simplicity, temperature effect

V:

voltage at the solar cell (V)

influence is not considered. Therefore constant

m:

diode ideal factor (1 for an ideal diode)

Rs :

series resistance (Ohm)

Rsh :

parallel shunt resistance (Ohm)

 V m+ ⋅IV⋅RS

T

I D = I0 ⋅ e
− 1





(3)

nominal temperature is assumed at 300 K.

I sh =

V + I ⋅ Rs
Rsh

(4)

The above represented equations are completely describing the solar cell to be developed within this TU. For the
implementation it will be required to modify and adapt the equations in a way to get them to an input/output
relation. [3][4]
Consider the following Steps

1. Model development
Based on the equations for the solar-cell, build the model within the Simulink environment [1] [2]. For the
implementation you will require standard blocks like: the gain, multiplications, divide, exponential, constants,
and sum. Select a suiting solver as learned within the previous lecture and lab.

A. Steinhuber

WS2018

2

ENGINEERING

1.1. Parameters
a)

Allocate the following variables at the workspace, using a parameter file (script)

b)

Use a structure as done for PED (p.SolarCell.Rs)

c)

Create a “.mat” file from the actual parameters

d)

What are the reasons for storing the data within a “.mat” instead of an “.m” explain the difference?

Rs = 1e-6 Ohm
Rsh = 1000 Ohm

A = 126.6 cm2
Jsc = 0.0343 A/cm²

I0 = 2.8e-9 A
Gn= 1000W/m²

Vt = 25.85e-3 V
m=1

1.2. Interfaces
Consider that the solar cell will be connected to a battery
a)
Which signals (interfaces) do you consider as
Input
Output
b)

Explain your decision?

1.3. Model design
a)

Create a subsystem containing your model of the solar cell

b)

Define constant values for irradiance and voltage and simulate your model. Check the messages in
the Diagnostic Viewer, is everything fine?
If Yes, everything is fine
If Not, report the warning and how it could be solved?

Check list: After this exercise you should be capable to convert and implement equations in Simulink

2. Model testing
In order to check if your model is correctly implemented consider the following steps, set the irradiance to
1000W/m².
2.1. Short circuit:
a)

Which voltage has to be applied to the solar cell?

b)

Which current value the solar cell is providing, what does this current stand for?
Choose a further value for irradiance and report your result

2.2. Open circuit:
a)

Which voltage has to be applied to the solar cell?

b)

What happens if the voltage is raised further?

c)

Which current value the solar cell is providing?
Choose a further value for irradiance and report your result

A. Steinhuber

WS2018

3

ENGINEERING

2.3. Storing of simulation results
a)

Configure the model for data logging and select the signals of interest

b)

Start the simulation and analyze the newly gathered data structure

Figure 1: Signal logging

e.g.: Res_SolarCell.get('G').Values.Data
2.4. Characteristic curves of the solar cell:
Replace the constant input voltage by a variable load resistor (Consider Ohm’s law). Cover the
whole operating range of the solar cell.
a)

Prepare the graphs for following signals via a script
•

Cell current [A]

•

Voltage at cell [V]

•

Load resistance [Ohm]

•

Power of cell [W]

Use a subplot with four separate plots, consider also labeling and explain your observations

3. Irradiance effect on solar cell performance
Prepare the characteristic curves of the solar cell by preparing an m-script
3.1. Test configuration
a)

Set the temperature to 25°C.

b)

Vary the value of irradiance G=400, 600, 800, 1000, 1200 [W/m²]

c)

In order to make an automate process you can use the “sim” command for running the different
simulations.

d)

Store the gathered data within different variables after each run

3.2. Results plotting
a)

Current over voltage (XY)

b)

Power over voltage (XY)

A. Steinhuber

WS2018

4

ENGINEERING

c)

Plot the results of the different runs within a single plot for comparison reasons

3.3. Maximum power point
Identify the MPPT for each curve via command

b)

Integrate the MPPT value to your figure

Power (W)

Current (A)

a)

Figure 2: Example result

4. Lookup table creation:
Based on the previously created model prepare a lookup table, which could be used instead of the detailed
model. A lookup table block uses an array of data to map input values to output values, approximating a
mathematical function. Given input values, Simulink® performs a “lookup” operation to retrieve the
corresponding output values from the table. If the lookup table does not define the input values, the block
estimates the output values based on nearby table values [5]. The following table and graph illustrate the
input/output relationship:

Figure 3: Lookup Table Example [5]
a) Prepare a new model containing the lookup version
b) Consider the Voltage as the input for the table, and the current as the output
Explain the process for gathering the look up table

c) Prepare a script for comparing the required simulation time of the models developed (using the
equations versus the lookup table)
What difference you observe?

A. Steinhuber

WS2018

5

ENGINEERING

d) What are possible reasons for making a look up table?
e) In case a dynamic system based on ODEs shall be converted which restrictions occur?

5. Temperature Effect on PV Performance:
5.1. Update the Model
a)

In order to demonstrate the influence of the cell temperature on the cell voltage, include the
equation of the thermal voltage to your system.
=

∗

(5)

k : Boltzmann constant (J/K)
T : Temperature (K)

k = 1.38064852*10^-23
5.2. Test Configuration

q : electron charge (C)
q = 1.602176565*10^-19

a)

Repeat the test like in (3) with the irradiance set to 1000 [W/m²] (for all tests)

b)

Vary the temperature T=15, 20, 30, 40, 50 [°C]

5.3. Prepare the curves for
a)

Current over voltage (XY)

b)

Power over voltage (XY)

c)

Use the hold function for plotting the different curves within one figure.

5.4. Maximum power point
Identify the MPPT for each curve via command

b)

Integrate the MPPT value to your figure

Power (W)

Current (A)

a)

Figure 4: Example result

A. Steinhuber

WS2018

6

ENGINEERING

Check list: After this exercise you should be capable of manipulating the model and handling
results.

Additional references:
For particular information about solving of algebraic loops in MATLAB/Simulink, I strongly recommend to look at
the following links:
https://de.mathworks.com/help/simulink/ug/algebraic-loops.html

References
[1] Guzzella, L.; Sciarretta, A. “Vehicle Propulsion Systems: Introduction to Modeling and Optimization”, 3rd
Edition, Springer
[2] Chaturvedi. "Modeling and Simulation of System Using Matlab and Simulink", CRC Press
[3] E.M.G. Rodrigues, R. Melicio, V.M.F. Mendes and J.P.S Catalao, “Simulation of a Solar Cell considering SingleDiode Equivalent Circuit Model”; Source: http://www.icrepq.com/icrepq%2711/339-rodrigues.pdf
[4] IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 24, NO. 5, MAY 2009 Marcelo Gradella Villalva, Jonas
Rafael Gazoli, and Ernesto Ruppert Filho, “Comprehensive Approach to Modelling and Simulation of Photovoltaic
Arrays”; Source: http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=4806084
[5] Mathworks Block Description, “Matlab Simulink Help”

A. Steinhuber

WS2018

7



Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.4
Linearized                      : Yes
XMP Toolkit                     : Adobe XMP Core 5.6-c015 91.163280, 2018/06/22-11:31:03
Producer                        : GPL Ghostscript 9.07
Keywords                        : 
Modify Date                     : 2018:10:15 22:41:35+02:00
Create Date                     : 2018:10:15 07:32:11+02:00
Creator Tool                    : PDFCreator Version 1.7.1
Metadata Date                   : 2018:10:15 22:41:35+02:00
Document ID                     : uuid:431676e7-d297-11e8-0000-280c668db240
Instance ID                     : uuid:e9465b49-c084-4d74-9662-44cb2df1e426
Format                          : application/pdf
Title                           : 181015_MBD_TU2_Solar_PA_Guidelines
Creator                         : SteAl
Description                     : 
Description (x-repair)          : 
Page Count                      : 7
Author                          : SteAl
Subject                         : 
EXIF Metadata provided by EXIF.tools

Navigation menu