PythonExample IEEE8500
PythonExample IEEE8500
Revised by: Roger Dugan –Sr. Technical Executive, Power System Studies, EPRI
April 2016 – OpenDSS 7.6.4.100
H OW T O R UN T HE E XAMPLE
The program IEEE8500_Gui_Example.py has been realized in Python 2.7.11 in Windows 7 (64 bit)
using the compiler PyCharm Community Edition 5.0.4. However, to execute this program it is
possible to both open the file in PyCharm and run it from there or use the command window as
detailed below:
Figure 1 How to load the GUI file for the IEEE 8500 Test-Case
win32com.client
sys
Tkinter *
gc
numpy
tkMessageBox
Except numpy these modules are typically already installed. However, if it is not the case (Python
will through out an error message as “No module named XX was found”), a module can be installed
adopting the following procedure:
1
To use the command window in this way it might be needed to add python to the environmental variables of
Windows. Several guide explains the process as: http://pythoncentral.io/add-python-to-path-python-is-not-
recognized-as-an-internal-or-external-command/
1
Written by: Andrea Ballanti - Student Intern, EPRI
Revised by: Roger Dugan –Sr. Technical Executive, Power System Studies, EPRI
April 2016 – OpenDSS 7.6.4.100
1. Hit the button “IEEE-8500 Power Flow: Base Case” (2 in Figure 2): A power flow in the
default condition will be run. At the end of the process the following 3 windows showing
results will be opened: Summary – Voltage Profile – Event log
2. Hit the button “IEEE-8500 Power Flow: With generator” (3 in Figure 2): In this case the user
will be introduced to a second window in which the generator features can be inserted (next
section).
Figure 2 First window: define the path and decide which power flow carry on
A. Insert the Size (in kW) of the generator in the field “Size kW” (1 in Figure 3);
B. Insert the Power Factor of the generator in the field “Power Factor” (2 in Figure 3);
C. Hit the button “Bus List” (3 in Figure 3). A window will be opened reporting the name of the
buses in which the generator can be connected2;
D. Copy and Paste (CTRL+C and CTRL+V keyboard button respectively) the name of the chosen
bus from the bus list to the “Bus” field (4 in Figure 3). The bus position within the network
can be shown by hitting the “Bus Location” button (5 in Figure 3);
E. The power flow can then be solved hitting the button “Power Flow” (6 in Figure 3);
F. The results can be visualized by pressing the buttons “Summary” – “Voltage Profile” – “Event
Log” (7 in Figure 3);
G. The user can repeat the previous steps how many times desires
H. Press the button “EXIT” (8 in Figure 3) to close the two GUI windows (Figure 2 and Figure 3).
2
The buses in which the generator have a base voltage of 12.47 kV and three phase