Comprehensive Real
Comprehensive Real
2, MARCH/APRIL 2013
899
I. I NTRODUCTION
HE TERM smart grid encompasses up-to-date technologies in areas such as power electronics, communication,
and renewable energy resources in order to establish a more
secure, reliable, economic, and eco-friendly electric power
system [1], [2]. A smart grid usually contains different kinds of
renewable energy resources, such as photovoltaic (PV), wind
turbine, battery storage system, etc., and a large number of
power electronics interface circuits. Thus, experimental studies
of large-scale smart grids are usually not economically feasible.
As an evidence, even for microgrid, where the number of
distributed energy sources and intelligent loads is quite limited,
there are only a handful test platforms around the world [3], [4].
Therefore, simulation becomes a powerful and convenient tool
in this research area.
The integrated power electronics devices in the smart grid introduce two great challenges to the simulation: high-frequency
pulse width modulation signals and large numbers of switching
devices. As a result, traditional offline simulators are time
consuming for long period simulations and not suitable to study
slow phenomena [5]. Moreover, this kind of simulation usually
lacks the hardware interface with real devices; thus, it cannot
be used at all the development stages of the smart grid, such as
prototyping and testing.
As early as 20 years ago, manufactures of large thyristorbased high-voltage direct current and Flexible AC Transmission
Systems devices have used the digital real-time simulator and
hardware-in-the-loop (HIL) methods to solve the aforementioned problems for power system with relatively slow frequency and small numbers of switches [6]. After two decades
of developments, the digital real-time simulator can run a large
and complex model at the physical time; thus, it is suitable
to simulate a long-time frame process. In addition, with the
support of the real-time simulator, power-in-the-loop can be
utilized for testing of high-power devices that are connected to
complex systems.
The requirement for real-time simulation of high-frequency
switching devices was brought forward by the manufacturers of
fast power electronics devices such as Mitsubishi more than five
years ago [7]. The real-time simulator in [7] can run the simulation with a time step of 10 s for one three-phase inverter. In
[8], a field-programmable gate array (FPGA)-based real-time
simulator can reach a time step of 500 ns for a diode-clamped
three-level voltage source converter. However, for a system
with large numbers of switching devices, it becomes difficult to
achieve such small time step, and specific consideration is still
needed. A microgrid model with two renewable energy sources
and two inverters in [9] is only able to run with a switching
frequency of 1 kHz at real time. Therefore, sufficient research
and new methods are still needed to speed up the adoption of
real-time simulation on smart grid.
On the other hand, the communication network is essential
to effectively incorporate many of desired features of the smart
grid such as distributed automated system, distributed energy
resource protection, islanding, and display of network state and
performance [1]. Thus, another challenge in smart grid study
is to integrate different kinds of communication networks and
simulate their influence to electric power systems at real time.
In [10], Nutaro et al. developed an offline software simulation
of a 17 bus power network with communication between loads
and generators, investigating the effects of factors such as
900
bandwidth and latency. RTDS-based systems for testing protective relays in power networks have been discussed in [11] and
[12], but with a separate study on communication networks.
In [13], a real-time HIL model of a power network was implemented along with a physical network of two nodes: the
real-time simulation and a physical remote control center. The
control center served as a means of monitoring and controlling
the overall system, and testing cyber vulnerabilities of it. In
sum, the importance of emulating communication network
in smart grids becomes apparent. An effective modeling of
communication between control centers along with present
real-time simulation of power networks could show more realistic results and bring great benefits to related studies in
smart grids.
This paper presents a comprehensive platform to overcome
current challenges in smart grid related real-time simulation. In
Section II, theoretical analysis showcases the reason of detailed
modeling communication network in smart grid related study.
Section III introduces the platform, and the solutions to the
challenges. Section IV describes a case study, and Section V
illustrates the simulation results. Finally, in Section VI, summary and conclusion are presented.
Fig. 1.
Communication network.
Fig. 2.
901
902
network devices and the delays and bit error rates associated
with transmitting packets can be simulated. In addition, different virtual network types can be chosen between gateways,
such as Ethernet, wireless, and fiber optic, depending on the
transmission distance and data type in a real power network.
OPNET SITL also allows the transmission of individual packets
from the input ports to the output ports of the simulated network
by following the exact steps of buffering, protocol processing,
transmission, and reception.
When combining the power system (continuous time system)
and communication system (discrete time system) together,
the proposed platform runs both systems at real time and
simultaneously solves two distinct models in parallel. This has
an advantage in terms of synchronization of the systems since
both power and communication network models are running
at the same rate as a wall clock. The simulation setup is
shown in Fig. 5. The mathematical model of the power network
is first built in Matlab/Simulink environment, then converted
to real-time model, and finally solved by the Linux based
real-time simulators; whereas the communication network is
modeled using the discrete network simulator OPNET running
on another desktop computer. A second desktop computer is
utilized as the MCC server, and the information sent from the
OPNET network is processed in it.
Meanwhile, the power system model has the capability of
information exchange through an external Ethernet connection,
so power and communication systems can exchange information through physical Ethernet links. An external C code is developed for Linux systems which develops the necessary layers
for real-time information exchange using TCP/IP or UDP/IP
protocols. Therefore, the corresponding data in power system
model is sent to the external computer running OPNET through
physical Ethernet links. Within OPNET, the traffic is filtered
from the interface by the source address and thus creating
different nodes for building an accurate communication network. Information is then processed in real time within OPNET
and sent to the MCC server through another Ethernet link.
After necessary calculation, the MCC sends back the control
command to OPNET, which then distributes the information to
the corresponding destinations within the power system model.
In conclusion, with the cooperation of advanced software
and hardware, and the combination of power network simulator
and communication network simulator, the platform presented
in this paper is able to provide a comprehensive approach for
smart grid-related study.
IV. C ASE S TUDY
A. Model Description
In this section, the smart grid in a small community is
modeled with the developed real-time simulation system. The
model includes a Local Energy Storage (LES) device, a
PV-based generator, a wind turbine, as well as the communication network described in Fig. 4. The system is shown
in Fig. 6.
Each unit in the smart grid is modeled with detailed characteristics. The LES is modeled as recycled electric car batteries.
The impedance and output voltage of LES are not only determined by the State of Charge (SOC), but also the temperature
inside the LES [19][22]. The PV is built with the mathematical
model described in [23]. The output voltage and power of this
unit are related to the irradiation and environment temperature.
The wind turbine is modeled as a doubly fed induction generator (DFIG) with back-to-back inverters. The noncritical load is
modeled as a nonlinear load powered through power electronics
circuits, while the critical load is modeled as a three-phase
resistive load. Additionally, all circuit breakers in the system are
modeled as solid state circuit breakers. In total, there are nearly
100 switches in the model operating at a switching frequency
of 10 kHz. Furthermore, because the switching actions will
influence the whole system characteristics, in order to simulate
the system in a more precise way, the switching frequency
is kept at 10 kHz in both grid-connected mode and islanding
903
Vdl
Lf s + R f
(1)
Id
Cs
(2)
904
Fig. 6. Illustration of the case study: a small community microgrid. (a) System diagram; (b) detailed circuit topology.
TABLE I
S IMULATION PARAMETERS
dq axis frame with the d-axis oriented along the stator flux
vector position.
Considering the converters, the LES-connected converter and
noncritical-load-connected converter are working in current
control mode, while the PV-connected converter is working
with Maximum Power Point Tracking (MPPT) strategy.
2) Islanding Mode: In islanding mode, the inverters and
converters connected to PV and DFIG are still controlled current sources as in the grid-connected mode. However, the LESconnected inverter, because of the loss of the grid, is controlled
to be a voltage source to function as the swing bus of the system.
The same multi-loop control structure is utilized for the LES
inverter, but with the ac bus voltage as feedback in the outer
(3)
Fig. 8.
where Kcp and Kci are the proportional gain and integral gain
of the current PI controller. A PI controller is applied as well to
reach the voltage control requirement.
As mentioned above, in islanding mode, the LES-connected
inverter is used to control the ac bus voltage. Therefore, the control purpose of the LES-connected dc/dc converter is changed to
control the dc-link voltage. Considering that the output current
of the LES should also be tightly controlled, a multi-loop control structure with outer voltage loop and inner current loop is
designed for this converter. The outer voltage control loop uses
the dc-link voltage as feedback, which will generate a reference
current value for the inner control loop.
As shown above, the only noticeable difference between
control strategies in grid-connected and islanding mode is that
the voltage reference of LES-connected inverter is changed
from the dc bus voltage to ac bus voltage. Therefore, there
is no sudden change on the local controllers, and a seamless
transition from grid-connected mode to islanding mode can be
achieved.
The whole system operation indeed requires a high level
of coordination, which is realized with the MCC. When the
maximum power from the PV and wind turbine could be
fully absorbed by the load and the battery, the PV and wind
turbine will be commended to operate in MPPT mode. If the
LES battery reaches its upper limit of SOC and the power
supply from renewable energy sources is higher than the load
demand, which usually is rare, the PV and wind turbine will
be commended to reduce power output. During the transient of
dynamic islanding, load shedding and reconnection will also be
performed if the MCC predicts that the power generation is less
than the demand.
V. S IMULATION R ESULTS
A. Results Without Considering the Latency of the
Communication Network
Real-time simulation was performed for the case where the
system transfers from grid-connected mode to islanding mode.
First, only the power network and associated control strategies
were simulated and evaluated. In the simulation, a three-phase
905
906
Fig. 9. Simulation results for intentional islanding. (a) dc bus voltage within LES subsystem, ac bus voltage, and LES output ac current; (b) ac currents from
grid side, PV, wind turbine, critical load, and noncritical load.
Fig. 10. Simulation results for load shedding. (a) Ideal communication (no delay); (b) communication with delay.
Though the MCC sends out the reclose command every 0.1 s,
the noncritical loads are not reconnected to the smart grid after
each 0.1 s; 3) There is delay between the real dc bus voltage
value and the dc bus voltage detected by the MCC, which
causes the reopen time of the CB3 to be delayed. As a result,
the dc bus voltage drops below the threshold voltage and causes
a bigger ac bus voltage drop.
In conclusion, the communication network brings great benefits to the operation of the smart grid in allowing for implementation of new and different types of protection schemes
and control. However, it is seen from Fig. 10(a) and (b) that
without simulating the communication network, the actual
system response cannot be accurately predicted. The real-time
simulation platform presented in this paper integrates both the
power system and the communication system, thus provides an
effective method to study the communication system in smart
grids.
VI. C ONCLUSION
This paper presents the latest state-of-the-art technology
on real-time simulation of smart grids. On one hand, compared to the real-time simulation of traditional power grid and
simple power electronics circuit, the large numbers of highspeed switching devices in smart grids introduce significant
challenges to the simulation. The real-time simulation platform presented in this paper utilizes switch event interpolation,
SSN solver, and parallel computation technologies; combined
with the advanced hardware platform, this system can achieve
real-time simulation with hundreds of switches at switching
frequencies up to 10 kHz. On the other hand, the characteristics
of smart grids are greatly depending on the communication
network. When combining the advanced power systems simulator with a state-of-the-art network simulator, this system can
simulate the communication network in smart grids and provide
great convenience for related study.
A microgrid model of a small community is built with the
aforementioned technologies. The real-time model contains
most of critical units in smart grids, including LES, PV, wind
turbine, power conditioning circuits, solid state switches, and
a comprehensive communication network. First, simulations
were carried out without communication latency. It is verified
that the system is capable of simulating detailed simulation
models with a large group of switches at 10 kHz. Also, the
proposed control strategies for seamless transition from gridconnected mode to islanding mode were verified. The simulation only utilizes no more than 10% of the calculation capability
of the proposed platform.
Then, with the SITL technology provided by OPNET, a
communication network is simulated together with the power
network at real time. An external MCC is utilized as the
system level controller with the help of the communication
network, which can be easily adjusted based on different smart
grid communication network structures. The distributed local
control of inverters and converters is embedded in the model
of each energy source and load. The simulation results show
the effectiveness of the presented comprehensive simulation
platform as well as the importance of an accurate and detailed
simulation approach to evaluate the interactions between the
communication and power networks in smart grids. As explained and demonstrated in the paper, the platform can be
utilized to study difference scales of smart grid applications.
New control strategies, such as dynamic reconfiguration of both
communication and power network within a smart grid, could
also be verified with this platform.
R EFERENCES
[1] R. Brown, Impact of smart grid on distribution system design, in Proc.
IEEE Power Energy Soc. Gen. Meeting, 2008, pp. 14.
[2] P. Parikh, M. Kanabar, and T. Sidhu, Opportunities and challenges of
wireless communication technologies for smart grid applications, in
Proc. CCECS Power Energy Soc. Gen. Meeting, 2010, pp. 17.
[3] R. H. Lasseter, J. H. Eto, B. Schenkman, J. Stevens, H. Vollkommer,
D. Klapp, E. Linton, H. Hurtado, and J. Roy, CERTS Microgrid laboratory test bed, IEEE Trans. Power Del., vol. 26, no. 1, pp. 325332,
Jan. 2011.
[4] M. Mao, M. Ding, J. Su, L. Chang, M. Sun, and G. Zhang, Testbed for
microgrid with multi-energy generators, in Proc. IEEE Can. Conf. Elect.
Comput. Eng., 2008, pp. 637640.
907
908