solar pv modelling in matlab

15
MODELING AND CIRCUIT-BASED SIMULATION OF PHOTOVOLTAIC ARRAYS 1. INTRODUCTION: A photovoltaic system converts sunlight into electricity. The basic device of a photovoltaic system is the photovoltaic cell. Cells may be grouped to form panels or modules. Panels can be grouped to form large photovoltaic arrays. The electricity available at the terminals of a photovoltaic array may directly feed small loads such as lighting systems and DC motors. Some applications require electronic converters to process the electricity from the photovoltaic device. These converters may be used to regulate the voltage and current at the load, to control the power flow in grid-connected systems and mainly to track the maximum power point (MPP) of the device. Photovoltaic arrays present a nonlinear I-V characteristic with several parameters that need to be adjusted from experimental data of practical devices. The mathematical model of the photovoltaic array may be useful in the study of the dynamic analysis of converters, in the study of maximum power point tracking (MPPT) algorithms and mainly to simulate the photovoltaic system and its components using simulators. Most of time we are interested in modeling photovoltaic panels which are the commercial photovoltaic devices. This report focuses on modeling photovoltaic modules or panels composed of several basic cells. We present in details the equations that form the the I-V model and the method used to obtain the parameters of the equation. The aim is to provide all the necessary information to develop photovoltaic array models and circuits that can be used in the simulation of power converters for photovoltaic applications.

Upload: amlan

Post on 11-Apr-2016

67 views

Category:

Documents


12 download

DESCRIPTION

Photovoltaic array modelling

TRANSCRIPT

Page 1: Solar PV Modelling in MATLAB

MODELING AND CIRCUIT-BASED SIMULATION OF PHOTOVOLTAIC ARRAYS

1. INTRODUCTION:

A photovoltaic system converts sunlight into electricity. The basic device of a

photovoltaic system is the photovoltaic cell. Cells may be grouped to form panels

or modules. Panels can be grouped to form large photovoltaic arrays. The

electricity available at the terminals of a photovoltaic array may directly feed small

loads such as lighting systems and DC motors. Some applications require

electronic converters to process the electricity from the photovoltaic device. These

converters may be used to regulate the voltage and current at the load, to control

the power flow in grid-connected systems and mainly to track the maximum power

point (MPP) of the device.

Photovoltaic arrays present a nonlinear I-V characteristic with several parameters

that need to be adjusted from experimental data of practical devices. The

mathematical model of the photovoltaic array may be useful in the study of the

dynamic analysis of converters, in the study of maximum power point tracking

(MPPT) algorithms and mainly to simulate the photovoltaic system and its

components using simulators.

Most of time we are interested in modeling photovoltaic panels which are the

commercial photovoltaic devices. This report focuses on modeling photovoltaic

modules or panels composed of several basic cells. We present in details the

equations that form the the I-V model and the method used to obtain the

parameters of the equation. The aim is to provide all the necessary information to

develop photovoltaic array models and circuits that can be used in the simulation

of power converters for photovoltaic applications.

Page 2: Solar PV Modelling in MATLAB

2. MODELING OF PHOTOVOLTAIC ARRAYS:

2.1 Ideal photovoltaic cell:

Fig. 1 shows the equivalent circuit of the ideal photovoltaic cell. The basic

equation from the theory of semiconductors[1] that mathematically describes the I-

V characteristic of the ideal photovoltaic cell is:

𝐼 = 𝐼pv,cellβˆ’πΌ0,cell[exp (π‘žπ‘‰

π‘ŽπΎπ‘‡) βˆ’ 1] (1)

Figure 1:Ideal PV Cell

where Ipv,cell is the current generated by the incident light (it is directly proportional

to the Sun irradiation), Id is the Shockley diode equation, I0,cell is the reverse

saturation or leakage current of the diode, q is the electron charge ,k is the

Boltzmann constant , T is the temperature of the p-n junction, and a is the diode

ideality constant. Fig. 2 shows the I-V curve originated from equation (1)

