1 Introduction

Nowadays, smart grids are more popular than classical distribution networks because of high-power quality, automatic fault detection, dual energy transmission, renewable power integration, safe, economy, and efficiency. Electricity distribution companies can estimate the energy need in advance. Therefore, sustainable, safe, and cheaper energy can be supplied for customers [16].

RESs have an important place in the smart grid, because they can be installed closer to settlements. Thus, energy production will be cheaper than the conventional power plants and power losses, and the voltage drop can be decreased. The interest in RESs as distributed generation is growing, and PV panels are being used widely as RES [710].

PV cells produce DC voltage depending on ambient temperature and solar irradiation level. Most researchers are working on PV cell modeling. Mathematical model and electrical equivalent circuit of PV cell are investigated for the simulations in this works [1118].

Another issue that needs development with RESs is energy storage systems. RESs widely used at smart grid applications and PV arrays cannot generate electricity all day and ESSs can store the extra power which is generated by PV array. Besides power demand is not always stable, and ESSs can be used for feeding the peak load. To meet this demand in an optimum way, ESSs must be located to correct bus. Therefore, ESSs can minimize voltage fluctuations and decrease power losses. Thus, connection to the correct bus for ESSs can help the aim of Smart Grid. The studies about the ESS location selection are generally about connection to the transformer secondary, connection to the same bus with the largest RES, or connection to the largest load bus [1928].

The aim of this paper is ESS location selection for selected distribution networks. First, a location planning algorithm (LPA) is improved to connect ESS to the correct bus for increasing the energy quality with lower cost. LPA is created based on the load flow algorithm. The forward–backward method is used for this purpose. The location is determined with voltage index for optimum ESS usage. Load flow results for the distribution network have been obtained. Then, the mathematical model of PV cell is created, PV arrays based on the mathematical model are connected to the bus randomly, and load flow results are recorded. After this section, LPA is optimized for determining the location of the ESS. Finally, load flow results are taken again, and power losses and voltage levels are compared with other results. RESs are widely used at SGs, and ESSs will be a solution for continuity problem of RESs. Optimum usage can be obtained for ESS with LPA. Energy quality based on voltage regulation can increase, and energy cost can decrease with lower power loss and higher voltage level by means of connecting the ESS to the correct bus.

2 Location selection for ESS

Energy storage systems play an important role in the integration of renewable energy sources to the distribution grid. ESSs can be a solution to the sustainability problem of RESs for energy supply, and in addition, the ESS can help about voltage control, power quality, economy, power losses, and peak shaving. Connecting to the correct bus is important to use the ESS more efficiently. The location of the ESS plays an important role for voltage stability and lower power loss. ESSs are generally connected to the transformer secondary, the same bus with the largest RES or the largest load bus in the studies.

We studied a new approach for determining the location, and an algorithm is prepared based on the load flow (LF) analysis. The forward–backward method is used as a load flow algorithm. Classical load flow algorithms as Newton Rapson, Gauss Siedel, and Fast Decoupled are developed for transmission lines. Distribution networks need different methods because of load profiles and network structures. Newton-based methods, forward–backward method, compensation methods, Kirchoff voltage rule, and direct methods can be used in DNs. One of the most widely used methods is the forward–backward method, and the basic steps of the algorithm are [29]:

  • Step 1: Assign initial values and calculate branch currents.

  • Step 2: Calculate the line currents with Kirchoff current law from the last line to the source.

  • Step 3: Calculate the bus voltages from the source to the last bus.

  • Step 4: Determine the voltage errors and if the error is lower than defined error value, finalize the process. Otherwise, calculate the load currents with the last voltage values and go to step 2.

Voltage levels of the busses can be increased, and power losses can be decreased by selecting the correct bus for ESS. LF algorithm is revised for this purpose to determine optimum bus for ESS. Bus voltage levels and active–reactive power losses are obtained from load flow. These results are used for ESS location selection. The LPA controls the IEEE limits for voltage levels, and LPA calculates a voltage index, as shown in Eq. (1). The bus which has the largest value of the voltage index is selected as ESS bus. The flowchart of the proposed algorithm can be found in Fig. 1:

$$\begin{aligned} v_i =\frac{\min ( {V_{\mathrm{lf}} \left( j \right) } )*n}{\mathop \sum \nolimits _{j=1}^n V_{\mathrm{lf}} \left( j \right) } \end{aligned}$$
(1)

where n is bus number of DN, \(V_{\mathrm{lf}} \) is the voltages of the load flow results, and \(v_i \) is the voltage index.

Fig. 1
figure 1

Flowchart for the ESS location selection

Fig. 2
figure 2

PV cell electrical equivalent circuit

Fig. 3
figure 3

12 bus distribution network [30]

Fig. 4
figure 4

33 bus distribution network [31]

