You are on page 1of 5

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/261384624

MATLAB Modeling and Simulation of Photovoltaic Modules

Conference Paper  in  Midwest Symposium on Circuits and Systems · May 2012


DOI: 10.1109/MWSCAS.2012.6292138

CITATIONS READS
26 1,019

4 authors, including:

Soliman A. Mahmoud Maitham Alsari


University of Sharjah Ministry of Education, Bahrain
224 PUBLICATIONS   2,275 CITATIONS    2 PUBLICATIONS   27 CITATIONS   

SEE PROFILE SEE PROFILE

Some of the authors of this publication are also working on these related projects:

EEG Detection System View project

Design of CMOS field programmable analog arrays and its applications View project

All content following this page was uploaded by Soliman A. Mahmoud on 13 September 2015.

The user has requested enhancement of the downloaded file.


MATLAB Modeling and Simulation of Photovoltaic
Modules
Soliman A. Mahmoud, Mejd M. Alsari, Esra
I. Reda, and Ruqiya M. Alhammadi
Electrical and Computer Engineering Department
University of Sharjah
Sharjah, UAE
Email: {solimanm, U00010850, 20620300,
20720464} @sharjah.ac.ae

Abstract—In this paper a modeling method is investigated that desired PV model. Different techniques have been developed
finds the non-linear equation parameters of a photovoltaic (PV) in the literature regarding this issue. One particular method
module in order to obtain the desired PV model using any finds the non-linear equation parameters by adjusting the I-V
circuit simulator. This modeling method adjusts the I-V curve at curve at three remarkable points: the open circuit voltage, the
three remarkable points: the open circuit voltage, the short
short circuit current, and the maximum power point [1].
circuit current, and the maximum power point [1]. Three
models are realized using this technique namely, the single-diode Further, it is critical to consider the non-idealities of a solar
model, the two-diode model, and the three-diode model. The cell by extending the modeling and simulation to three
evaluation study of the accuracy of these three models showed models namely, the single-diode model, the two-diode model,
relative errors ranging from 32% to 50%. Further, this and the three-diode model. The developed models will be
technique is improved by adjusting the I-V curve at more than suitable to simulate several homogenous or/and
three points depending on the number of unknowns to be found heterogeneous PV cells or PV panels.
for each model, which showed a reduction in the relative error This paper is organized as follows: Sec. 2 discusses the
ranging from 0.37% to 38%. Finally, a study of the parameters modeling of the PV module using three different models: the
obtained from the modeling algorithm on the performance of
single-diode model, the two-diode model, and the three-diode
the proposed single-diode model is presented.
model. Sec. 3 proposes an improvement of the modeling
I. INTRODUCTION discussed in Sec. 2. The results of both modeling algorithms
are discussed in Sec. 4. Sec. 5 studies the effect of the
The increasing demand for electrical power has created many variations of the PV module parameters on the overall
challenges for the energy industry, which can play a vital role performance of the model. Finally, the paper is concluded in
in the quality of the generated power in both short and long Sec. 6.
terms. The limited supply of fossil fuels had grabbed the
international community attention towards the importance of
renewable energy. Transforming the sun’s potential into II. MODELING THE PV MODULE
clean non-polluted, efficient energy has become an A. The Single-Diode Model
alternative of many power sources creating a revolution in the The I-V characteristics of the single-diode model of a solar
energy industry. The direct conversion of sunlight into cell shown in fig. 1 can be represented by Eq. 1 [1].
electricity can be done using PV systems. Lately, many
researchers have investigated this topic showing how
promising this field might be. Learning the basics of the PV
system is stepping stone to carry out a PV model [2]-[3]. 1 – (1)
Manufacturers of PV modules provide only a few
experimental data regarding the electrical and thermal Where (2)
characteristics of these modules. These parameters, which are
obtained under nominal conditions of temperature and solar The I-V curve that represents eq. 1 is shown in fig. 2 in which
irradiation, are not enough to build an accurate PV circuit three significant points are highlighted: the open circuit
model with any circuit simulator using basic math blocks [1]. voltage (Voc), the short circuit current (Isc), and the maximum
Therefore, a modeling method should be investigated that power point (MPP).
would find the rest of these parameters in order to obtain the