Page 3: Solar PV Modelling in MATLAB

Figure 2:I-V Curve of PV Cell

2.2 Modeling of photovoltaic array:

The basic equation (1) of the elementary photovoltaic cell does not represent the

I-V characteristic of a practical photovoltaic array. Practical arrays are composed

of several connected photovoltaic cells and the observation of the characteristics at

the terminals of the photovoltaic array requires the inclusion of additional

parameters to the basic equation (1):

𝐼 = 𝐼pvβˆ’πΌ0[exp (𝑉+ 𝑅𝑠𝐼

π‘‰π‘‘π‘Ž) βˆ’ 1] βˆ’

𝑉+𝑅𝑠𝐼

𝑅𝑝 (2)

Where ,Ipv and I0 are the photovoltaic and saturation currents of the array and Vt =

NskT/q is the thermal voltage of the array with Ns cells connected in series. Cells

connected in parallel increase the current and cells connected in series provide

greater output voltages. If the array is composed of Np parallel connections of cells

the photovoltaic and saturation currents may be expressed as:

Ipv =Ipv,cell Np; I0 = I0,cellNp. In (2) Rs is the equivalent series resistance of the array

and Rp is the equivalent parallel resistance.

Figure 3 shows the equivalent single diode model of a practical PV array.

Page 4: Solar PV Modelling in MATLAB

Figure 3:Single-diode model of the theoretical photovoltaic cell and equivalent circuit of a practical photovoltaic device

including the series and parallel resistances

This equation (2) originates the I-V curve seen in Fig. 3, where three remarkable

points are highlighted: short circuit (0, Isc), maximum power point (Vmp, Imp) and

open-circuit (Voc, 0).

Figure 4:Characteristic I-V curve of a practical photovoltaic device

For simplicity the single-diode model of Fig. 3 is demonstrated in this report as

This model offers a good compromise between simplicity and accuracy.

Manufacturers of photovoltaic arrays, instead of the I-V equation, provide only a

few experimental data about electrical and thermal characteristics. Unfortunately

some of the parameters required for adjusting photovoltaic array models cannot be

found in the manufacturers’ data sheets, such as the light-generated or photovoltaic

current, the series and shunt resistances, the diode ideality constant, the diode

reverse saturation current, and the bandgap energy of the semiconductor. All

photovoltaic array datasheets bring basically the following information: the

Page 5: Solar PV Modelling in MATLAB

nominal open-circuit voltage Voc,n, the nominal short-circuit current Isc,n, the voltage

at the maximum power point Vmp, the current at the maximum power point Imp the

open-circuit voltage/temperature coefficient KV, the short-circuit

current/temperature coefficient KI, and the maximum experimental peak output

power Pmax;e.

This information is always provided with reference to the nominal or standard test

conditions (STC) of temperature and solar irradiation. Some manufacturers provide

I-V curves for several irradiation and temperature conditions. These curves make

easier the adjustment and the validation of the desired mathematical I-V equation.

Basically this is all the information one can get from datasheets of photovoltaic

arrays.

Electric generators are generally classified as current or voltage sources. The

practical photovoltaic device presents an hybrid behavior, which may be of current

or voltage source depending on the operating point, as shown in Fig. 4. The

practical photovoltaic device has a series resistance Rs whose influence is stronger

when the device operates in the voltage source region, and a parallel resistance Rp

with stronger influence in the current source region of operation. The Rs resistance

is the sum of several structural resistances of the device. The Rp resistance exists

mainly due to the leakage current of the p-n junction and depends on the

fabrication method of the photovoltaic cell.

The I-V characteristic of the photovoltaic device shown in Fig. 4 depends on the

internal characteristics of the device (Rs, Rp) and on external influences such as

irradiation level and temperature. The amount of incident light directly affects the

generation of charge carriers and consequently the current generated by the device.

The light-generated current (Ipv) of the elementary cells, without the influence of

the series and parallel resistances, is difficult to determine. Datasheets only inform