3 PV array

PV cells consist of semiconductor materials and produce DC voltage depending on ambient temperature and solar irradiation. PV (photovoltaic) cells’ operating principle is similar to the p–n junction diode. The sunlight is absorbed by the junction, and absorbed photon energy is transferred to the electron structure of the material. Electrical charge carriers are created in the junction gap, and these carriers generates potential. The current circulation is provided through an external circuit. The photon power which cannot transfer to the external circuit increases the PV cell temperature. PV cell can be modelled with the current source, parallel diode, and parallel and series resistances, as shown in Fig. 2. PV cell generates current (\(I_{\mathrm{ph}})\) depending on the solar irradiation and temperature. The equation of the output current statement of PV cell is given in (2).

$$\begin{aligned} I=I_{\mathrm{ph}} -I_\mathrm{d} -I_\mathrm{p}. \end{aligned}$$
(2)

Equations (3), (4), and (5) show the currents in (2), and Eqs. (6) and (7) are necessary to calculate these currents [1118]:

$$\begin{aligned}&I_{\mathrm{ph}} =N_\mathrm{p} *\frac{G_\mathrm{T} }{G_{\mathrm{T_\mathrm{ref}}} }*[ {I_{{\mathrm{ph}}_{\mathrm{ref}}} +K_i ( {T_\mathrm{C} -T_{\mathrm{C}_{\mathrm{ref}}} } )} ] \end{aligned}$$
(3)
$$\begin{aligned}&I_\mathrm{d} =N_\mathrm{p} *I_\mathrm{s} *\left[ {\mathrm{e}^{\frac{q\left( {V+I\frac{N_\mathrm{s} }{N_\mathrm{p} }R_\mathrm{s} } \right) }{N_\mathrm{s} nkN_\mathrm{c} T_\mathrm{C} }}-1} \right] \end{aligned}$$
(4)
$$\begin{aligned}&I_\mathrm{p} =\frac{V+I\frac{N_\mathrm{s} }{N_\mathrm{p} }R_\mathrm{s} }{\frac{N_\mathrm{s} }{N_\mathrm{p} }R_\mathrm{p} } \end{aligned}$$
(5)
$$\begin{aligned}&I_\mathrm{s} =I_{\mathrm{s}_{\mathrm{ref}}} *\left[ {\left( {\frac{T_{\mathrm{C}_{\mathrm{ref}}} }{T_\mathrm{C} }} \right) ^{3}*\mathrm{e}^{\frac{qE_\mathrm{g} }{nk}*\left( {\frac{1}{T_{\mathrm{C}_{\mathrm{ref}}} }-\frac{1}{T_\mathrm{C} }} \right) }} \right] \end{aligned}$$
(6)
$$\begin{aligned}&I_{\mathrm{s}_{\mathrm{ref}}} =\frac{I_{{\mathrm{sc}}_{\mathrm{ref}}} +K_i ( {T_\mathrm{C} -T_{\mathrm{C}_{\mathrm{ref}} } } )}{\mathrm{e}^{\frac{q( {V_{{\mathrm{oc}}_{\mathrm{ref}}} +K_\mathrm{v} ( {T_\mathrm{C} -T_{\mathrm{C}_{\mathrm{ref}} } } )} )}{nkN_\mathrm{c} T_\mathrm{C} }}-1}. \end{aligned}$$
(7)

The nomanclature of the PV array is given in Table 1.

Table 1 Nomenclature

4 Case studies

There is no need to have a license under the 1000 kW PV array in Turkey. The objective of this paper is to locate the ESS for the unlicensed PV arrays to decrease the power losses and to increase the voltage levels for lower energy cost. Besides, PV arrays cannot produce electricity in every hours of a day. ESSs store the energy which is produced by the PV arrays and the stored energy can be used at the peak time. Two distribution networks as 12 bus and 33 bus are used for case studies. Figure 3 shows the 12 bus DN, and Fig. 4 shows the 33 bus DN. Line data and load data are given in Tables 6 and  7 in the “Appendix” for distributions networks. The study is simulated in MATLAB. PV arrays based on Eq. (2) are added to the network randomly for the unlicensed manufacturers, and the location of ESS is planned with the proposed algorithm.

4.1 Case 1

