You are on page 1of 5

Power Converters Modeling in Matlab/Simulink for

Microgrid Simulations
Abdulkerim Karabiber Cemal Keles, Asim Kaygusuz
Department of Electrical & Electronics Engineering Baris Baykant Alagoz, Murat Akcin
Bingol University Department of Electrical & Electronics Engineering
Bingol, Turkey Inonu University
akarabiber@bingol.edu.tr Malatya, Turkey

AbstractSmart grid is a developing field for energy researchers. RESs have important features providing distributed,
It offers technological improvements to have more controllable, renewable, and cost effective alternative energy supplies to
reliable and sustainable power grids. Especially, the decreasing the utility grids. Electric generation characteristics of RESs
trend of fuels has pressurized to pay researchers attention to
are different according to RES type, capacity, and control
renewable energy sources such as solar systems and wind
turbines. The renewable energy sources generate electric power method. Generation potential of RESs can be also instantly
in different characteristics. Therefore, power converters are changing depends on weather conditions such as temperature
needed to integrate these sources in a grid to provide power flows and wind speed. This characteristic variability complicates
among the sources and loads. This study presents integration of RESs to electricity grid. Therefore, RES
Matlab/Simulink models of power converters and dynamic load designing and planning should involve design of new control
structure, which are useful for smart grid simulations. These
methods and improved materials according to actual system
simulations can be used for research and educational purposes.
Characteristic parameters of the models are suitable for existing and specification. Practical experiments often require a lot of
devices. For power converters, Pulse-width Modulation time and money to obtain effective results. Therefore, RES
technique is utilized that it is widely used in industry. The researchers need computer-aided design and simulation tools
designed power converters and dynamic load models are tested to develop and test in reasonable time and low-cost.
in a microgrid application. The simulation results show that the Matlab software was commonly used to develop new model
designed power components are useful for smart grid simulation
and carry out virtual experiments [8-11]. Matlab can be
studies.
employed for device modeling, data analysis, algorithm
Index TermsConverters, Matlab, power system simulation, generating, and numerical simulations. Matlab allows
pulse width modulation, smart grids. designing individual models and combining them in Simulink
environment. Matlab is also compatible to share data with
I. INTRODUCTION electronic devices and other software programs. Therefore, it

S mart grids (SGs) offer technological choices to have more can be used to evaluate real data in simulation environment,
controllable, reliable and sustainable power grids. Eco- test software programs for the related devices in industry, and
friendly and manageable energy generation are significant for compare other program results for high-level numerical
sustainable development. To the end, SG technologies build computation.
up around the distributed renewable energy sources (RESs), In this study, Matlab/Simulink models of power converters
storage devices and demand side load management which are required for smart grid simulations are presented.
applications [1-2]. It is possible that energy consumption can Pulse width modulation (PWM) technique is used to control
be reduced by 20-30% owing to usage of RESs and optimal the converters. The designed converters were tested for two
energy management [3]. Hence, utilization of RESs has been homes including dynamic AC and DC loads. One of the
turning into an essential topic in energy policies. homes was supplied only utility grid and the other home was
Many countries are announced their RES targets all over supplied by utility grid and a PV system. The PV system has a
the world: Australia targets that 20% of total electric battery system which can be charged form the PV panels and
consumption of the country, which is about 45,000 GWh, will utility grid. The power converters are employed to provide
be supplied from RESs by 2020 [4]. In Denmark, energy taxes voltage stability of electric sources.
were regulated for RESs to support clean energy sources [5]. The simulation results reveal that the designed power
The Korean government devised RES diffusion policies in converter models are useful for power distribution grids and
three categories: installation support, a tax program, and a renewable energy systems. The voltage stabilities are
market policy [6]. Malaysia RES action plan was launched in protected during the simulation time although AC and DC
2010 to provide sustainable electricity source for socio- dynamic load models are utilized for the home electronic
economic development [7]. The main goals of these plans equipment. This grid model can be used for educational,
were growth in RESs industry, increasing the contribution of academic, and industrial purposes to analyze various power
RES meeting demand, and reducing CO2 emission. scenarios and test new methods in simulation environment.

978-1-5090-0866-7/16/$31.00 2016 IEEE