the nominal short-circuit current (Isc,n), which is the maximum current available at

the terminals of the practical device. The assumption Isc β‰ˆ Ipv is generally used in

photovoltaic models because in practical devices the series resistance is low and

the parallel resistance is high. The light generated current of the photovoltaic cell

depends linearly on the solar irradiation and is also influenced by the temperature

according to the following equation:

𝐼𝑝𝑣 = (𝐼𝑝𝑣,𝑛 + πΎπΌβˆ†π‘‡)𝐺

𝐺𝑛 (3)

where Ipv,n [A] is the light-generated current at the nominal condition (usually 25 C and 1000W/m

2), βˆ†T = T – Tn (being T and Tn the actual and nominal

temperatures [K]), G W/m2] is the irradiation on the device surface, and Gn is the

nominal irradiation.

Page 6: Solar PV Modelling in MATLAB

The diode saturation current I0 and its dependence on the temperature may be

expressed by:

πΌπ‘œ = πΌπ‘œ,𝑛 (𝑇

𝑇𝑛)

3𝑒π‘₯𝑝 [

π‘žπΈπ‘”

π‘ŽπΎ(

1

π‘‡π‘›βˆ’

1

𝑇)] (4)

where Eg is the bandgap energy of the semiconductor (Eg β‰ˆ 1.12 eV for the

polycrystalline Si at 25 C ), and Io,n is the nominal saturation current:

πΌπ‘œ,𝑛 =𝐼𝑠𝑐,𝑛

𝑒π‘₯𝑝(π‘‰π‘œπ‘,π‘›π‘Žπ‘‰π‘‘,𝑛

)βˆ’1 (5)

with Vt,n being the thermal voltage of Ns series-connected cells at the nominal

temperature Tn. From the experimental data through equation (5), which is

obtained by evaluating equation (2) at the nominal open-circuit condition, with V =

π‘‰π‘œπ‘,𝑛 ,𝐼 = 0, and 𝐼𝑝𝑣 β‰ˆ 𝐼𝑠𝑐,𝑛. The value of the diode constant π‘Ž may be arbitrarily

chosen. Usually 1 ≀ π‘Ž ≀ 1.5 and the choice depends on other parameters of the I-V

model. Some values for a are found based on empirical analysis. There are

different opinions about the best way to choose a. Because π‘Ž expresses the degree

of ideality of the diode and it is totally empirical, any initial value of a can be

chosen in order to adjust the model. The value of π‘Ž can be later modifed in order to

improve the modeling if necessary. This constant affects the curvature of the I-V

characteristic and varying π‘Ž can slightly improve the model accuracy.

Page 7: Solar PV Modelling in MATLAB

2.3 Improving the model

The photovoltaic model described in the previous section can be improved if

equation (4) is replaced by:

πΌπ‘œ =𝐼𝑠𝑐,𝑛+πΎπΌβˆ†π‘‡

𝑒π‘₯𝑝(π‘‰π‘œπ‘,𝑛+πΎπ‘£βˆ†π‘‡

π‘Žπ‘‰π‘‘)βˆ’1

(6)

This change of equation aims to match the open-circuit voltages of the

model with the experimental data for a very large range of temperatures.

Eq. (6) is obtained by including in the equation the current and voltage

coefficients KV and KI . The saturation current I0 is strongly dependent

on the temperature and the net effect of the temperature is the linear

variation of the open-circuit voltage according the practical

voltage/temperature coefficient. This equation simplifies the model and

cancels the model error at the vicinities of the open-circuit voltages and

consequently at other regions of the I-V curve. The validity of the model

with this new equation is tested and found out to be in accordance with

desired characteristics. Also the correction introduced with (6) utilises

the availability of coefficient KV from the manufacturer's datasheet,

which appears in the equation. If we wish to keep the traditional

equation (4) instead of using (6), it is possible to obtain the best value of

for the model so that the open-circuit voltages of the model are matched

