Modeling of Solar Photovoltaic System Using MATLAB/Simulink: Md. Shohag Hossain, Naruttam K. Roy and Md. Osman Ali
Modeling of Solar Photovoltaic System Using MATLAB/Simulink: Md. Shohag Hossain, Naruttam K. Roy and Md. Osman Ali
III. BASIC SIMULINK MODEL OF PV CELL maximum power from the cell. Now, for findings Rs and R p
at STC
The fundamental equation of PV cell can be derived from Pmp , ref Vmp , ref + I mp , ref .Rs
the theory of Shockley diode equation and semiconductor I mp , ref = = I ph , ref − I 0, ref exp − 1 (9)
Vmp , ref a
theory [10]. The single diode Simulink model is given in Fig.
3. The fundamental equations [5] needed to design a PV cell Putting the value of I 0 and I ph,ref finally we get
are given below:
Vmp , ref + I mp , ref .Rs
Rp = (10)
Using KCL in Fig. 1 we get Pmp , ref
I PV = I Ph − I D − I P
I sc , ref − I sc , ref exp B + I sc , ref exp ( )−V
V0 c ,ref
a
(1) mp , ref
3
T −qΣG 1 1
I 0 = I 0, ref c exp − (8)
Tref A.K Tc Tref
Figure 16 Output Voltage vs. Time for series-parallel connection Figure 18 Voltage vs. Time after filtering
C. Effect of different Rs and Rp on a single PV cell current and voltage are shown in Fig. 17 & 18. In this study, a
single phase pulse width modulation (PWM) inverter has been
Figures 8 and 9 demonstrate the effect of variation of the series used. Harmonics are generated in inversion process.
resistance and parallel resistance on the output of solar cell. The Therefore, to reduce harmonics, a first order low pass filter
has been used. In Fig. 17 current is found 2.7A and in Fig. 18,
higher the value of the series resistance, the lower the output
the voltage is found 210V without any harmonics.
current as well as the maximum power. It is also found that a
lower value of parallel resistance decreases output power. G. Simulated result of Step-up Transformer
Therefore, suitable values of Rs (Rs=0.56 Ω) and Rp (Rp=790 Ω)
have been calculated by Newton Raphson iteration method that Transformers are used to step up the output voltage of the
gives more accurate result at maximum power point [5]. From Fig. inverter. In this model, a single phase PWM inverter, a step
8, it is observed that photo current decreases from 3.11A to 2.6A up three phase two winding 100kVA, 220V/2200V
transformer is used. The output voltage 210V is stepped up
as series resistance is varied from 0.06 Ω to 0.76 Ω. Also, the
to approximately 2000V using step up transformer which is
output power increases from 21W to 49.3W as the parallel shown in Fig. 19.
resistance is varied from 10 Ω to 790 Ω. The effects of parallel
resistance on P-V and I-V curves are shown in Fig. 10 and 11, V. CONCLUSION
respectively. Table I shows the simulation result where for the The performance of a solar cell depends primarily on weather
same approximation method, we got 49.3W whereas conditions. The field tests to examine the performance of
manufacture’s got 49W experimentally. solar cells are highly expensive. However, a detailed
simulation study can save both time and resources. The
TABLE I. PWX 500 PV MODULE (49W) CHARACTERISTICS [5] implemented PV model using MATLAB/Simulink covers all
Name Experimental Simulated Values these concerns. The Simulink implementation of PV model
(Unit) Values (single diode) takes into account five parameters. The effects of variations
of model parameters and the effects of different solar light
Pmp (W) 49 W 49.3 W intensity (200-1000 w/m2) and ambient temperature (25-
Vmp (V) 17 V 17.2 V 500˚C) have been demonstrated. The PV model can be
automatically modified to simulate configurations ranging
I mp (A) 2.88 A 2.9 A from a single PV cell to a string of modules. The comparison
Voc (V) 21.6 V 23.5 V of MATLAB built in single diode and two diode model cell
has been demonstrated. The manufacturer’s test of PWX 500
I sc (A) 3.11 A 3.11 A PV module gives 4.89% efficiency whereas the simulated
model has given 4.98% efficiency. Therefore, it can be
D. Simulation Result of simulated single diode and built-in two concluded that the proposed model has given slightly higher
diode model in MATLAB efficiency than the manufacturer’s value. Series and parallel
combinations of cells for getting desired output are designed
Figures 12 & 13 demonstrate the comparison between two-diode and simulated. Finally, it can be concluded that the complete
and single-diode model. Figure 12 shows that the output current model with the inverter and transformer shows satisfactory
of the built-in two-diode model in MATLAB is 3.67A whereas performance.
the output current of the simulated single-diode model is 3.11A.
From Fig. 13, it is seen that output voltage of built in two-diode
model is 36.7V which is greater than the output voltage 23.5V of References
simulated single-diode model. [1] K. Ding, X. Bain and H. Liu, "Matlab-Simulink Based Modeling to
Study the Influence of Nonuniform Insolation Photovoltaic Array,"
Power and Energy Engineering Conference (APPEEC), 2011 Asia-
Pacific, Wuhan, 2011, pp. 1-4.
E. Simulink Model of Series- Parallel Connection of MATLAB [2] A. N. R. Ahmed, K. Nowaz, J. Tasnim and N. Afroze, "A complete
built-in PV Cell modeling and analysis of solar system (cell/module/array) based on
The output current, voltage and power of a single solar cell is very MATLAB,"International Conference on Electrical & Electronic
low. For getting desired output power solar array is created by Engineering (ICEEE), Rajshahi, 2015, pp. 149-152.
connecting solar cells in series and parallel. Figure 14 shows the [3] K. Biju and R. Ramchand “Modeling and simulation of a novel solar
PV/ battery hybrid energy system with a single phase five level
Simulink model of a series parallel connection which contains six inverter,” 2015 IEEE International Conference on Signal Processing,
series and six parallel combinations of solar cell. It is noted from Informatics, Communication and Energy Systems
Fig. 15 that the output current increases from 1.5A (built in single (SPICES),Kozhikode 2015, pp. 1 – 5.
cell) to 8.75A (six cells are parallel). Also, the output voltage [4] D. Yun-Fen and M. Ying, “Dynamic Modeling and Simulation of
Photovoltaic Energy Conversion System,” 7th International
increases from 15.3V (built in single cell) to 87.67V (six cell are Conference on Wireless Communications, Networking and Mobile
series) as shown in Fig. 16. Computing (WiCOM), Wuhan 2011, pp. 1 - 6
[5] H. Bellia, R. Youcef and M. Fatima, “A detailed modeling of
F. Result of DC to AC Conversion photovoltaicmodule using MATLAB,”NRIAG Journal of Astronomy
and Geophysics (2014), vol. 3, pp. 53–61.
Solar cells produce power at low voltages. Stepping up DC voltage [6] X. Wang and H. Liang, "Output Characteristics of PV Array under
is a difficult task. It is likely to be more energy efficient to convert Different Insolation and Temperature,"Asia-Pacific Power and Energy
Engineering Conference, Shanghai, 2012, pp. 1-4.
it to AC and step it up before transmission [11]. The outputs of
[7] Villalva, M. Gradella, Gazoli, J. Rafael, Filho and E. Ruppert, simulation models in matlab/simulink,” International Journal on
“Comprehensive approach to modeling and simulation of photovoltaic “Technical and Physical Problems of Engineering (IJTPE), ” Iss. 10,
arrays,” IEEE Trans. Power Electron, vol. 24, no. 5, pp. 1198–1208, 2009. Vol. 4, No. 1, Mar. 2012
[8] H. B. Vika, “Modelling of Photovoltaic Modules with Battery [10] Villalva MG, Gazoli JR and Filho ER, “Comprehensive approach to
EnergyStorage in Simulink/Matlab,” June (2014) Trondheim Norwegian modeling and simulation of photovoltaic arrays,” IEEE Trans Power
University of Science and Technology. Electron, vol. 24, pp. 1198–1208, 2009.
[9] J. A. Ramos-Hernanz, J. J. Campayo, J. Larranaga, E. Zulueta, O. [11] https://www.quora.com/Why-convert-DC-to-AC-when-using-solar-
Barambones, J. Motrico, U. F. Gamiz and I. Zamora, “Two photovoltaic cell power. (accessed on 20 July 2016)