Keywords

1 Introduction

Due to the high pressure on non-renewable energy sources by nature fundamentalists, the use of renewable energy sources has increased remarkably over the years. Wind energy is one of the widely used renewable energy sources due to its availability. The complete wind energy conversion system (WECS) is one of the fastest-growing energy resources, doubled in the last 10 years. Various WECSs have been proposed by the researchers working under different capacities with different types of generators like double fed induction generator (DFIG), permanent magnet synchronous generator (PMSG) and more [1, 2]. In most cases, WECS comprises a bidirectional converter to link distributed generators (DGs) to AC side main grid and loads. Due to these interconnections, the decreases of system inertia have encountered the problem of maintaining system frequency and voltage for a microgrid. The microgrid can work under grid-connected mode or islanding mode.

In islanding mode, the load demand is met by the WECS DGs with one of the DG should be working as a controlled voltage source [3]. The main concern during this mode is to avoid circulation current while maintaining system frequency and load voltage. During grid-connected mode, the main grid regulates the frequency and voltage because of its large size impact on the system, which removes the extra burden from the microgrid. Also, the bifurcation of active and reactive powers, stable operation and high power quality must be met during the mode of operation.

Depending upon the complications mentioned above, this paper purposed a microgrid two-stage hierarchical control structure for both grid-connected and islanding modes. The primary stage depends upon droop control based on line impedance and load characteristics which helps in active and reactive power bifurcation, but its unanimous implementation may lead to deviations in voltage and frequency. So to overcome it, the secondary stage compensates for the deviations in voltage and frequency [4]. Two steps are introduced to enhance the first stage of droop control, with voltage biasing is done using a low bandwidth link in the first step, then voltage magnitude deviations are compensated.

In this paper, a dual-mode WECS is proposed using a two-stage hierarchical control structure. The primary stage performs P-V/Q-f droop control, based upon the active and reactive power-sharing [5]. The secondary stage controls the voltage and frequency fluctuations. The microgrid operates in grid-connected mode with a smooth transition to islanding mode for ensuring synchronization of voltage and frequency within the specified limits. The microgrid included two types of WECS, one is battery-backed to ensure maximum power transfer from wind and storage of surplus power, and the other one is braced by adaptive operation without any storage element.

The performance of the proposed system is investigated under different loading conditions with mode transition. The complete paper is organized as follows: A brief overview of the proposed system and its control is given in Sect. 1. Microgrid and WECS de- tailed topology analysis is discussed in Sect. 2. The proposed dual-stage controller design strategy is covered in Sect. 3. Section 4 presents MATLAB/Simulink environment analysis and validation of the work by different graphs. Finally, in Sect. 5 conclusion is discussed.

2 Configuration of Microgrid and Control Structure

2.1 WECS-Based Hybrid Microgrid

The microgrid structure is given in Fig. 1 for which the control strategy is proposed which is having two types of wind energy conversion system (WECS) connected to the common microgrid bus. The main AC grid can be connected or disconnected by the means of a static switch. Both types of WECS are having permanent magnet synchronous generator (PMSG) for having higher efficiency, solidity and an acclaimed reputation in offshore wind farms.

Fig. 1
figure 1

Configuration of proposed hybrid microgrid

2.2 WECS-1 Battery Backed

Figure 2 shows the overall formation of the microgrid. The paper does not offer a pitch-plate design of WECS so it’s not shown. After the conversion of mechanical to electrical power by WECS-1, it is given to an uncontrolled rectifier via DC-link and boost converter. The maximum power is achieved by the means of wind turbine characteristics and lookup table, further, the buck-boost converter tries to regulate the DC-link voltage by regulating bidirectional battery current. The need for battery becomes unavoidable in islanding mode to regulate DC link voltage and AC side frequency. The battery reference current is defined as:

Fig. 2
figure 2

Structure and control of proposed hybrid microgrid

