100% found this document useful (2 votes)
553 views71 pages

Day 02 - Interfacing OpenDSS and OpenDSS-G

Uploaded by

andreycostalopes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
553 views71 pages

Day 02 - Interfacing OpenDSS and OpenDSS-G

Uploaded by

andreycostalopes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 71

OpenDSS Training

Workshop
Interfacing OpenDSS and
introduction to OpenDSS-G
Davis Montenegro
EPRI Knoxville, TN

August 25, 2020

www.epri.com © 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 M.Sc. 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 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

▪ 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 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
OpenDSS Files Installed

Main Program Files

In-Process COM Server

Standalone EXE

Stdcall DLL

6 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Registering the COM server

Windows Registry Entry

GUID

• The Server shows up as “OpenDSSEngine.DSS”


in the Windows Registry

The OpenDSS is now available to any program on the computer

7 www.epri.com © 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 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

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 www.epri.com © 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 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.).

▪ Reading the documentation:


https://sourceforge.net/p/electricdss/code/HEAD/tree/trunk/Ve
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 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Examples on using COM

14 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Parallel processing in OpenDSS using COM

The examples for parallel processing can be downloaded


from:

https://sourceforge.net/p/electricdss/code/HEAD/tree/trunk/
Version8/Distrib/Examples/Parallel_Processing/

These examples involves MATLAB and python.

Other examples for LabVIEW through the VI Package


Manager
15 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Parallel processing in OpenDSS using COM

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

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.

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

You have 2 options:

1. Importing an existing model

2. Describing your circuit from the scratch

44 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Before anything

Download the examples to be used in this


session:

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:

1. Connect your PD/PCElement to an existing


bus

2. Follow the instructions

51 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Creating the model from the scratch

Transformers (special case):

52 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Creating the model from the scratch

Transformers (special case):

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

Download the examples to be used in this


session:

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

OpenDSS-G Incorporates a TCP


server for distributed applications

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.

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 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.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy