Day 03 - PVSystem InvControl Storage StorageController
Day 03 - PVSystem InvControl Storage StorageController
Workshop
PVSystem, InvControl, Storage,
StorageController – Parts I and III
Celso Rocha, Paulo Radatz
EPRI Knoxville, TN
www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Instructor
▪ Paulo Radatz
Paulo Radatz serves as Engineer Scientist II at the Electric Power Research Institute (EPRI) in
Knoxville, Tennessee USA. He received both his Masters and Bachelors degree in electrical
engineering with emphasis in energy and automation from University of Sao Paulo, Sao Paulo,
Brazil. He was awarded a prize for being the best bachelor's student of Polytechnic School of
University of Sao Paulo (2015). He has 5 years of experience with OpenDSS, having taught several
OpenDSS trainings in Brazil at conferences, universities and industry.
2 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
1. Inverter Modeling in OpenDSS
3 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
“New inverter.*”?
4 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Inverter Capability Curve
Storage (Ch)
PVSystem
and Storage
(Dch)
5 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Inverter Capability Curve
6 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Inverter Capability Curve
7 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
2. PVSystem + InvControl
8 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
PVSystem Element in OpenDSS
9 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
PVSystem Properties
PV Array
Pmpp
P-TCurve
PV Inverter
Inverter Connection and Efficiency Curve
kV, Phases, bus1, conn, EffCurve
QSTS
Irradiance,
irradiance curve (daily, yearly, or duty),
temperature curve (Tdaily, Tyearly, or Tduty)
10 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Example Script
Clear
Set voltagebases=[13.8]
Calcvoltagebases
Set mode=daily
Solve
11 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Base Case
New PVSystem.PV phases=3 bus1=A Pmpp=1000 kV=13.8 kVA=1200 effcurve=Eff
~ P-TCurve=FatorPvsT %Pmpp=100 daily=Irrad Tdaily=Temp pf=0.9 %cutin=20 %cutout=20
12 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Base Case
New Monitor.PV_v element=PVSystem.PV terminal=1 mode=3
13 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
kVA exceeded under P priority
New PVSystem.PV phases=3 bus1=A Pmpp=1000 kV=13.8 kVA=1000 effcurve=Eff
~ P-TCurve=FatorPvsT %Pmpp=100 daily=Irrad Tdaily=Temp wattpriority=yes pf=0.8
14 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
kVA exceeded under Q priority
New PVSystem.PV phases=3 bus1=A Pmpp=1000 kV=13.8 kVA=1000 effcurve=Eff
~ P-TCurve=FatorPvsT %Pmpp=100 daily=Irrad Tdaily=Temp wattpriority=no pf=0.8
15 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Active Power Limited – Limit DER Power
New PVSystem.PV phases=3 bus1=A Pmpp=1000 kV=13.8 kVA=1000 effcurve=Eff
~ P-TCurve=FatorPvsT %Pmpp=60 daily=Irrad Tdaily=Temp pf=1
16 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Reactive Power Limited
New PVSystem.PV phases=3 bus1=A Pmpp=1000 kV=13.8 kVA=1000 effcurve=Eff
~ P-TCurve=FatorPvsT %Pmpp=100 daily=Irrad Tdaily=Temp pf=0.6 kvarmax=300
17 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Night Operation
New PVSystem.PV phases=3 bus1=A Pmpp=1000 kV=13.8 kVA=1000 effcurve=Eff
~ P-TCurve=FatorPvsT %Pmpp=100 daily=Irrad Tdaily=Temp kvar=300 varfollowinverter=no
18 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
InvControl Element in OpenDSS
19 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
InvControl Properties
Common Properties
Mode and element controlled
REQUEST Reactive Power
DERList, mode, Combimode
RefReactivePower
Convergence Volt-var
VoltageChangeTolerance, VarChangeTolerance, ActivePChangeTolerance Vvc_curve1
deltaQ_factor, deltaP_factor (Set equal to -1 allows automatic algorithm) DRC (Dynamic Reactive Current)
Monitored Voltage DbvMin, DbvMax, ArGraLowV,
ArGraHiV, DynReacavgwindowlen
monBus, monBusesVbase, monVoltageCalc, voltage_curvex_ref
Watt-pf
Wattpf_curve
Watt-var
LIMIT Active Power Wattvar_curve
Volt-watt
VoltwattYAxis
Voltwatt_curve
VoltwattCH_curve (Storage Only)
20 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Smart Inverter Functions
▪ Volt-Var
– Follows a voltage versus reactive power curve and REQUESTS the
reactive power generation (capacitive) or reactive power absorption
(inductive) according to the monitored voltage of each DER element
21 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Smart Inverter Functions
▪ Volt-Watt
– Follows a voltage versus active power curve and defines the active power
output LIMIT according to the monitored voltage of each DER element
Allowed
Operating
Area
22 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Smart Inverter Functions
▪ Watt-PF
– Follows an active power versus power factor curve to REQUEST the
reactive power according to the active power output of each DER
element
▪ Watt-Var
– Follows an active power versus reactive power curve and REQUESTS the
reactive power according to the active power output of each DER
element
23 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Smart Inverter Functions
▪ Volt-Var + Volt-Watt
▪ Volt-Var + DRC
▪ Volt-Watt + DRC
24 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Volt-Var Example
New XYcurve.generic npts=5 yarray=[1 1 0 -1 -1] xarray=[0.5 0.92 1.0 1.08 1.5]
25 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Monitor mode 3 – State Variables
New Monitor.PV_v element=PVSystem.PV terminal=1 mode=3
Function Flags
hour IrradiancePanelkW P_TFactor Efficiency Vreg Vavg (DRC) volt-var volt-watt DRC VV_DRC
1 0 0 1 1 0.99 9999 0 9999 9999 9999
2 0 0 1 1 0.99 9999 0 9999 9999 9999
3 0 0 1 1 0.99 9999 0 9999 9999 9999
4 0 0 1 1 0.99 9999 0 9999 9999 9999
5 0 0 1 1 0.99 9999 0 9999 9999 9999
6 0 0 1 1 0.99 9999 0 9999 9999 9999 Regulated Voltage
7 0.1 100 1 1 0.99 9999 0 9999 9999 9999 used in the Smart
8 0.2 200 1 1 0.99 9999 0 9999 9999 9999 Inverter Functions
9 0.3 300 1 1 1.00 9999 -1 9999 9999 9999
10 0.5 500 1 1 1.01 9999 -1 9999 9999 9999
26 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Volt-Var Example
New PVSystem.PV phases=3 Pmpp=1000 kV=13.8 kVA=1010 wattpriority=yes …
New XYcurve.generic npts=5 yarray=[1 1 0 -1 -1] xarray=[0.5 0.92 1.0 1.08 1.5]
New InvControl.VoltVar mode=VOLTVAR vvc_curve1=generic RefReactivePower=VARMAX
28 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
3. Storage + StorageController
29 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Storage Element in OpenDSS
30 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Modeling
“Same” as in PV System
31 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Modeling
32 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Operation – Power Flow within Storage
𝐼𝑑𝑙𝑖𝑛𝑔 𝑐ℎ
𝐼𝑛𝑣
𝑃𝐿𝑜𝑠𝑠𝑒𝑠 𝑃𝐿𝑜𝑠𝑠𝑒𝑠 𝑃𝐿𝑜𝑠𝑠𝑒𝑠
Power that effectively charges the ES
𝑃𝑖𝑛
𝑒𝑓𝑓
𝑃𝑖𝑛
33 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Operation – Power Flow within Storage
𝑒𝑓𝑓
𝑃𝑜𝑢𝑡
𝑃𝑜𝑢𝑡
34 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Operation – Power Flow within Storage
▪ In Idling state:
𝐼𝑛𝑣 𝐼𝑑𝑙𝑖𝑛𝑔
𝑃𝐿𝑜𝑠𝑠𝑒𝑠 𝑃𝐿𝑜𝑠𝑠𝑒𝑠
𝑃𝑖𝑛
35 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Dispatch Modes
Measure Means Modes
▪ Someone needs to tell
Default
the element when Follow
charge/discharge and at Self- LoadLevel
Dispatch
what rate Price
External
▪ “Self-dispatch”: TimeChargeTrigger (Charge Only)
36 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Dispatch Modes – Self-Dispatch (Follow)
𝑷 𝒕 = 𝒎𝒖𝒍𝒕 𝒕 ∗ 𝒌𝑾𝑹𝒂𝒕𝒆𝒅
37 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Dispatch Modes – Self-Dispatch (External)
// 1am-2am
Set number=2
Solve
// 3am-7am
Edit Storage.Storage1 state=charging
New Storage.Storage1 phases=3 bus1=A kv=0.48 kWrated=50 %reserve=20
~ %charge=80 kWhrated= 500 %stored=50 state=idling dispmode=External
Set number=5
Solve
// 8am-5pm
Edit Storage.Storage1 state=idling
Set number= 10
Solve
// 6am-10pm
Edit Storage.Storage1 kW=25
Set number=5
Solve Implicitly sets state to discharge (>0)
// 11pm-12am
Edit Storage.Storage1 state=idling
Set number= 2
Solve
38 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Storage Controller Element in OpenDSS
▪ Control Element
▪ Designed to control a fleet of ES
▪ Monitors a terminal of a current-carrying element (typically a PDE)
39 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Storage Controller - Dispatch Modes
Discharging Follow
Support
Schedule
PeakShaveLow
Charging
I-PeakShaveLow
Time
Discharging and
Charging Loadshape
40 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Storage Controller - Dispatch Modes
42 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Storage Controller - Dispatch Modes –
PeakShaving (Discharging) and Time (Charging)
New StorageController.SC element=Line.ln5815900-1 modedis=peakShave kwtarget=10200
~ modecharge=Time timeChargeTrigger=2 %rateCharge=50
No Power - Case
set casename=NoPower
Edit Storage.A kWrated=50
Edit Storage.B kWrated=100
Edit Storage.C kWrated=175
Edit Storage.D kWrated=150
Edit Storage.E kWrated=75
Edit Storage.F kWrated=100
Edit Storage.G kWrated=125
43 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Storage Controller - Dispatch Modes –
PeakShaving (Discharging) and Time (Charging)
New StorageController.SC element=Line.ln5815900-1 modedis=peakShave kwtarget=10200
~ modecharge=Time timeChargeTrigger=2 %rateCharge=50
No Energy - Case
set casename=NoEnergy
Edit Storage.A kWhrated=250
Edit Storage.B kWhrated=500
Edit Storage.C kWhrated=825
Edit Storage.D kWhrated=625
Edit Storage.E kWhrated=250
Edit Storage.F kWhrated=600
Edit Storage.G kWhrated=625
Original Fleet Energy Capacity= 7.35 MWh Fleet Energy Capacity= 3.675 MWh
44 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Storage Controller + InvControl
~
Load B
New Storage.B phases=3 bus1=B kv=13.8 kVA=1000 kWrated=1000 kWhrated= 10000 kvarMax=800
New Storage.C phases=3 bus1=C kv=13.8 kVA=1000 kWrated=1000 kWhrated= 10000 kvarMax=800
New Storage.D phases=3 bus1=D kv=13.8 kVA=1000 kWrated=1000 kWhrated= 10000 kvarMax=800
45 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Storage Controller + InvControl
Storage
Controller
set maxcontroliter=200
Set mode=Daily
! StorageController
!Cases Set stepsize=1h
new Storagecontroller.SC element=line.AB
set casename=NoControls
~ modedis=peakshave kwtarget=4000
Edit StorageController.SC enabled=False Set number=10
Edit InvControl.InvControl enabled=False Solve
! InvControl
New XYcurve.generic npts=5 yarray=[1 1 0 -1 -1]
set casename=Ppriority Edit Vsource.source pu=0.94
~ xarray=[0.5 0.92 1.0 1.08 1.5]
Batchedit Storage..* wattpriority = True set number=4
New InvControl.InvControl mode=VOLTVAR
~ vvc_curve1=generic Solve
set casename=Qpriority
~ RefReactivePower=VARMAX
Batchedit Storage..* wattpriority = False Edit Vsource.source pu=1
set number=10
Solve
46 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Storage Controller + InvControl
47 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Storage Controller + InvControl
Q Priority
P Priority
48 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Where do I go from here?
49 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.
Together…Shaping the Future of Electricity
50 www.epri.com © 2019 Electric Power Research Institute, Inc. All rights reserved.