Development of A MATLAB/Simulink Model of A Single-Phase Grid-Connected Photovoltaic System
Development of A MATLAB/Simulink Model of A Single-Phase Grid-Connected Photovoltaic System
Abstract—Because of their deployment in dispersed locations on IEEE-1547, UL-1741, and IEC-62116, require that a grid-
the lowest voltage portions of the grid, photovoltaic (PV) systems connected PV inverter be able to detect and prevent unin-
pose unique challenges to power system engineers. Computer mod- tentional islanding [3]–[5]. The standards suggest the use
els that accurately simulate the relevant behavior of PV systems
would thus be of high value. However, most of today’s models either of a specific test to demonstrate that a PV inverter can
do not accurately model the dynamics of the maximum power point meet this requirement and be certified as a “nonislanding
trackers (MPPTs) or anti-islanding algorithms, or they involve ex- inverter,” but this test is difficult and somewhat expensive
cessive computational overhead for this application. To address this to perform in spite of its conceptual simplicity, and thus,
need, a MATLAB/Simulink model of a single-phase grid-connected modeling could also be of help in understanding the results
PV inverter has been developed and experimentally tested. The de-
velopment of the PV array model, the integration of the MPPT of anti-islanding tests.
with an averaged model of the power electronics, and the Simulink 2) Action of the maximum power point tracker (MPPT): The
implementation are described. It is experimentally demonstrated MPPT is effectively the amplitude controller for the in-
that the model works well in predicting the general behaviors of verter’s output, and its operation can strongly affect sys-
single-phase grid-connected PV systems. This paper concludes with tem behavior [6] and must also be properly simulated.
a discussion of the need for a full gradient-based MPPT model, as
opposed to a commonly used simplified MPPT model. In addition, the interaction between the MPPT and the
large buffer capacitor usually used at the dc inputs of PV
Index Terms—Inverters, islanding detection, modeling and sim- inverters is important and should be simulated.
ulation, photovoltaics (PVs).
3) Response to grid voltage and frequency fluctuations: For
PV inverters, this primarily means that the trips for abnor-
I. INTRODUCTION mal voltages or frequency must be simulated.
PV system models for use in power system simulations have
HOTOVOLTAIC (PV) systems produce electricity with-
P out producing CO2 . This property has led to worldwide
government policies aimed at increasing the deployment of
been reported by other authors (for example, [7]–[9]). Although
useful in some cases, most of these suffer from one of the
following problems.
grid-connected PV systems that are connected with, and can
1) They use full switching models of the converter that im-
export power to, utility power networks. PV systems are usu-
pose too high of a computational burden for the model to
ally deployed in a highly dispersed mode, in the lowest voltage
be useful in power system simulations.
portions of the grid (down to residential end-use voltages), and
2) They do not model the anti-islanding controls.
they thus present unusual challenges for power system engineers
3) They do not realistically capture the dynamics introduced
tasked with understanding how high penetration levels of PV in
by the PV array, input buffer capacitor, and MPPT.
industrial parks or “solar subdivisions” might impact system
This paper describes the work undertaken to produce a model
operations. A well-verified computer model would be of great
that meets this need. The paper has two goals. First, it presents
help in this task.
the model itself and describes the extensive experimental
In order to meet the needs described earlier, a number of
validation conducted in collaboration with the Distributed
important aspects of PV inverters need to be modeled with
Energy Technologies Laboratory (DETL) at Sandia National
reasonable accuracy. These include the following.
Laboratories, Albuquerque, NM. Second, after the model is
1) Islanding detection behavior: A suitable model must rea-
vetted, it is used to examine the need for the complex MPPT
sonably simulate the inverters’ means of islanding de-
model used here.
tection. Islanding detection is discussed thoroughly in
the literature [1], [2], and applicable standards, such as II. DESCRIPTION OF THE MODEL
A. Overview
Manuscript received May 30, 2007; revised February 20, 2008. This work
was supported in part by the National Science Foundation under Grant The system being modeled is shown in Fig. 1. It consists of
ECS-0238533. Paper no. TEC-00205-2007. a PV array feeding an H-bridge inverter (switches S1 –S4 ) that
M. E. Ropp is with the Department of Electrical Engineering, South Dakota feeds current into the utility voltage Vu through an equivalent
State University, Brookings, SD 57007 USA, on leave from Sandia National
Laboratories, Albuquerque, NM 87185 USA (e-mail: [email protected]). interconnecting inductance Leq that includes effects from out-
S. Gonzalez is with the Distributed Energy Test Laboratory, Sandia National put filters, transformers, and the utility source impedance. The
Laboratories, Albuquerque, NM 87185 USA (e-mail: [email protected]). power output of single-phase inverters oscillates at twice the
Color versions of one or more of the figures in this paper are available online
at http://ieeexplore.ieee.org. line frequency, and thus, a large buffer capacitor Cb is included
Digital Object Identifier 10.1109/TEC.2008.2003206 between the PV and the H-bridge.
Fig. 3. Perturb-and-observe maximum power point tracker. Signal propagation is from right to left (the inputs are at the right).
Fig. 4. Block diagram of the PV array model. Note that “Io u t ” is the inverter output current and is an input here.
Fig. 5. SFS waveform generator. Signal propagation is from right to left (the input is at the right).
starting from zero current. The current i3 is increasing, and the where ω is the frequency of vU (in radians per second) and I3m
voltage v1 has fallen to the point at which the converter cannot is the maximum value of i3 (in Amperes). The approximation is
further increase the amplitude of the current. This case will acceptable near the beginning of the cycle of the sine wave, and
appear approximately as shown in normalized form in Fig. 6, as long as the hysteresis bandwidth is small. Combining these
which shows the sine wave reference used by the hysteresis equations and considering the case of t = 0 allows a calculation
controller, the hysteresis boundaries, and a linear approximation of the maximum amplitude of the current as a function of the
to the sine wave at t = 0. The PV voltage becomes so low that PV voltage
the current through Leq “ramps” at approximately the same rate
vPV
as the reference sine wave, and the bridge does not switch at all I3m = . (3)
during the first portion of the sine wave. Under this condition, ωLeq
near the beginning of the sine wave (t = 0), the derivative of i3 This calculated value of I3m will actually be above the true
can be expressed as value, but the relationship again supports the notion that it is
di3 v2 − v U physically reasonable to make the converter gain proportional
= ≈ ωI3m cos ωt (2)
dt Leq to v1 , with the constant of proportionality being somewhat less
ROPP AND GONZALEZ: DEVELOPMENT OF A MATLAB/SIMULINK MODEL OF A SINGLE-PHASE GRID-CONNECTED PV SYSTEM 5
Fig. 9. Comparison of the NDZ for SFS predicted by the phase criterion Fig. 10. Average run-on times for four SFS inverters at full power (experi-
(“theoretical,” marked by dashed lines) and by the model (heavy lines with mental result).
squares).
Fig. 11. Results of simulations of four inverters in which the utility cutoff
time was varied, with all inverter and load parameters fixed. Fig. 12. Simulations of two SVS anti-islanding tests: one using a linear
controller-based MPPT simulation (heavy dashed trace) and one using the
gradient-based MPPT model described here (lighter solid trace).
This variability is an indication of how difficult this test is to
control completely, and also of the complexity of the interac-
tions between the two anti-islanding methods and the MPPT.
However, interpretation of the results is difficult and controver-
sial. Which of the variety of run-on times is most representative
of the inverters’ performance in this situation?
This four-inverter case was simulated using the model pre-
sented in this paper. The inverters were connected in parallel,
without interconnecting impedances, and the parameters were
set as follows:
Vu ,norm = 240 Vrms
R = 5.76 Ω L = 6.115 mH C = 1.1513 mF
MPPT stepping interval = 0.25 s MPPT increment = 2
SFS gain = 0.0185 SVS gain = 0.01.
part because it does not model the energy-limited nature of the [5] International Electrotechnical Commission TC82 working document,
source and in part because its output does not contain the MPPT IEC-62116 “Test Procedure of Islanding Prevention Measures for Utility-
Interconnected Photovoltaic Inverters” revised, Sep. 29, 2006.
perturbations, but the gradient-based inverter shuts down fairly [6] M. Ropp, J. Ginn, J. Stevens, W. Bower, and S. Gonzalez, “Simulation
quickly. In this case, the linear MPPT can lead to erroneous and experimental study of the impedance detection anti-islanding method
conclusions. in the single-inverter case,” in Proc. 4th World Conf. Photovolt. Energy
Convers., May 2006, pp. 2379–2382.
Fig. 13 shows simulations of the same two inverters during [7] F. Fernandez-Bernal, L. Rouco, P. Centeno, M. Gonzalez, and M. Alonao,
a utility voltage transient, with the SVS anti-islanding method “Modelling of photovoltaic plants for power system dynamic studies,” in
active. At time t = 12 s, the utility voltage undergoes a step Proc. 5th IEEE Int. Conf. Power Syst. Manage. Control, 17–19 Apr. 2002,
pp. 341–346.
decrease from 120 to 110 Vrm s . The inverters are identical [8] M. Ciobotaru, T. Kerekes, R. Teodorescu, and A. Bouscayrol, “PV inverter
except for the MPPT model. Because the energy constraints on simulation using MATLAB/Simulink graphical environment and PLECS
the PV + capacitor source are not modeled, the simulated SVS blockset,” in Proc. 32nd IEEE Ind. Electron. Conf., Paris, France, Nov.
2006, pp. 5313–5318.
using the linear MPPT model increases the output voltage much [9] Z. Ye, R. Walling, L. Garces, R. Zhou, L. Li, and T. Wang, “Study and
more than it would be able to in reality. The response of the development of anti-islanding control for grid-connected inverters,” Nat.
energy-constrained gradient-based MPPT, which does model Renewable Energy Lab, Golden, CO, May 2004, Rep. SR-560-36243,
May 2004.
the PV + capacitor, is smaller and in the opposite direction. The [10] M. Ropp, M. Begovic, and A. Rohatgi, “Analysis and performance assess-
model without the energy constraint could lead to erroneous ment of the active frequency drift method of islanding prevention,” IEEE
conclusions about such things as the impact of high penetrations Trans. Energy Convers., vol. 14, no. 3, pp. 810–816, Sep. 1999.
[11] R. A. Jones and T. R. Sims, “Investigation of potential islanding of dis-
of PV during system transients. tributed photovoltaic systems,” Sandia Nat. Lab., Albuquerque, NM, Rep.
SAND-87-7024, 1988.
V. CONCLUSION [12] A. Cocconi, S. Çuk, R. D. Middlebrook, and T. S. Key, “Design and
development of a 4-kW/20 kHz DC-isolated power conditioner for util-
This paper presents an accurate behavioral model of a grid- ity interactive photovoltaic applications,” Sandia Nat. Lab., Albuquerque,
NM, Rep. SAND-87-0353, 1983.
tied PV system suitable for system-level investigations. Simpli- [13] C. M. Alfonso, W. Freitas, W. Xu, and L. C. P. da Silva, “Performance of
fied means for modeling the PV array and integrating a gradient- ROCOF relays for embedded generation applications,” Inst. Electr. Eng.
based MPPT into a very simple averaged model of the power Proc. Gener., Transmiss., Distrib., vol. 152, no. 1, pp. 109–114, Jan. 2005.
[14] D. Hohm and M. Ropp, “Comparative study of maximum power point
converter are developed, and the model has been experimentally tracking algorithms,” Prog. Photovolt., vol. 11, pp. 47–62, Jan. 2003.
vetted. Finally, it has been shown that MPPT models based on [15] J. S. Arora, Introduction to Optimum Design. New York: McGraw-Hill,
linear controllers can be inadequate for this application. 1989.
[16] M. E. Ropp, M. Begovic, A. Rohatgi, G. A. Kern, R. Bonn, and S. Gonza-
lez, “Determining the relative effectiveness of islanding prevention tech-
ACKNOWLEDGMENT niques using phase criteria and nondetection zones,” IEEE Trans. Energy
Convers., vol. 15, no. 3, pp. 290–296, Sep. 2000.
The authors wish to acknowledge the following for their valu-
able contributions to this paper: SDSU students R. Bhandari,
E. Grebel, and D. Schutz; C. Thompson of Xantrex, Inc.; and S.
Atcitty, W. Bower, B. Boysen, D. King, and J. Stevens of San-
dia National Laboratories. Sandia is a multiprogram laboratory Michael E. Ropp (M’99) was born in Rapid City, SD, in 1967. He received
the B.Sc. degree in music from the University of Nebraska-Lincoln, Lincoln, in
operated by Sandia Corporation, a Lockheed Martin Company, 1992, and the M.S. and Ph.D. degrees in electrical engineering from the Georgia
for the United States Department of Energy’s National Nuclear Institute of Technology, Atlanta, in 1996 and 1998, respectively.
Security Administration under contract DE-AC04-94AL85000. He is an Associate Professor of electrical engineering at South Dakota State
University, Brookings. His current research interests include issues relating to
interfacing renewable energy systems to utility grids, power electronics for
REFERENCES photovoltaics, distributed controls, and computer modeling of power systems.