$$I_{{{\rm batt}_{\rm ref} }} = k_{bp} \left( {800 - V_{b} } \right) + k_{bi} \int {\left( {800 - V_{b} } \right)} dt$$
(1)

where proportional-integral of battery gains are kbp - kbi with Vb as battery voltage for the nominal battery of 800 V and 300 kWh.

The main objective of grid side bidirectional converter (GS BIC-1) is to maintain persistent frequency and voltage for microgrid loads, throughout grid-connected mode and islanding mode. For grid-connected mode, active power is given to loads or batteries according to requirement. So two current control loops are adopted for dual-loop control. The primary loop depends upon current references based on coordination control. The secondary loop depends upon the state of charge (SOC) of the battery. Both loops are described in Sect. 3. After converting the current reference in d-q from, a further voltage regulating loop is used. The output voltage after this loop are described after neglecting the effect of filter capacitance:

$$V_{d\,{\rm out}} = V_{d} - \omega Liq + kpc_{d} \left( {I_{\rm dref} - I_{d} } \right) + kic_{d} \int {\left( {I_{\rm dref} - I_{d} } \right)} dt$$
(2)
$$V_{\rm qout} = \omega Liq + kpc_{q} \left( {I_{\rm qref} - I_{d} } \right) + kic_{q} \int {\left( {I_{\rm qref} - I_{q} } \right)} dt$$
(3)

where ωL is the settlement portion for filter inductance, \(k_{{pc_{d} }}\), \(k_{{ic_{d} }}\), \(k_{{pc_{q} }}\) and \(k_{{ic_{q} }}\) are P-I gains of d-q current regulators respectively [6].

2.3 WECS-2: Adaptive Operated

As shown by Fig. 2, the second type WECS utilizes controlled converters at both grid-side and machine-side. The machine-side BIC is used to extract max power by wind turbine. It uses MPPT algorithm by analyzing rotor speed ωr to achieve maximum active current Iq. The reference current for this converter in dq-frame are:

$$I_{d\;\;{\rm ref}}^{M} = 0$$
(4)
$$I_{q}^{M} \,_{\rm ref} = \frac{{2T_{e}^{*} }}{{3P\phi_{B} }}$$
(5)
$$T_{e}^{*} = Kp_{t} \left( {\omega_{r}^{*} - \omega_{r} } \right) + Ki_{t} \int {\left( {\omega_{r}^{*} - \omega_{r} } \right)} dt$$
(6)

where \(T_{e}^{*}\) is pre-set electrical torque, is P pole pairs, \(\phi_{B}\) is generator magnetic flux, \(\omega^{*}_{r}\) is reference rotor speed, \(K_{{p_{t} }}\) and \(K_{{i_{t} }}\) are the P-I gains for torque regulator.

To avoid power imbalance in islanding mode, WECS-2 utilises the adaptive operation as in this mode real power required could be less than the generated power, which is done by proper active-reactive current references. The active-reactive current reference is set as:

