Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Experimental Verification of Virtual Inertia in

Diesel Generator based Microgrids


Dipesh Shrestha∗ , IEEE Student Member, Ujjwol Tamrakar, IEEE Student Member, Zhen Ni, IEEE Member,
and Reinaldo Tonkoski, IEEE Member
Department of Electrical Engineering and Computer Science
South Dakota State University
Brookings, South Dakota 57007
Email: ∗ dipesh.shrestha@jacks.sdstate.edu

Abstract—The dynamic frequency stability issues in microgrids intermittent nature of PV systems means that large power
with large penetration of low inertia and intermittent photo- imbalances are introduced in such hybrid systems, which
voltaic (PV) systems can be improved by using virtual inertia cannot be handled by the rotational inertia of the marginalized
(VI). A VI is the combination of energy storage system, power
electronics converter and a proper control algorithm. This paper diesel generators. This leads to high frequency deviations at
presents design and experimental verification of the VI in a PV- a high rate of change of frequency (ROCOF). This can ulti-
diesel generator based remote microgrid system. Firstly, the VI mately lead to loss of synchronism among the generator units
was designed and tested in simulation using MATLAB/Simulink. and/or trigger protective relays comprising power availability.
Later, a hardware prototype of 1 kW inverter for the VI was The ISO 8528-5 standard recommends the frequency of a
designed and tested with a 13 kW diesel generator test system.
The VI unit was able to reduce the frequency variations from a synchronous generator should remain within ±2.5 % of the
minimum value of 57.39 Hz to 58.03 Hz for a step change in the nominal frequency and the ROCOF within ±0.6 Hz/s [3].
system load. The frequency deviations can be further reduced Violation of these limits not only degrades the power quality
with a larger VI unit or multiple VI units in a real microgrid but has a negative impact on the lifetime of diesel generators.
scenario. Primary frequency controllers can help reduce the frequency
Index Terms—Diesel generator, frequency stability, inverter,
microgrid, photovoltaic system and virtual inertia. deviations through energy storage using droop based control
techniques. But the slow transient response of droop based
control techniques [4] means that they may not be suitable for
I. I NTRODUCTION
fast inertial response services required in remote microgrid
Due to the rapid decrease in the cost of photovoltaic (PV) systems.
systems, the global remote microgrids installment is expected Virtual inertia has been proposed in the literature as a possi-
to increase from 349 MW in 2011 to over 1.1 GW by 2017 [1]. ble solution to this issue [5]–[8] under different terminologies
Diesel generators are the most technologically matured system like Virtual Synchronous Generators (VSG), Virtual Syn-
which are used as the main prime mover in remote microgrids. chronous Machines (VSM), Synchronverters and Virtual Oscil-
Such microgrids have a number of distinct advantages in lator Control (VOC). Although, the implementation topologies
terms of installation simplicity and ensured power availabil- vary slightly among these virtual inertia emulating systems,
ity [2]. The recent drive for clean and sustainable energy the basic concept in all of the topologies is to provide inertial
systems, however, means that there is an increasing trend response either from DC sources or distributed generation
and necessity towards integrating high levels of renewable units through power injections/absorptions proportional to the
generation sources such as PV systems into such microgrids. frequency deviation and ROCOF of the system. The concept
Such integrated systems are not only environmentally friendly, of virtual inertia was verified using power amplifiers and a
but also offset the ever inflating cost of fuel for diesel generator real-time digital simulator to simulate the power system in
based systems. However, at the same time, this also offsets the [9]. The system was able to decrease the frequency deviations
amount of rotating generators in the energy mix which have within the simulated power system. Similarly, in [10], a
negative impacts on the microgrid in terms of its dynamic three phase inverter system was used to emulate a diesel
frequency stability. generator and a separate inverter was used for virtual inertia
Just like with larger power systems, dynamic frequency for experimental verification. In [11], we studied the feasibility
stability of remote microgrids is critical to maintain a reliable of using virtual inertia to improve frequency stability of a
and robust power supply. In conventional power systems with remote PV-hydro based microgrid system. The main objective
a large share of rotating generators, frequency stability is of this paper is to present detailed design procedures for virtual
maintained through the kinetic energy stored in the larger inertia in a remote microgrid context and provide experimental
rotors of generating units. The PV systems are, however, verification through tests with a diesel generator system.
interconnected through power electronic converters which are This paper is organized as follows: Section II gives the
void of such mechanical inertia. Furthermore, the highly basic concepts behind virtual inertia. Section III presents the

978-1-5090-5320-9/17/$31.00 ©2017 IEEE 95


