Real-Time Implementation of Islanded Microgrid for Remote Areas

Islanding is a condition in which a microgrid or a portion of power grid, consisting of distributed generation (DG) sources, converter, and load, gets disconnected from the utility grid. Under this condition the DG sources in a microgrid must switch to a voltage control mode, in order to provide constant voltage to local loads. In grid connected mode, the microgrid works as current controller and injects power to the main grid, depending on the power generation and local load with suitable market policies. Providing constant voltage at a stable frequency with proper synchronization amongst each DG in a microgrid is a challenge. The complexity of such grid requires careful study and analysis before actual implementation. These challenges of microgrid are addressed using real time OPAL-RT simulation technology. Thus the paper describes an islanded microgrid with master slave controller for power balance, voltage/frequency regulation, and synchronization. Based on an advanced real-time platform named Real-Time Laboratory (RT-LAB), the impacts of the micro sources, load, and converters in an islanded microgrid is studied in this paper.The effectiveness of the proposed controller is analyzed through experimental results under balanced/unbalanced nonlinear loads condition.


Introduction
Regular depletion of conventional energy sources has led the society to think of other alternative resources which will continue to cater the increasing demand of energy.One such alternative is an accretion of small scale renewable resources to form a microgrid and supply to a regional area [1,2].Microgrid can operate in two distinct modes: (1) grid connected and (2) islanded (autonomous) mode.In grid connected mode, the microgrid works as current controller and injects power to the main grid, depending on the power generation and local load with suitable market policies [3].Microgrid can come in islanded/autonomous mode due to disturbances, such as a fault and its subsequent switching incidents, or due to preplanned switching events or due to unavailability of resources.In islanded mode, microgrid works as voltage controller and is responsible for voltage control as well as for power sharing and balancing.The role of power sharing features is to ensure that all modules share the load according to their rating and availability of power from their energy source.In islanded mode converters always require grid-forming (master) power converters; otherwise there is no voltage reference and no control to maintain the power balance.In the single master operation, one unit operates as a grid-forming converter.The other units operate as grid-following units.In the multimaster operation, more than one unit is grid-forming, possibly combined with gridfeeding converters.In this work one of the units (DG) is acting as master controller and other units are acting as a slave controller.The master DG operates as voltage controlled source and the rest of them as slave DGs which operate as current controller.The master controller works like gridforming power converters and the main aim is to regulate the voltage and frequency of the microgrid.The slave DGs work like grid-feeding power converters and are controlled as current source, allowing active and reactive power modulation depending on voltage and frequency measurements at their Point of Common Coupling (PCC).Therefore, this kind of converter cannot operate independently in island mode [4,5].Since a microgrid comprises a number of 2 Journal of Control Science and Engineering micro sources, their synchronization with each other is an important task.When interconnecting the microgrid with the main grid, many authors have developed the synchronization algorithms [6][7][8] considering each micro source as a DC source.But in a microgrid maintaining constant voltage and frequency, each micro source is an important issue in addition to synchronization.This paper proposes a masterslave controller for synchronization/resynchronization of all the DGs, regulation of voltage/frequency, and effective power sharing among the micro sources.The islanded microgrid is formed by two DG units.Each unit consists of Self-Excited Induction Generator (SEIG) driven by ABB drive, controller, battery for storage, and load.The impact of the parallel operated DG units has to be carefully studied and analyzed before actual realization.This is achieved with the help of real-time simulation platform; the Real-Time Laboratory (RT-LAB) developed by OPAL-RT Technologies [9][10][11].

