Day 04 - AdvancedTopics OpenDSS in RD
Day 04 - AdvancedTopics OpenDSS in RD
Workshop
Advanced Topics
www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Meeting Logistics
▪ Audio Options:
1. Connect via computer
audio
2. Call local dial number
OpenDSS Virtual Training and use participant code
▪ We are Recording
3 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Instructors
4 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Advanced Topics
5 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Outline for today’s session
▪ Advanced topics:
– Quasi-Static Time-Series (QSTS) simulation
– OpenDSS parallel processing capabilities
– Recloser placement
– GIC related harmonic capabilities (GICharm)
▪ OpenDSS in R&D:
– Available tools
– Available models and datasets
– DER integration studies
– Hosting capacity analysis
– Other examples of OpenDSS
6 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Flexible Tool Enabling a Wide Range of Analysis Types
With PV
▪ Energy impact analysis 1.04
Mid-Feeder
voltage (pu)
1.035
▪ DER protection impacts
1.03
No Capacitors
10
6000kvar
12000kvar
18000kvar
0.1
1.1 5.3 9.4 13.6 17.8 21.9 26.1 30.3 34.4
Harmonic Number
7 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Quasi-Static Time-Series (QSTS) simulation
▪ The operation of discrete controls from autonomous controllers
can be modeled with a QSTS simulation.
new regcontrol.creg4a transformer=reg4a winding=2
vreg=124 band=2 ptratio=20 ctprim=300 R=0.6 X=1.3
Example: LTC
Reg
Voltage
Regulator threshold
Tap +5
Tap +4
Regulator threshold
Time
8 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
QSTS Applications
The IEEE Std1 defines a Quasi-Static Time-Series simulation as:
Magnitude
Time
1 IEEE Std 1547.7-2013. ‘IEEE Guide for Conducting Distribution Impact Studies for Distributed Resource Interconnection’. 2016.
9 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Dealing with multiple controllers: Control queue
What if there are a line regulator and a capacitor banks?
10 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
OpenDSS QSTS simulation
▪ Set Controlmode={OFF | STATIC |EVENT | t=0 t=30 t=60
TIME}
– STATIC: time does not advance, and control Power flow
Controllers
Power flow
Controllers
Power flow
Controllers
actions are executed in order of shortest Reg Action
11 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Parallel computing in OpenDSS
▪ To further increase the computational speed on large feeder models, a parallel
processing is used with OpenDSS using the actor model.
▪ Each actor is created by OpenDSS, runs on a separate processor using separate
threads and has its own assigned core and priority (real-time priority for the process
and time critical for the thread)
12 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
What can be done with parallel processing in
OpenDSS?
Spatial
Parallelization
Temporal
Parallelization
13 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Using parallel processing in OpenDSS
The examples for parallel processing (MATLAB and python) can be downloaded from:
https://sourceforge.net/p/electricdss/code/HEAD/tree/trunk/Version8/Distrib/Exampl
es/Parallel_Processing/
Other examples for LabVIEW are available through the VI Package Manager.
14 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
The evolution of OpenDSS into a parallel computing
machine
There is a new set of functions and instructions related with parallel
processing, topology analysis and more that can be used using the
same DSS command environment
15 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Recloser Siting Control Example
Start DSS
Specify DSS
master file
Execute
commands
600 3
1
400 2
0.5
200 1
Lowest SAIFI 0
Lowest SAIDI
0 0
0 2 4 6 8 10 0 2 4 6 8 0 2 4 6 8
17 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
What is GIC? (Geomagnetically Induced Currents)
[1] EPRI, Geomagnetic disturbance vulnerability assessment and planning guide, 3002013590, 2018.
[2] NERC, GMD Monitoring, mitigation and next steps, literature review and summary of the April 2011 NERC GMD workshop, 2011.
[3] IEEE Guide for Establishing Power Transformer Capability while under Geomagnetic Disturbances," in IEEE Std C57.163-2015 , vol., no., pp.1-50, 26 Oct. 2015
18 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
EPRI GICharm v1.0
19 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
System level Analysis – Explore simulation results
A. B. Birchfield, T. Xu, and T. J. Overbye, “Power flow convergence and reactive power planning in the creation of large synthetic grids,” in IEEE Transactions on Power Systems, 2018.
20 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Applying OpenDSS in R&D
21 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Outline
22 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Scripts in OpenDSS
23 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
OpenDSS-G
Initialization
Energy storage
logic
Your
algorithm / Planning studies
study
Conservation voltage
reduction (CVR)
End …
25 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Excel VBA
OpenDSS power
flow engine
Start DSS
Specify DSS
master file
Execute
commands
Select References
Object Browser
Select OpenDSS
27 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
MATLAB integration: GridPV Toolbox
▪ Set of MATLAB function created by Sandia National Laboratory
▪ To model and simulate the integration of distributed generation
into the electric power system and to determine the impacts on
the distribution system for highly variable generation
▪ Available at: https://pvpmc.sandia.gov/applications/gridpv-toolbox/
28 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Python integration: py-dss-interface
29 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Getting Started User can pass the OpenDSS path as argument:
"C:/Program Files/OpenDSS"
import package
Use solution_solve
method of dss
Use circuit_allbusvolts
method of dss
▪ Resources
– PyPI (Python Package Index): https://pypi.org/project/py-dss-interface/
– GitHub: https://github.com/PauloRadatz/py_dss_interface
– Doc: https://py-dss-interface.readthedocs.io/en/latest/usage.html
– OpenDSS_Direct_DLL.pdf:https://sourceforge.net/p/electricdss/code/HE
AD/tree/trunk/Version8/Distrib/Doc/OpenDSS_Direct_DLL.pdf
31 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
IEEE test feeders
▪ 13-bus feeder: simple feeder model to
test common features
0.8
0.4
– IEEE 123 bus: ‘paperloadshape.txt’ 0.2
35 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
3rd party datasets: Pecan Street
https://www.pecanstreet.org/wp-content/uploads/2019/01/1-minute.png
36 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
3rd party datasets: Centre for Renewable Energy
Systems Technology (CREST)
▪ Available at: https://www.lboro.ac.uk/research/crest/demand-model/
▪ High-resolution stochastic model of domestic thermal and electricity demand.
▪ Produces one-minute resolution demand data, disaggregated by end-use.
▪ Using a bottom-up modelling approach based on patterns of active occupancy
and daily activity profiles
37 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
How is OpenDSS used ?
DER integration studies:
– Large-scale PV systems (centralized),
– Residential rooftop PV systems (distributed),
– Wind turbines,
– Electric vehicles,
– Customer-owned storage,
– Large-scale energy storage, etc.
▪ Planning studies:
– Time-varying feeder behaviors,
– Load modeling: (load allocations, load growth, AMI data, etc.),
– System reliability study, etc.
▪ Advanced System Controls:
– Distributed Energy Resource Management Systems (DERMS),
– Volt-var optimization (VVO),
– Conservation Voltage Reduction (CVR),
– Fault Location, Isolation, and Service Restoration (FLISR), etc.
38 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Detailed interconnection studies
PV systems can cause negative impacts on a distribution system
feeder:
▪ Over/under-voltage conditions, ▪ Rapid power flow fluctuation,
▪ Reverse power flow, ▪ Excessive voltage controller actions,
▪ Thermal limit violations, ▪ Etc.
Solar Profile
39 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Hosting capacity
The results from a Hosting Capacity analysis estimates the amount of DER that
can be accommodated without adversely impacting power quality or reliability
under current configurations and without requiring infrastructure upgrades.
Substation Utility-Scale PV
Customer-Based PV
40 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Hosting Capacity is Issue Dependent
Impacts Considered
▪ Voltage
– Primary overvoltage
– Primary undervoltage
– Primary voltage change
– LTC/Regulator tapping
▪ Thermal
– Generating power
– Demanding power
▪ Protection
– Element fault current
– Breaker relay reduction
of reach
– Sympathetic breaker
relay tripping
– Reverse power flow
– Unintentional islanding
41 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
https://www3.dps.ny.gov/W/PSCWeb.nsf/All/6143542BD0775DEC85257FF10056479C?OpenDocument
42 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Impact of DER on Voltage Regulating Equipment
OpenDSS
Code in power flow
COM
MATLAB engine
0.4
NetLoad Profile
0.2
0
10% penetration
40% penetration
-0.2
0 6 12 18 24 30 36 42 48
-1
Regulator Tap Position
-2
-3
-4
-5
10% penetration
-6 40% penetration
0 6 12 18 24 30 36 42 48
1
Capacitor Position
0.8
0.6
0.4
0.2
10% penetration
0 40% penetration
0 6 12 18 24 30 36 42 48
Time [hours]
REFERENCE: J. Deboever, ‘Fast Interconnection Analysis Of PV Systems Using Vector Quantization’. Georgia Institute of Technology, 2018.
43 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Distribution OPF
▪ Three-phase unbalanced optimal power flow
▪ Python based
▪ Input data from OpenDSS through COM interface
▪ Optimization modelled with Pyomo
– Ipopt solver for problems without integer/binary variables
– Bonmin solver for problems with integer/binary variables
▪ Major distribution components modelled
– Loads, generators, lines, transformers, regulators, capacitors, PV
▪ Time series simulations (looping optimization)
44 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Automated Distribution Assessment Platform and
Tools
ADAPT
Enable distribution planners to
effectively account for the
dynamics introduced by NWA,
more effectively evaluate NWA
versus traditional solutions, as
well as identify optimal
deployment strategies.
45 IAS Webinar Series 3 December 2019
45 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Questions and Answers
Polling,
Q&A
46 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
OpenDSS Virtual Training 2020
47 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Together…Shaping the Future of Electricity
48 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.