$$I_{d\,{\rm ref}}^{G} = \hbox{min} \left\{ {\begin{array}{*{20}c} {Kp_{DCL} \left( {V_{DC}^{*} - V_{DC} } \right) + Ki_{DCL} \int {\left( {V_{DC}^{*} - V_{DC} } \right)} dt} \\ {\frac{{2{\text{P}}_{\rm req} }}{{3V_{d} }}} \\ \end{array} } \right.$$
(7)
$$I_{q\,{\rm ref}}^{G} = Kp_{r} \left( {Q_{\rm req} - Q_{\rm avl} } \right) + Ki \int\limits_{r}^{d} {\left( {Q_{\rm req} - Q_{\rm avl} } \right)} dt$$
(8)
$$Q_{\rm avl} = \frac{3}{2}V_{d \quad {\rm qavl}}^{I} I$$
(9)

where Vd is d-axis voltage, Preq is real power needed by the microgrid, Iqavl is available reactive current, Qreq and Qavl are the required and available reactive power, and \(K_{{p_{r} }}\)\(K_{{i_{r} }}\) are the proportional-integral gains. It is to be noted that Qreq must be restricted to Qavl as a threshold boundary.

To achieve optimum DC link voltage, the modulation signal for chopper mch and maximum chopper power Pch is given as:

$$m_{ch} = \frac{{Kp_{ch} \left( {V_{DC}^{*} \,^{2} - V_{DC}^{2} } \right) + Ki_{ch} \int {\left( {V_{DC}^{*} \,^{2} - V_{DC}^{2} } \right)} dt + \sqrt {\left( {P_{\hbox{max} } - P_{\rm req} } \right)^{2} - Q_{\rm req}^{2} } }}{{P_{ch} }}$$
(10)
$$P_{ch} = \frac{{V_{DC}^{2} }}{{R_{ch} }}$$
(11)

where \(K_{{p_{ch} }}\) and \(K_{{i_{ch} }}\) are P-I gain of chopper regulator [7].

3 Proposed Two-Stage Hierarchical Control System

3.1 Primary Stage

To achieve the synchronous generator-like behaviour, P-V/Q-f droop control is utilised as the primary control stage. At this stage, real power adjustment is linked with frequency and reactive power is with the profile of voltage. The consideration of a small system with low voltage microgrids is to be taken for having the line impedance rate (R/XL) significantly large. So, the line-impedance characteristics consider as mostly resistive with real and reactive powers are calculated as:

$$P = \frac{{V.E - V^{2} }}{Z}$$
(12)
$$Q = - \frac{V.E}{Z}\varphi$$
(13)

where V is grid voltage, E is output voltage of inverter Z and φ are line impedance with its phase angle. The real power depends upon variation in voltage while reactive power is on phase angle. So, the droop equations for resistive lines expressed as:

$$E^{*} - E = k_{ep} P_{\rm mesr}$$
(14)
$$\omega^{*} - \omega = k_{fq} Q_{\rm mesr}$$
(15)

where ω* and E* are predefined angular frequency and voltage, kep and kfq are active-re- active droop coefficients power, and defined by Eqs. (16) and (17), Pmesr and Qmesr are measured real and reactive power resulting by Eqs. (18) and (19) [6] (Fig. 3).

Fig. 3
figure 3

Primary stage droop control

$$k_{ep} = \frac{{V_{h} - V_{l} }}{{P_{h} }}$$
(16)
$$k_{fq} = \frac{{\omega_{h} - \omega_{l} }}{{Q_{h} }}$$
(17)
$$P_{\rm mesr} = \frac{{\omega_{c} }}{{\omega_{c} + s}}P$$
(18)
$$Q_{\rm mesr} = \frac{{\omega_{c} }}{{\omega_{c} + s}}Q$$
(19)

where ωh, ωl, Vh and Vl are the highest and lowest permissible sets of frequency and voltage. Ph and Qh are the highest permissible real and reactive power with the cut-off frequency of low pass filter is ωc.

The expression of pre-set current for grid side converter with power transfer can be given as:

$$I_{\rm pre} = 2P_{Trans} /3V_{od}$$
(21)
$$P_{\rm Trans} = \frac{3}{2}V_{od} I_{od} + \frac{3}{2}V_{oq} I_{oq}$$
(22)

where d-q frame reference output voltages and current are Vod,Voq, Iod and Ioq for grid side converter [8].

3.2 Secondary Stage

During load fluctuation and non-uniform generation, the change in voltage and frequency should be bound in the specified limits. At this stage, to die out these undesirable changes, voltage and frequency are compared with pre-set values. The differences found are injected back or removed using PI controllers to the initial stage. The compensation is done with load voltage in d-q reference frame with a comparison of primary stage droop control. The resultant d-q axis newly established of voltages are given as:

$$V_{d}^{**} = V_{d}^{*} + K_{{p_{{d\,{ \sec }}} }} \left( {V_{d}^{*} - V_{dL} } \right) + K_{{i_{{d\,{ \sec }}} }} \int {\left( {V_{d}^{*} - V_{dL} } \right)} dt$$
(22)
$$V_{q}^{**} = V_{q}^{*} + K_{{p_{{q\;{ \sec }}} }} \left( {V_{q}^{*} - V_{qL} } \right) + K_{{i_{{d\;{ \sec }}} }} \int {\left( {V_{q}^{*} - V_{qL} } \right)} dt$$
(23)

where \(K_{{p_{{d\;_{\rm sec} }} }}\) and \(K_{{i_{{d\;_{\rm sec} }} }}\) are d-axis secondary P-I gains, \(K_{{p_{{q\;_{\rm sec} }} }}\) and \(K_{{i_{{q\;_{\rm sec} }} }}\) are q-axis secondary PI gains, VdL and VqL are real-time d-q reference frame load voltages (Fig. 4).

Fig. 4
figure 4

Proposed secondary-stage droop control

For the advancement of the secondary stage, two active and reactive terms (δP and δQ) for load damping are added to the above equations [9]. The purpose is to safeguard the integral control loop which was becoming more influenced due to continuous load variations. After taking α as active load-damping and β as the reactive load-damping, the advanced d-q reference frame voltages are established as:

$$V_{d}^{**} = V_{d}^{*} + K_{{p_{{d{ \sec }}} }} \left( {V_{d}^{*} - V_{dL} } \right) + K_{{i_{{d{ \sec }}} }} \int {\left( {V_{d}^{*} - V_{dL} } \right)} dt + \alpha \delta_{P} - \beta \delta_{Q}$$
(24)
$$V_{q}^{**} = V_{q}^{*} + K_{{pq{ \sec }}} \left( {V_{q}^{*} - V_{qL} } \right) + K_{i} d_{ \sec } \int {\left( {V_{q}^{*} - V_{qL} } \right)} dt + \beta \delta_{P} + \alpha \delta_{Q}$$
(25)
$$\delta_{P} = \frac{{dP_{\rm Load} }}{dt},{\text{if }}\frac{{dP_{\rm Load} }}{dt} > \frac{{dP_{WD} }}{dt};{\text{or}}\;{\text{else}}\;0$$
(26)
$$\delta_{Q} = \frac{{dQ_{\rm Load} }}{dt},{\text{if }}\frac{{dQ_{\rm Load} }}{dt} > \frac{{dQ_{WD} }}{dt};{\text{or}}\;{\text{else}}\;0$$
(27)

where PLoad and QLoad are load real and reactive powers, PWD and QWD are real and reactive powers of WECS. It is to be noted that values of δP and δQ are taken as zero when power output from wind is lessor than load power.

4 Results and Analysis

In this section, MATLAB/Simulink-based model on the proposed dual-stage hierarchical control of hybrid microgrid with two types of WECS is constructed, simulated and analysed. Based on the related theory formation in the above sections, two modes are considered as grid-connected mode and islanding mode with their transition. Table 1 de- scribes the transition period while Table 2 describes the system parameters. During the whole operation and transition, both WECS, battery-bank and AC loads are uninterruptedly associated while the AC main grid is detached from the system at 2 s by three-phase circuit breaker as static switch henceforth the system drives to islanding mode.

Table 1 Operational periods
Table 2 System parameters

4.1 Grid-Connected Mode

For an initial 0–2 s, the AC main grid is linked to the system henceforth system remained in grid-connected mode, while an AC load 2 of 50 + j20 kVA is added at 1 s to verify the loading effect on the system. For the WECS-1, the DC link voltage is maintained at the level of 1200 V as shown by Fig. 5. Initially, after the transient period over the first stage of droop control and charge controller of battery helps to maintain the DC- link voltage at the desired level with minimal variations [10]. The AC load-side frequency is shown by Fig. 6, it has a small variation during mode transition at 2 s and load addition at 3 s. The battery SOC is shown in Fig. 7, the battery is charging by storing extra power available. Figure 8 shows the AC side voltage and current at the main grid and loads, at 2 s when AC main grid is separated from the system, then the grid voltage and the current becomes zero p.u. as required and for loads, the voltage remains almost 1 p.u. while load current is changing according to the requirements, supported by taking power from both WECS. Figure 9 shows the active and reactive powers provided by the AC main grid and consumed by AC loads. During this mode, real and reactive power for the loads is mainly provided by the AC main grid and becomes zero after this mode at 2 s. Figure 9 shows the active and reactive power provided by both WECS, for WECS-1 during grid-connected mode real power is provided to the battery while WECS-2 provides power to load throughout the operation because its system does not have energy storage devices. During this mode, the reactive power is mainly provided by the AC main grid for maintaining proper operation.

Fig. 5
figure 5

DC-link voltage at WESC-1

Fig. 6
figure 6

Load frequency of the system

Fig. 7
figure 7

Battery SOC

Fig. 8
figure 8

Voltages and currents at the main grid and load

Fig. 9
figure 9

Real and reactive powers at the main grid and load

For considering the change effect of loads on the system, load 2 is added to the system at 1 s, the real and reactive power requirement increases as shown in Fig. 9. At this change magnitude of current at the grid and load is increased because of load change while voltages are maintained at the same level. At this instant other DC bus voltage, system frequency and SOC of the battery remain the same.

4.2 Islanding Mode

The mode transition from grid-connected mode to islanding is performed at 2 s by removing the AC main grid from the system using a 3-phase circuit breaker as a static switch. At this instant, system performance is critically decisive as the system can go into an unstable mode. At this instant, all the loads are connected to the system which gets power from the two WECS. The proposed control strategy helps to achieve the above mode transition reliably.

At the starting of this islanding mode, the DC bus voltage for WECS-2 has a dip but recovers instantly to 1200 V as shown by Fig. 5, further have small variations which are in limits [6]. Figure 6 indicates the system frequency which increases a bit from its desired value of 50 Hz, droop control further maintains system frequency within operational limits. The battery SOC indicates discharging but after a small instant its again starts charging by taking surplus power from WECS-2 as shown by Fig. 7. The voltage and current at the main grid become zero and a small variation is observed in the load voltage which decays out further as shown by Fig. 8 and the load current is maintained according to the load demand supported by grabbing power from both WECS. The real and reactive powers provided by the AC main grid becomes zero throughout this mode shown by Fig. 9. The required real and reactive powers for loads are supplied from both WECS as mentioned above and shown by Fig. 10.

Fig. 10
figure 10

Real and reactive power supplied by two WECS

Further to observe load variations, at 3 s load-2 and at 3.5 s load-3 is removed from the system, the current supplied to load indicates a dip in its value as shown by Fig. 8. At the same time power supplied from WECS increased because power requirement decreased at load. A small dip in the system frequency is observed at 3 s due to the load removed which is further maintained at the desired level. During mode transition and load variation throughout the whole simulation, load voltage remains almost constant (Table 3).

Table 3 Control parameters

5 Conclusion

The modelling, examination and simulation of the dual-stage hierarchical control strategy for coordinating two types of WECS with AC main grid are seamlessly performed in the MATLAB/Simulink environment. The battery-backed WECS-1 extracts maximum power from the wind during both grid-connected and islanding mode of operation. The battery-free WECS-2 supported by adaptive control helps to avoid power imbalance and improves system flexibility. The structure of two-stage hierarchical control consists PV/Q-f droop control as the primary stage whose task to share real and reactive power was found satisfactory. The secondary stage improves transients stability by compensating the deviations in load voltage and current, further to support overshoot damping during large load change two damping terms were added in each d-q frame. Moreover, the dual-stage control strategy also regulates DC bus voltage for WECS-1, system frequency and power bifurcation and transition of grid-connected mode to islanding mode even though load variations.