Three-Phase Power Flow Tool for Electric Distribution Grids: A Julia Implementation for Electrical Engineering Students

Authors

Keywords:

Electrical Engineering, students (en).

Author Biographies

Oscar Danilo Montoya, Universidad Distrital Francisco José de Caldas ,Universidad Distrital Francisco José de Caldas

Compatibility and Electromagnetic Interference group, Department of Engineering, Universidad
Distrital Francisco Jos´e de Caldas; Electrical Engineer, Master in Electrical Engineering, and PhD
in Engineering.

Walter Gil-González, Technological University of Pereira

Electromagnetic Fields and Energy Phenomena group, Department of Engineering, Universidad
Tecnol´ogica de Pereira; Electrical Engineer, Master in Electrical Engineering, and PhD in Engineering.

References

C. Yang, Y. Sun, Y. Zou, F. Zheng, S. Liu, B. Zhao, M. Wu, and H. Cui, "Optimal power flow in distribution network: A review on problem formulation and optimization methods," Energies, vol. 16, no. 16, p. 5974, Aug. 2023. https://doi.org/10.3390/en16165974 DOI: https://doi.org/10.3390/en16165974

A. Garcés, "A linear three-phase load flow for power distribution systems," IEEE Trans. Power Syst., vol. 31, no. 1, pp. 827-828, Jan. 2016.

https://doi.org/10.1109/TPWRS.2015.2394296 DOI: https://doi.org/10.1109/TPWRS.2015.2394296

B. Cortés-Caicedo, L. S. Avellaneda-Gómez, O. D. Montoya, L. Alvarado-Barrios, and H. R. Chamorro, "Application of the vortex search algorithm to the phase-balancing problem in distribution systems," Energies, vol. 14, no. 5, p. 1282, Feb. 2021.

https://doi.org/10.3390/en14051282 DOI: https://doi.org/10.3390/en14051282

O. D. Montoya, J. S. Giraldo, L. F. Grisales-Noreña, H. R. Chamorro, and L. Alvarado-Barrios, "Accurate and efficient derivative-free three-phase power flow method for unbalanced distribution networks," Computation, vol. 9, no. 6, p. 61, May 2021. https://doi.org/10.3390/computation9060061 DOI: https://doi.org/10.3390/computation9060061

J. M. Perkel, "Julia: Come for the syntax, stay for the speed," Nature, vol. 572, no. 7767, pp. 141-142, Jul. 2019. https://doi.org/10.1038/d41586-019-02310-3 DOI: https://doi.org/10.1038/d41586-019-02310-3

How to Cite

APA

Montoya, O. D., Garcés-Ruiz, A., and Gil-González, W. (2023). Three-Phase Power Flow Tool for Electric Distribution Grids: A Julia Implementation for Electrical Engineering Students. Ingeniería, 28(3), e21419. https://doi.org/10.14483/23448393.21419

ACM

[1]
Montoya, O.D. et al. 2023. Three-Phase Power Flow Tool for Electric Distribution Grids: A Julia Implementation for Electrical Engineering Students. Ingeniería. 28, 3 (Oct. 2023), e21419. DOI:https://doi.org/10.14483/23448393.21419.

ACS

(1)
Montoya, O. D.; Garcés-Ruiz, A.; Gil-González, W. Three-Phase Power Flow Tool for Electric Distribution Grids: A Julia Implementation for Electrical Engineering Students. Ing. 2023, 28, e21419.

ABNT

MONTOYA, Oscar Danilo; GARCÉS-RUIZ, Alejandro; GIL-GONZÁLEZ, Walter. Three-Phase Power Flow Tool for Electric Distribution Grids: A Julia Implementation for Electrical Engineering Students. Ingeniería, [S. l.], v. 28, n. 3, p. e21419, 2023. DOI: 10.14483/23448393.21419. Disponível em: https://revistas.udistrital.edu.co/index.php/reving/article/view/21419. Acesso em: 3 dec. 2024.

Chicago

Montoya, Oscar Danilo, Alejandro Garcés-Ruiz, and Walter Gil-González. 2023. “Three-Phase Power Flow Tool for Electric Distribution Grids: A Julia Implementation for Electrical Engineering Students”. Ingeniería 28 (3):e21419. https://doi.org/10.14483/23448393.21419.

Harvard

Montoya, O. D., Garcés-Ruiz, A. and Gil-González, W. (2023) “Three-Phase Power Flow Tool for Electric Distribution Grids: A Julia Implementation for Electrical Engineering Students”, Ingeniería, 28(3), p. e21419. doi: 10.14483/23448393.21419.

