OpenDSS Training
Workshop
Interfacing OpenDSS and
introduction to OpenDSS-G
Davis Montenegro
EPRI Knoxville, TN
August 25, 2020
[Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Instructor
▪ Davis Montenegro, Senior Member, IEEE
Davis Montenegro-Martinez serves as technical leader at the Electric Power Research Institute
(EPRI) in the areas of power system modeling, analysis and high-performance computing. He
received his degree in electronics engineering from Universidad Santo Tomás, Bogotá,
Colombia (2004); he is [Link]. in electrical engineering from Universidad de los Andes, Bogotá ,
Colombia (2012). He received his Ph.D. in electrical engineering from Universidad de los Andes
(2015), and a Ph.D. in electrical engineering from the University Grenoble-Alpes, France (2015).
Before joining EPRI, Davis served for 10 years as a lecturer for Universidad Santo Tomas in
Colombia, during this time he was also technology consultant in the areas of industrial
automation, software and electronic hardware design focused in the electric power industry,
specifically in monitoring and control for meter calibration laboratories. His expertise in
parallel computing techniques is being used at EPRI for incorporating multi-core processing to
power system analysis methods such as QSTS, reducing the computational time required to
perform these analysis using standard computing architectures
2 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
The evolution of OpenDSS into a parallel
computing machine
After being released in 2008 as open source software OpenDSS has become widely used
around the world. One of the features that makes OpenDSS popular is that the package
offers interfaces for co-simulation.
3 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Interfacing with OpenDSS
4 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
User Interfaces
▪ A stand-alone executable program that provides a text-based interface
(multiple windows)
▪ An in-process COM server (for Windows) that supports driving the
simulator from user-written programs.
▪ A direct DLL interface that mimics the COM interface
– For non-Windows platforms, such as HPCs
– For programming languages that do not support COM or are not efficient at
supporting COM
5 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
OpenDSS Files Installed
Main Program Files
In-Process COM Server
Standalone EXE
Stdcall DLL
6 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Registering the COM server
Windows Registry Entry
GUID
• The Server shows up as “[Link]”
in the Windows Registry
The OpenDSS is now available to any program on the computer
7 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
The GUID References the DLL File
If you look up the GUID in RegEdit
Points to [Link]
(In-process server, Apartment Threading model)
8 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
DSS Structure
Scripts
COM
Interface
Main Simulation Engine
User-
Written
Scripts, DLLs
Results
9 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
DSS Object Structure
DSS Executive
Commands Options
Circuit Solution
V [Y] I
PDElement PCElement Controls Meters General
Line Load RegControl Monitor LineCode
Transformer Generator CapControl EnergyMete LineGeometry
Capacitor Vsource Relay r WireData
Reactor Isource Reclose Sensor LoadShape
Storage Fuse GrowthShape
Spectrum
TCCcurve
XfmrCode
10 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
DSS Class Structure
Instances of Objects of this class
Class Object 1
Property Definitions Property Values
Methods
Class Property Editor
Yprim
Collection Manager States
Object n
Property Values
Methods
Yprim
States
11 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
How can I query about the available interfaces,
properties and methods
12 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
User Interfaces
▪ Using a program language that depicts the interface for you (e.g.
MS excel, VBA, etc.).
▪ Reading the documentation:
[Link]
rsion8/Distrib/Doc/
▪ Using the query tools available in your programming language:
MATLAB : get, properties…
Python: getattr, getAllAttributeNames…
▪ If working with DirectDLL, then, you’ll have to read the
documentation and probably use the header file provided.
13 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Examples on using COM
14 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Parallel processing in OpenDSS using COM
The examples for parallel processing can be downloaded
from:
[Link]
Version8/Distrib/Examples/Parallel_Processing/
These examples involves MATLAB and python.
Other examples for LabVIEW through the VI Package
Manager
15 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Parallel processing in OpenDSS using COM
Example # 1 MATLAB
16 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Parallel processing in OpenDSS using COM
Example # 1 MATLAB
17 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Parallel processing in OpenDSS using COM
Example # 2 MATLAB
18 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Parallel processing in OpenDSS using COM
Example # 2 MATLAB
19 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Parallel processing in OpenDSS using COM
Example # 3 MATLAB
20 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Parallel processing in OpenDSS using COM
Example # 3 MATLAB
21 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Complementary Tools
DEMOS
22 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
23 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
OpenDSS-G YouTube channel
[Link]
EGvnxEOuWaQ
24 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
OpenDSS derivative products
25 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
26 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
4
3
1
2
27 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
28 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
29 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
30 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
31 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
32 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
33 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
34 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
35 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
36 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
37 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
38 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
39 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
40 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Complementary Tools
Advanced Graphics Module for OpenDSS (OpenDSS-
Viewer)
Developed by Miguel Hernandez (EPRI). Enhance the visualization of Distribution
System Simulations with a flexible, scalable and meaningful approach.
[Link]
41 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Complementary Tools
42 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Importing/creating models
43 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Creating your model
You have 2 options:
1. Importing an existing model
2. Describing your circuit from the scratch
44 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Before anything
Download the examples to be used in this
session:
[Link]
ee/trunk/Distribution/Examples/
45 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Importing a model
46 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Importing a model
47 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Import demo
48 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Creating the model from the scratch
49 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Creating the model from the scratch
50 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Creating the model from the scratch
Rules:
1. Connect your PD/PCElement to an existing
bus
2. Follow the instructions
51 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Creating the model from the scratch
Transformers (special case):
52 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Creating the model from the scratch
Transformers (special case):
53 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Creating model from the scratch demo
54 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Using OpenDSS-G (Simulation)
LET’S SIMULATE
55 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Using OpenDSS-G (Simulation)
Today’s examples:
1. Using Storage devices
2. Yearly Simulations and parallel processing
3. Real-time Simulation
o Checking regulators and protections
coordination
o Using the FLISR programmer
56 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Before anything
Download the examples to be used in this
session:
[Link]
ee/trunk/Distribution/Examples/
57 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Solving thermal issues with storage devices
58 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Harmonics simulation
59 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Automation tools
60 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Automation tools
61 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Automation tools demo
62 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Co-Simulation
OpenDSS-G Incorporates a TCP
server for distributed applications
63 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Co-Simulation
64 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Co-Simulation VVO control interface
This component handles the TCP /IP
communication with OpenDSS-G. It also
controls the simulation execution and
communicates with the control algorithm
written in python.
OpenDSS-G The control algorithm
This platform contains the power system model. This component evaluates the
It performs the QSTS simulation and provides all optimal control settings for a
the services required to remotely control the specific hour using a local model
simulation though the TCP/IP server integrated. of the simulated power system in
This platform also provides the graphical OpenDSS-G. The output of the
interface and the tools for highlighting system algorithm are the control settings
features using color scales, element localization, for all the controllable devices on
metering and real-time system’s data among the grid.
others.
65 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Co-Simulation
Documentation:
[Link]
cuments/[Link]/download
[Link]
cuments/MATLAB_Lib.pdf/download
66 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Co-simulation example
67 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Changing the language of your local
installation
68 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Changing the language of your local
installation
Documentation:
[Link]
cuments/Changing_the_language_of_OpenDSS
-[Link]/download
[Link]
cuments/Changing_the_language_of_OpenDSS
-[Link]/download
69 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Questions ??
70 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.
Together…Shaping the Future of Electricity
71 [Link] © 2019 Electric Power Research Institute, Inc. All rights reserved.