1 Introduction

Photovoltaic systems are interesting renewable energy sources but their performances highly depend on the external conditions, especially the climate environment and electric utility quality for grid connected applications.

Many research studies have focused on the impact of the grid faults on photovoltaic installation performances [1, 2] and how the environment conditions (dust, temperature, irradiance, soiling) affect the produced energy [3]. High performance MPPT (Maximum Power Point Tracking) algorithms have been proposed [4,5,6,7,8] in order to solve the stated issues. Furthermore, one can notice that the photovoltaic system span in low medium and high voltage, distribution and transport grids have emerged non negligible effects on the power quality of the electric utility [9,10,11]. In the framework of the PEER (Partnerships For Enhanced Engagement In Research) Project named ‘Impact of rooftop PV system integration on Tunisian electrical distribution network’ [12], the members of the stated project are collaborating with the authors of this paper to propose a PV emulator capable of reproducing a PV system behavior under healthy and partially shading conditions. The work presented in this paper is the first step of one of this PEER Project Work Packages since a PV emulator needs the equivalent PV system I–V curve. Besides, the determination of the I–V characteristic of a PV array is difficult since an accurate prediction of the climate and environmental conditions is intricate and the behavior of photovoltaic cells makes it nonlinear. This issue becomes more complicated when the entire PV array receives non-uniform irradiance, i.e. under partial shading condition.

All manufacturer’s data sheets cannot provide all the information required to model the PV array in various operation conditions. Therefore, a method to obtain the required parameters from the available technical data is needed. Although several researchers have studied the PV array behavior under partial shading conditions [13,14,15], many of them described only the arrays formed by modules in series, as in [16, 17]. In [18], the authors studied the PV arrays formed by serial–parallel modules under partial shade condition but they took into account only one level of shade (0% insulation).

To reduce calculation tasks, and maintain the accuracy of PV array’s output reproduction using a small set of technical data provided by the manufacturer, this paper proposes a simple method to analytically find out the parameter values of a PV array model. Also, the paper introduces an extension of the method presented in [16] in order to consider series/parallel configurations to model PV arrays partially shaded with serial-parallel module topologies. The model presented in this paper is simple and relevant to any level of shade.

This paper is organized as follows: In the second section, the mathematic model of the one-diode equivalent circuit of a photovoltaic cell is detailed. Based on this model, the authors propose, in section III, a simple method to calculate the one-diode parameters under a given temperature and radiation values couple. The radiation value can change from one cell to another providing a model suitable for partial shading conditions. In Sect. 4, the experimental test is described and the obtained results are discussed in Sect. 5 proving the author propositions performances and giving the next steps to improve them.

2 Mathematical model for a photovoltaic cell

2.1 Modeling the photovoltaic cell

In the literature, there are several PV cell models (ideal model, one-diode and two-diode model…) [4]. The single-diode model is one of the most commonly used. The corresponding circuit equivalent to a solar cell is shown in Fig. 1, it has four components: a current source, one diode and two resistors to represent the losses: one in series Rs and one in parallel Rsh.

Fig. 1
figure 1

One diode equivalent circuit of a PV cell

The output voltage V and the load current I are related as:

$$I = I_{ph} - I_{d} - I_{sh} = I_{ph } - I_{s } \left[ {e^{{\frac{{V + R_{s} I }}{a}}} - 1} \right] - \frac{{V + R_{s} I}}{{R_{sh} }}$$
(1)

where: a = \(\frac{AKT}{q}\); \(I_{ph}\): Photocurrent (A); \(I_{s}\): saturation current (A); \(R_{s}\): series resistance (Ω); \(R_{sh}\): shunt résistance (Ω); a: modified ideal factor (V); A: diode ideal factor; T: cell temperature (K); q: electron charge (1602 × 10−19 C); k: Boltzmann constant (1.38 × 10−23 J/K).

2.2 Parameter calculation

The five parameters (\(I_{ph}\), \(I_{s}\), \(R_{s}\), \(R_{sh}\), A) must be determined to construct the I–V curve. They are obtained using Eqs. (2)–(6) and they depend on irradiance, temperature, manufacturer data and reference parameters [16, 19,20,21].