978-1-4673-2527-1/12/$31.00 ©2012 IEEE 786


, exp 1
, (7)

/ exp
V (8)
,

Rs and Rsh can be obtained using an iterative method that


Figure 1. The single-diode model of a solar cell assumes an initial value of Rs, namely, zero, and
incrementing it until the maximum power of the model
matches the experimental maximum power. The initial value
of Rsh is given in eq. 9 [1].

,
,
,
(9)

As for the fifth and last parameter, the diode ideality factor
(n), a set of n values have been assumed ranging from 1 to 2
with an increment of 0.1. This represents the usual
assumption for n [1].
The developed model can be further improved taking into
consideration the effect of Rs and Rsh on the light current as
Figure 2. The I-V curve adjusted to three remarkable points shown in eq. 10 [1]. This shows a significant reliance where
the light current has a different value from the short circuit
current.
In practical PV cells the generated light current depends upon
the solar radiation and the temperature according to eq. 3 [1].
, , (10)
. ∆ (3)
The I-V curve can be obtained using Newton-Raphson
where ∆ (4) method for solving non-linear systems by numerically solving
g(V,I) = I-f(V,I)=0 for a set of V values obtaining the
The second parameter in the I-V equation is the diode corresponding set of I values. The modeling algorithm
saturation current that is represented by eq. 5. For computes these five unknowns using equations (1)-(10) for
simplification purposes eq. 5 can be improved to eq. 6 [1] the sake of adjusting the I-V curve to the three remarkable
showing the dependence of the saturation current on the points [1]. The simulation was based on several values of n
temperature in a different manner. This alteration aims to for each module comparing the absolute error |I,m-I,e| for the
match the open circuit voltage of the model with the available purpose of matching the calculated current with the
parameters in the datasheet, namely, KI and KV, for a wide experimental value. The objective of this method, to fit the I-
range of temperatures. V equation to the three distinct points, was successfully
achieved.

(5)
, exp B. The Two-diode and Three-Diode Models
The generalized model of a non-ideal solar cell comprises
, ∆ (6) of two diodes as shown in fig. 3 and can be represented by Eq.
, ∆
,
11 [4].

The third and fourth parameters to be considered are the


series and parallel resistances. The modeling method used
here chooses only one pair (Rs,Rsh) that makes the peak
output power available in the datasheet equal to the peak
V
output power of the proposed model. The relationship
between Rs and Rsh can be obtained by setting Pmax,e = Pmax,m
as shown in eq. 7 [1]. The resultant relationship is expressed
in eq. 8 [1] that shows a great dependence between the two
resistances. Figure 3. The two-diode model of a solar cell

787
algorithm. This evaluation aims at improving the accuracy of
the obtained results [5].
1

1 – 11 (12)

0 (13)

The second diode describes the "non-ideality" of the real p-n (14)
junction due to the recombination that occurs at the depletion
region. The modeling procedure applied here is similar to that (15)
for the single-diode model. In addition, the saturation current
of the second diode is set to be equal to the saturation current (16)
of the first diode [4]. As for the diode ideality factor (n),
according to the Shockley’s diffusion theory, the value of n1
must be unity. In addition, the value of n2 should be greater
than or equal to 1.2 (>=1.2) to obtain the best possible match IV. RESULTS
between the proposed model and the experimental model as The modeling algorithm for the three proposed models
extensive simulations showed [4]. It is critical to take into was applied to the MSX60 PV module. The error curves of the
consideration the non-idealities of a solar cell by means of three models based on the three remarkable points are shown
modeling and simulation. Therefore, this analysis can be in fig. 5. Fig. 6 shows the error curves of the three improved
further extended by studying the three-diode model taking into models. It can be noticed that the least error can be obtained
consideration the effect of the leakage current. The equivalent from the single-diode model. The corresponding five-point
circuit of this model is shown in fig. 4 and the same procedure adjusted I–V curve is shown in fig. 7 for the obtained
was applied for modeling. parameters listed in table 1.