System Configuration
Microgrid architecture is shown in Figure 1, operating in islanded mode.Islanding is a situation where microgrid is disconnected from the main utility but remains energized and continues to supply local loads.Microgrid can be formed by numbers of micro sources connected together.This paper considers an islanded microgrid formed by two DG units.Each unit consists of SEIG based micro sources, controllers with storage system, and loads.The SEIGs are preferred in microgrid due to their robust construction, less maintenance, and so forth [12,13].
The SEIG requires constant reactive power support for voltage build up, which is provided by conventional capacitor banks.The controller is used to regulate voltage/frequency and active/reactive power under varying load and fault conditions, thus maintaining the SEIG terminal voltage and frequency constant.When these SEIGs are connected to form a microgrid, an additional problem of phase angle mismatch also occurs.The control algorithm proposed in this paper effectively synchronizes the DGs in addition to power sharing and voltage/frequency regulation in a microgrid.The proposed controller is also effective when one micro source is shut down due to unavailability of resources or due to a fault in the line.The controller provides proper phase matching when the outage micro source is reconnected to the system.The system parameters used for experimental analysis are mentioned in appendix.

Control Strategy for Proposed Controller
A microgrid is said to be in islanded mode when it is disconnected from the main grid and it operates independently with micro sources and load.In the proposed work autonomous microgrid is formed by considering two units only.
Each unit consists of induction motor driven ABB drive, with star connected fixed capacitor bank, the conversion unit which performs the interface function between the DC link and the generated three-phase voltages of micro source, and LC filter that transports and distributes the energy to the load and three-phase nonlinear load.In the proposed configuration two such units are connected in parallel through line impedances; values are mentioned in appendix.Figure 2 shows the proposed schematic diagram for one unit with its firing scheme.When the microgrid is disconnected from main grid that is islanded condition, each micro source should operate in voltage control mode and provide a constant voltage to the local loads.In addition to this, synchronization of microgrid is also important due to unpredictable renewable energy resources and varying electrical loads.
In parallel operation of micro sources, phase angle, frequency, and voltage difference should be as close as possible.This is called synchronization.Thus in a microgrid system synchronizing conditions should be fulfilled by each generating unit in order to connect them in parallel with varying load [6,7].This is achieved by the proposed topology.This topology uses a DQ and Phase Lock Loop (PLL), a PI regulator, and an integrator.The synchronizing scheme using DQ algorithm is depicted in Figure 3.The   is set to zero.This becomes the input of PI regulator and its output is an angle (theta, denoted by  old ).This  old is compared with the  new to generate the reference angle for all micro sources.This angle ( new ) can be the angle between the grid and micro source; in the islanded mode of microgrid this angle is obtained from any reference (master) source and the rest is acting like slave source.Here plant one is considered as master plant and other two plants are considered as slave plant [7].The  new is generated as follows.
Assume that the phase difference between the two micro sources voltages (1 and 2) is given by In order to obtain the information of , two sets of voltage values are used: Using the variables  and , sin() can be found as When this () new is compared with  old , the final reference angle ( final ) will be generated.The synchronizing angle  final obtained is used to generate unit vector template as shown in Figure 4.The unit templates are obtained as Figures 5 and 6 depict the block diagrams of the control algorithm employed for the proposed system.In this algorithm the master controller is based on frequency and voltage regulation.The slave controller is based on active/reactive power balance theory [12,14,15].
The proposed microgrid in islanded mode comprises one master DG which behaves as an ideal voltage source and one slave DG which can be represented as ideal current source.Any voltage and frequency deviations are regulated by the master controller.Therefore voltage and frequency controller  Unit/quadrature voltage generator of micro sources PI controller   The master controller generates the reference angle for generation of in-phase and quadrature unit vector templates of the slave controller.The in-phase components of reference current are generated from the active power and the quadrature components of reference current are generated for the reactive power component.To estimate the active component of the reference source current as shown in Figure 6, the instantaneous active power of the load is calculated from micro source voltage and its load current.This power contains an average or DC and AC or oscillating components.Thus, in order to extract the DC component of the load power, a low pass filter is used.The active load current is obtained by dividing the output of filter with the terminal voltage and denoted by   .The output of frequency PI controller is added with the DC component (  ) of the load current to generate the reference in-phase current ( *  ).This current when multiplied with the unit vector, generates the threephase reference in-phase current.