IEEE

[1]
O. D. Montoya, A. Garcés-Ruiz, and W. Gil-González, “Three-Phase Power Flow Tool for Electric Distribution Grids: A Julia Implementation for Electrical Engineering Students”, Ing., vol. 28, no. 3, p. e21419, Oct. 2023.

MLA

Montoya, Oscar Danilo, et al. “Three-Phase Power Flow Tool for Electric Distribution Grids: A Julia Implementation for Electrical Engineering Students”. Ingeniería, vol. 28, no. 3, Oct. 2023, p. e21419, doi:10.14483/23448393.21419.

Turabian

Montoya, Oscar Danilo, Alejandro Garcés-Ruiz, and Walter Gil-González. “Three-Phase Power Flow Tool for Electric Distribution Grids: A Julia Implementation for Electrical Engineering Students”. Ingeniería 28, no. 3 (October 17, 2023): e21419. Accessed December 3, 2024. https://revistas.udistrital.edu.co/index.php/reving/article/view/21419.

Vancouver

1.
Montoya OD, Garcés-Ruiz A, Gil-González W. Three-Phase Power Flow Tool for Electric Distribution Grids: A Julia Implementation for Electrical Engineering Students. Ing. [Internet]. 2023 Oct. 17 [cited 2024 Dec. 3];28(3):e21419. Available from: https://revistas.udistrital.edu.co/index.php/reving/article/view/21419

Download Citation

Visitas

537

Dimensions


PlumX


Downloads

Download data is not yet available.

Most of the concepts involved in Electrical Engineering have been developed from the 20th century to the present day. One of the most popular studies in this field is the power flow problem for electrical systems composed of multiple nonlinear loads (i.e., loads with constant power consumption) 1. This problem is formulated by applying Kirchhoff’s voltage law to each node in the system, which results in a set of nonlinear algebraic equations that consider steady-state conditions 2. In this vein, this editorial note presents a tutorial for Electrical Engineering students regarding the general implementation of the three-phase power Flow problem in distribution networks via the successive approximations method 3.

General three-phase power flow formulation

The general formula for the power flow solution in three-phase networks is obtained after applying Kirchhoff’s voltage law to each network node, which produces the set of constraints defined by

where Yds3φ ∈ C3(n−1)×3 and Ydd3φ ∈ C3(n−1)×3(n−1) are complex sub-matrices obtained for the nodal three-phase admittance matrix Ybus3φ (note that this matrix can be obtained using the node-to-branch incidence and the admittance primitive matrices 3); Id3φ ∈ C3(n−1)×1 is the complex vector of demanded currents, which is a nonlinear function of the demanded voltages Vd3φ ∈ C3(n−1)×1 and the constant complex power loads; and Vs3φ ∈ C3×1 is the complex power voltage output at the terminals of the substation. Note that C denotes the set of complex numbers.

Remark 1. The calculation of the demanded current vector Id3φ depends on the load connection type, i.e., Wye (Y ) or Delta (Δ).

To illustrate the general calculation of the three-phase demanded currents, consider the schematic load connections presented in Figs. 1a and 1b.

Constant power load: a) Y connection and b) Δ connection

Figure 1: Constant power load: a) Y connection and b) Δ connection

For these load connections, when Tellegen’s second theorem is applied (i.e., the relation between voltages, currents, and powers), the following compacted three-phase current formulas are obtained:

where the matricesMand H take the following form

and (·) is the complex conjugate operation applied to the argument.

Iterative power flow solution

Considering the general power flow formula in (1) and the definition of the demanded current in 4, an iterative power flow formula can be obtained (4).

where

for all k in the set of the demanded buses.

Remark 2. Eqs. (5) and (6) are iteratively solved until the desired error of convergence is reached, i.e.,

with ε being the convergence’s tolerance.

Julia implementation

Julia is an efficient programming environment that combines the advantages of Python, Matlab, and R with the efficiency of well-known programming languages such as C++ or Fortran 5. To illustrate the general implementation of the three-phase power flow problem in Julia, consider a small distribution grid composed of seven buses and six lines, which is unbalanced and operates with a line-to-ground voltage of 23 kV at the terminals of the substation. All the information on this system is directly presented in the Julia scripts. Fig. 2 illustrates the first part of the three-phase power flow problem’s implementation in distribution networks.

Parametric information associated with the three-phase 7-bus network

Figure 2: Parametric information associated with the three-phase 7-bus network

