IEEE_Microgrid
IEEE_Microgrid
Ts_Power=50 us
Ts_Control=100 us
Abstract—This paper evaluates microgrid control strategies aA a A aA aA
C
480 V / 12 kV coupling (PCC)
Yg
electric vehicle charging station. Three operational scenarios are
OpCtrl
500 kVA
12 kV / 480 V
Yg
studied: grid-connected operation; seamless transition to islanded
b
a
c
aA
Bb
Cc
Aa
1 IslandGrid 200 kVA Vehicle-Grid Integration
PCC mode
480 V / 240 V
RT R , Simulink R
3 LoadVar
not found
Load variations
aA
OpComm2
cC
5 Temp
Temperature
Emergency Generator
I. I NTRODUCTION
6
Generator
DieselGenCon
Bat
Pload
TABLE I
S PECIFICATIONS OF THE REC T WIN P EAK 2S M ONO 72 S ERIES 375 W
PV MODULE
This paper describes a model of the microgrid that the Grid 3
Grid
Parameters Values
Snohomish County Public Utility District (Snohomish PUD) Maximum power 375 W
is building in Arlington, Washington State. This microgrid is
PVdata 5
PV
Open circuit voltage (Voc) VabcDG 48 V
-K-
(1/1000)V
(1/1000)I
Iabc
P
Q
-K-
9.96 A
(1/1000)P
-K-
4
Total DG
EG
by the end of 2020 [9]. It consists of PV generation, a Rated current (Ir) abc
Freq
wt
Active & ReactivePower
(DG total)
(1/1000)Q
9.36 A
battery, an emergency generator, loads and a vehicle-to-grid
EVdata 7
EV
Temperature coefficient of Voc fPCC
-0.28 %/C PowerDG
400 400
VSC Main Controller
1 kW/m 2 25 o C
(a) (c)
300 300 wt wt
Current (A)
Current (A)
1 Vabc_prim Uref
0.5 kW/m 2 Vabc_prim Uabc_ref 1
200 200 VdVq_prim VdVq_mes
VdVq_conv
2 Iabc_prim IdIq_prim IdIq_mes VdVq_conv
100 100 45 C
o Iabc_prim
0.1 kW/m 2 PLL & Measurements Uabc_ref Generation
IdIq_ref max (m) = 1
0 0
0
0 100 200 300 400 500 0 100 200 300 400 500 Iq_ref Current Regulator
Voltage (V) Voltage (V) 3 Vdc_mes
150 (b) 150 (d) 25 o C Vdc_mes
2 Id_ref
1 kW/m
Vdc_ref Vdc_ref
Power (kW)
Power (kW)
100 100 45 o C
VDC Regulator
0.5 kW/m 2
50 50
0.1 kW/m 2
Fig. 3. Control of the PV inverter for grid-following operation.
0 0
0 100 200 300 400 500 0 100 200 300 400 500
Voltage (V) Voltage (V)
TABLE II
Fig. 2. PV sub-array current-voltage and power-voltage characteristics for S PECIFICATIONS OF THE BATTERY
different solar irradiances (a, b) and temperatures (c, d). The temperature
value for diagrams a and b is 25 0 C while the solar irradiance for diagrams c Parameters Values
and d is 1000 W/m2 . Nominal voltage 800 V
Rated capacity 1250 Ah
Fully charged voltage 931.2 V
Maximum capacity 1320 Ah
the voltage at the the maximum power point (MPP) as the Capacity @nominal voltage 1250 Ah
solar irradiance and the temperature of the panel change. This Nominal discharge current 1250 A
tracking is achieved using a DC-DC converter that implements Exponential zone voltage 860 V
a perturb and observe algorithm. Note that the voltages on the Exponential zone capacity 60 Ah
Internal resistance 0.0064
PV array and the dc link can therefore be different. Another
option would be to connect the PV array directly to the dc
link of the inverter and to incorporate the MPPT algorithm in 1
Vd_ref (pu)
Vd
PI Controller
the controller of this inverter [12]. 2 abc PI(z)
Vd inverter
Vq inverter
The PV inverter is a two-level three-bridge voltage source Vabc (pu)
wt
dq0 dq0
abc 1
PI(z) 0 wt Vabc_inv
converter (VSC) that operates in grid-following mode. Fig. Vq
V0
0 PI Controller
3 summarizes the inverter control algorithm. The reference Vq_ref (pu)
wt
measured from the inverter output. The PLL and measurements 3ph PLL
60Hz
block calculate the angle synchronized on the rising zero-
crossing of the fundamental of the reference signal, and Fig. 4. Battery inverter operation as a voltage regulator during islanded
transform both voltages and currents from the abc to the dq0 operation.
reference frames.
When the input power from the solar array changes due
to variation in irradiance or temperature, the DC link voltage mode [16]. The battery inverter control for grid-connected
also changes because the power obtained from the array does mode, which is similar to the PV inverter controller [12]. In
not match the power delivered to the grid. The function of the islanded mode, this inverter controller operates as a voltage
voltage regulator is thus to change the active power reference regulator as shown in Fig. 4.
current (Id ) of the current regulator so that power obtained
from the solar array matches the power delivered to the grid C. Emergency Generator
[13].
The current regulator uses the current references Id and Iq The emergency diesel generator consists of a synchronous
(reactive current) to calculate the required reference voltages generator, diesel engine governor and an excitation system,
for the inverter. The reactive current reference is taken as 0 as shown in Fig. 5. The model of the synchronous machine
in this model, as the system only supplies active power to the takes into account the dynamics of the stator, field, and
grid. More details about this controller can be found in [14]. In damper windings and is represented using a sixth-order model
this model, the harmonics produced by the inverter are filtered [17]. Table III. provides the specifications of this emergency
using a single inductor (L). However, other filtering options generator.
are possible [13]. In order to synchronise the emergency generator it’s fre-
quency, voltage magnitude and phase angle must be matched
with those of the microgrid. The frequency of the emergency
B. Battery Energy Storage
generator, fg is given by:
The battery energy storage system consists of a Li-ion
battery, a dc-dc converter and an inverter with both grid- 120fg
ns =
(1)
forming and grid-following capabilities. Table II provides the P
specifications for the battery model [15]. A bi-directional DC- where ns is the synchronous speed of the generator in revo-
DC converter is inserted between the inverter and the battery to lutions per minute and P is the number of poles. The desired
control the battery charge and discharge rates in grid-following frequency is obtained by changing the speed reference of the
3
Pmec (pu) Pm
Pm
w (pu) A aA 1
<Rotor speed wm (pu)>
a
<Output active power Peo (pu)>
SM B bB 2
b
Vf1
C cC 3
c
Synchronous Motor
350 kVA
Vtref (pu)
1 Vref Excit
A
B
C
Vd
<Stator voltage vd (pu)>
a
b
c
Vf
Vq
<Stator voltage vq (pu)>
Vstab
OPAL-RT
Not implemented
Excitation System
Real-Time Digital Simulator
Fg TCP/IP
Fig. 5. Emergency generator model including synchronous machine, excita- P_B9
(1/1000)
Voltage rating 480 V
Frequency 60 Hz Va (pu)3
|u|
-K- abc
Qg
GHz processor cores, a flexible high-speed front-end processor
(1/1000)V1
∠u
Fg
∠u
of 1 V (pu) corresponds to the rated voltage of the generator. SpeedRot V Positive Sequence2
The emergency generator is connected to the microgrid when into different subsystems (master, slave, and console) in order Ia EG1
the phase angle difference is close to zero [18]. to execute the model on several cores, before being compiled
using RT-LAB. Each master and slave subsystem in RT-LAB is
D. Vehicle-grid integration assigned to a separate core to perform their parallel processes
in a fast and efficient way.
The vehicle-grid integration system is modeled using an EV
Power system models are typically decoupled at large
battery and an inverter that controls the charge and discharge
transmission lines because these lines introduce a delay in
"rtlab"
rates. The EV battery has the specifications given in Table not found
Simulating this microgrid at 50 µs fixed time-steps in IV. S IMULATION R ESULTS AND D ISCUSSION
Simulink R over a long period of time requires an excessive This section discusses the simulation of three operating
amount of computing time. We also wanted to have the ability scenarios.
to perform hardware-in-the-loop simulations to test some of
the components and their controllers. The Simulink R model A. Scenario A: Grid-connected operation
The microgrid is operated in grid-connected mode, with the
PV system injecting a variable amount of power into the grid
TABLE IV
S PECIFICATIONS OF THE EV BATTERY as solar irradiance changes. From t = 1 second to t = 60
seconds, the battery is used for solar smoothing. From t = 60
Parameters Values second to t = 100 seconds, the battery charges and discharges
Nominal voltage 200 V
Rated capacity 500 Ah at a constant rate. From t = 50 second to t = 90 seconds, the
Fully charged voltage 232.8 V active load varies. The EV is discharged at 50 kW from t = 0
Maximum capacity 500 Ah second to t = 40 seconds and charges from t = 40 seconds to t
Capacity @nominal voltage 452.2 Ah
Nominal discharge current 217.4 A
= 80 seconds at the same rate. Fig. 7 shows the corresponding
Exponential zone voltage 216.1 V simulation results.
Exponential zone capacity 24.6 Ah The output current of the PV array (b.2) decreases when the
Internal resistance 0.004 solar irradiance (a.1) decreases, however, the voltage (b.1) is
4
26 500 500
PV DC voltage (V)
400 400
PV DC current (A)
0.8 25.5
300 300
0.4
25
200
PV sub-array 1
200
PV sub-array 1
24.5 PV sub-array 2 PV sub-array 2
0
10 20 30 40 50 60 70 80 90 100
24
10 20 30 40 50 60 70 80 90 100
100
0
10 20 30 40 50 60
PV sub-array 3
PV sub-array 4
70 80 90 100
100
0
10 20 30 40 50 60
PV sub-array 3
PV sub-array 4
70 80 90 100
PV DC power (kW)
800
600 600
600
400 400 100
400
voltage of the PV inverter is not affected by the changing solar 200 200 50
PV sub-array 1
PV sub-array 2
PV sub-array 3
PV sub-array 4
200
0 0 0 0
-200
0
49.9 200
is used for solar smoothing, the power output at the point-of- 49.8
10 20 30 40 50 60 70 80 90 100
0
10 20 30 40 50 60 70 80 90 100
-400
-600
10 20 30 40 50 60 70 80 90 100
-400
-600
10 20 30 40 50 60 70 80 90 100
Time (seconds) Time (seconds) Time (seconds) Time (seconds)
0
400
300 60
-200 200
-1
-400
-600
100
0
59.5
59
10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100
100 seconds, the battery is discharged at 500 kW. Note that the 1500
Time (seconds)
500
Time (seconds)
1500
Time (seconds)
500
Time (seconds)
0
0
500
0
5
60
59.5 59.5
grid-connected and the PV system injects power into the grid, 50.5 300 100 100
EV voltage (V)
assuming a constant irradiance. The battery neither charges EV SoC (%)
50 200
150 0 0
49.5 100
49 0 -100 -100
(g.3) 1
10 20 30 40 50 60
Time (seconds)
70 80 90 100
200
10 20 30 40 50 60
Time (seconds)
70 80 90 100
(h.3)
200
10 20 30 40 50 60
Time (seconds)
70 80 90 100
(h.4)
EV availability
100
0 100 0
-200 Available = 1
50 -100
Not available = 0
20.3 800 50
PV DC current (A)
50 500
PV DC power (kW)
800
300 300
800
100 100
50.6 200 200 200 100
600
50.4 0 0 0 0 150 0
400
50.2 -200 -200 100 -100
-100 -100
50 200 -400 -400 50 -200
0 0 300 60 60 60
-200 200 5 5
-0.5 59.5 59.5
-400 100
-1 -600 0 59 0 59 0 55
10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100
Time (seconds) Time (seconds) Time (seconds) Time (seconds) Time (seconds) Time (seconds) Time (seconds) Time (seconds)
50 50
EV voltage (V)
EV SoC (%)
500 200
600
0 0 50 150 0 0
400
0 100
-50 -50
200
50
(e.4)
PCC frequency (Hz)
Grid frequency (Hz)
0
Grid voltage (kV)
EV availability
EV current (A)
10 10
-100
60 60 100 0
-200
5 5
59.5 59.5 50 -100
-300
0 59 0 59 -400 0 0 -200
10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100
Time (seconds) Time (seconds) Time (seconds) Time (seconds) Time (seconds) Time (seconds) Time (seconds) Time (seconds)
250 300 1 1
50 50 100
EV voltage (V)
EV SoC (%)
200
200 0.8 0.8
50 150 0 0 0
100 0.6 0.6
100
-50 -50 -100
0 0.4 0.4
50
EV availability
100 1.02
300
0 100 0 400 1 60
200
-100 0.98
50 -100 200
-200 Available = 1 100 0.96
Not available =0
-300 0 0 -200 0 0 0.94 55
10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 100
Time (seconds) Time (seconds) Time (seconds) Time (seconds) Time (seconds) Time (seconds) Time (seconds) Time (seconds)
Fig. 8. Simulation results for Scenario B: PV system (a.1-b.4), battery (c.1- Fig. 9. Simulation results for Scenario C: Battery (a.1-b.4), electrical grid
d.4), electrical grid (e.1-e.4), PCC (f.1-f.4), EV (g.1-h.2) and load (h.3-h.4). (c.1-c.4), PCC (d.1-d.4), EV(e.1-f.2), load (f.3-f.4) and generator (g.1-h.4).
[5] O. Nzimako and A. Rajapakse, “Real time simulation of a micro- [15] MathWorks. Simulink battery model. [Online]. Available: {https:
grid with multiple distributed energy resources,” in 2016 International //www.mathworks.com/help/physmod/sps/powersys/ref/battery.html}
Conference on Cogeneration, Small Power Plants and District Energy [16] M. Saleh, Y. Esa, Y. Mhandi, W. Brandauer, and A. Mohamed, “Design
(ICUE), Sep. 2016, pp. 1–6. and implementation of CCNY DC microgrid testbed,” in 2016 IEEE
[6] F. Baccino, A. Brissette, D. Ishchenko, A. Kondabathini, and P. Serra, Industry Applications Society Annual Meeting, Oct 2016, pp. 1–7.
“Real-time hardware-in-the-loop modeling for microgrid applications,” [17] MathWorks. Simplified synchronous machine. [Online].
in 2017 6th International Conference on Clean Electrical Power (IC- Available: {https://www.mathworks.com/help/physmod/sps/powersys/
CEP), June 2017, pp. 152–157. ref/simplifiedsynchronousmachine.html}
[7] A. Yamane and S. Abourida, “Real-time simulation of distributed energy [18] G. Sybille and Tarik Zabaiou. Emergency diesel-
systems and microgrids,” in 2015 International Conference on Sustain- generator and asynchronous motor. MathWorks. [Online].
able Mobility Applications, Renewables and Technology (SMART), Nov Available: {https://www.mathworks.com/help/physmod/sps/examples/
2015, pp. 1–6. emergency-diesel-generator-and-asynchronous-motor.html}
[19] IDE4L: ideal grid for all. [Online]. Available: https://ide4l.eu
[8] M. Chlela, G. Joos, M. Kassouf, and Y. Brissette, “Real-time testing
[20] L. Vanfretti, W. Li, A. Egea-Alvarez, and O. Gomis-Bellmunt, “Generic
platform for microgrid controllers against false data injection cybersecu-
VSC-based DC grid EMT modeling, simulation, and validation on a
rity attacks,” in 2016 IEEE Power and Energy Society General Meeting
scaled hardware platform,” in 2015 IEEE Power Energy Society General
(PESGM), July 2016, pp. 1–5.
Meeting, July 2015, pp. 1–5.
[9] Snohomish County Public Utility District. Arlington Microgrid Project. [21] L. Vanfretti, N. A. Khan, W. Li, M. R. Hasan, and A. Haider, “Generic
[Online]. Available: https://www.snopud.com/?p=3326 VSC and low level switching control models for offline simulation
[10] C. Keerthisinghe and D. S. Kirschen. (2019) Real-Time Digital of VSC-HVDC systems,” in 2014 Electric Power Quality and Supply
Simulation of Microgrid Control Strategies. Renewable Energy Reliability Conference (PQ), June 2014, pp. 265–272.
Analysis Lab, University of Washington. [Online]. Available: https: [22] OPAL-RT Techonologies. Microgrid. [Online]. Available: https://www.
//labs.ece.uw.edu/real/RTDSmain.html opal-rt.com/microgrid-overview/
[11] MathWorks. PV array. [Online]. Available: {https://www.mathworks.
com/help/physmod/sps/powersys/ref/pvarray.html}
[12] ——. (250-kW grid-connected PV array). [Online].
Available: https://www.mathworks.com/help/physmod/sps/examples/
250-kw-grid-connected-pv-array.html
[13] Mohsin Noman Mustafa, “Design of a grid connected photovoltaic
power electronic converter,” Master’s thesis, Universitet i Tromsø, Jun.
2017.
[14] P. Giroux, G. Sybille, C. Osorio, S. Chandrachood. Average
model of a 100-kW grid-connected PV array. MathWorks.
[Online]. Available: {https://www.mathworks.com/help/physmod/sps/
examples/average-model-of-a-100-kw-grid-connected-pv-array.html}