$$I_{ph} = \frac{G}{{G_{ref} }} \cdot \left[ {I_{ph\_ref} + \mu_{isc} \cdot \left( {T - T_{ref} } \right)} \right]$$
(2)
$$I_{s} = I_{s\_ref} \cdot \left( {\frac{T}{{T_{ref} }}} \right)^{3} \cdot e^{{\left[ {\left( {\frac{q.Eg}{A.K}} \right) \cdot \left( {\frac{1}{{T_{ref} }} - \frac{1}{T}} \right)} \right]}}$$
(3)
$$R_{s} = \frac{{G_{ref} }}{G} \cdot R_{S\_ref}$$
(4)
$$R_{sh} = \frac{{G_{ref} }}{G} \cdot R_{Sh\_ref}$$
(5)
$$A = A_{ref} \cdot \frac{T}{{T_{ref} }}$$
(6)

In these equations, the following five reference parameters are required: \(I_{{ph_{ref} }}\), \(I_{{s_{ref} }}\), \(A_{ref}\), \(R_{{S_{ref} }}\) et \(R_{{Sh_{ref} }}\) which are determined under standard test conditions. It is important to use the Eq. (1) and the available manufacturer data: the open circuit voltage Vco, the short circuit current, the voltage, VMPP, and the current, IMPP, at the Maximal Power Point (MPP). Procedures for determining the five parameters are given herewith:

  • For short circuit current: (I = Icc, V = 0), the diode current can be negleted (I_(ph) ≫ I_(s)) and \(\frac{{R_{{s_{ref} }} \cdot Icc}}{{R_{{sh_{ref} }} }} \ll 1\) leading to:

    $$I_{{ph_{ref} }} = Icc$$
    (7)
  • For open circuit voltage: (I = 0, V = Vco):

    $$0 = I_{{ph_{ref} }} - \frac{Vco}{{R_{{Sh_{ref} }} }} - I_{{s_{ref} }} \cdot \left[ {e^{{\frac{Vco}{a}}} - 1} \right]$$
    (8)
    $$I_{{s_{ref} }} = \frac{{I_{{ph_{ref} }} - \frac{Vco}{{R_{{Sh_{ref} }} }}}}{{e^{{\frac{Vco }{a}}} - 1 }}$$
    (9)
  • At the maximum power point: (I = IMPP, V = VMPP)

    $$I_{MPP} = I_{{ph_{ref} }} - \frac{{V_{MPP} + R_{{s_{ref} }} \cdot I_{MPP} }}{{R_{{sh_{ref} }} }} - I_{{s_{ref} }} \left[ {e^{{\frac{{V_{MPP} + R_{{s_{ref} }} \cdot I_{MPP} }}{a}}} - 1} \right]$$
    (10)

Since the value of \(R_{{s_{ref} }}\) is low, the limited developments given by (11) and (12) are possible.

$$e^{{R_{{s_{ref} }} }} \approx 1 + R_{{s_{ref} }}$$
(10)
$$(1 + R_{{s_{ref} }} )^{{\frac{{I_{MPP} }}{a}}} \approx 1 + R_{{s_{ref} }} \cdot \frac{{I_{MPP} }}{a}$$
(11)

In addition, considering (12), we can deduce (13)

$$e^{{\frac{{V_{MPP} + R_{{s_{ref} }} \cdot I_{MPP} }}{a}}} = e^{{\frac{{V_{MPP} }}{a}}} \cdot e^{{\frac{{R_{{s_{ref} }} .I_{MPP} }}{a}}} = e^{{\frac{{V_{MPP} }}{a}}} \cdot [e^{{R_{{s_{ref} }} }} ] \cdot^{{\frac{{I_{MPP} }}{a}}}$$
(12)
$$R_{{s_{ref} }} = \frac{{I_{{ph_{ref} }} - I_{MPP } - \frac{{V_{MPP} }}{{Rsh_{ref} }} + I_{{s_{ref} }} \left( {1 - e^{{\frac{{V_{MPP} }}{a}}} } \right)}}{{I_{MPP} \cdot \left( {\frac{{Is_{ref} }}{a}e^{{\frac{{V_{MPP} }}{a}}} + \frac{1}{{Rsh_{ref} }} } \right)}}$$
(13)
  • The slope of the I–V curve at the short circuit point given by (14).

    $$\frac{dIcc}{dV} = \frac{ - 1}{Rsh\_ref}$$
    (14)

Calculating the slope between the short circuit point and the maximum power point gives the expression of shunt resistance:

$$Rsh_{ref} = - \frac{0 - Vmp}{Icc - Imp}$$
(15)
  • The diode ideality factor Aref takes a value of the interval I = [1, 2]. The choice based on empirical analysis (= 2 for crystaline, < 2 for amorphous)

3 Modeling a photovoltaic array under partial shading

3.1 Modeling a PV array under partial shading conditions

Several cells associated in series and protected by bypass diodes form a PV module. In order to obtain a higher power, several modules can be connected in series and/or parallel to construct a PV array. Figure 2 shows a PV module containing an n cell string, each one is protected by a bypass diode and contains m cells in series.

Fig. 2
figure 2

PV module with n bypass diodes

The modeling of the PV module or array consists in determining the I–V characteristic. According to Eq. (1), it is difficult to directly get the relationship values between I and V. This difficulty is resolved by neglecting the current in shunt resistance. Hence, the simple relationship equation between I and V for a PV cell, module or array can be described as follows:

$$V = a \cdot \ln \left( {\frac{{I_{ph} - I}}{{I_{s } }} + 1} \right) - R_{s} I$$
(16)

Consequently, the output voltage of the module having n.m PV cells connected in series, is given by (17)

$$Vm = n*m*V = n*m*\left( {a \cdot \ln \left( {\frac{{I_{ph} - I}}{{I_{s } }} + 1 - R_{s} I} \right)} \right)$$
(17)

To determine the characteristic I–V of a PV array, it is necessary to determine at first the characteristic I–V of the PV module under partial shading conditions. The following development are based on the analysis of Y. Cao et al. [16], considered as a pioneer in modeling the PV modules.

Assume that the no 1_1 cell in the no 1 cell string is shaded, which is protected by a bypass diode (Fig. 3). The photocurrent of the no 1_1 cell \(I_{{ph_{1 - 1} }}\) which is proportional to solar irradiance, will be less than that of the other cells in the no 1 cell string \(I_{{ph_{{1 - i \left( {i = 2 \to m} \right)}} }}\).

Fig. 3
figure 3

PV module partially shaded

The PV cell has two operating modes [22]:

  • In the first case, 0 < I < \(I_{ph,1 - 1}\), the current conducted through the module is smaller than the photocurrent of the n° 1_1 cell. The shaded cell produces power normally and the state of the bypass diode is non-conducting.

    So that, the relationship equation between I and V 1-1 for a shaded PV cell n° 1_1 is described as follows:

    $$V_{1\_1} = a_{1 - 1} \cdot \ln \left( { \frac{{I_{ph,1\_1} - I}}{{I_{s,1\_1 } }} + 1} \right)$$
    (18)

    Thus the voltage of the no. 1 cell string can be presented as per the following:

    $$V_{1} = \, V_{1\_1} + \mathop \sum \limits_{i = 2}^{m} V_{1\_i} = = a_{1 - 1} \cdot \ln \left( { \frac{{I_{ph,1\_1} - I}}{{I_{s,1\_1 } }} + 1} \right) - R_{s,1\_1} I + \left( {m - 1} \right) \cdot \left( {a \cdot \ln \left( {\frac{{I_{ph} - I}}{{I_{s } }} + 1 - R_{s} I } \right)} \right)$$
    (19)
  • In the second case, \(I_{ph,1 - 1}\) < I < \(I_{ph,1 - i}\), the current conducted through the module is larger than the photocurrent of the n° 1_1 cell. The shaded cell is reverse biased and its voltage becomes negative. The state of the bypass diode depends on the threshold value Vdb (it is equal to 0.7 V in silicon case) and the value of the whole cell string.

Thus, the voltage of the n° 1_1 cell can be written as in (20):

$$V_{1\_1} = \, - \, (I \, - I_{ph,1\_1} )R_{sh,1\_1} - R_{s,1\_1} I$$
(20)

Furthermore, the voltage of the n° 1 cell string protected by the n° 1 bypass diode is given by (21):

$$V_{1} = \, V_{1\_1} + \mathop \sum \limits_{i = 2}^{m} V_{1\_i} = - \left( {I - I_{ph,1\_1} } \right) \cdot R_{sh,1\_1} - R_{s,1 - 1} I + \mathop \sum \limits_{i = 2}^{m} V_{1\_i}$$
(21)