Fig. 2 presents the parametric information of the network, i.e., the distribution line impedance (in this example, the three-phase impedance matrix is assumed to be balanced with values only in its diagonal) and the constant power loads. Note that, if node_data.Type [k,1] == 1, the load associated with the k-node is Y -connected; otherwise, it is Δ−connected.

The next step is calculating the nodal admittance matrix. This process is shown in Fig. 3.

Once the nodal admittance matrix has been constructed, the iterative power flow formula defined in (5), the current calculation in (6), and the stopping criterion in (7) are implemented in Julia using a function called Successive3f(node_data,Ybus3f,error,tmax,Sb) (Fig. 4). This implementation is intuitive, and the student/researcher can easily follow all the procedures for solving the three-phase power flow problem via the successive approximations method.

Finally, to obtain the general power flow solution for the 7-bus grid used in this example, the power flow function calculates all the phase voltages, which allows obtaining the total grid apparent power losses and reporting the voltage magnitudes and angles per phase. This process is depicted in Fig. 5. It is worth mentioning that, this figure, the apparent power losses are calculated using Eq. (8).

General construction of the three-phase nodal admittance matrix

Figure 3: General construction of the three-phase nodal admittance matrix

where V corresponds to the voltage output obtained by calling the power flow function implemented in Fig. 4 as V3f = Successive3f(node_data,Ybus3f,error,tmax,Sb).

The power flow solution for this numerical example is plotted in Fig. 6.

The student/researcher interested in the Julia-based three-phase power flow solution presented in this editorial note should thoroughly examine all the codifications and follow each one of the presented plots (see Figs. 2 to 6) to reach the same numerical solution presented in Fig. 6.

Conclusion

This editorial note presented an intuitive algorithm based on the successive approximations power flow method with the aim of solving the three-phase power flow problem in electric distribution networks via the Julia programming environment (version 1.9.2). The main idea of this tutorial is to provide a new power flow tool for Electrical Engineering students and researchers, an easily implementable open-source algorithm for conducting studies in unbalanced distribution networks.

Iterative three-phase power flow solution

Figure 4: Iterative three-phase power flow solution

Calling the three-phase power flow function and reporting the results

Figure 5: Calling the three-phase power flow function and reporting the results

Three-phase power flow solution in the studied 7-bus grid

Figure 6: Three-phase power flow solution in the studied 7-bus grid

Acknowledgements

Acknowledgements

The first author wants to thank the Master’s Program in Electrical Engineering of Universidad Tecnológica de Pereira and the Unbalanced Distribution Grids Analysis course, wherein this material has been developed to teach graduate and undergraduate Electrical Engineering students during the second semester of 2023.

Referencias

[1] C. Yang et al., “Optimal power flow in distribution network: A review on problem formulation and optimization methods,” Energies, vol. 16, no. 16, p. 5974, Aug. 2023.

[2] A. Garces, “A linear three-phase load flow for power distribution systems,” IEEE Trans. Power Syst., vol. 31, no. 1, pp. 827-828, Jan. 2016.

[3] B. Cortés-Caicedo, L. S. Avellaneda-Gómez, O. D. Montoya, L. Alvarado-Barrios, and H. R. Chamorro, “Application of the vortex search algorithm to the phase-balancing problem in distribution systems,” Energies, vol. 14, no. 5, p. 1282, Feb. 2021.

[4] O. D. Montoya, J. S. Giraldo, L. F. Grisales-Noreña, H. R. Chamorro, and L. Alvarado-Barrios, “Accurate and efficient derivative-free three-phase power flow method for unbalanced distribution networks,” Computation, vol. 9, no. 6, p. 61, May 2021.

[5] J. M. Perkel, “Julia: Come for the syntax, stay for the speed,” Nature, vol. 572, no. 7767, pp. 141-142, Jul. 2019.

O. D. Montoya, A. Garcés-Ruiz y W. Gil-González, "Herramienta de flujo de energía trifásica para redes de distribución eléctrica: una implementación de Julia para estudiantes de ingeniería eléctrica", Ing., vol. 28, no. 3, p. e21419, octubre de 2023

Most read articles by the same author(s)

Similar Articles

<< < 4 5 6 7 8 9 10 11 12 13 > >> 

You may also start an advanced similarity search for this article.

Publication Facts

Metric
This article
Other articles
Peer reviewers 
0
2.4

Reviewer profiles  N/A

Author statements

Author statements
This article
Other articles
Data availability 
N/A
16%
External funding 
No
32%
Competing interests 
N/A
11%
Metric
This journal
Other journals
Articles accepted 
76%
33%
Days to publication 
0
145

Indexed in

Editor & editorial board
profiles
Loading...