with the open-circuit voltages of the real array in the range Tn < T <

Tmax. By equaling (4) and (6) and solving for Eg at 𝑇 = π‘‡π‘šπ‘Žπ‘₯ one gets:

𝐸𝑔 = βˆ’π‘™π‘› [(

𝐼𝑠𝑐,π‘‡π‘šπ‘Žπ‘₯𝐼0,𝑛

)(𝑇𝑛𝑇

)3

𝑒π‘₯𝑝(π‘žπ‘‰π‘œπ‘,π‘‡π‘šπ‘Žπ‘₯π‘Žπ‘π‘ πΎπ‘‡π‘šπ‘Žπ‘₯

)βˆ’1] βˆ™

π‘ŽπΎπ‘‡π‘›π‘‡π‘šπ‘Žπ‘₯

π‘ž(π‘‡π‘›βˆ’π‘‡π‘šπ‘Žπ‘₯) (7)

Page 8: Solar PV Modelling in MATLAB

2.4 Adjusting the Model

Two parameters remain unknown in equation (2), which are Rs and Rp. Although

literature suggests mathematical formula to determine these unknown parameters,

any expression for Rs and Rp will always rely on experimental data. Varying Rs in

an iterative process, incrementing Rs until the I–V curve visually fits the

experimental data and then vary Rp in the same fashion. This is a quite poor and

inaccurate fitting method, mainly because Rs and Rp may not be adjusted separately

if a good I -V model is desired. The relation between Rs and Rp, the only unknowns

of (2), may be found by making Pmax,m = Pmax,e and solving the resulting equation

for Rs, as shown:

π‘ƒπ‘šπ‘Žπ‘₯,π‘š = π‘‰π‘šπ‘ 𝐼𝑝𝑣 βˆ’ 𝐼0 [exp (π‘ž

π‘˜π‘‡

π‘‰π‘šπ‘+ π‘…π‘ πΌπ‘šπ‘

π‘π‘ π‘Ž) βˆ’ 1] βˆ’

π‘‰π‘šπ‘+ π‘…π‘ πΌπ‘šπ‘

𝑅𝑃 = π‘ƒπ‘šπ‘Žπ‘₯,𝑒(8)

𝑅𝑃 = π‘‰π‘šπ‘(π‘‰π‘šπ‘ + π‘…π‘ πΌπ‘šπ‘)/ π‘‰π‘šπ‘πΌπ‘π‘£ βˆ’ (π‘‰π‘šπ‘πΌ0) βˆ™ 𝑒π‘₯𝑝 [π‘‰π‘šπ‘+ π‘…π‘ πΌπ‘šπ‘

π‘π‘ π‘Ž

π‘ž

π‘˜π‘‡] +

π‘‰π‘šπ‘πΌ0 βˆ’ π‘ƒπ‘šπ‘Žπ‘₯,𝑒 (9)

The above equations give the solution Rs = 0.221Ξ© for the KC200GT array. Fig.

6 shows a plot of Pmax,m as a function of V for several values of Rs. There is an only

point, corresponding to a single value of Rs, that satisfies the imposed condition

Pmax,m = Vmp.Imp at the (Vmp, Imp) point. Fig. 7 shows a plot of Pmax,m as a function of

Rs for I = Imp and V = Vmp. This plot shows that Rs = 0.221Ξ© is the desired

solution, in accordance with the results obtained both mathematically and

graphically.

Page 9: Solar PV Modelling in MATLAB

Figure 5:P-V curves plotted for different values of Rs and Rp.

Figure 6:Pmax,m vs. V for several values of Rs > 0

Page 10: Solar PV Modelling in MATLAB

Figure 7:Pmax = f(Rs) with I = Imp and V = Vmp.

Figure 8:I-V curves plotted for different values of Rs and Rp

Page 11: Solar PV Modelling in MATLAB

2.5 Further improving the model

The model developed as described earlier may be further improved by taking

advantage of the iterative solution of Rs and Rp. Each iteration updates Rs and Rp