II. POWER COMPONENTS DESIGN inverter. In this study, the use of transformer is necessary
Electrical devices work in various characteristics in terms because of 24 V DC voltage is converted to 220 AC voltage
of frequency, amplitude, and current form. Electronic power that it is high power conversion rate. The output filter of the
converters are used to integration of the devices on a common transformer regulates the output voltage and prevents load
grid structure. Furthermore, the converters are employed as an against to sudden change of the current. This inverter model
energy control unit to increase efficiency, flexibility, and can be used for driving linear or nonlinear and static or
reliability of electric energy. Power converters are mainly dynamic loads.
classified in three categories: AC/AC, AC/DC, and DC/DC Voltage - RMS control is used and it is based on generating
converters. In this section, Matlab/Simulink models of these appropriate modulation coefficient by comparing output
converters and dynamic load are introduced. voltage and the reference signal. For this purpose, the output
voltage is divided to a required nominal voltage. The result is
A. DC/AC Converter a constant value which is used to determine RMS value. After
An inverter can be identified as electronic power the constant value is obtained, it is multiplied with the
equipment which converts the DC voltage to one or three reference signal to generate control signal. Reference signal is
phase AC voltage. Inverters can be run in grid-connected and generated by an independent signal generator and used to
standalone modes according to electric source and load generate PWM control signal. After transient state, the output
voltages. Therefore, system voltage control has a key role to signal shows the same property with reference signal. The
protect the power quality. Voltage controlled inverters have RMS value is obtained through the result of output voltage
significant advantages such as cost, compact design and when it is divided to nominal value of AC voltage. The
higher efficiency. These inverters are used in power supplies, control signal has same frequency with the reference signal
power quality controllers, marine, renewable energy systems, and the output voltage.
and military implementations [12].
B. DC/DC Converter
Fig. 1 shows Matlab/Simulink model of voltage controlled
inverter. 24 V DC voltage, which is the battery output voltage DC/DC choppers are electronic power components which
level, is used as a DC power source. Rbatt shows the resistance convert DC voltage level to another DC voltage level. DC/DC
of battery and wire. Presence of Rbatt is a requirement for the converters are basic components for renewable energy system
model because of the fact that DC power source cannot be because of the fact that they are employed to adjust DC
directly connected with a capacitance in Simulink. Cdc voltage of energy sources for voltage of loads [14].
provides stable DC voltage in input of the inverter. The value Particularly, DC/DC choppers were commonly used for
of Cdc must be chosen accurately because it affects harmonic voltage stability and improvement of controllability in smart
distortion and amplitude of the output voltage [13]. Rcf and Cf grid applications. There are two basic chopper types: buck
denote snubber resistance and capacitance, respectively. Rcf [15-16] and boost [17-18] for DC/DC conversion. Switched
and Cf have significance for quality of output voltage and for mode power supply technique is commonly used to control the
protection of the inverter against to unwanted sudden output voltage of DC/DC choppers.
alteration of the output current and voltage. The inappropriate Buck type DC/DC converter with PI controller is shown in
choosing of Rcf and Cf can reduce the speed of simulation. Fig. 2. Closed loop PI controller driving pulse width
Values of these components should be adjusted according to modulation is utilized to improve the voltage stability in the
power requirements of the load. DC/DC choppers. In this method, measured output voltage is
subtracted from reference voltage to obtain an error signal.
Then, it is applied to PI controller and the control signal is
used to generate PWM signal. The PWM signal is employed
to control power switch. This control feedback aims to zero
the error signal.
g
E
+

Load

Fig. 1. Matlab/Simulink model of RMS control inverter.

RLf and Lf represent resistance and inductance values of the