design procedure for the design of VI. Section IV illustrates
the setup for the simulation and experimental studies. Section
V presents the simulation and experimental results and Section
VI concludes the paper.
II. C ONCEPT OF V IRTUAL I NERTIA
The concept of virtual inertia emulation involves operating a
power electronic converter (usually a DC-AC converter) with
similar behavior to that of a synchronous generator. Just as
a synchronous generator releases/absorbs the kinetic energy
in its rotor based on the frequency deviations in the grid,
the VI system injects/absorbs bursts of power between the
DC source and the grid (or a microgrid) based on frequency
deviations. Fig. 1 shows the main components of the VI
emulating system used in this paper. The DC-AC converter Fig. 1: Main components of the virtual inertia.
is operated as a current controlled voltage source inverter
(CC-VSI) with some form of energy storage on the DC side.
A phase locked loop (PLL) is used to measure the system III. D ESIGN OF V IRTUAL I NERTIA S YSTEM
frequency and the ROCOF. Fig. 2 shows the overall working The benchmark shown in Fig. 2 was used for the simulation
principle of the VI in a PV-diesel generator microgrid. There in MATLAB/Simulink. A three phase, 13 kW diesel generator
are two main control loops, first is the outer loop which with an isochronous governor and an excitation system was
generates reference power for the VI emulation and the second used as the main energy source. The diesel generator was
is an inner current control loop which is responsible for supplemented by a three phase, 6 kWp PV system operating
injecting/absorbing the calculated power. The power reference as a grid following unit based on a PLL from the microgrid
generated for the inverter based on the frequency and ROCOF voltage. The VI unit, which is the main consideration of this
measurements is: paper was implemented using a three phase CC-VSI with an
d∆f LC filter at the output to attenuate the switching noises. A
P V I = KI + KD (∆f ) (1) variable resistive load of 9 kW peak was connected to the
dt
where, KI is the inertia emulation constant, KD is the system. The frequency was measured using a three phase PLL.
damping constant and ∆f is the deviation in the frequency The ROCOF was then estimated by taking the derivative of the
of the system from the nominal frequency (i.e. 60 Hz). These measured frequency with a low pass filter of 120 Hz to filter
constants can be tuned using: the unwanted noise. The frequency and the ROCOF of the
system are the inputs for the VI reference power generation
PV I nominal in the outer control loop of VI.
KI =   (2)
d∆f
dt
max A. Design of Virtual Inertia
PV I nominal For simulation in MATLAB/Simulink, the maximum RO-
KD = (3) 
(∆f )max COF, d∆f dt , in the system was assumed to be ±2 Hz/s,
max
where, PV I nominal is the nominal power ratingof the
 VI, the maximum frequency deviation from the nominal frequency
∆fmax is the maximum change in frequency and dt d∆f ∆fmax was assumed as ±2.5 Hz. Further, it was assumed
max that the inverter for the VI system was rated at 4 kW. Based
is the maximum ROCOF. A dead-zone is usually employed
for both the frequency and ROCOF measurements to prevent on these specifications, the inertia coefficient and damping
the system from responding to minor frequency changes in coefficient for VI were calculated as:
the system and/or the random noises captured during mea-
surement. The power references are calculated using (1) and PV I nominal 4000W
KI =   = = 2000 W s/Hz (6)
converted to current references in the dq-frame using (4) and d∆f 2Hz/s
dt
(5) so that linear control techniques can be applied to the max

design of the current controllers. PV I nominal 4000W


KD = = = 1600 W/Hz (7)
  (∆f )max 2.5Hz
2 Vd × PV I − Vq × Q
Id ref erence = (4) The inertia coefficient KI needs to be selected appropriately
3 Vd2 + Vq2
  because a lower value of KI may result in slower dynamic
2 V d × Q − V q × PV I
Iq ref erence = (5) response but at the same time a higher value of KI may result
3 Vd2 + Vq2 in amplification of unwanted noises in the measurement. The
For the VI, only the active power from the CC-VSI needs to values of dead-zone for the frequency and the ROCOF of the
be controlled, so the Iq ref erence is always set as zero. system were taken as ±0.3 Hz and ±0.3 Hz/s respectively.

96
Fig. 2: Overall working diagram of the VI in a PV-diesel generator microgrid [12].

