PV Modelling Coursework
PV Modelling Coursework
(USING MATLAB)
(ELEC5564 – COURSEWORK)
WRITTEN BY
SUBMITTED TO
Dr. Li ZHANG
26 October 2010
AIMS AND OBJECTIVES
To understand and describe the methods and/or algorithms that are commonly used to
build the model of a PV power module
To simulate the I-V characteristics and P-V characteristics of a PV module with specified
parameters
To analyze the behaviour of the PV power module system under different atmospheric
conditions
2
PRINCIPLES OF OPERATION OF A PHOTOVOLTAIC POWER MODULE
The photovoltaic (PV) module converts solar radiation to electrical energy directly, without any
processes in between by exploiting the advantage of the electrical properties of doped
semiconductors p-n junction devices which can be triggered by light.
The dissipation of power in the load and all associated resistances in the PV module.
Since the conversion to electrical energy involves no moving parts, the PV module is advantageous
as very little maintenance is required. Also, the semiconductor materials are very abundant in nature
and renewable sources (especially silicon) and produce no known harmful waste products. In spite of
all the outlined advantages the most significant disadvantage is the typical module efficiency of up to
15% for commercial crystalline silicon PV modules (although up to 25% efficiency has been recorded
in the laboratory)1 which can be attributed to semiconductor materials and varying environmental
conditions.
A PV module usually consists of individual solar cells electrically connected (in parallel to increase
the current and/or series to increase voltage) to increase their effective power output, since a single
solar cell has a voltage output between 0.5V and 0.7V which is relatively low for power applications.
The electrical operation of a PV cell can be estimated by the equivalent circuit shown in figure 1.
1
http://www.iea-pvps.org/pv/materials.htm
3
The equations for the operation of the equivalent circuit model shown in figure 1 can be derived as
shown below:
q ( V + I RS ) q ( V + I RS ) q ( V + I RS )
I D =I S (exp
[ Ak T C ] −1)I D =I S (exp
IS – Reverse Saturation Current (A)
[ Ak T C ]
−1)I D =I S (exp
Ak T C
k – Boltzmann’s constant (J/K)
[ −1)
]
-------------------------------------------------
V – Output Voltage (V) 1 A – Junction Perfection Factor
q – Charge of one electron (Coulombs) T C – Cell Temperature (K)
This is a factor of the intrinsic charge carrier concentration of the semiconductor and it is directly
proportionate to temperature. This current can be described by the following equation;
TC 3 q Eg 1 1
I S=I ¿
( ) { [
TR
exp −
kA T R T C ]} ------------------------------------------------- 2
This is the current measured at V=0 and it is dependent on the irradiance and cell temperature as
shown in the equation below;
I SC ={ I SCR +k i ( T C −T R ) } G ---------------------------------------------------- 3
Therefore, the current, I (I = ISC – ID – ISh) for a single PV cell can be expressed as;
q (V + I R S) (V + I R S)
( [
I =I SC −I S exp
Ak T C ] )
−1 −
RP
---------------------------------------4
For a PV array with np cells in parallel and ns cells in series, equation 4 is derived to be a non-linear
and implicit equation (equation 5).
4
( Vn + I R ) −1 − ( Vn )
( R
)
I 1+ sT =nP I SC −n P I S exp
R sHT ([ q
S
Ak T C
sT
]) S
RsHT
---------------5
nP nS
R sHT =
× R P (total shunt resistance); R sT = × R S(total series resistance)
n S OF SOLVING NON-LINEAR EQUATION
METHOD nP
The mathematical representation of the PV array derived in equation 5 can be re-arranged to give;
V V
(
f ( I )=I 1+
R sT
R sHT )
−n P I SC −nP I S exp ([ q ( nS
+ I R sT
Ak T C ])
) −1 − ( )nS
R sHT
---------------6
The above is a non-linear, implicit equation which has to be solved numerically using a root-finding
algorithm by equating f(I) to zero i.e. f(I) = 0. The root-finding algorithm used for this exercise is the
Newton-Raphson method for solving numerical equation.
This principle is based on an initial guess of the root of f(I) = 0 at I i, then a better guess is given at Ii+1
defined as;
where f’(I) is the gradient of the
f (I ) function f(I) at the point I
I =I −
i+1
f '(I )
The relative approximate error, Er is calculated and compared to the pre-defined error tolerance, E a
(expressed as a percentage of the desired root) and the iterative process of finding the root
satisfying f(I) = 0 is ONLY stopped when the Er = Ea.
I i +1−I i
Er =
|( )|
I i +1
∗100 (In, f(In))
In percentage
In+1 In
tangent
5
PROGRAM LISTING FOR THE SIMULATION OF A PV MODULE
FLOWCHART
Start
Set V=0
Initialize I as Isc
While
I>0
Yes
if Yes
abs(Inew)>Ea I=Inew
No
Iresult=Inew
Vresult=V
if Yes
Iresult==0
No
Increment V
and
iteration count
Stop
6
MATLAB CODE
%To request user input for the ambient temperature and the irradiance level
G = input ('Enter Irradiance (G) in KW/m2: ');
Ta = input ('Enter ambient temperature (Ta) in degree Celsius (oC): ');
7
%The function f(I), its derivative f'(I) and the relative
approximate error are defined here
fI=(I*(1+(RsT/RshT)))-(Isc*Np)+((Is*Np)*(exp(Kd*((V/Ns)+(I*RsT)))-
1))+((V/Ns)/RshT);
fprimeI=(1+(RsT/RshT)+((Is*Np)*(Kd*RsT)*exp(Kd*(V/Ns)+(I*RsT))));
Inew=I-(fI/fprimeI);
Er=((Inew-I)/Inew)*100;
I=Inew;
if (I<0) %This helps to avoid calculating negative values
of I and P
I=0;
break;
end;
if (Ni==200000) %This is the limit on the number of iterations
possible
break;
end;
end; %This marks the end of the Newton-Raphson iteration loop
(second/inner loop)
%This segment plots the graph for the P-V and I-V curves
figure(1), plot(Vpv,Ipv);
grid on;
title('I-V Characteristics of a PV array');
xlabel('V - Voltage in Volts');
ylabel('I - Current in Amperes');
figure(2), plot(Vpv,Ipv.*Vpv);
grid on;
title('P-V Characteristics of a PV array');
xlabel('V - Voltage in Volts');
ylabel('P - Power in Watts');
8
RESULTS AND DISCUSSION
G = 1KW/m2 - Irradiance
AM = 1.5 - Spectral distribution
TC = 25oC - Cell temperature
Thus, the I-V and PV characteristics of the simulated PV module with the given specifications under
standard conditions is shown below with the short-circuit current (I SC), open-circuit voltage (VOC),
maximum power point (MPP), voltage at maximum power point (V MPP) and current at maximum
power point (IMPP).
5
80
I - Current in Amperes
P - Power in Watts
60
40
2
20
1
X: 21.76
Y: 0
0 0
0 5 10 15 20 25 0 5 10 15 20 25
V - Voltage in Volts V - Voltage in Volts
To show the effect of temperature, three plots at G=0.8KW/m 2, Ta=16oC, 36oC and 56oC is simulated.
The effect of increasing the temperature is seen by comparing the values from figure 4, 5 and 6 as;
9
The maximum power point (MPP) significantly decreases (as power is the product of voltage
and current) as the current change is insignificant compared to the voltage change.
80
5
70
4 60
I - Current in Amperes
P - Power in Watts
50
3
40
2 30
20
1
10
0 0
0 5 10 15 20 25 0 5 10 15 20 25
V - Voltage in Volts V - Voltage in Volts
70
5
60
4
I - Current in Amperes
50
P - Power in Watts
3 40
30
2
20
1
10
0 0
0 5 10 15 20 25 0 5 10 15 20 25
V - Voltage in Volts V - Voltage in Volts
10
I-V Characteristics of a PV array P-V Characteristics of a PV array
6 70
60
5
50
4
I - Current in Amperes
P - Power in Watts
40
30
2
20
1
10
0 0
0 5 10 15 20 0 5 10 15 20
V - Voltage in Volts V - Voltage in Volts
To show the effect of irradiance, three plots at G=1KW/m 2, 0.8KW/m2, 0.5KW/m2 and Ta=30oC is
simulated.
45
3
40
2.5 35
I - Current in Amperes
30
P - Power in Watts
25
1.5
20
15
1
10
0.5
5
0 0
0 5 10 15 20 25 0 5 10 15 20 25
V - Voltage in Volts V - Voltage in Volts
70
5
60
4
I - Current in Amperes
50
P - Power in Watts
3 40
30
2
20
1
10
0 0
0 5 10 15 20 25 0 5 10 15 20 25
V - Voltage in Volts V - Voltage in Volts
6
100
5
80
I - Current in Amperes
P - Power in Watts
60
40
2
20
1
0 0
0 5 10 15 20 25 0 5 10 15 20 25
V - Voltage in Volts V - Voltage in Volts
The effect of increasing the irradiance is seen by comparing the values from figure 7, 8 and 9 as;
There is a slight increase in the open-circuit voltage (V OC) and thus the voltage.
12
The short-circuit current (ISC) (thus the current) increases significantly according to the
equation
I SC =I SC at 1
( kwm )× G ( kwm )
2 2
The maximum power point (MPP) significantly increases (as power is the product of voltage
and current).
13
CONCLUSION
The method deployed in solving the mathematical model of the PV module is the Newton-Raphson
approximation algorithm which finds the root(s) of the non-linear, implicit function generated by the
mathematical model of the PV module. The Newton-Raphson approximation algorithm was used
because it has one of the fastest convergence rates to the root and the function to be iteratively
solved has one minimum root. Although, it also has obvious disadvantages stated as follows;
The initial guess has to be close enough to the root of the equation else the solution may not
converge or may produce invalid results.
The function and the derivative of the function have to be evaluated which might be quite
time-consuming for larger systems.
The error tolerance and the voltage increment determine the accuracy of results but the
compromise is at the expense of program execution time. The smaller the error tolerance and the
voltage increment, the greater the program execution time. For application in the tracking of
maximum power point, systems with faster response are employed to cope with rapidly changing
environmental conditions thus lower program execution time is desirable. The program above uses
error tolerance of 0.05% (0.0005) and voltage increment of 0.001 with an approximate program
execution time of 2.086 seconds.
The modelled system with the given parameters produces maximum power of 103.5Watts under
standard conditions of irradiance 1KW/m2, spectral air mass AM 1.5 and cell temperature 25 ℃ .
Also, increasing irradiance at constant ambient temperature increases the maximum power output
of the PV module while increasing the ambient temperature at constant irradiance decreases the
maximum power output of the PV module. Therefore, it is most desirable to operate PV modules at
high irradiance with the ambient temperature at the lowest value.
14