The relationship between I and V1 for a shaded PV module, for different operating modes of a PV cell, is summarized in (21). The characteristics of a PV array get more complicated under a partial shading condition and the output voltage equation of PV array shown in Eq. (21) is not suitable for hybrid configuration of cells. A model of a partially shaded PV array having different configurations (series and/or parallel) of PV modules is proposed in the following.

Considering the partial shading condition, as shown in Fig. 4, a photovoltaic array is formed by nmp series strings of PV modules in parallel; each module string formed by nms PV modules in series. After determining the characteristic I–V of a PV module partially shaded, it is possible to generalize this method to obtain the characteristic I–V of a PV module string. The procedure to obtain the characteristic I–V of the whole PV array consists in the segmentation of all the characteristic I–V of module strings according to different voltage values and summing the currents at each of the characteristic of the module string for the same value of voltage. Therefore, all the operating points of the I–V curve of the PV array are known.

Fig. 4
figure 4

PV array partially shaded

The voltage of the module string n° j where j = [1;nmp] is the sum of the voltages of nms modules constituting this chain as shown in (22):

$$V_{ms\_j} = \mathop \sum \limits_{i = 1}^{nms} V_{j\_i}$$
(22)

The current of the array under partial shading conditions is the sum of current products in each module string. For each value \(v\) of the voltage interval, the use of the segmentation method is necessary to determine the current of every string of modules connected in series. The current of the PV array is described by (23)

$$I_{Array} \left( v \right) = \mathop \sum \limits_{j = 1}^{nmp} I_{ms j} \left( v \right).$$
(23)

3.2 Implementation of the proposed method to model a PV array under partial shading conditions

Figure 5 shows the procedure to determine the I–V curve of a PV array under partial shading conditions.

Fig. 5
figure 5

Diagram of the procedure to determine the characteristic I–V of a PV array under partial shading conditions

Using the manufacture data of the module PV (ISC, VOC, IMPP,VMPP) is necessary to determine the reference parameters (\(a_{ref}\), \(I_{ph\_ref}\), \(I_{s\_ref }\),\(R_{sh\_ref}\),\(R_{s\_ref}\)) which are primordial to compute the parameters of PV cells (a, \(I_{ph }\), \(I_{s }\), \(R_{sh}\) et \(R_{s}\)) at different conditions of temperature and solar irradiance. The following parameters \(a_{A}\), \(I_{ph\_A }\), \(I_{s\_A}\), \(R_{sh\_A}\), \(R_{s\_A}\) are the PV array parameters on which are based the nmp modules string that has the following five parameters \(a_{ms}\), \(I_{ph\_ms }\), \(I_{s \_ms}\), \(R_{sh\_ms}\), \(R_{s\_ms}\).

Each module string consists of nms modules that have the following parameters: \(a_{m}\), \(I_{ph\_m}\), \(I_{s \_m}\), \(R_{sh\_m}\), \(R_{s\_m}\). The parameters \(a_{cs}\), \(I_{ph\_cs}\), \(I_{s \_cs}\), \(R_{sh\_cs}\), \(R_{s\_cs}\) are the five parameters of the cell string in the PV module.

4 Experimental results

In order to verify and validate experimentally the suggested modeling methodology of the PV array partially shaded, we consider two parallel‐connected 180 W PV modules. Figure 6 describes the configuration of the tested PV array. It can be seen that there are two modules in parallel, each has 72 mono-crystalline cells serially connected, three cell strings and three bypass diodes. Each cell string has 24 cells and is protected by one bypass diode.

Fig. 6
figure 6

The configuration of the experimental PV array

The specifications of the PV modules in STC used to obtain the simulation of the characteristic I–V are shown in Table 1.

Table 1 Manufacturer data of one 180 W PV module

The I–V characteristic was measured by changing the impedance of seven resistances of 4.7 Ω connected in series in order to obtain several operating points (voltage V, current I). The use of digital multi-meter is helpful for more accuracy of measurement. During the measurements, the average irradiance and temperature were 420 W/m2 and 60 °C for the sunny cells. In order to create a partial shadowing condition, one cell in the cell string is covered with a sheet of cardboard, which makes the shadowing close to 100%, i.e., near zero solar irradiation on the covered area.

Three shading schemes for testing the characteristic output of the PV array under partial shading conditions were conducted (Table 2). Figures 7, 8 and 9 show the I–V characteristic curves of the tested PV array under three partial shading schemes. It is clear that under the shading conditions the I–V curves have multiple local maxima.