B. Design of Current Controlled Voltage Source Inverter In order to implement the current controller of (11) in a
The LC filter for CC-VSI was designed for an inverter microcontroller, it needs to converted from continuous time
switching frequency of 10 kHz (= 62831.85 rad/s) with a cut- domain (s-domain) into discrete time domain (z-domain).
off frequency of 1 kHz (=6283.185 rad/s) i.e., one decade Moreover, the transfer function of the plant in the s-domain
below the switching frequency with a damping ratio (ζ) preceded by the hold circuit (of ADC) also needs to be
of 0.707 [13]. From these specifications, the resistance of converted to the z-domain. So the s-domain transfer function
inductor (R), inductance (L) and capacitance (C) of LC filter of the plant and the current controller in (9) and (11) were
were taken as 0.1 Ω , 10 mH and 3.3 µF respectively [13]. transformed into z-domain using bilinear (Tustin) conversion
For current controller design, the transfer function of the method [14] as:
plant (i.e. inverter with the LC filter) was derived as:
2 z−1
iL 1 s← (12)
Gplant (s) = = L
(8) T z+1
vinverter R
s+ L
 
where R, L and C are the resistance of inductor, inductance 2 z−1
Hd (z) = Ha (s) = Ha (13)

and capacitance of LC filter respectively. Replacing the values s= T2 z−1
z+1
T z+1
of R, L and C in (8) gives the transfer function of the plant
as: As a rule of thumb, the sampling frequency for the feedback
iL 100 signals in a closed system should be ten times the bandwidth
Gplant (s) = = (9)
vinverter s + 10 of the controller [14]. The sampling frequency for the mea-
For current controller design, a modified PI (type-2) con- surement of the inverter current and the grid voltage was thus
troller was used. The generic transfer function of the modified chosen to be 10 kHz, which is ten times the bandwidth of
PI (type-2) controller is: of current controller (i.e. 1 kHz). Transforming the s-domain
1 + sτ 1 transfer function of current controller of (11) into z-domain
Hcontroller (s) = KP I (10) transfer function with a sampling frequency of 10 kHz (i.e.,
sτ 1 + sTp
T = 100 µs) using (12) gives:
where, KP I is the proportional gain, τ is the time constant
of the controller and Tp is the time constant of the additional
high frequency pole used to attenuate the higher frequency 30.64 + 7.702z −1 − 23.56z −2
Hcontroller (z) = (14)
noises. The modified PI (type-2) controller in continuous time 1 − 1.11385z −1 + 0.1385z −2
domain (s-domain) was designed with a crossover frequency
(bandwidth) of 1 kHz (=6283.185 rad/s) and a phase margin Similarly, transforming the s-domain transfer function of
of 45◦ [13]. The controller designed with these specifications the plant of (9) into z-domain transfer function with sampling
for the plant in (8) was derived as [13]: frequency of 10 kHz (i.e. T = 100 µs) using (12) gives:

62.93s + 1.642 × 105 0.004997 + 0.004997z −1


Hcontroller (s) = (11) Gplant (z) = (15)
6.609 × 10−5 s2 + s 1 − 0.999z −1

97
IV. S IMULATION AND E XPERIMENTAL S ETUP variable resistive load. A three phase inverter rated at 1 kW
Based on the design described in Section III, the concept with an LC filter using SEMIKRON switches was used as the
of VI was implemented and tested in a PV-diesel generator CC-VSI for the VI. For the LC filter, Hammond inductors with
based microgrid. Initially, a simulation was used to verify inductance of 10 mH and current rating of 20 A DC along with
the design. The simulation consisted of two case studies, Kemet film capacitors of capacitance 3.3 µF with a voltage
in case study I the performance of the system to step load rating of 1 kV were used. A 400 V DC power supply was
changes were analyzed and for case study II the concept was used as the input DC power for the inverter. For the hardware
verified with a PV system with a real irradiance data. Finally, implementation, since nominal power rating of VI was 1 kW,
the experimental verification of the concept was performed the inertia coefficient KI and damping coefficient KD were
through step changes in a load connected to a 13 kW diesel recalculated from (2) and (3) as 500 Ws/Hz and 400 W/Hz
generator. respectively. There was a frequency oscillation of ±0.3 Hz in
the system even with a constant load. So, the dead-zone values
A. Simulation Setup for frequency and ROCOF measurements were taken as ±0.3
Hz and ±0.3 Hz/s respectively.
For case study I, a three phase load was changed from 6
kW to 9 kW at 5 s and again reduced back to 6 kW at 55 s,
as shown in Fig. 3. Similarly, for case study II, the load in the
system was kept constant at 6 kW throughout the simulation.
A 200 s snapshot of irradiance data (taken on June 19, 2012
for Brookings, SD at South Dakota State University’s (SDSU)
Microgrid Laboratory) was used as input irradiance to the PV
system as shown in Fig. 4.

Fig. 5: Schematic diagram of experimental setup of a diesel generator


microgrid with the VI.
Fig. 3: Step changes in load for case study I.

