Section C

Power-Flow Simulator with Visualization Function Based on IEEE Common Data Format

Shohei Sugino1,*, Hiroo Sekiya1
Author Information & Copyright
1Graduate School of Advanced Integration Science, Chiba University, 1-33 Yayoicho, Inage-ku, Chiba, Japan, sugino@chiba-u.jp, sekiya@faculity.chiba-u.jp
*Corresponding Author: Shoei Sugino, Graduate School of Advanced Integration Science, Chiba University, 1-33 Yayoicho, Inage-ku, Chiba, Japan, sugino@chiba-u.jp.

© Copyright 2018 Korea Multimedia Society. This is an Open-Access article distributed under the terms of the Creative Commons Attribution Non-Commercial License (http://creativecommons.org/licenses/by-nc/4.0/) which permits unrestricted non-commercial use, distribution, and reproduction in any medium, provided the original work is properly cited.

Received: Dec 20, 2016 ; Revised: Dec 30, 2016 ; Accepted: Dec 31, 2016

Published Online: Dec 31, 2016

Abstract

In this paper, a power flow simulator, which visualizes power flow and system configuration, is proposed and implemented. Generally, it is necessary to prepare a text file with power–system descriptions, which is one of the barriers for power-flow simulations. The proposed simulator has a function of automatic generations of IEEE common data format files from user-drawn power-system diagrams. Therefore, it is possible for users to carry out simulations only by drawing power system on display. In addition, the proposed simulator also has a function that power–system diagram is illustrated automatically from an IEEE common data format file. By using this function, it is possible to visualize amounts and directions of power flows on the bus-system diagram, which helps users to comprehend network dynamics intuitively. Because the proposed simulator allows including renewable–resource generators in power systems, it is useful to evaluate the power distribution system. It is shown in this paper that the proposed simulator can make IEEE common data format files correctly and illustrate intuitive power flow.

Keywords: Power flow; simulator; visualization; smart grid

I. INTRODUCTION

In recent years, for decreasing carbon emission, renewable energy such as wind power and solar photovoltaic are focused on. Renewable energy is ecological, but the amount of generation is affected by weather conditions. In this sense, it can be stated that renewable energy is unstable in time. Therefore, it is necessary to comprehend the power-flow states, in case that the renewable energy generators are included in power systems.

The power-flow state is obtained by power flow calculations. Various simulators, which calculate power flows have been developed until now [1, 2]. Generally, power-flow simulators such as MATPOWER [1] need to prepare an IEEE common data format file. When users would like to simulate a user-defined power system, it is necessary to prepare an IEEE common data format file in the text format, which is one of the barriers for power-flow simulations. In addition, visualizing power flow helps users to get a whole picture of the power system [3, 4].

These simulators, however, do not have a function that the power-system diagram is illustrated automatically from an IEEE common data format file [5]. Therefore, it is difficult to simulate power flows of user-defined power systems. Additionally, it is effective to visualize the time-varying power flow for simulating the power system with renewable energy generators. From above the reasons, it is useful and valuable to develop a software, which generates an IEEE common data format file from network diagrams, illustrates the system diagram from an IEEE common data format file, and visualizes time-varying power flows automatically.

In this paper, a power-flow simulator with visualization function is proposed and implemented. The proposed simulator has a function of automatic generations of an IEEE common data format file from user-drawn power-system diagrams. Therefore, it is possible for users to carry out simulations only by drawing the system diagram on display. In addition, the proposed simulator also has a function that power-system diagram is illustrated automatically from IEEE common data format files. Namely, it is easy to comprehend power flows of both pre-defined and user-defined power systems. By visualizing amounts and directions of power flows on the power-system diagram, it is possible for users to comprehend network dynamics intuitively. Additionally, the proposed simulator allows including renewable-energy generators in user-defined power systems, which is helpful to evaluate power distribution systems. By iterative executions and flow visualizations, it is also possible to comprehend the time variations of the power flows easily. It is expected that the proposed simulator helps to make control and/or optimization strategies of the power systems.

II. PROPOSED SIMULATOR DESIGN

The proposed simulator visualizes amounts and directions of power-flow along branches through the power-flow calculations. The power-flow calculations are driven by an IEEE common data format file, which is generated automatically from power-system diagram on display. The proposed simulator is written by C language with OpenGL and OpenCV libraries.

2.1 System Overview

Fig. 1 shows a construction of the proposed simulator. The proposed simulator is composed of three engines, which are Calculation, Visualization, and System-file Generation engines.

jmis-3-4-161-g1
Fig. 1. Composition of the proposed simulator.
Download Original Figure
2.1.1 Calculation Engine

The Calculation engine has two functions. One is a power-flow calculation function and the other is a calculation function of renewable-energy amounts.

The Calculation engine calculates power flow from an IEEE common data format file. The IEEE common data format is composed of the bus-data and branch-data sections. Figure 2 shows an example of the bus-data and branch data sections in IEEE common data format file. The bus type number is defined as given in Table 1. The Calculation engine reads information of loads, generations, and voltages from the IEEE common data format file, which are used for the power-flow calculations. The load, generation, and voltage parameters are written in column 5, 7, and 8 of the bus-data section in IEEE common data format file as shown in Figure 2(a). The calculation results of voltages, angles, and generations are filled in column 5, 6, and 10 of bus data section. The effective powers and reactive powers are written in column 14, 16, 15 and 17 of branch data section respectively as Figure 2(b).

jmis-3-4-161-g2
Fig. 2. Example of IEEE common data format file. (a)Bus-data section. (b)Branch-data section.
Download Original Figure
Table 1. Bus type list
Bus type number Content
0 Unregulated bus (isolated bus)
1 Hold mvar generation within voltage limits (P-Q bus)
2 Hold bus voltage within generator mvar limits (P-V bus)
3 Hold bus voltage and angle (reference bus)
Download Excel Table

The Calculation engine also calculates the amounts powers of renewable energy generations. If users input wind speed data as shown in Table 2, the Calculation engine calculates the amount of renewable-energy powers, which is filled in the column 9 of the bus data section. The wind generation model is described in subsection II-5.

Table 2. Example of wind data file.
Timeslot number Wind speed [m/s]
1 3.8
2 2.1
3 2.6
4 1.8
5 1.2
6 2.8
7 3.3
8 3.6
9 2.9
10 3.9
11 6.7
12 7.6
Download Excel Table
2.1.2 Visualization engine

The Visualization engine has three functions. The Visualization engine provides a platform to draw system diagrams. This function enables users to define the power system arbitrary, which is expressed graphically by users. The Visualization engine outputs a system diagram automatically from an IEEE common data format file. The branch intersections are reduced by applying the spring model [6] for drawing the diagram.

The Visualized engine also have a function to show power-flow states graphically. The Visualization engine obtains power-flow information by reading column 14 or 16 of the branch-data section in the IEEE common data format file. The Visualization engine displays effective-power values and expresses flow directions by arrows at each branch.

2.1.3 System-File Generation engine

The System-File Generation engine can generate a text file with the IEEE common data format from user-drawn system diagram at the Visualization engine. The System-File Generation engine recognizes the number of buses and the states of branch connections from the user-drawn system diagram. By using the IEEE common data format file, which can be obtained from the System-File Generation engine, the Calculation engine executes power-flow calculations at any system configuration.

It is seen from Figure 1 that the interfaces among three engines are IEEE common data format file, which is our important concept to implement the proposed simulator. The essential functions of the proposed simulator are described in detail in the following subsections.

2.2 Power-flow calculation

The Calculation engine executes power-flow calculations following the given IEEE common data format file. The electrical current Ii from i th bus with N bus system is described as

I i =   j = 1 N Y ˙ i j V ˙ j ( i = 1 , 2 , ,   n )
(1)

where Vj is voltage at j th bus and Yij is the admittance between i th bus and j th bus. The effective power Pi and reactive power Qi have a relationship as

P i   + j Q i =   V ˙ i I ˙ i        ( i = 1 , 2 , ,   n )
(2)

According to (1) and (2), the effective power and reactive power are also expressed as

Pi+jQi= j=1NY˙¯ij V˙iV˙¯j(i=1,2,,n)
(3)

In this simulator, Newton-Raphson method is applied for solving the algebraic equations in (3). From the solutions of the algebraic equations, effective powers, reactive powers, voltages, and angles of all the buses are obtained.

2.3 Automatic illustration of system diagram

If users or the System-file generation engine gives an IEEE common data format file, the Visualization engine draws the power-system diagram automatically. For avoiding bus overlaps and branch intersections, the spring model [6] is applied for drawing power systems.

In the spring model, two forces are put on each buses, which are the spring and the coulomb forces. They are expressed as

{ f a = 2 l o g 100 d f b = 1 d 2
(4)

where d is the branch length. In addition, all buses are sorted in the order of connected branch number. A bus, which has most branches, is located in the center of display. Other buses are located one by one following the order. The initial coordinates of the buses are given by

p = p b + 1.4 ( p b p ¯ )
(5)

where pb and is the average values of bus coordinates, which are connected to the putting bus, and have already located, respectively.

Fig. 3 shows the system diagrams of IEEE 30-bus system. Fig. 3(a) and (b) shows the formulated diagram in [9] and automatic drawn diagram by the Visualization engine from the IEEE common data format file, respectively. It is seen from Fig. 3(b) that some branch intersections remain. Therefore, we prepare the function that users can move buses with drag on the display for reshaping the diagrams. Fig. 3(c) is an example of the reshaped network diagram. Compared with Fig. 3(b), the branch intersections in Fig. 3(c) are reduced and it is easy to find the network topology. The proposed system provides user-like power-system diagrams the automatic-illustration and the user-reshaping functions.

jmis-3-4-161-g3
Fig. 3. IEEE 30-bus system diagrams. (a) Formulated system diagram in [8], (b) Initial network topology generated by Visualization engine. (c) Reshaped diagram by users.
Download Original Figure
2.4 Automatic generation of IEEE common data format file

Fig. 4 shows the flowchart of generation of IEEE common data format files. First, the System-file Generation engine recognizes the connection states of each bus and the components of a network from user illustration. Second, the System-file generation engine distinguishes the bus types according to Table 1 and requires each parameters to complete IEEE common data format file. The bus type corresponds to connection state of loads and generators. The reference bus, whose angle is reference of the system, is classified into the bus-type 1. The buses with generator are in the bus-type 2 and the other types of buses are in the bus-type 3. Finally, according to bus types, the System-file generation engine makes a table following the IEEE common data format and fills parameters in the table. By implementing this function, power-flow simulations can be carried out without preparing the IEEE common data format file. Fig. 5 shows the snapshot of the drawing window. Symbols illustrated in the diagram are the same as ones in Fig. 4. Users can draw the system diagram by choosing elements from “Button Space” and deploying the elements in “Drawing Space” as shown in Fig. 5. Branches are drawn by dragging between buses.

jmis-3-4-161-g4
Fig. 4. Flowchart of generations of IEEE common data format files.
Download Original Figure
jmis-3-4-161-g5
Fig. 5. Drawing window of the proposed simulator.
Download Original Figure

The bus-connection states are recognized automatically. When user draws a branch, the simulator searches buses which are end points of the branch. If there is no bus at one-side or both sides of the branch ends, the System-file generation engine recognizes that the system diagram includes errors. In this case, the Visualization engine requires the user to modify the system diagram. Conversely, if there are two buses at both ends of the branch, the System-file generation engine allocates a number to branch and retain the connected bus number. The susceptance and reactance of each branch is required by the System-file generation engine posterior to drawing the power system. As result, the IEEE common-data-format file is generated according to input parameters, which is used for the power-flow calculation.

5. Visualization of time-varying power flows

The power-flow-calculation results are visualized at the Visualization engine. The arrow thickness and direction express the amount and the direction of the power flow, respectively.

The Visualization engine can visualize time-varying power flow with renewable energy. The Calculation engine calculates generated powers by wind-power generators from the given wind speed. When wind power generator are included in the system configuration, the System-file generation engine requires time-series of wind speeds, which determines the generation powers of the wind-power generators as shown in Table 2. Amount of generation powers of wind-power generators in MW is modeled as equation (6), where v(t), vci, vco and vr are the wind speed at time t, cut-in, cut-out and rated wind speeds in m/s respectively, and Pwrated in MW is the rated output power of the wind generator [7]. It is necessary to update the generation amounts, which are filled in column 9 of the bus data section every power flow calculations. Namely, the System-file generation engine generates an IEEE common data format file at every sample time, and the power flow calculation results are displayed by reading IEEE common data format file in time series. Therefore, it is possible comprehend the time variation of the power flow intuitively. The visualized data are the effective powers, which are obtained from the columns 14 and, 16 of branch data in the IEEE common data format file. The values of renewable energy generations are also displayed as shown in Fig. 6.

jmis-3-4-161-g6
Fig. 6. Display icons and values of the proposed simulator.
Download Original Figure

III. SIMULATOR EVALUATION

For confirming the validity of three engines, authors carry out two simulation with formulated IEEE bus systems. In addition, authors also simulates formulated system including wind power generation to confirm visualization of time varying power flow.

3.1 Validity of the three engines

In this section, the power-flow simulates are carried out for the IEEE 9-bus system by using the proposed simulator without IEEE common data format file. The IEEE 9-bus system was drawn by authors with the Visualization engine. Fig. 7 shows a network topology of the IEEE 9-bus system drawn by authors. This figure follows the original network-topology illustration in [9]. By executing the System-File Generation engine with the drawn topology in Fig. 7, we obtained the IEEE common data format file of the IEEE 9-bus system.

jmis-3-4-161-g7
Fig. 7. System diagram of IEEE 9-bus system drawn by authors.
Download Original Figure

Fig. 8 shows the IEEE common data format file, which is generated by the System-File Generation engine from the power-system diagram in Fig. 7. The numbers within the circle line in Fig. 8 describe the power-flow calculation results of the Calculation engine. Compared with the IEEE common data format file in [9], it is confirmed that the descriptions in the generated IEEE common data format file is completely the same as those in the standardized IEEE 9-bus system file, which shows the reliability of the System-File Generation and Visualization engines.

jmis-3-4-161-g8
Fig. 8. IEEE common data format file with power-flow calculation results generated by the System-File Generation engine.
Download Original Figure
P w =   { 0                                                                           ( 0 v ( t ) < v c i ,   v c o v ( t ) ) P w r a t e d ( v ( t ) v c i ) v r v c i       ( v c i v ( t ) < v r ) P w r a t e d                                                       ( v r v ( t ) < v c o )
(6)

Fig. 8 shows the IEEE common data format file, which is generated by the System-File Generation engine from the power-system diagram in Fig. 7. The numbers within the circle line in Fig. 8 describe the power-flow calculation results of the Calculation engine. Compared with the IEEE common data format file in [9], it is confirmed that the descriptions in the generated IEEE common data format file is completely the same as those in the standardized IEEE 9-bus system file, which shows the reliability of the System-File Generation and Visualization engines.

For confirming the validity of the Calculation engine, power-flow simulations with IEEE 9-bus system were also carried out by using MATPOWER [1]. Fig. 9 shows the calculation results from the MATPOWER. It is seen from Fig. 8 and Fig. 9 that the power-flow calculation results from the proposed simulator agree with those from MATPOWER, which shows the reliability of the Calculation engine.

jmis-3-4-161-g9
Fig. 9. Power flow calculation results from MATPOWER.
Download Original Figure
3.2 Time varying visualization

For evaluating the power-flow visualizations, the power-system simulations with a wind-power generator were carried out. Fig. 10 shows the network topology of the simulations. We used the IEEE 14-bus system as the basic power system. Additionally, a wind-power generator was added to the bus 3. Table 3 gives the specification of the wind generator in this simulation. The wind data, which is the same as that in Table 2, is given in this simulation. It can be confirmed from Fig. 10(a) and (b) that the thickness and directions of arrows vary. This is because the wind speed is changed from 1.8 m/s at t=4 to 6.7 m/s at t=11 as shown in Table 3 and power-flow variations occur. It is possible to comprehend power-flow variations according to natural environment variations intuitively from the visualized power-flows results. It is confirmed from Figs. 10 that user-friendly display of power flows can be achieved by the Visualization engine.

jmis-3-4-161-g10
Fig. 10. Power-flow visualizations of the proposed simulator for IEEE 14 bus system with wind power generator at time slot. (a) At t = 4, (b) At t = 11.
Download Original Figure
Table 3. Specifications of wind generator in the simulation.
Parameters Values
Cut-in wind velocity vci 2.0[m/s]
Cut-out wind velocity vco 7.0[m/s]
Rated wind velocity vrated 5.0[m/s]
Rated generator output Pwrated 100[MW]
Download Excel Table

The demonstration video of the proposed simulator appears in [10].

IV. CONCLUTION

This paper has proposed and implemented the power-flow simulator with power-flow visualization function. The proposed simulator is composed of three engines which are Calculation, Visualization, and System-file generation engines. The IEEE common data format file integrates three engines. Because the proposed simulator allows including renewable-resource generators in the power system, it is effective to evaluate the power distribution systems. It is shown that the proposed simulator can generate accurate IEEE common data format files and intuitive power-flow visualizations.

The supports of system-fault recognitions, new system components such as battery, and optimization functions are necessary in the simulator, which should be addressed in the future.

REFERENCES

[1].

R.D. Zimmerman, C.E. Murillo-Sanchez, and R.J. Thomas, “MATPOWER: Steady-State Operations, Planning, and Analysis Tools for Power Systems Research and Education,” IEEE Trans. Power Syst., vol.26, no.1, pp.12-19, Feb. 2011.

[2].

S. Zhao, H. Liu, S. Cheng, and D. Chen “A New Method for Calculating Power System Multiple Load Flow Solutions,” APSCOM, pp. 274-278, Dec. 1993

[3].

P. Cuffe, and A. Keane, “Visualizing the Electrical Structure of Power Systems,” IEEE Syst. Journal, vol. PP, Mo. 99, pp. 1-12, May.2015.

[4].

P.M. Mahadev and R.D. Christie, “Minimizing Use Interaction in Energy Management Systems: Task Adaptive Visualization,” IEEE Trans. Power Syst., vol.11, no.3, pp.1607-1612, Aug. 1996.

[5].

IEEE Working Group, “Common Data Format for the Exchange of Solved Load Flow Data,” IEEE Trans. Power App. Syst., vol.PAS-92, no.6, pp. 1916-1925, Nov./Dec. 1973.

[6].

T. Itoh, C. Muelder, K.L. Ma, and J. Sese, “A Hybrid Space-Filling and Force-Directed Layout Method for Visualizing Multiple-Category Graphs,” PacificVis pp. 121-128, Apr. 2009

[7].

Z. Liu, F. Wen, and G. Ledwitch, “Optimal Siting and Sizing of Distributed Generators in Distribution Systems Considering Uncertains,” IEEE Trans. Power Del. vol.26, no.4, pp.2541-2551, Oct. 2011.

[8].

P. M. Anderson and A. A. Fouad, Power system control and stability, second. edition. San Diego, California: John Wiley & Sons Inc., 2003.

[9].

IEEE bus system data, http://www.al-roomi.org/power-flow, 2016.