VFC-BS
Similarly the reactive power component is calculated and is denoted by   .The output of terminal voltage PI controller is subtracted with the DC component (  ) of the load current to generate the reference quadrature current ( *  ).This current when multiplied with the quadrature vector, generates the reference three-phase quadrature current.The sum of these components yields the total reference current ( *  ,  *  ,  *  ).These reference currents are then compared with the sensed generator currents ( DG ,  DG ,  DG ).The difference between these signals (error) is given to the controller as shown in Figure 6.For neutral current compensation, sensed neutral current is compared with the reference current ( *  = 0) and the difference is given to the controller.The hysteresis controller generates the pulses for the IGBTs in a 4-leg voltage source converter.Figure 7 shows the control algorithm for all slaves controller.The micro sources are represented by number 1, 2, 3, . . .,  and the total capacity "" of the microgrid is the sum of total individual micro sources.

Performance of Proposed Controller Using OPAL-RT
In order to analyze the behavior of a microgrid before practical implementation, real-time digital simulation is essential and beneficial.Hence to validate the functionality of microgrid before the on-site implementation, it is not only beneficial but also necessary to test operation of microgrid in real-time conditions.The OPAL-RT-LAB simulator [9] enables the parallel simulation of power drives and electric   (  ), controller current (  ), load neutral current (  ), and neutral current controller (  ).  represents the generator voltage of phase "" for both generators.Figure 8(a) shows the effect of nonlinear load on the system without controller.As the controller is turned on after 5 cycles, the voltage and current become sinusoidal.Figures 8(b)-8(d) describe the steady state performance of compensated microgrid system with the application of nonlinear load.Figure 8(e) shows the unbalanced behavior of a three-phase nonlinear load for 11 cycles.Figures 8(f)-8(h) show the transient performance of microgrid system in all the three phases.The source voltage and current are purely sinusoidal even during the unbalance condition.In Figure 8(h) load neutral current and controller current are shown, which are opposite in nature, thus reducing the magnitude of neutral current and size of conductor.Figure 9(a) describes the generator voltage during and after the fault clearing.After the fault clearing both generator voltages must be synchronized to be operating in parallel and form the gird.During synchronization the phase angles must be the same.As shown in Figure 9(a), as the fault arises in generator "2" for 5 cycles, it thus disconnected from the grid.During this period phase angle of generator "2" gets distorted as shown in Figure 9(b).After fault clearing both generators get resynchronized after two cycles because of effective operation of the proposed controller.

Conclusion
The highest potential for microgrid is in remote regions, where grid connection is not possible.The proposed master/slave controller in the microgrid has been successfully demonstrated through OPAL-RT environment for nonlinear loads during transient and steady state conditions.The master controller regulates the voltage and frequency of the microgrid whereas slave controller works in indirect current control mode, thus regulating the active and reactive power.The controller works satisfactorily for sharing of loads during load perturbations and failure of one micro source in microgrid due to fault or unavailability of renewable resources and avoids critical load curtailment.The proposed scheme in autonomous mode ensures that the micro source (slave unit) can be effectively synchronized/resynchronized to a master micro source maintaining synchronizing criteria.The experimental results prove the performance of the controller under different transient and steady state conditions.

Figure 2 :Figure 3 :
Figure 2: The illustrative diagram of plant "1" with its entire control unit.

Figure 5 :
Figure 5: Control scheme for master controller for phase angle generation, voltage, and frequency regulation in microgrid.

Figure 6 :
Figure 6: Control scheme for single slave controller in microgrid.

6 VFigure 8 :
Figure 8: Experimental result for the proposed system on DSO (a) with/without controller: (b)-(d) load is balanced and (e)-(g) load is unbalanced.(h) Battery voltage, frequency with generator voltage, and current.

Generator 2 Figure 9 :
Figure 9: Experimental result on DSO after resynchronization of micro source 2 after fault clearing.

Table 1 :
Scaling parameters.To observe the performance of microgrid under OPAL-RT two SEIGs of the same rating driven by ABB drive are taken as micro sources and converter unit, and load is considered.The realtime results of the other micro sources are also the same as they are of the same rating.Figures8 and 9represent generator voltage (  ), generator current (  ), load current