filter, respectively. This filter is used to provide stability of the
output voltage and the current by reducing harmonic distortion Fig. 2. Circuit design of 120/5 Buck type DC/DC converter.
resulted component frequencies which are higher than output
signal. The transformer ensures galvanic isolation for the
C. AC/DC Converter the dynamic load could be designed by switching static loads,
The AC/DC converters can be designed by using which can dynamically change total power of static load
controllable (IGBT, Mosfet, Thyristor, etc) and uncontrollable power components for each sampling time. The dynamic load
(diode) semi-conductor switches according to required output models which are designed by IGBT and Breaker switches are
voltage [19]. The AC/DC converters are used in drivers, presented in Fig. 4. Both of loads have same characteristics
secondary power supply, chemical electrolysis and renewable which are defined between zero and 4000 W in five sample
energy systems. The AC/DC conversion contains three basic time intervals.
steps: Firstly; AC waveform is converted to only positive or
negative cycle, secondly; filtering the cycle for reducing
voltage ripple and finally; using an appropriate control method
to prevent the harmonic distortions and increase the efficiency
of the device. The introduced DC/DC converter in the
previous section can be used to control the AC/DC converter
with PWM technique.
The rectifying process of the AC/DC converter can be
performed by the rectifier model of Simulink/Toolbox. The
AC/DC converter model, which is designed in
Matlab/Simulink environment, is shown in Fig. 3. The
rectifier block of Simulink/Toolbox is used for rectification of
AC voltage and the DC/DC chopper in the previous section is
utilized to filter the ripple and improve the voltage stability for
the load. DC/DC chopper are utilized to control output voltage
of AC/DC converter. The filter component and switching
frequency can be changed according to the power rate. Buck
type DC/DC converter model is used, in order to obtain lower
output DC voltage than the uncontrolled rectifier DC voltage.
A boost transformer will be used in front of the rectifier to
increase effective value of AC voltage. The greater DC
voltage is also obtained by using boost type DC/DC converter.
Fig. 4. Dynamic load models designed by IGBT and Breaker switches.

The breaker and IGBT models have different electrical


characteristics. Because of the breaker has snubber capacitor
which needs reactive power and ripples occur at switching
time. However, IGBT switch must be preferred in just active
powered circuits which do not require compensation unit.

Fig. 3. Matlab/Simulink model of AC/DC converter. III. TESTING THE CONVERTERS


Fig. 5 shows a power grid model for two homes which
D. Dynamic Load have dynamic AC and DC loads. Home-1 energy demand is
Electrical loads are analyzed in two groups: static and met from utility grid without any secondary energy source.
dynamic loads [20-21]. Due to the fact that the traditional AC/DC converter is used to convert AC power to DC power
static load models are not sufficient to represent the transient for DC loads at Home-1. This home model represents
behavior of real electrical loads, there is a need for the traditional grid topology for grid connected costumers. Home-
dynamic load modeling in electrical system simulations. One 2 is connected with utility grid, PV panels, and a battery group
of the methods is Measurement-Based Approach (MBA) and these energy sources are integrated on DC line. AC utility
where a load is statistically modeled with a long-term power is converted DC power by an AC/DC converter. There
observation and measurement. Another method is Component is no need a converter for the PV panels and the battery to
Based Approach (CBA). In the CBA, the total load of the integrate them on DC line because they run in DC form. An
system can be obtained by summing of the load components inverter is utilized to convert DC line power to AC power for
[22]. The load modeling in power systems has a key role to AC loads of Home-2. DC loads of Home-2 are directly
obtain realistic results [23-25]. connected to DC line without any converter.
The dynamic loads can be designed by switching static Fig. 6 shows simulation results for AC and DC loads
load components in Matlab/Simulink simulation environment. voltage of Home-1. The transient regime to reach stable DC
The static loads are switched according to the dynamic load voltage is not long and DC voltage quality is very stable as
characteristic by means of switching components. In this way, long as AC line (grid) supplies energy. Short-term outages
adversely affect appliances. To test the power converters for and DC loads voltage of Home-2 using DC integration
sudden voltage changes, the utility grid was cut out power method is shown in Fig. 7. The short time outage in utility
between 0.5 and 0.8 seconds. As seen in Fig. 6, AC line grid power between 0.5 and 0.8 seconds did not affect the load
voltage decreased to zero during this outage. In this time voltages of Home-2. This result indicates that RESs and
interval, DC loads voltage exhibited slight voltage sag battery can improve self-healing of microgrids and it is very
because of saved energy in capacitors and inductors of important property for smart grid.
AC/DC converter. This simulation can reveal transient
responses of the systems short-term fault cases and it is useful 200

for system design studies. 100

Home 1 -100

-200

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1


ACLoad2
AC Load2Voltage
Voltae

150

100