towards the best model solution, so equation can help us in further improvement.

𝐼𝑃𝑣,𝑛 =𝑅𝑝+𝑅𝑠

𝑅𝑝𝐼𝑠𝑐,𝑛 (10)

Table 1:Parameters of the adjusted model of the KC200GT solar array.

Vmp 26.3 V

Imp 7.61A

Pmax,m 200.143 W

Isc 8.21A

Voc 32.9 V

I0,n 9.825 Γ—10βˆ’8 A

Ipv 8.214 A

a 1.3

Rs 0.221Ξ©

Rp 415.405 Ξ©

.

Page 12: Solar PV Modelling in MATLAB

3. SIMULATION AND RESULTS

The Simulation of KC200GT array is done as per the equations derived in

preceding sections.

Figure 9:MATLAB/SIMULINK model for KC200GT

Page 13: Solar PV Modelling in MATLAB

Figure 10:IV curve for improved model at constant G

Figure 11:PV curve for improved model at constant G

4. CONCLUSION

We have analyzed the development of a method for the mathematical modeling of

photovoltaic arrays. The objective of the method is to fit the mathematical I-V equation to MATLAB/SIMULINK. the experimental remarkable points of the

I-V curve of the practical array. The method obtains the parameters of the I-V equation by using the following nominal information from the array datasheet:

open-circuit voltage, short-circuit current, maximum output power, voltage and

current at the maximum power point, current/temperature and voltage/temperature

coefficients.

We have proposed an effective and straightforward method to fit the mathematical

I-V curve to the three remarkable points without the need to guess or to estimate

Page 14: Solar PV Modelling in MATLAB

any other parameters except the diode constant π‘Ž. This leads to a closed solution

for the problem of finding the parameters of the single-diode model equation of a

practical photovoltaic array. Others have tried to propose single-diode models and

methods for estimating the model parameters, but these methods always require

visually fitting the mathematical curve to the I-V points and/or graphically

extracting the slope of the I-V curve at a given point and/or successively

solving and adjusting the model in a trial and error process. Although interesting,

such methods are not very practical and are unnecessarily complicated

and require more computational effort than it would be expected for this problem.

Moreover, frequently in these models Rs and Rp are neglected or treated as

independent parameters, which is not true if one wish to correctly adjust the model

so that the maximum power of the model is equal to the maximum power of the

practical array.

Moreover, the assumption Ipv β‰ˆ Isc used in most of previous works on photovoltaic

modeling was replaced in this method by a relation between Ipv and Isc (10)based

on the series and parallel resistances. The proposed iterative method for

solving the unknown parameters of the I-V equation allows to determine the value

of Ipv, which is different of Isc.

Page 15: Solar PV Modelling in MATLAB

REFERENCES

[1] M. G. Villalva, J. R. Gazoli, And E. R. Filho, "Comprehensive Approach To Modeling And Simulation Of Photovoltaic Arrays," Power Electronics, IEEE Transactions On, Vol. 24, Pp. 1198-1208, 2009.

[2] M. G. Villalva, J. R. Gazoli, And E. R. Filho, "Modeling And Circuit-Based Simulation Of Photovoltaic Arrays," In Power Electronics Conference, 2009. Cobep '09. Brazilian, 2009, Pp. 1244-1254.

[3] G. E. Ahmad, H. M. S. Hussein, and H. H. El-Ghetany.Theoretical analysis and experimental verification of PV modules. Renewable Energy, 28(8):1159-1168, 2003.

[4] J. A. Gow and C. D. Manning. Development of a model for photovoltaic arrays suitable for use in simulation studies of solar energy conversion systems. In Proc. 6th International Conference on Power Electronics and Variable Speed Drives,p. 69-74,1996.

[5] N. Pongratananukul and T. Kasparis, Tool for automated simulation of solar arrays using general-purpose simulators.In Proc. IEEE Workshop on Computers in Power Electronics, p. 10–14, 2004.