Professional Documents
Culture Documents
Engineering Department
Introduction to OpenDSS
Monitoring
Protection
Energy Efficiency
What is OpenDSS
The OpenDSS is an electric power Distribution
System Simulator (DSS) for supporting distributed
resource integration and grid modernization efforts.
Script driven, frequency domain electrical circuit
simulation tool
Limited graphical user interface
Extremely flexible
Hour
8609
8340
8071
7802
7533
7264
6995
6726
6457
6188
5919
5650
5381
5112
4843
4574
4305
4036
3767
3498
3229
2960
2691
2422
2153
1884
1615
1346
1077
808
539
270
Power, kW
5000
2500
4500
2000
4000
3500
1000
3000
500
2500
0
2000
kW
-500
1500
-1000
1000
-1500
500
-2000
0
-2500
DG Dispatch
Phase 1b Required DR Output
kvar
1500
Solar PV Simulation
5
Without PV
With PV
-1
-1
2 Weeks
Difference, MW
MW
Difference
A c tiv e a n d R e a c ti v e P o w e r
1.03
(W )
4000
1.02
P 3 -(k W )
3000
1.01
2000
1.00
0.99
1000
0
0.97
(V )
(V A r)
0.98
-91
Q 3 -(k v a r)
Ta p -(p u )
1.02
-191
-291
-391
1.00
0.98
-491
0.96
-591
0
E le c tr o te k C o n c e p ts
20000
40000
T im e ( s )
60000
80000
T O P , T h e O u tp u t P r o c e s s o r Electrotek Concepts
20000
40000
Time (s)
60000
80000
TOP, The Output Processor
Example
First solve
basic circuit
400000 V
I
4000 Amps
1000
V 400000 (5 j 40) 4000
42000 j16000 44.920.8 kV
S V I * 44.9k20.8 4000
17.9820.8 MVA 16.8 j 6.4 MVA
Dr.- Ing. Abdalkarim Awad
Example
First solve
basic circuit
Power Consumed
in the load?
400000 V
I
4000 Amps
1000
Loss?
V 400000 (5 j 40) 4000
42000 j16000 44.920.8 kV
S V I * 44.9k20.8 4000
17.9820.8 MVA 16.8 j 6.4 MVA
Dr.- Ing. Abdalkarim Awad
10
11
Simulation
clear
New Circuit.Example3_0 ! Creates voltage source (Vsource.Source)
set Basefrequency=50
Edit Vsource.Source Bus=SourceBus BasekV=40 pu=1.137 freq=50
~ ISC1=2500 Angle=0 !Define source V and Z
New Linecode.Code1 R1=5 X1=40 C1=0 Units=Km
New Line.LINE1 Bus1=SourceBus Bus2=LoadBus Linecode=Code1
~ Length=1 Units=Km
New Load.LOAD1 Bus1=LoadBus kV=40 kW=16000 PF=1.0
LoadBus
Set voltagebases="40"
Line1
Calcv
Solve
Source
SourceBus
Show Powers
Load1
12
Simulation
clear
New Circuit.Example3_0
! Creates voltage source (Vsource.Source)
set Basefrequency=50
Edit Vsource.Source Bus=SourceBus BasekV=40 pu=1.137 freq=50
~ ISC1=2500 Angle=0 !Define source V and Z
New Linecode.Code1 R1=5 X1=40 C1=0 Units=Km
New Line.LINE1 Bus1=SourceBus Bus2=LoadBus Linecode=Code1
~ Length=1 Units=Km
New Load.LOAD1 Bus1=LoadBus kV=40 kW=16000 PF=1.0
LoadBus
Set voltagebases="40"
Line1
Calcv
Solve
Source
SourceBus
Show Powers
Load1
13
Simulation
clear
New Circuit.Example3_0
! Creates voltage source (Vsource.Source)
set Basefrequency=50
Edit Vsource.Source Bus=SourceBus BasekV=40 pu=1.137 freq=50
~ ISC1=2500 Angle=0 !Define source V and Z
New Linecode.Code1 R1=5 X1=40 C1=0 Units=Km
New Line.LINE1 Bus1=SourceBus Bus2=LoadBus Linecode=Code1
~ Length=1 Units=Km
New Load.LOAD1 Bus1=LoadBus kV=40 kW=16000 PF=1.0
LoadBus
Set voltagebases="40"
Line1
Calcv
Solve
Source
SourceBus
Show Powers
Load1
14
15
Example, contd
Z Load 70.7
pf 0.7 lagging
I 564 45 Amps
V 59.713.6 kV
S 33.758.6 MVA 17.6 j 28.8 MVA
Dr.- Ing. Abdalkarim Awad
16
Example, contd
Power Consumed
in the load?
Z Load 70.7 pf 0.7 lagging
Loss?
I 564 45 Amps
V 59.713.6 kV
S 33.758.6 MVA 17.6 j 28.8 MVA
Dr.- Ing. Abdalkarim Awad
17
16.0 MW
28.8 MVR
-16.0 MVR
PowerWorld
simulator
17.6 MW
28.8 MVR
59.7 kV
40.0 kV
16.0 MW
16.0 MVR
Bus
Arrows are
used to
show loads
18
Simulation-Script
clear
New Circuit.Example3_0 ! Creates voltage source (Vsource.Source)
Edit Vsource.Source BasekV=40 pu=1.513 frequency=50
ISC1=2500 Angle=0 !Define source V and Z
New Linecode.336ACSR R1=5 X1=40 C1=0 Units=Km
New Line.LINE1 Bus1=SourceBus Bus2=LoadBus
Linecode=336ACSR Length=1 Units=Km
New Load.LOAD1 Bus1=LoadBus kV=40 kW=16000 PF=0.707
Set voltagebases="40"
Calcv
Solve
Show Powers
19
Reactive Compensation
16.0 MW
6.4 MVR
0.0 MVR
44.94 kV
16.8 MW
6.4 MVR
40.0 kV
16.0 MW
16.0 MVR
16.0 MVR
Simulation-Script
clear
New Circuit.Example3_0
! Creates voltage source
(Vsource.Source)
Edit Vsource.Source BasekV=40 pu=1.137 frequency=50
ISC1=2500 Angle=0 !Define source V and Z
New Linecode.336ACSR R1=5 X1=40 C1=0 Units=Km
New Line.LINE1 Bus1=SourceBus Bus2=LoadBus
Linecode=336ACSR Length=1 Units=Km
New Load.LOAD1 Bus1=LoadBus kV=40 kW=16000 PF=0.707
New capacitor.C1 Bus1=LoadBus kV=40 kvar=16000
Set voltagebases="40"
Calcv
Solve
Show Powers
21
Important Commands
Start with Clear
clear
Set the default frequency (one time is enough)
Set DefaultBaseFrequency=50
If the frequency is wrong, it will not work!
22
Components
Define a new circuit
23
Components
Substation transformer
new transformer.SS phases=3 windings=2
buses=(sourcebus, busone) conns=(wye, wye) kvs=(132, 40)
kvas=(30000, 30000) %loadloss=0 xhl=12.5
Lines
Produce linecodes (it is a more organised way)
24
Components
Loads
new load.loadB bus1=B phases=3 kV=33 kW=16000
pf=0.95 model=1
V
V
V
P P0 Z p I p Pp Q Q0 Z q I q Qq
V0
V0
V0
V0
Z p I p Pp 1.0
Dr.- Ing. Abdalkarim Awad
Z q I q Pq 1.0
25
26
Components
Loads
new load.loadB bus1=B phases=3 kV=33 kW=16000
pf=0.95 model=1
PV
new PVsystem.PVPark bus1=LoadBus phases=3
kV=40 KVA=16000 irrad=0.7 Pmpp=16000
kvar=5000 temperature=25
Battery
New Storage.ES1 Phases=3 Bus1=Busthree kV=0.4
kWRated=3 kWhRated=10 pf=1.0 %stored=50.0
dispmode=trigger state=IDLING
Storage.ES1.state=CHARGING
Dr.- Ing. Abdalkarim Awad
27
Important Commands
Control modes
set controlmode=static
Ideal for snapshot and hourly time-series analyses
Type of solution
set mode=snapshot
Solve
Write the solve command
28
Important Commands
Per unit voltages
show voltages LL
show currents
show powers Ele
29
Example
First solve
basic circuit
Power Consumed
in the load?
400000 V
I
4000 Amps
1000
Loss?
V 400000 (5 j 40) 4000
42000 j16000 44.920.8 kV
S V I * 44.9k20.8 4000
17.9820.8 MVA 16.8 j 6.4 MVA
Dr.- Ing. Abdalkarim Awad
30
Example1
sourcebus
Busone
LoadBus
5+40j
132/40
16MW
31
Example3_1-Script
Run the example
How much losses dow we have?
Change the power factor of the load to 0.7
How much losses do we have now?
Add a capacitor bank to reduce the active power
losses.
32
Loadshapes
33
Example
100kW
P1
P2
BUS1
BUS2
y12=-10j
y23=-10j
y13=-10j
BUS3
Wind
Load
34
Define loadshapes
Two ways
Either entering the values directly:
35
Example 3_2-Script
Run the example
What is the voltage at 5 PM?
Add resistance to the cables
How much losses do we have?
What is the voltage at 5 PM?
36
2 3
4
Bus
Shorthand (implicit)
New Load.LOAD1 Bus1=LOADBUS
Assumes standard 3-phase connection by default
LOADBUS
6
5
4
3
2
1
0
LOAD
LOADBUS
Explicit
New Load.LOAD1 Bus1=LOADBUS.1.2.3.0
Explicitly defines which node
6
5
4
3
2
1
LOAD
0
1-ph Load connected to
phase 2
Ungrounded-Wye Specification
Bus1=LOADBUS.1.2.3.4
Node number)
LOADBUS
6
5
4
3
2
LOAD
1
0
Neutral
MyBus
Terminal 1
Terminal 2
Terminal 1
3
2
Iterm = [Yprim] Vterm
. . . Bus2 = MyBus.2.1.3.0 . . .
. . . Bus1 = MyBus . . .
(take the default)
Terminal 2
Example 3_3
ZIP model
House1
House2
PV
House3
42
Example3_3-Scripts
Run the example
What is the voltage at house 3?
Decrease the load at house 3 and increase the
supply from the PV
What is the voltage at house 3 now?
43
References
http://sourceforge.net/projects/electricdss/
OpenDSS documentation
OpenDSS training Matrial by EPRI
OpenDSS Training Material by Dr Luis(Nando)
Ochoa
44