A TI DSP (TMS320f28035) was used as the main controller.


The C code for z-domain transfer function of current controller
derived in (14) was generated using automatic code generation
feature of PSIM software. The C code thus generated was
loaded into the RAM of the TI DSP using Code Composer
Studio (CCS) software through a JTAG interface. A RS-232
cable was connected between the host computer with PSIM
and the TI DSP to monitor the signals in the “DSP scope”
using serial communication interface. The inductor current and
the grid voltage at the point of common coupling (PCC) were
continuously sensed and sampled from the ADCs of the TI
DSP, with a sampling frequency of 10 kHz. The voltage at
PCC was continuously sent to the frequency to voltage sensor
(i.e. LM2907) to sense the frequency, which was sent to the
Fig. 4: Snapshot of 200 s irradiance data of Brookings, SD for June ADC of the TI DSP board. The ROCOF of the system was then
19, 2012 used as input to the PV system for case study II. calculated by taking the derivative of the measured frequency
with a low pass filter with cut-off frequency of 120 Hz. The TI
DSP board generated the required PWM gate signals (0-3.3 V)
B. Experimental Verification Setup which was then amplified using a gate driver circuit to feed the
Fig. 5 shows the schematic diagram of the experimental amplified PWM gate signals (0-15 V) to the inverter switches.
setup of the VI in a microgrid with a 13 kW, 120 V (rms) Fig. 6 illustrates the setup that was used at the microgrid
diesel generator (Kohler 15REYG) connected to a 9 kW peak laboratory facility at SDSU.

98
Fig. 6: Experimental setup of microgrid with diesel generator, the VI (a)
and load.

For the experimental performance evaluation of the VI, the


load was changed from 6 kW to 9 kW at 5 s. The frequency
response of the system with and without the VI was observed
and logged using power quality meter (Fluke 435 series II).

V. R ESULTS AND A NALYSIS

For the testing of the VI in simulation, there are two case (b)
studies presented. The first case study is step change in load, Fig. 7: (a) Simulation result of frequency with and without the VI
which is the worst case scenario for the system and the second for case study I. (b) Simulation result of active power exchanged by
case study is the PV system with a real irradiance input to the the VI for case study I.
system. For the testing of VI in experiment, one case study
with step change in load is presented.

A. Simulation results for step change in load

Fig. 7 (a) shows the frequency of the microgrid system


for case study I with a generator and step load changes. The
minimum and maximum frequency of the system without the
VI (solid blue curve) were 56.02 Hz and 63.54 Hz respectively,
which are out of the ISO 8528-5 recommended limits. After
the addition of the VI, the minimum and maximum frequency (a)
of the system (dotted red curve) were reduced to 58.81 Hz and
61.23 Hz respectively as expected. Fig. 7 (b) shows the power
delivered by the VI during the transients to improve dynamic
stability. The maximum and minimum power delivered by
the inverter were 2184 W and -2235 W respectively. The net
energy exchanged was 1.6 Wh.

B. Simulation results with real PV irradiance data

Fig. 8 (a) shows the frequency of the system without the VI


and with the VI for case study II. The minimum frequency of (b)
the system without the VI (solid blue curve) and with the VI Fig. 8: (a) Simulation result of frequency with and without the VI
(dotted red curve) were 58.53 Hz and 59.58 Hz respectively. for case study II. (b) Simulation result of active power exchanged
The maximum frequency of the system without the VI (solid by the VI for case study II.
blue curve) and with the VI (dotted red curve) were reduced
62.34 Hz and 60.90 Hz respectively. Fig. 8 (b) shows the total C. Experimental results with step change in load
active power exchanged by the VI case study II. The maximum Fig.9 (a) shows the experimental result of frequency of the
power delivered by the VI was 542 W. On the other hand, the system with and without the VI. The frequency was observed
peak power absorbed by the VI was -1507 W. using the Fluke 435 series II power quality meter with a data

99
logging resolution of 0.25 s. The minimum frequency without results confirmed that the frequency dip of the system can be
the VI (solid blue curve) was 57.39 Hz whereas the minimum reduced using VI. Thus, the VI can enable to increase the
frequency with the VI (dotted red curve) was 58.03 Hz. The penetration levels of renewable sources in microgrids, while
frequency deviation in this case was reduced by 0.64 Hz. Fig. 9 maintaining good dynamic frequency stability. Our future
(b) shows the active power delivered by the VI. The maximum work will test the inclusion of PV systems into the microgrid
power delivered was 900 W. The power was delivered only system experiment and analyze the performance of the VI.
during the transient and once the transient damped, power Further, we will analyze the effect of having multiple systems
injected by the VI became zero. with VI and their interaction.