Table 2 Partial shading conditions and environmental data
Fig. 7
figure 7

I–V curve under the shading condition of testing scheme 1

Fig. 8
figure 8

I–V curve under the shading condition of testing scheme 2

Fig. 9
figure 9

I–V curve under the shading condition of testing scheme 3

Figure 7 shows the I–V curve under the partial shading conditions of the testing scheme 1, at which only the 3 cell strings in the PV module 2 are partially shaded. The state of the three bypass diodes protecting the cell strings of module 2 are all in the non-conducting state.

The aim of the partial shading conditions of the testing scheme 2 is to test the I–V curve when one bypass diode is affected by the shaded cell string in the PV module 1. As shown in Fig. 8, the I–V curve is deformed. For voltage values higher than 2/3 Vco, the total current decreases by 50% because the PV array behaves as a single PV module.

Figure 9 shows that for the I–V characteristic, simulated with Matlab, the current is almost zero. Also, the operating points of the I–V characteristic obtained experimentally, have a low value of current because of the conducting states of all the diodes bypass. It is to be noted that the current scale used for Fig. 8 (1 A/div) is ten times higher than the one used for Fig. 9 (0.1 A/div). This underlines the quite absence of output current both with simulation and under experimental tests.

Figures 7, 8 and 9 show the simulated and experimental I–V curve of the PV array partially shaded. Consequently, the high consistency between simulated and experimental I–V curves can be proved.

5 Result analysis and discussion

The comparison between the experimental results and those simulated using the proposed modeling method confirm two aspects.

First, the calculation of the five parameters use simpler equations than presented in [16]. This is due to the fact to considering the value of the series Resistance Rs sufficiently small and the simplification of the two terms (dV/dI)V=0 and (dV/dI)I=0 as detailed in [20].

In addition, we presented in this paper a modeling of a PV array under partial shading conditions, and the array can be a series and/or parallel configuration of PV modules. Indeed, the model provided by [16], which is available only for series configuration, is extended by the means of simple considering simply the same voltage segmentation as for the cell configuration. The obtained experimental results confirm the performances of the proposed model.

The proposed model is suitable for intermediate irradiation values and is not limited to 0% or 100% ones. This is of great interest because major real applications represent this second case. Consequently, our next experimental tests will include such scenarios. Furthermore, the proposed model will be used in the control part of PV emulator systems. Such a system consists mainly in a power converter controlled in order to have its output voltage and current matching the I–V curve of the emulated PV installations. The second important application of a such a modeling for partial shaded PV systems is the monitoring of large PV installations in order to detect possible failures caused by soiling, dust deposit or any obstacle on the active area such as leaves, neighboring buildings or trees.

6 Conclusion

The determination of the I–V characteristic of a partially shaded PV array is an interesting challenge since such an accurate curve models the PV panel output behavior under real and variable climate and environment conditions. As mentioned in the paragraph V this model can be used for the PV emulator design or for PV plants monitoring and fault detection. The simple one-diode model of one PV panel is used to describe the PV plant behavior when the Temperature and irradiance is uniform on the plant surface. This model involve five parameters that can be easily calculated under such conditions.

This paper considered the case when one PV plant receives non-uniform irradiance, i.e. under partial shading condition and proposed a methodology to calculate the five parameters of the one-diode model using only the available data provided by the manufacturer. Indeed, the paper pointed out a simple method to mathematically determine the expression of these five parameters. Then, the development of the procedure to determine the I–V characteristic of PV array composed of several series or parallel modules is presented taking into account the weather and partial shading conditions.

To verify the accuracy of the proposed method of determining the characteristic I–V for a PV array under partial shading conditions, three testing schemes with different shading conditions in the PV array were carried out. The experimental results has proven that the proposed method has great accuracy in simulating the I–V characteristic of a PV array under partial shading conditions. The ultimate goal of this paper is to provide the reader with essential information to easily develop the model of photovoltaic array under partial shading conditions and to predict the output of a real PV array under complex operating conditions. It can be efficiently used for example to design accurate photovoltaic generator emulators that meet the EN 50530 European standard requirements. Also, the proposed model of partially shaded PV installations could be used to create various PV plant I–V curves for different partial shading conditions. These I–V curves could be form a database and the comparison of an measured IV curve and those of the database could be used to determine the partial shadow condition and detect possible failures caused by soiling or the existence of an obstacle on the PV cells such as leaves or neighboring buildings.