12 bus distribution network is used for checking the algorithm, and load flow results are verified with [30], as shown in Table 2. Table 3a shows the base case for the 12 bus distribution network. In this case, there are no PV array and ESS. The results are belonged to the load flow results for the basic network. Then, a bus is selected randomly, and 20 kW PV array is located to the 7\({\mathrm{th}}\) bus. Load flow results are given in Table 3b. Then, the LPA is ran and 5\({\mathrm{th}}\) bus is found for the 10 kW ESS. The results are given in Table 3c. Voltage-level comparison can be seen in Fig. 5, and power loss comparison is in Fig. 6. Figure 5 shows that voltage levels change between 0.9444 and 1.0000 for 12 bus DN. After selecting the 5\({\mathrm{th} }\) bus with LPA and connecting ESS to the 5\({\mathrm{th}}\) bus, voltage levels changes between 0.9805 and 1.0000. Figure 6 shows that PV array helps to decrease the power losses from 20.6891 to 18.5502 kW and 8.0319–7.183110 kVAr, and power losses are decreased to 18.0477 kW and 6.9737 kVAr with ESS connection.

Fig. 5
figure 5

Voltage-level comparison for 12 bus DN

Fig. 6
figure 6

Power loss comparison for 12 bus DN

Table 2 Verification table
Table 3 Results of 12 bus distribution network

4.2 Case 2

In this case, a 33 bus distribution network is used for ESS location planning. Load flow results are given in Table 4a for the 33 bus DN. Then, the 50 kW PV array is connected to the 3\({\mathrm{th}}\) bus, 90 kW PV array is connected to 10\({\mathrm{th}}\) bus, 80 kW PV array is connected to 15\({\mathrm{th}}\) bus, 100 kW PV array is connected to 23\({\mathrm{th}}\) bus, 20 kW PV array is connected to 30\({\mathrm{th}}\) bus, and busses are selected randomly. Load flow algorithm is ran again, and the results are given in Table 4b. Then, the location planning algorithm is ran, 6\({\mathrm{th}}\) bus is determined for the 40 kW ESS based on voltage index, as shown in Fig. 7, and the load flow results are given in Table 4c.

Fig. 7
figure 7

Voltage index for 33 bus DN

Table 4 Results of 33 bus distribution network

Figure 8 shows that PV arrays help to increase voltage levels but still the results is not between the IEEE limits (±5 %) and minimum voltage level is 0.8820. All voltage levels are between the ±5 % limits after ESS connection, and minimum voltage level is increased to 0.9708 in Fig. 8. Power losses are decreased from 281.5877 to 212.2384 to 204.7387 kW and 187.9595 to 141.3620 to 136.4772 kVAr in Fig. 9.

Fig. 8
figure 8

Voltage-level comparison for 33 bus DN

Fig. 9
figure 9

Power loss comparison for 33 bus DN

4.3 Case 3

The works about the location selection are generally about connection to the transformer secondary, connection to the same bus with the largest RES, or connection to the largest load bus. The ESS is connected to these locations separately, and the voltage levels and power losses for these locations are compared in this case. The results are given in Table 5. The results show that LPA is successful about choosing the correct place for ESS. Voltage levels are higher than the other locations, and power losses are lower than the other locations. Figs. 10 and 11 belong to the voltage-level comparison and power loss comparison for different ESS location. Figures are showing the success of the algorithm about increasing the voltage levels and decreasing the power losses. Minimum voltage level is 0.8820 for transformer secondary, 0.9313 for the same bus with the largest PV and the largest load, and 0.9708 for LPA. Power losses are 281.5877 kW and 187.9595 kVAr for transformer secondary, 210.8217 kW and 139.9223 kVAr for the same bus with the largest PV, 209.7123 kW and 139.9223 kVAr for the same bus with the largest load, and 204.7387 kW and 136.4772 kVAr for LPA.

Fig. 10
figure 10

Voltage-level comparison for different ESS locations

Fig. 11
figure 11

Power loss comparison for different ESS locations

Table 5 Comparison of different ESS locations

5 Conclusion

In this paper, PV array is modelled mathematically, and two distribution networks as 12 bus DN and 33 bus DN are chosen for planning work. Forward–backward load-flow-based LPA is prepared for selecting ESS location.

The accuracy of the PV array and load flow algorithm were tested separately. Then, unlicensed PV arrays are connected to distribution networks randomly, and the proposed algorithm was run. The results were evaluated by a voltage index, and the suggested location of the ESS was determined with these results. The algorithm was applied to the 12 bus DN and 33 bus DN. The proposed algorithm results which include the voltage levels for all busses, and total active and reactive power losses were compared with classical load flow results and the results of connected PV arrays network in case 1 and case 2.

ESSs are generally connected to the transformer secondary, connection to the same bus with the largest RES or connection to the largest load bus. In case 3, the proposed algorithm was compared with the results in these locations. Voltage levels and active–reactive power losses were used for this comparison.

ESSs are an important part of the smart grid because of the RES integration, low-cost and high-quality energy requirements, and lower power losses. ESS location selection is a significant process to provide these needs. This work proposes a new approach with LPA for optimum usage of ESS to decreasing line losses, reducing production cost, and improving energy quality. The results show the importance of the selecting correct bus for ESS. LPA is more successful than general approaches to location selection.