Figure 4. The three-diode model of a solar cell

III. ACCURACY IMPROVEMENT OF THE PROPOSED MODELS Figure 5. The error curves of the 3-point adjusted models
The accuracy of the proposed models is evaluated by
comparing the experimental data of any PV module with the
measured data obtained from the modeling algorithm. The
accuracy can be further improved by finding the unknown
parameters that are not available in the typical PV datasheets
using more than three points from the I-V curve instead of
only the three remarkable points depending on the number of
unknowns for each model. For the single-diode model, five
points are needed to find the unknown parameters. For the
two-diode model, seven points are extracted; and for the three-
diode model, nine points are required. The additional points in
each model were selected according to where a large error Figure 6. The error curves of the 5-point adjusted models
occurs. The improvement process works as follows: the main
five points in the I-V curve are extracted. Then, these points
are used as input parameters for the five nonlinear equations
12, 13, 14, 15, 16 that are solved using the quasi-Newton
method in the nominal condition. Finally, the five unknown
parameters are determined and used in the modeling

788
Figure 9. The I-V curve for different shunt resistance values
Figure 7. The I-V curve of the 5-point adjusted
single-diode model

TABLE 1

OBTAINED PARAMETERS FROM THE SINGLE-DIODE MODEL

Parameter Measured Value

IL [A] 3.799962
Io [A] 3.7278e-007
Rs [ohm] 0.194933
Figure 10. The I-V curve for different saturation current values
Rsh [ohm] 27067.846214
n 1.4138 II. CONCLUSION
This paper proposed a modeling algorithm that depends upon
three remarkable points (Voc, Isc, and MPP). This algorithm
I. PARAMETERS EFFECT ON PV MODULE PERFORMANCE
was applied to develop three models namely, the single-diode
Variations in the parameters obtained from the modeling model, the two-diode model, and the three-diode model. The
algorithm for any PV module affects the performance of the accuracy of these models were improved taking into account
module. These variations might occur after a long period of the number of unknowns in each model using more than three
time from its manufacturing. The effect of each parameter can points from the I-V curve. We concluded that the most
be studied for variations ranging from 20% to 30%. The accurate results are obtained using the single-diode model
parameters to be studied are the series resistance, the shunt with a relative error of 0.37% compared to the other two
resistance, and the saturation current that are obtained from
models. Moreover, any alteration on the PV parameters
the modeling algorithm of the single-diode model. Fig. 8
slightly affects the overall performance depending on our
shows the effect of changing the series resistance on the I-V
curve of the proposed model. It can be seen that as the value choice of variation.
of Rs changes the I-V curve is no longer adjusted to the three
remarkable points. The same analysis can be done for the REFERENCES
remaining two parameters as shown in fig. 9, and fig. 10.
[1] M. G. Villalva, J. R. Gazoli, and E. R. Filho, “Comprehensive
Approach to Modeling and Simulations of Photovoltaic Arrays” IEEE
Trans. Power Electron vol. 24, NO. 5, May 2009.
[2] L. Castan˜er and S. Silvestre, Modelling Photovoltaic Systems using
PSpice. Chichester, U.K.: John Wiley & Sons, 2002.
[3] A. Geotzberger, J. Knobloch, and B. Voss, Crystalline Silicon Solar
Cells. Chichester, U.K.: John Wiley & Sons, 1998.
[4] K. Ishaque, Z. Salam, and H. Taheri, "Accurate MATLAB Simulink
PV System Simulator Based on a Two-Diode Model" Journal of Power
Electronics, vol. 11, NO. 2, March 2011.
[5] M. Taherbaneh, G. Farahani, and K. Rahmani "Evaluation the
Accuracy of One-Diode and Two-Diode Models for a Solar Panel
Based Open-Air Climate Measurements" Solar Cells-Silicon Wafer-
Based Technologies. Craotia: InTech, November 2011.
Figure 8. The I-V curve for different series resistance values

789

View publication stats

You might also like