Академический Документы
Профессиональный Документы
Культура Документы
OpenDSS
Training Workshop
Roger Dugan and Wes Sunderman
Lincoln, NE
June 29-30, 2015
Day 1
Brief introduction to distribution systems and modeling
Introduction to DG Screener
Purpose
Installation
Tour of User Interface and Documentation
Introduction to OpenDSS
How Does OpenDSS Work?
OpenDSS Architecture
Circuit Modeling Basics in OpenDSS
OpenDSS Scripting Basics
Class Exercises
DG Screener Connection to OpenDSS
OpenDSS COM Interface: Exploiting the Power of the Program
Examining DG Screener Circuit Models
Examining Transactions between OpenDSS and DG Screener
The DGScreener Screens
Class Exercise
Driving OpenDSS via COM Interface with Excel
2
2015 Electric Power Research Institute, Inc. All rights reserved.
Agenda
Day 2
Scripting for Large Circuit Models
Loadshapes and Smart Grid Simulation the Key to Dynamic Modeling
Examples
Modeling of Selected Volt-Var Control Devices
Modeling PV and Storage
Scripting PVSystem models
PV Loadshapes
Hosting Capacity
Scripting Storage models
Using DGScreener to Generate Custom OpenDSS Models
Class Exercises with DGScreener
3
2015 Electric Power Research Institute, Inc. All rights reserved.
Introduction to Distribution Systems and
Modeling
4
2015 Electric Power Research Institute, Inc. All rights reserved.
The DG Screener is a front-end user interface to the EPRI
OpenDSS Program
5
2015 Electric Power Research Institute, Inc. All rights reserved.
Typical North American Distribution System
6
2015 Electric Power Research Institute, Inc. All rights reserved.
Typical European Style System
Three-phase throughout,
including secondary (LV)
7
2015 Electric Power Research Institute, Inc. All rights reserved.
Comparisons of Systems
European-Style System
MV
LV
MV (ALL)
8
2015 Electric Power Research Institute, Inc. All rights reserved.
Comparison of Distribution Systems
9
2015 Electric Power Research Institute, Inc. All rights reserved.
Introduction to DG Screener
10
2015 Electric Power Research Institute, Inc. All rights reserved.
DG Screener is a Front-end to the OpenDSS Program
11
2015 Electric Power Research Institute, Inc. All rights reserved.
DG Screener Structure
DG Screener
OpenDSS
DG Screener Uses 32-bit OpenDSS, but both versions must be installed to get 32-bit
server fully installed. Windows will figure out which one needs to be executed.
13
2015 Electric Power Research Institute, Inc. All rights reserved.
Installed Files for DG Screener
14
2015 Electric Power Research Institute, Inc. All rights reserved.
Help Files
15
2015 Electric Power Research Institute, Inc. All rights reserved.
Shape Library Files (Partial)
16
2015 Electric Power Research Institute, Inc. All rights reserved.
Circuit Templates
17
2015 Electric Power Research Institute, Inc. All rights reserved.
Inside a BaseScript File
!
! Base Script for DG Screener Circuit 1 Template
!
! You may change the default voltages, line lengths, etc. to match your typical circuits and conditions
! Look for !*** comments for changing default voltage bases
! You may add other elements to the circuit, but you won't be able to edit them by clicking on the template
!
! Source equivalent
Edit vsource.source Bus1=SourceBus basekv=115 1.00 0.0 60.0 3 20000 21000 4.0 3.0
! Substation Transformer
new transformer.sub phases=3 windings=2
~ buses=[SourceBus.1.2.3.4 B1.1.2.3.4]
~ conns=[delta wye]
~ kvs=[115 13.8 ] !*** The voltage rating of winding 2 is used as the default system voltage base
~ kvas=[40000 40000]
~ XHL=10
! Neutral Reactors
new Reactor.subPri phases=1 bus1=Sourcebus.4.0 R=0.0 X=0.0001
new Reactor.subSec phases=1 bus1=B1.4.0 R=0.0 X=0.0001
!*** Substation LTC Control default definition
new regcontrol.sub transformer=sub winding=2 vreg=122 band=3 ptratio=66.395 delay=15 !*** PTratio
! Line definitions (Linecodes are managed by the program, but you may add more
new line.L1 bus1=B1 bus2=B2 linecode=336matrix length=1 units=mi
new line.L2 bus1=B2 bus2=B3 linecode=336matrix length=1 units=mi
<<SNIP>>
18
2015 Electric Power Research Institute, Inc. All rights reserved.
Example General-Purpose OpenDSS Scripts
19
2015 Electric Power Research Institute, Inc. All rights reserved.
Starting DG Screener
Start Menu
20
2015 Electric Power Research Institute, Inc. All rights reserved.
Main Screen
21
2015 Electric Power Research Institute, Inc. All rights reserved.
Voltage Profile for Single Power Flow
22
2015 Electric Power Research Institute, Inc. All rights reserved.
Introduction to
OpenDSS
24
2015 Electric Power Research Institute, Inc. All rights reserved.
What is the OpenDSS?
Heritage of OpenDSS
Harmonics solvers rather than power flow
Gives OpenDSS extraordinary distribution system modeling
capability
Simpler to solve the power flow problem with a harmonics solver than
vice-versa
Supports all rms steady-state (i.e., frequency domain)
analyses commonly performed for utility distribution system
planning
And many new types of analyses
Original purpose in 1997: DG interconnection analysis
25
2015 Electric Power Research Institute, Inc. All rights reserved.
What is the OpenDSS? (contd)
What it is NOT
An Electromagnetic transients solver (Time Domain)
It can solve Electromechanical transients
Frequency Domain => Dynamics mode
All solutions are in phasors (complex math)
Not a Power Flow program
Not a radial circuit solver
Does meshed networks with equal ease
Not a distribution data management tool
It is a simulation engine designed to work with data extracted from
one or more utility databases
26
2015 Electric Power Research Institute, Inc. All rights reserved.
Built-in Solution Modes
27
2015 Electric Power Research Institute, Inc. All rights reserved.
Controls
28
2015 Electric Power Research Institute, Inc. All rights reserved.
Overall Model Concept (1997)
Inf. Bus
(Voltage, Angle)
Power Delivery
System
Comm
Msg Queue 1
Power Conversion
Element
("Black Box")
Control
Center
Comm
Msg Queue 2 Control
29
2015 Electric Power Research Institute, Inc. All rights reserved.
Control Modes
Static
Power flows with large time steps
Time
Control queue employed to delay actions
Control acts when time is reached
Event
30
2015 Electric Power Research Institute, Inc. All rights reserved.
User Interfaces Currently Implemented
31
2015 Electric Power Research Institute, Inc. All rights reserved.
Why Scripting and COM?
32
2015 Electric Power Research Institute, Inc. All rights reserved.
What is COM?
33
2015 Electric Power Research Institute, Inc. All rights reserved.
SourceForge.Net Links for OpenDSS
34
2015 Electric Power Research Institute, Inc. All rights reserved.
Discussion Forum & News for OpenDSS
35
2015 Electric Power Research Institute, Inc. All rights reserved.
Installing
36
2015 Electric Power Research Institute, Inc. All rights reserved.
Validation of OpenDSS
37
2015 Electric Power Research Institute, Inc. All rights reserved.
What can OpenDSS be used for?
38
2015 Electric Power Research Institute, Inc. All rights reserved.
What has OpenDSS be used for?
39
2015 Electric Power Research Institute, Inc. All rights reserved.
Whats Next?
40
2015 Electric Power Research Institute, Inc. All rights reserved.
EPRIs Vision
41
2015 Electric Power Research Institute, Inc. All rights reserved.
How Does OpenDSS
Work?
OpenDSS Works In
Phase domain
Actual volts and amps
Symmetrical components and per units not used inside the program !!
-- Input and output only!
43
2015 Electric Power Research Institute, Inc. All rights reserved.
Primitive Y Matrix
Simple Resistor
R = 1/G
I1 I2
V1 V2
I1 G -G V1
=
I2 -G G V2
Yprim
44
2015 Electric Power Research Institute, Inc. All rights reserved.
Primitive Y Matrix, contd
LINE model
I1 R + jX I2
jB1 jB2
V1 V2
Yprim
45
2015 Electric Power Research Institute, Inc. All rights reserved.
What about 3-phase elements?
And it works!
46
2015 Electric Power Research Institute, Inc. All rights reserved.
The Network Model
VSOURCE
YSYSTEM
(Norton Equiv.)
V1
I1
V2
I2
YSYSTEM
VS
IS
=
VL1
IL1 NxN
(Sparse)
VL2
IL2
VN
IN
49
2015 Electric Power Research Institute, Inc. All rights reserved.
Load (a PC Element)
General Concept
Added into Injection
Current Vector
Compensation
Yprim Current
50
2015 Electric Power Research Institute, Inc. All rights reserved.
Load - 3-phase Y connected
Compensation Phase 1
Yprim Current
Compensation Phase 2
3 Yprim Current
4
51
2015 Electric Power Research Institute, Inc. All rights reserved.
Load - 3-phase Delta connected
Compensation Phase 1
Yprim Current
1
Compensation Phase 2
Yprim Current
52
2015 Electric Power Research Institute, Inc. All rights reserved.
Load Models (Present version)
53
2015 Electric Power Research Institute, Inc. All rights reserved.
Standard P + jQ (constant power) Load Model
When the voltage goes out of the normal range for a load the
model reverts to a linear load model
This generally guarantees convergence
Even when a fault is applied
This script changes break points to +/- 10%:
Load.Load1.Vmaxpu=1.10
Load.Load1.Vminpu=0.90
Note: to solve some of the IEEE Radial Test feeders and match the published
results, you have to set Vminpu to less than the lowest voltage published
(usually about 0.80 per unit)
54
2015 Electric Power Research Institute, Inc. All rights reserved.
Standard P + jQ Load Model (Model=1)
1.3
Const Z
1.2
1.1
105%
1 (Defaults*)
0.9
95%
|I| = |S/V| 0.8
PU Voltage
0.7
0.6
Const Z
0.5
New Method (2014)
0.4
0.3
55
PU Current
2015 Electric Power Research Institute, Inc. All rights reserved.
Power Flow Solution Algorithm
56
2015 Electric Power Research Institute, Inc. All rights reserved.
Putting it All Together
ALL Elements
PC Elements
Comp. Currents
I1
I2
Iinj =
Y V Node
Voltages
Im
Iteration Loop
57
2015 Electric Power Research Institute, Inc. All rights reserved.
Putting it All Together
ALL Elements
PC Elements
Comp. Currents
I1
I2
Iinj =
Y V Node
Voltages
Im
Iteration Loop
58
2015 Electric Power Research Institute, Inc. All rights reserved.
Circuit Modeling
Basics in OpenDSS
Nodes
0 1 2 3 4
Bus
Referring to Buses and Nodes (A Bus has 1 or more Nodes)
Bus1=BusName.1.2.3.0
(This is the default for a 3-phase circuit element)
Shorthand notation for taking the default
Bus1=BusName
Note: Sometimes this can bite you (e.g. Transformers, or
capacitors with ungrounded neutrals)
60
2015 Electric Power Research Institute, Inc. All rights reserved.
DSS Terminal Definition
2 Power Delivery
or Power Conversion
Conductors Element
3
61
2015 Electric Power Research Institute, Inc. All rights reserved.
Power Delivery Elements
Power Delivery
Element
Terminal 1 Terminal 2
62
2015 Electric Power Research Institute, Inc. All rights reserved.
Power Conversion Elements
63
2015 Electric Power Research Institute, Inc. All rights reserved.
Specifying Bus Connections
Shorthand (implicit)
New Load.LOAD1 Bus1=LOADBUS
Assumes standard 3-phase connection by default
LOADBUS
5
4
3 LOAD
2
64
2015 Electric Power Research Institute, Inc. All rights reserved.
Specifying Bus Connections
LOADBUS
Explicit
New Load.LOAD1 Bus1=LOADBUS.1.2.3.0
6
Explicitly defines which node
5
4 New Load.1-PHASELOAD Phases=1
3 Bus1=LOADBUS.2.0
2
1
Connects 1-phase load to
LOAD
0
Node 2 and ground
1-ph Load connected to
phase 2
65
2015 Electric Power Research Institute, Inc. All rights reserved.
Specifying Bus Connections
66
2015 Electric Power Research Institute, Inc. All rights reserved.
Specifying Bus Connections
Ungrounded-Wye Specification
Bus1=LOADBUS.1.2.3.4 (or some other unused Node number)
LOADBUS
Neutral
67
2015 Electric Power Research Institute, Inc. All rights reserved.
Possible Gotcha: Specifying Two Ungrounded-Wye
Capacitors on Same Bus
MyBus
Bus1=MyBus Bus2=MyBus.4.4.4
68
2015 Electric Power Research Institute, Inc. All rights reserved.
Circuit Element Conductors are Connected to the Nodes
of Buses
MyBus
Power Delivery Power Delivery
Element Element
Terminal 1 Terminal 2 Terminal 1 Terminal 2
3
2
Iterm = [Yprim] Vterm Iterm = [Yprim] Vterm
69
2015 Electric Power Research Institute, Inc. All rights reserved.
Example: Connections for 1-Phase Residential
Transformer Used in North America
Bus 1 Bus 2
1 1
Note: You may use XfmrCode
Wdg 2
to define a library of
transformer definitions that are Wdg 1 0
used repeatedly (like
Wdg 3
LineCode for Line elements)
0 or 2
2
DELTA-WYE
TRANSFORMER
3-Phase
3 PHASES
Transformer 2 WINDINGS
4 CONDS/TERMINAL*
1 1
3
3
4 4
(OPEN)
TR1
LINE1
1 Mile, 336
Source ACSR
Loadbus
Sourcebus Sub_bus
115 kV
12.47 kV
LOAD1
1000 kW
0.95 PF
73
2015 Electric Power Research Institute, Inc. All rights reserved.
A Basic Script (Class Exercise)
TR1
LINE1
1 Mile, 336
Source ACSR
Loadbus
Sourcebus Sub_bus
115 kV
12.47 kV
LOAD1
1000 kW
0.95 PF
74
2015 Electric Power Research Institute, Inc. All rights reserved.
A Basic Script (Class Exercise)
TR1
LINE1
1 Mile, 336
Source ACSR
Loadbus
Sourcebus Sub_bus
115 kV
12.47 kV
LOAD1
1000 kW
0.95 PF
75
2015 Electric Power Research Institute, Inc. All rights reserved.
A Basic Script (Class Exercise)
TR1
LINE1
1 Mile, 336
Source ACSR
Loadbus
Sourcebus Sub_bus
115 kV
12.47 kV
LOAD1
1000 kW
0.95 PF
76
2015 Electric Power Research Institute, Inc. All rights reserved.
A Basic Script (Class Exercise)
TR1
LINE1
1 Mile, 336
Source ACSR
Loadbus
Sourcebus Sub_bus
115 kV
12.47 kV
LOAD1
1000 kW
0.95 PF
77
2015 Electric Power Research Institute, Inc. All rights reserved.
A Basic Script (Class Exercise)
TR1
LINE1
1 Mile, 336
Source ACSR
Loadbus
Sourcebus Sub_bus
115 kV
12.47 kV
LOAD1
1000 kW
0.95 PF
78
2015 Electric Power Research Institute, Inc. All rights reserved.
A Basic Script (Class Exercise)
TR1
LINE1
1 Mile, 336
Source ACSR
Loadbus
Sourcebus Sub_bus
115 kV
12.47 kV
LOAD1
1000 kW
0.95 PF
79
2015 Electric Power Research Institute, Inc. All rights reserved.
A Basic Script (Class Exercise)
TR1
LINE1
1 Mile, 336
Source ACSR
Loadbus
Sourcebus Sub_bus
115 kV
12.47 kV
LOAD1
1000 kW
0.95 PF
80
2015 Electric Power Research Institute, Inc. All rights reserved.
Circuit
Vsource.Source SourceBus
Source
115 kV
One-Line Diagram
(default is 3-phase wye-grd source)
81
2015 Electric Power Research Institute, Inc. All rights reserved.
Vsource Element Note
82
2015 Electric Power Research Institute, Inc. All rights reserved.
20 MVA Substation Transformer
TR1
SourceBus Sub_Bus
83
2015 Electric Power Research Institute, Inc. All rights reserved.
The Line
Sub_Bus LoadBus
LINE1
1 Mile, 336
84
2015 Electric Power Research Institute, Inc. All rights reserved.
The Load
Loadbus
LOAD 1
1000 kW
0. 95 PF
85
2015 Electric Power Research Institute, Inc. All rights reserved.
Solving and Showing Results Reports
Solve
Show summary (power flow summary)
Show Voltages
Show Currents
Show Powers kVA elements
Also
Export (creates CSV files)
Plot
86
2015 Electric Power Research Institute, Inc. All rights reserved.
DGScreener
Connection to
OpenDSS
DG Screener
OpenDSS
89
2015 Electric Power Research Institute, Inc. All rights reserved.
Two Implementations of OpenDSS
Stand-alone EXE
32-bit
64-bit
Use this to develop text scripts to study problems
In-Process COM Server
32-bit
64-bit
Use this to link OpenDSS to other programs
Automate the program
Execute complex algorithms
90
2015 Electric Power Research Institute, Inc. All rights reserved.
DSS Structure
Text
Scripts
COM
Interface Main Simulation Engine
User-
Written
Scripts, DLLs
Results
91
2015 Electric Power Research Institute, Inc. All rights reserved.
OpenDSSEngine.DSS is Registered
GUID
92
2015 Electric Power Research Institute, Inc. All rights reserved.
Linking Your Program to the COM Server
93
2015 Electric Power Research Institute, Inc. All rights reserved.
Linking Your Program to the COM Server, 2
In PYTHON:
Import win32com.client
Class DSS:
self.engine =
win32com.client.Dispatch("OpenDSSEngine.DSS")
In C#:
(Project >Add Reference select OpenDSSEngine)
Using OpenDSSEngine;
Public DSS DSSObj;
DSSObj = new DSS();
94
2015 Electric Power Research Institute, Inc. All rights reserved.
OpenDSS COM Interfaces
95
2015 Electric Power Research Institute, Inc. All rights reserved.
Active objects concept
96
2015 Electric Power Research Institute, Inc. All rights reserved.
Viewing the COM Interface
The easiest way for most users to view the OpenDSS COM
interface is to use Microsoft Excel
Procedure
Start Excel
Alt-F11 to open VBA Editor
Connect to OpenDSS Engine via Tools>References
97
2015 Electric Power Research Institute, Inc. All rights reserved.
Viewing the COM Interface
98
2015 Electric Power Research Institute, Inc. All rights reserved.
The DSS Interface
99
2015 Electric Power Research Institute, Inc. All rights reserved.
DG Screener Circuit
Model Templates
Default
101
2015 Electric Power Research Institute, Inc. All rights reserved.
DG Screener Circuit Model Templates
102
2015 Electric Power Research Institute, Inc. All rights reserved.
DG Screener Circuit Model Templates
103
2015 Electric Power Research Institute, Inc. All rights reserved.
Examining Transactions between OpenDSS and DG
Screener
Edit Transformer.G1
~ Wdg=1
? Transformer.G1.conn
All Dialogs are populated using OpenDSS ? Transformer.G1.kV
105
2015 Electric Power Research Institute, Inc. All rights reserved.
The DG Screener
Screens
PF=1.0 PF=-0.97
107
2015 Electric Power Research Institute, Inc. All rights reserved.
Short Circuit Analysis
108
2015 Electric Power Research Institute, Inc. All rights reserved.
Open Conductor
109
2015 Electric Power Research Institute, Inc. All rights reserved.
Islanding Screen
Breaker Opens
Voltages Frequency
110
2015 Electric Power Research Institute, Inc. All rights reserved.
Voltage Fluctuations Screen for Solar PV
Library of PV Shapes
111
2015 Electric Power Research Institute, Inc. All rights reserved.
Class Exercise: COM
interface with VBA
Example
To run the IEEE 123-bus Test Feeder and
plot the voltage profile using the OpenDSS
COM interface
113
2015 Electric Power Research Institute, Inc. All rights reserved.
The Code
Option Explicit
Public MyOpenDSS As OpenDSSengine.DSS
Public MyText As OpenDSSengine.Text
Public MyCircuit As OpenDSSengine.Circuit
114
2015 Electric Power Research Institute, Inc. All rights reserved.
Resulting Chart in Excel
1.06
1.05
1.04
1.03
1.02
Series1
1.01
0.99
0.98
0.97
0 2 4 6 8
115
2015 Electric Power Research Institute, Inc. All rights reserved.
Other Excel Macros and Tips
116
2015 Electric Power Research Institute, Inc. All rights reserved.
VBA Example
Option Explicit
End Sub
117
2015 Electric Power Research Institute, Inc. All rights reserved.
VBA Example
' Always a good idea to clear the DSS when loading a new This subroutine loads the circuit
circuit from the base script files using
DSSText.Command = "clear" the Compile command through
' Compile the script in the file listed under "fname" cell on the
the Text interface. fname is a
main form string contains the name of the
DSSText.Command = "compile " + fname master file.
' The Compile command sets the current directory the that of
the file
There is an active circuit now,
' Thats where all the result files will end up.
so assign the DSSCircuit
' Assign a variable to the Circuit interface for easier access variable.
Set DSSCircuit = DSSobj.ActiveCircuit
End Sub
118
2015 Electric Power Research Institute, Inc. All rights reserved.
VBA Example
iRow = 2
For i = 1 To DSSCircuit.NumBuses ' Cycle through all buses Cycle through all the buses
Set DSSBus = DSSCircuit.Buses(i) ' Set ith bus active
Get the bus name
' Bus name goes into Column 1
WorkingSheet.Cells(iRow, 1).Value = DSSCircuit.ActiveBus.Name
' Load sequence voltage magnitudes of active bus into variant array
V = DSSBus.SeqVoltages
Get the voltages
' Put the variant array values into Cells into the variant array
' Use Lbound and UBound because you don't know the actual range
iCol = 2
For j = LBound(V) To UBound(V)
WorkingSheet.Cells(iRow, iCol).Value = V(j)
Put them on the
iCol = iCol + 1 spreadsheet
Next j
iRow = iRow + 1
Next i
End Sub
119
2015 Electric Power Research Institute, Inc. All rights reserved.
Scripting for Larger
Circuits
How to organize scripts for larger problems
Examination of how the IEEE 8500-Node
Test Feeder model is organized
For small circuits, often put all the scripts in one file
Some IEEE test feeder examples are mostly in one file
When you have large amounts of data, a more disciplined
approach is recommended using multiple files:
Redirect Command
Redirects the input to another file
Returns to home directory
Compile Command
Same as Redirect except repositions home directory
121
2015 Electric Power Research Institute, Inc. All rights reserved.
Organizing Your Main Screen
122
2015 Electric Power Research Institute, Inc. All rights reserved.
OpenDSS Registry Entries
123
2015 Electric Power Research Institute, Inc. All rights reserved.
Organizing Your Main Screen
Main Script Window never
goes away. Put some
frequently-used commands
here.
Misc. Scripts
Plotting Scripts
Project Run window
124
2015 Electric Power Research Institute, Inc. All rights reserved.
A Common Sense Structuring of Script Files
Master.DSS
LineCodes.DSS
WireData.DSS
LineGeometry.DSS Libraries
Put a Clear in here
Spectrum.DSS
LoadShape.DSS
Transformers.DSS
Lines.DSS Circuit
Make a separate folder for Definition
Loads.DSS
each circuit
Etc.
125
2015 Electric Power Research Institute, Inc. All rights reserved.
Organizing Run Scripts
126
2015 Electric Power Research Institute, Inc. All rights reserved.
Organizing Your Master File
127
2015 Electric Power Research Institute, Inc. All rights reserved.
Example:
Compile (C:\DSSdata\IEEETest\8500Node\Master-unbal.dss)
! Put an Energymeter at the head of the feeder
New Energymeter.m1 Line.ln5815900-1 1
Solve
129
2015 Electric Power Research Institute, Inc. All rights reserved.
The Master File
Clear
New Circuit.IEEE8500u
Redirect LineCodes2.dss
Redirect Triplex_Linecodes.dss
Redirect Lines.dss
Redirect Transformers.dss
Redirect LoadXfmrs.dss ! Load Transformers
Redirect Triplex_Lines.dss
Redirect UnbalancedLoads.dss
Redirect Capacitors.dss
Redirect CapControls.dss
Redirect Regulators.dss
130
2015 Electric Power Research Institute, Inc. All rights reserved.
Loadshapes and
Smart Grid Simulation
The Key to Dynamic
Modeling
132
2015 Electric Power Research Institute, Inc. All rights reserved.
PVSystem in the OpenDSS
133
2015 Electric Power Research Institute, Inc. All rights reserved.
Example Script
134
2015 Electric Power Research Institute, Inc. All rights reserved.
Example Script
clear
135
2015 Electric Power Research Institute, Inc. All rights reserved.
Example Script (contd)
! PV definition
New PVSystem.PV phases=3 bus1=PVbus kV=12.47 kVA=500 irrad=0.8 Pmpp=500
~ temperature=25 PF=1 effcurve=Myeff P-TCurve=MyPvsT
~ Daily=MyIrrad TDaily=MyTemp
set voltagebases=[12.47]
calcv
solve
solve mode=daily
show mon m1
show mon m2
136
2015 Electric Power Research Institute, Inc. All rights reserved.
Example Script (contd)
Export monitors m1
Plot monitor object= m1 channels=(1 )
Export monitors m2
Plot monitor object= m2 channels=(1 ) base=[7200]
Export monitors m2
Plot monitor object= m2 channels=(9 )
137
2015 Electric Power Research Institute, Inc. All rights reserved.
Modeling PV Systems Variability/Ramping Single-Panel
138
2015 Electric Power Research Institute, Inc. All rights reserved.
Modeling PV Systems Variability/Ramping 1 MW PV Array
(same location as Single-Panel)
139
2015 Electric Power Research Institute, Inc. All rights reserved.
Modeling PV Systems Variability/Ramping Significance of
Solar Irradiance Resolution
140
2015 Electric Power Research Institute, Inc. All rights reserved.
Modeling PV Systems for Distribution System Impact
Assessment Fault Response
Fault current contribution
NREL
1 kW inverter: 4 x pre-fault output current for 1.6 ms
141
2015 Electric Power Research Institute, Inc. All rights reserved.
Modeling PV Systems for Distribution System Impact
Assessment Harmonic Response
Single units Model as current sources
1.0%
0.8%
0.6%
0.4%
0.2%
0.0%
17 19 21 23 25 27 29 31 33 35 37 39
Harmonic Order
Multiple units Model as current sources with cancellation at higher order harmonics
142
2015 Electric Power Research Institute, Inc. All rights reserved.
Modeling PV Systems for Distribution System Impact
Assessment Anti-Islanding
Difficult to model without explicit knowledge of the anti-islanding
scheme implementation details for the PV System
143
2015 Electric Power Research Institute, Inc. All rights reserved.
Smart Inverter
Control in the
OpenDSS
InvControl
Volt-watt
Follows a voltage versus active power curve and changes the active
power output according to the terminal voltage at each PVSystem
(within the limits of the present irradiance)
145
2015 Electric Power Research Institute, Inc. All rights reserved.
Volt-var Control Mode Example Volt-var Curve
Volt-var Curve
1.5
0.5, 1 0.95, 1
1
Available Reactive Power (per-unit)
0.5
Capacitive Region
0
0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 1.3 1.4 1.5
-1
1.05, -1 1.5, -1
-1.5
Voltage (per-unit)
146
2015 Electric Power Research Institute, Inc. All rights reserved.
InvControl in Volt-var Mode Script
147
2015 Electric Power Research Institute, Inc. All rights reserved.
Volt-watt Control Mode Example Volt-watt Curve
148
2015 Electric Power Research Institute, Inc. All rights reserved.
DRC Control Mode Settings Curve
149
2015 Electric Power Research Institute, Inc. All rights reserved.
150
(Movie
Demo)
151
2015 Electric Power Research Institute, Inc. All rights reserved.
Regulator Response for Series of Cloud Transients
Regulator Operations
152
2015 Electric Power Research Institute, Inc. All rights reserved.
Headroom for PV
Voltage Profile for 100% Load Voltage Profile for 40% Load
No Headroom for PV
153
2015 Electric Power Research Institute, Inc. All rights reserved.
Providing More Headroom
154
2015 Electric Power Research Institute, Inc. All rights reserved.
Planning for the Long Term
Volt-Var Control
Customer PV
Customer Load Q1
VARs Generated
Capacitive System
Q2 Q3 Voltage
V4
Inductive V1 V2 V3
Q4
155
2015 Electric Power Research Institute, Inc. All rights reserved.
Use of Smart Inverters for
Accommodating High-
Penetration PV Solar Rooftop PV
With volt/var control
Volt-Var Control
Customer PV
Customer Load Q1
VARs Generated
Capacitive System
Initial analysis indicated
Q2 Q3 Voltage
25%-100% more PV can
V4
be accommodated using
Inductive V1 V2 V3 Volt/var control
Q4
Primary Voltage
1.05
20% PV
1.025 20% PV with
volt/var control
1
Voltage (pu)
0.975
0.95
0.925
Baseline No PV
0.9
0 4 8 12 16 20
Hour Source: J. Smith, T. Key High-Penetration PV
Impact Analysis on Distribution Systems,
Solar Power International, Oct 2011
24 Hour Simulation
156
2015 Electric Power Research Institute, Inc. All rights reserved.
Increasing Hosting Capacity with Smart Inverters
Other Key
kW, kvar Properties
% Reserve
kWhRated
kWhStored
%Stored
Idling Losses kWh kWRated
STORED
etc.
159
2015 Electric Power Research Institute, Inc. All rights reserved.
StorageController Element in OpenDSS
Comm Link
V, I
160 Substation
Storage Fleet
2015 Electric Power Research Institute, Inc. All rights reserved.
Simple Peak Shave Example
with 3-Hour Storage
5000 40 Net kW
kWh Stored
4000
30
3000
20
2000
10
1000
0 0
0 50 100 150 200 250 300
Hours
161
2015 Electric Power Research Institute, Inc. All rights reserved.
162
Detail on Peak Shaving Application
25
8000
20
6000
kWh
kW
15
4000
10
2000
No Storage 5
Storage
kWh Stored
0 0
170 180 190 200 210 220 230
Hours into Simulation
162
2015 Electric Power Research Institute, Inc. All rights reserved.
163
Using Storage to Extend Solar PV
8000 2000
Demand_wPV+Storage
7000
Demand_wPV 1500
6000 Storage Ouput
1000
4000
3000 500
2000
Charging 0
1000
Discharging
0 -500
1 Minutes 1441
Source: EPRI, 2012, Analysis of Distribution System Effects of Energy Storage Through Simulation and
163
Modeling, Palo Alto, CA, US. 1024285
2015 Electric Power Research Institute, Inc. All rights reserved.
164
Using Storage for Smoothing PV
164
2015 Electric Power Research Institute, Inc. All rights reserved.
Storage with Controller
Clear
New Circuit.TestStorage
~ BasekV=12.47
New Line.Line1 Bus1=Sourcebus LoadBus ! default line
New Loadshape.DailyShape npts=96 minterval=15 mult=[file=storagetestshape.csv]
New Storage.Battery phases=3 Bus1=loadbus kV=12.47 kW=250 kWrated=250 kWhrated=1000
~ dispmode=follow daily=dailyshape
set voltagebase=[12.47]
calcv
new monitor.PQ storage.battery 1 ppolar=no mode=1
new monitor.Vars storage.battery 1 mode=3
solve
solve mode=daily step=15m number=(2 96 *)
show mon PQ
show mon vars
165
2015 Electric Power Research Institute, Inc. All rights reserved.
The Loadshape
0.5
Multiplier
0 Mult
0 5 10 15 20 25
-0.5
-1 Charge Cycle
-1.5
time, Hr
166
2015 Electric Power Research Institute, Inc. All rights reserved.
Result
250 1
200 0.8
150 0.6
100 0.4
50 0.2
kW
0 0
-50 -0.2
-100 -0.4
-150 -0.6
-200 -0.8
-250 -1
0 8 16 24 32 40 48
time, h
167
2015 Electric Power Research Institute, Inc. All rights reserved.
Storage with DynaDLL
clear
New Circuit.SimpleStore ! Creates voltage source (Vsource.Source)
168
2015 Electric Power Research Institute, Inc. All rights reserved.
Storage with Controller
169
2015 Electric Power Research Institute, Inc. All rights reserved.
Using DGScreener to
Generate Custom
OpenDSS Models
Example of Building a Custom Circuit
Model from a Template
Generator G_321
V&I Generator
(Mode 0) Variables
(Mode 3)
172
2015 Electric Power Research Institute, Inc. All rights reserved.
Questions, Requests, Examples
173
2015 Electric Power Research Institute, Inc. All rights reserved.
TogetherShaping the Future of Electricity
174
2015 Electric Power Research Institute, Inc. All rights reserved.