ACKNOWLEDGMENT
The authors would like to thank Microsoft Inc. and South
Dakota Board of Regents (SDBoR) for their financial support
in completing this project. The authors also thank Mr. Jason
Sternhagen of South Dakota State University and Mr. Albert
Dunford of Powersim Inc. for their technical support to carry
out the experiments.

R EFERENCES
[1] Navigant Research. (2012) Remote Microgrids. Ac-
cessed: September 14, 2016. [Online]. Available:
https://www.navigantresearch.com/webinar/remote-microgrids-2
[2] C. Nayar, “Innovative Remote Micro-Grid Systems,” International Jour-
(a)
nal of Environment and Sustainability (IJES), vol. 1, no. 3, pp. 53–65,
2012.
[3] Reciprocating internal combustion engine driven alternating current
generating sets- Part 5: Generating sets, Std. ISO 8528-5:2005(E), 2005.
[4] J. M. Guerrero, L. G. de Vicuna, J. Matas, M. Castilla, and J. Miret,
“A wireless controller to enhance dynamic performance of parallel
inverters in distributed generation systems,” IEEE Transactions on Power
Electronics, vol. 19, no. 5, pp. 1205–1213, Sept 2004.
[5] J. Driesen and K. Visscher, “Virtual synchronous generators,” in IEEE
Power and Energy Society General Meeting - Conversion and Delivery
of Electrical Energy in the 21st Century, July 2008, 3 pp.
[6] K. Sakimoto, Y. Miura, and T. Ise, “Stabilization of a power system with
a distributed generator by a Virtual Synchronous Generator function,”
in IEEE 8th International Conference on Power Electronics and ECCE
Asia (ICPE ECCE), May 2011, pp. 1498–1505.
[7] Q. C. Zhong and T. Hornik, Synchronverters: Grid-Friendly Inverters
That Mimic Synchronous Generators. Wiley-IEEE Press, 2012, pp.
277–296.
(b)
[8] B. B. Johnson, M. Sinha, N. G. Ainsworth, F. Drfler, and S. V. Dhople,
Fig. 9: (a) Experimental result of frequency response of system “Synthesizing Virtual Oscillators to Control Islanded Inverters,” IEEE
with and without the VI. (b) Experimental result of active power Transactions on Power Electronics, vol. 31, no. 8, pp. 6002–6015, Aug
delivered by the VI. 2016.
[9] V. Karapanos, S. de Haan, and K. Zwetsloot, “Real time simulation of a
The frequency of the system with the VI was not within power system with vsg hardware in the loop,” in 37th Annual Conference
of the IEEE Industrial Electronics Society(IECON), Nov 2011, pp. 3748–
ISO 8528-5 standard limits as in the case of the simulation 3754.
results because the maximum power that was delivered by [10] M. Torres and L. A. C. Lopes, “A virtual synchronous machine to
inverter in experiment was limited to 900 W as shown in Fig. support dynamic frequency control in a mini-grid that operates in
frequency droop mode,” Energy and Power Engineering, pp. 259–265,
9 (b). But in simulation, the maximum power delivered by VI May 2013.
was more than 2000 W as shown in Fig. 7 (b). In the case [11] U. Tamrakar, D. Galipeau, R. Tonkoski, and I. Tamrakar, “Improving
of the experimental verification, the power rating of inverter transient stability of photovoltaic-hydro microgrids using virtual syn-
chronous machines,” in IEEE PowerTech Eindhoven, June 2015, 6 pp.
was limited to 1 kW, which limited the power injection by [12] D. Shrestha, U. Tamrakar, N. Malla, Z. Ni, and R. Tonkoski, “Re-
the VI system. If the inverter could have injected more power, duction of energy consumption of virtual synchronous machine using
the frequency of the system would be within the ISO 8528-5 supplementary adaptive dynamic programming,” in IEEE International
Conference on Electro Information Technology (EIT), May 2016, pp.
recommended limits. The experimental results however prove 0690–0694.
the concept of the VI and its effectiveness in improving the [13] U. Tamrakar, “Improvement of transient stability of photovoltaic-hydro
frequency of the system. microgrids using virtual synchronous machines,” Master’s thesis, South
Dakota State University, Brookings, SD, USA, 2015.
VI. C ONCLUSIONS AND FUTURE WORK [14] K. Ogata, Discrete-time Control Systems. PHI Learning, 2009, pp.
74–176.
This paper presented the design and implementation of the
VI both in simulation and experimentally. The experimental

100

Powered by TCPDF (www.tcpdf.org)

You might also like