Day 02 - Interfacing OpenDSS and OpenDSS-G
Day 02 - Interfacing OpenDSS and OpenDSS-G
Workshop
Interfacing OpenDSS and
introduction to OpenDSS-G
Davis Montenegro
EPRI Knoxville, TN
www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Instructor
2 www.epri.com © 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 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Interfacing with OpenDSS
4 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
User Interfaces
5 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
OpenDSS Files Installed
Standalone EXE
Stdcall DLL
6 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Registering the COM server
GUID
7 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
The GUID References the DLL File
Points to OpenDSSEngine.DLL
(In-process server, Apartment Threading model)
8 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
DSS Structure
Scripts
COM
Interface
Main Simulation Engine
User-
Written
Scripts, DLLs
Results
9 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
DSS Object Structure
DSS Executive
Commands Options
Circuit Solution
V [Y] I
10 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
DSS Class Structure
Class Object 1
Property Definitions Property Values
Methods
Class Property Editor
Yprim
Object n
Property Values
Methods
Yprim
States
11 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
How can I query about the available interfaces,
properties and methods
12 www.epri.com © 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.).
14 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Parallel processing in OpenDSS using COM
https://sourceforge.net/p/electricdss/code/HEAD/tree/trunk/
Version8/Distrib/Examples/Parallel_Processing/
Example # 1 MATLAB
16 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Parallel processing in OpenDSS using COM
Example # 1 MATLAB
17 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Parallel processing in OpenDSS using COM
Example # 2 MATLAB
18 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Parallel processing in OpenDSS using COM
Example # 2 MATLAB
19 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Parallel processing in OpenDSS using COM
Example # 3 MATLAB
20 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Parallel processing in OpenDSS using COM
Example # 3 MATLAB
21 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Complementary Tools
DEMOS
22 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
23 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
OpenDSS-G YouTube channel
https://www.youtube.com/channel/UCGe58SDH3Iq-
EGvnxEOuWaQ
24 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
OpenDSS derivative products
25 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
26 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
4
3
1
2
27 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
28 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
29 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
30 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
31 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
32 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
33 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
34 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
35 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
36 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
37 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
38 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
39 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Introduction to OpenDSS-G
40 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Complementary Tools
https://epri.box.com/s/o4itfn23txv73iyo3y1ukbs9nmgsspgo
41 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Complementary Tools
42 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Importing/creating models
43 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Creating your model
44 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Before anything
https://sourceforge.net/p/dssimpc/code/HEAD/tr
ee/trunk/Distribution/Examples/
45 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Importing a model
46 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Importing a model
47 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Import demo
48 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Creating the model from the scratch
49 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Creating the model from the scratch
50 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Creating the model from the scratch
Rules:
51 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Creating the model from the scratch
52 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Creating the model from the scratch
53 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Creating model from the scratch demo
54 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Using OpenDSS-G (Simulation)
LET’S SIMULATE
55 www.epri.com © 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 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Before anything
https://sourceforge.net/p/dssimpc/code/HEAD/tr
ee/trunk/Distribution/Examples/
57 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Solving thermal issues with storage devices
58 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Harmonics simulation
59 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Automation tools
60 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Automation tools
61 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Automation tools demo
62 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Co-Simulation
63 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Co-Simulation
64 www.epri.com © 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.
65 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Co-Simulation
Documentation:
https://sourceforge.net/projects/dssimpc/files/Do
cuments/DSTCP-Comm.pdf/download
https://sourceforge.net/projects/dssimpc/files/Do
cuments/MATLAB_Lib.pdf/download
66 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Co-simulation example
67 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Changing the language of your local
installation
68 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Changing the language of your local
installation
Documentation:
https://sourceforge.net/projects/dssimpc/files/Do
cuments/Changing_the_language_of_OpenDSS
-G.pdf/download
https://sourceforge.net/projects/dssimpc/files/Do
cuments/Changing_the_language_of_OpenDSS
-G-menus.pdf/download
69 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Questions ??
70 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Together…Shaping the Future of Electricity
71 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.