50

Home 2
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
DC Load2 Voltage

Fig. 7. AC and DC load voltages for Home-2.

The simulation results reveal that power converters can


provide protection against short-term outages and improve
voltage stability of the grid. They also facilitate integration of
RESs by DC bus and thus improve flexibility and reliability of
smart grids. Power converters are getting into fundamental
Fig. 5. Microgrid Simulink model.
components of smart grids and it is very helpful to
development of Matlab/Simulink models for researcher and
educators.
200

100
IV. CONCLUSIONS
0
The computer-aided design have important role in
-100
electrical engineering implementations and educations due to
-200
fact that it reduces test period and costs compared to
0 0.1 0.2 0.3 0.4 0.5 0.6
AC Load1 Voltage
0.7 0.8 0.9 1
experimental studies. Essentially, Smart grid researchers need
the simulation models of the AC/DC, DC/DC, DC/AC power
150
converters and the dynamic DC/AC loads to develop smart
100
power systems and analyze them under various simulation
scenarios. The simulation models should be designed by
50
commonly used control techniques and their power response
are consistent with the experimental studies for successful
0 practical realization of the developed systems.
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
DC Load1 Voltage In this paper, Matlab/Simulink models of electronic power
Fig. 6. AC and DC load voltages for Home-1. converters were presented and the dynamic load models were
designed by means of IGBT and breaker models of Simulink
DC integration method is preferred in the micro-grid model library. As an illustrative example, the models are used
systems so that DC bus integration of RESs is easier and more for development of renewable energy micro-grid composed of
feasible than AC bus integration of RESs [27]. Utility grid DC and AC lines. In load side, two house models are tested to
can be considered as supportive source of energy in DC bus investigate effects of PV panel and battery integration to DC
integration method. In the cases that, the microgrid system line. Short-term outage scenario was tested and simulation
Energy from RESs is not sufficient to meet home electric results numerically demonstrated that the DC bus of micro-
demand, utility power supports the micro-grid energy. Other grid improves self-healing property of grid for short-term
times, RESs of micro-grid can supply home appliances. AC faults cases.
As a consequence, power converter and dynamic load [13] M. C. Trigg, and C. V. Nayar, Matlab Simulink modeling of a single-
phase voltage controlled voltage source inverter, Proc. Australasian
models can be effectively used in research and education Univ. Power Eng. Conf., Melbourne, Australia, 2006.
studies and they can considerably reduce time and cost of [14] V. K. Chandna, Z. A. Jaffery, and S. K. Chaudhry, Simulation of single
design and transient analysis for smart grids. phase RMS controlled voltage source inverter (VSI) for variation in Cdc,
Cs and Rs, 2010 Joint Int. Conf. on Power Elec., Drives and Energy
Systems (PEDES) & 2010 Power, India, 2010, pp. 1-7.
REFERENCES [15] K. Kayisli, S. Tuncer, and M. Poyraz, An educational tool for
[1] A. R. Khan, A. Mahmood, A. Safdar, Z. A. Khan, and N. A. Khan, fundamental dc/dc converter circuits and active power factor correction
Load forecasting, dynamic pricing and DSM in smart grid: A review, applications, Comput. Appl. Eng. Educ., vol. 21, pp. 113-134, 2013.
Renew. Sustain. Energy Rev., vol. 54, pp. 13111322, 2016. [16] M. Hedlund, Design and Construction of A Bidirectional DC-DC
[2] M. Rastegar and M. Fotuhi-Firuzabad, Load management in a Converter for An EV Application, Student Thesis, Uppsala University
residential energy hub with renewable distributed energy resources, UPTEC F10 013, 2010.
Energy Build., vol. 107, pp. 234242, 2015. [17] M. S. Banu, S. Vinod, and S. Lakshmi, Design of dc-dc converter for
[3] G. R. Aghajani, H. A. Shayanfar, and H. Shayeghi, Presenting a multi- hybrid wind solar energy system, Int. Conf. on Comput., Elec. and
objective generation scheduling model for pricing demand response rate Electr. Tech., India, 2012, pp. 429-435.
in micro-grid energy management, Energy Convers. Manag., vol. 106, [18] S. S. Saha, Efficient soft-switched boost converter for fuel cell
pp. 308321, 2015. applications, Int. J. Hydrog. Energy, vol. 36, pp. 1710-1719, 2012.
[4] Y. Hua, M. Oliphant, and E. J. Hu, Development of renewable energy [19] K. Georgakas, and A. Safacas, Power factor improvement of an ac-dc
in Australia and China: A comparison of policies and status, Renew. converter via appropriate sPWM technique, 2007 Mediterr. Conf.
Energy, vol. 85, pp. 10441051, 2016. Control Autom., Jun. 2007, pp. 1-6.
[5] Z. Abdmouleh, R. A. M. Alammari, and A. Gastli, Review of policies [20] B. Singh, B. Singh, A. Chandra, K. Al-Haddad, A. Pandey, and A.
encouraging renewable energy integration & best practices, Kothari, A review of single-phase improved power quality acdc
Renew. Sustain. Energy Rev., vol. 45, pp. 249262, 2015. converters, IEEE Trans. Indust. Elec., vol. 50, pp. 962-981, 2003.
[6] S.-Y. Huh, J. Lee, and J. Shin, The economic value of South Koreas [21] N. Genc, and I. Iskender, Teaching of power quality phenomenon based
renewable energy policies (RPS, RFS, and RHO): A contingent on modeling and simulation of boost type PFC converters, Comput.
valuation study, Renew. Sustain. Energy Rev., vol. 50, pp. 6472, 2015. Appl. Eng. Educ., vol. 20, pp. 149-160, 2012.
[7] S. Mekhilef, M. Barimani, A. Safari, and Z. Salam, Malaysias [22] U. Eminoglu, and M. H. Hocaoglu, Effect of shunt compensation on the
renewable energy policies and programs with green aspects, Renew. maximum loadability limit of a transmission system is analyzed for
Sustain. Energy Rev., vol. 40, pp. 497504, 2014. voltage dependent loads, Electr., Elec., Compt. Eng. 11. Natl. Conf.,
[8] A. Bouraiou, M. Hamouda, A. Chaker, M. Sadok, M. Mostefaoui, and S. Istanbul, 2003, pp. 300-303.
Lachtar, Modeling and Simulation of Photovoltaic Module and Array [23] IEEE Task Force Report, Load Representation for Dynamic
Based on One and Two Diode Model Using Matlab/Simulink, Energy Performance Analysis, IEEE Trans. on Power Systems, vol. 8, pp. 472-
Procedia, vol. 74, pp. 864877, 2015. 482, 1993.
[9] A. Baloi, A. Pana, and F. Molnar-Matei, Advantages of Using MatLab [24] I. R. Navarro, Dynamic load models for power systems, Licentiate
Simulink in Laboratory Lessons on Operating Conditions of Overhead Thesis, Lund University, Lund, Sweden, 2002.
Power Lines, Procedia - Soc. Behav. Sci., vol. 191, pp. 179184, 2015. [25] IEEE Task Force on Load Representation for Dynamic Performance,
[10] N. Das, H. Wongsodihardjo, and S. Islam, Modeling of multi-junction Bibliography on Load Models for Power Flow and Dynamic simulation,
photovoltaic cell using MATLAB/Simulink to improve the conversion IEEE Trans. Power Syst., 10 (1995), 525-538.
efficiency, Renew. Energy, vol. 74, pp. 917924, 2015. [26] M. H. Haque, Load flow solution of distribution systems with voltage
[11] A. S. Martyanov, E. V. Solomin, and D. V. Korobatov, Development of dependent load models, Int. J Electr. Power Syst. Res., vol. 36, pp. 151-
Control Algorithms in Matlab/Simulink, Procedia Eng., vol. 129, pp. 156, 1996.
922926, 2015. [27] A. Karabiber, C. Keles, A. Kaygusuz, B. B. Alagoz, An approach for
[12] M. Fazeli, G. M. Asher, C. Klumpner, S. Member, and L. Yao, Novel the integration of renewable distributed generation in hybrid DC/AC
integration of wind generator-energy storage systems within microgrids, Renewable Energy, vol.52, pp. 251259, 2013.
microgrids, IEEE Trans. on Smart Grid, vol. 3, pp. 728-737, 2012.

You might also like