1 Introduction

Recent trends suggested that wind energy (WE) is one of the major contributors and rapidly growing among all renewable energy resources. In WE, doubly fed induction generator (DFIG) is the most efficient machine in contrast to permanent magnetic synchronous machine (PMSM), because of its speed control flexibility, more efficiency and lesser rating of converters. Generally, the rotor circuit connected through a back-to-back power converters and stator of DFIG is directly fed to the utility grid (Firouzi and Gharehpetian 2018). DFIG-based WE (DFIGWE) systems are sensitive toward continuous variation of wind velocity and disturbances in grid.

However, DFIGWE is penetrating toward voltage sags and fault ride through (FRT) due to fact that both stator and rotor are directly fed to DFIG through back-to-back converters. Many researchers proposed different methods to solve low voltage ride through (LVRT), VD and FRT problem with external protection circuits (Rashid and Ali 2017). The main problems associated with voltage sags are abrupt changes in generator speed, rotor current transients and sever transients of DC-link capacitor voltage. Disconnect of the wind turbines (WT) from the power grid during LVRT and VD causes waste of energy. The stop and start of wind power generator may cause a big fluctuation, which may cause power system instability (Alsmadi 2018).

Because such problems can be eliminated by using enriched controllers like field orient control (FOC), direct torque control (DTC) and direct power control (DPC) techniques are used to control the utility grid as well as wind speeds (Yong Kang and Chen 2003). FOC is the most adapted technique for DFIGWE systems, and it improves the performance of steady-state condition and also attains lower switching frequency. But FOC has it own drawbacks, which are plurality of current control loops, dependency on machine parameters and coordinate transformation. These limitations are effectively taken over by DTC technique. DTC is simple in structure compared to FOC technique, but DTC has its own disadvantage of variable sampling frequency. Because hysteresis loops are used in conventional DTC, thus to attain a constant sampling frequency, a space vector modulation (SVM) can be used instead of switching table and hysteresis loops (Arbi et al. 2009; Jaladi and Sandhu 2018, 2019a, b). SVM-based DTC-DFIG may be adopted to get quick response and smooth variation torque and flux.

This paper has made a significant contribution to DTC–FOC-based DFIGWE (DTC–FOC-DFIGWE). DTC–FOC includes combination of FOC and DTC. DTC is applied to rotor side converter (RSC) to control the rotor flux and generator speed. It also controls the both active and reactive power components indirectly, whereas FOC is applied to grid side converter (GSC) to control the capacitor link voltage and also improve the power quality of utility grid (Chang and Kong 2017). The control of DTC and FOC is decoupling to each other. In particular, DTC–FOC takes over problem related to voltage sag, LVRT and FRT. Using DTC–FOC, the problems related to DC voltage transients and rotor currents are controlled within permissible limits by proper designing of proportional and integral (PI) controllers gains and it also minimizes the torque and current ripples. DTC–FOC-DFIGWE does not require any auxiliary protection circuit (Li et al. 2018; Yang et al. 2017; Jaladi 2019; Jaladi and Sandhu 2019), and it means the complexity of the control scheme is reduced during abnormal grid conditions. Because nonlinearity in control scheme PI suffers from settling time torque and current ripples. The solution to the nonlinearities is by using nonlinear controllers like fuzzy, neural network (NN), adaptive neuro-fuzzy inference system (ANFIS) and sliding mode control (SMC).

It has been proved that SMC is a very convenient way to improve the DFIG transients, and it is very robust under a wide range of machine parameters, LVRT and VD of utility grid. The controller of the DFIG wind turbine under SMC ensures cancelation of electromechanical coupling without introducing additional modes. Moreover, this control scheme introduces additional damping which is amenable to reduce local oscillations and an overall better performance than the classical controller DTC–FOC (Zhu et al. 2018; Haidar et al. 2017). SMC has been comprehensive not only in the sense that it encompasses both the RGSCs but also in the sense that it has been applied to cases of multi-machine power systems. Moreover, a wide range of operating scenarios was considered and the new control strategy based on SMC, which is nonlinear, showed a very robust performance. A case in point is the generator model and control strategies for the study of small-signal stability of a wind turbine generator connected to an equivalent grid.

Therefore, this paper includes the analysis and design of SMC and PI-based DTC–FOC of DFIG to be employed in a WES. In Sects. 2 and 3, the transient and dynamic modeling of the DFIG is presented. Section 3 includes the control strategy for the DTC–FOC. Sections 4 and 5 demonstrate the effectiveness of the proposed control scheme on a 5.5 kW DFIG model using real-time simulator (RTS)-based OPAL-RT and MATLAB/SIMULINK.

2 Modeling of DFIG

The equivalent circuit model is based on the basic equations of the asynchronous machine. These equations are expressed in a reference frame aligned with synchronous speed, taking positive currents. The machine equations can be written in the synchronous rotating dq reference frame as follows (Zhu et al. 2017):

$$\begin{aligned} V_{qs}= & {} \frac{{{{\mathrm{d}}\phi }_{qs} }}{{{{\mathrm{d}}t} }} + {\omega \psi }_{ds} + R_{\mathrm{s}} i_{qs} \nonumber \\ V_{ds}= & {} \frac{{{{\mathrm{d}}\phi }_{ds}}}{{{{\mathrm{d}}t} }} + {\omega \psi }_{qs} + R_{\mathrm{s}} i_{ds} \nonumber \\ V_{qr}= & {} \frac{{{{\mathrm{d}}\phi }_{qr}}}{{{{\mathrm{d}}t} }} + {(\omega - {\omega _r})\phi }_{dr} + R_{\mathrm{r}} i_{qr} \nonumber \\ V_{dr}= & {} \frac{{{{\mathrm{d}}\phi }_{dr}}}{{{{\mathrm{d}}t} }} + {(\omega - {\omega _r})\phi }_{qr} + R_{\mathrm{r}} i_{dr} \nonumber \\ \phi _{qs}= & {} (L_{ls} + L_m )i_{qs} + L_m i_{qr} \nonumber \\ \phi _{ds}= & {} (L_{ls} + L_m )i_{ds} + L_m i_{dr} \nonumber \\ \phi _{qr}= & {} (L_{ls} + L_m )i_{qr} + L_m i_{qs} \nonumber \\ \phi _{dr}= & {} (L_{ls} + L_m )i_{dr} + L_m i_{ds} \nonumber \\ T_e= & {} \frac{3}{2}\frac{p}{2}(\phi _{qr} i_{dr} - \phi _{dr} i_{qr} ) \end{aligned}$$
(1)

The active and reactive powers in stator part and rotor part could be calculated as follows:

$$\begin{aligned} P_s= & {} \frac{3}{2}(V_{ds} i_{ds} + V_{qs} i_{qs})\nonumber \\ Q_s= & {} \frac{3}{2}(V_{qs} i_{ds} - V_{ds} i_{qs} ) \end{aligned}$$
(2)
Fig. 1
figure 1

Induction motor equivalent circuit in the synchronous reference frame and vector diagram of stator flux orientation vector diagram

3 Transient Behavior of DFIG

The transient behavior of DFIG during LVRT by taking induction motor model by considering rotor voltages in synchronous reference frame is shown in Fig. 1. Equation (1) is rewritten by choosing all parameters referring to stator side (Wang et al. 2017; Djilali et al. 2018).

$$\begin{aligned} {\overrightarrow{V} _s}= & {} {R_{\mathrm{s}}}{i_s} + \frac{{\mathrm{d}{\phi _s}}}{{{\mathrm{d}}t}} \nonumber \\ {\overrightarrow{V} _r}= & {} {R_{\mathrm{r}}}{\overrightarrow{i} _r} +\frac{{\mathrm{d}{{\overrightarrow{\phi }}_r}}}{{{\mathrm{d}}t}} - j{\omega _r}{\overrightarrow{\phi }_r} \nonumber \\ {\overrightarrow{\phi }_s}= & {} {L_s}{\overrightarrow{i} _s} +{L_m}{\overrightarrow{i} _r} \nonumber \\ {\overrightarrow{\phi }_r}= & {} {L_r}{\overrightarrow{i} _r} +{L_m}{\overrightarrow{i} _s} \nonumber \\ \overrightarrow{{i_s}}= & {} \frac{{{{\overrightarrow{\phi }}_s} -{L_m}{{\overrightarrow{i} }_r}}}{{{L_s}}}\,,{\overrightarrow{\phi }_r} = \frac{{{L_m}}}{{{L_s}}}{\overrightarrow{\phi }_s} + \sigma {\overrightarrow{i} _r}{L_r} \end{aligned}$$
(3)

From above Eq. (3) written as

$$\begin{aligned} \overline{V_r}= & {} \overline{V_{ro}} + \left[ {R_{\mathrm{r}} + \sigma L_r \left( {\frac{\mathrm{d}}{{{\mathrm{d}}t}} - j\omega _r } \right) }\right] \overline{i_r} \nonumber \\ \overline{V_{ro}}= & {} \frac{{L_m }}{{L_s }}\left( {\frac{\mathrm{d}}{{{\mathrm{d}}t}} - j\omega _r } \right) \overline{\psi _s}. \end{aligned}$$
(4)

At the instant of voltage dip, the forced stator flux and voltage are calculated using both post-fault and pre-fault. The resultant no-load voltage of rotor is given by

$$\begin{aligned} \overrightarrow{V} _{{r_0}}^r = (1 - p)\cdot V\cdot \frac{{{L_m}}}{{{L_s}}}\cdot s\cdot {e^{j{\omega _s}t}} - \frac{{{L_m}}}{{{L_s}}}\left( {\frac{1}{{{T_s}}} + j{\omega _s}} \right) \cdot p\cdot \frac{{\overrightarrow{u} }}{{j{\omega _s}}}\cdot {e^{{{T_s}}}} \end{aligned}$$
(5)
Fig. 2
figure 2

DTC–FOC control block diagram of DFIG-based WES

4 DTC–FOC Control

The proposed technique is a combined control of FOC and DTC. To control the capacitor link voltage, dq-axis grid currents and also enhancement power quality of grid, FOC is applied to GSC. The feedback control loops of upper portion of Fig. 2 include the three-phase grid voltages and currents, DC-link voltage. Similarly, in the lower portion of Fig. 2, feedback loops include the three-phase rotor voltage and currents. However, DTC is applied to RSC, and it indirectly controls both active and reactive power, direct control of torque and rotor flux. The block diagram of DTC–FOC-based DFIGWES is shown in Fig. 2

Based on the dynamic model of DFIG (Eq. (1)), the relation between rotor flux and d-axis rotor voltage equation is given by

$$\begin{aligned}&\left( \begin{array}{l} R_{\mathrm{s}} L_r - \\ \frac{{R_{\mathrm{s}} L_r k k_1 }}{{R_{\mathrm{r}} }}\frac{\mathrm{d}}{{{\mathrm{d}}t}} \end{array} \right) V_{dr} \nonumber \\&\quad = \left( \begin{array}{l} R_{\mathrm{s}} R_{\mathrm{r}} \\ + \left( \begin{array}{l} \frac{{R_{\mathrm{s}} L_r L_m k_1 }}{{L_s }}\\ + R_{\mathrm{s}} L_r \end{array} \right) \frac{\mathrm{d}}{{{\mathrm{d}}t}} - \\ \frac{{R_{\mathrm{s}} L_r k k_1 }}{{R_{\mathrm{r}} }}\frac{{{\mathrm{d}^2}}}{{\mathrm{d}{t^2}}} \end{array} \right) \phi _{dr} \nonumber \\&\qquad +\,\left( {\frac{{R_{\mathrm{s}} L_r k k_1 }}{{R_{\mathrm{r}} }}\left( {\omega - \omega _r } \right) \frac{\mathrm{d}}{{{\mathrm{d}}t}} - \left( \begin{array}{l} R_{\mathrm{s}} L_r \left( {\omega - \omega _r } \right) \\ + \frac{{R_{\mathrm{s}} L_s L_r k_1 }}{{L_m }} \end{array} \right) } \right) \phi _{qr} \nonumber \\&\qquad -\, R_{\mathrm{s}} L_r k_1 V_{ds} - R_{\mathrm{s}} L_r k_1 k i_{qr} \end{aligned}$$
(6)

where \(k = \frac{{R_{\mathrm{r}} L_m }}{{R_{\mathrm{s}} L_r }}\), \(k_1 = \frac{{L_m^2 - L_s L_r }}{{L_m }}\) and \(k_2 = \frac{{L_s L_r - L_m^2 }}{{L_s }}\), \(k_3 = R_{\mathrm{r}} L_s + R_{\mathrm{s}} L_r \), the transfer function of rotor flux to d-axis rotor voltage obtained by applying Laplace transform of Eq. (6) as follows:

$$\begin{aligned} \frac{{\phi _{dr} }}{{V_{dr} }} = \frac{{R_{\mathrm{s}} L_r + \left( {L_s L_r - L_m^2 } \right) s }}{{\left( {L_s L_r - L_m^2 } \right) s^2 + \left( {\frac{{R_{\mathrm{r}} L_m^2 }}{{L_s }} + R_{\mathrm{s}} L_r } \right) s + R_{\mathrm{s}} R_{\mathrm{r}} }} \end{aligned}$$
(7)

From Eq. (1), finding the relation between q-axis rotor current in terms of generator speed termed as by choosing SFO notation

$$\begin{aligned} i_{qr} = - \frac{{2 L_s }}{{3 L_m \psi _{ds} }}T_e \quad \frac{{{\mathrm{d}\omega }_r }}{{{{\mathrm{d}}t} }} = - \frac{{p }}{{J }}\frac{{3 L_m \psi _{ds} }}{{2 L_s }}i_{qr}. \end{aligned}$$
(8)

Similarly, the relation between electromagnetic torque and rotor q-axis voltage is found by using Eqs. (1) and (8)

$$\begin{aligned} \left[ {L_s \frac{\mathrm{d}}{{{\mathrm{d}}t}}} \right] V_{qr} = \left[ \begin{array}{l} \left( {\frac{{2 L_s }}{{3 L_m \phi _{ds} }}} \right) \left( {\frac{{L_s L_r - L_m^2 }}{{L_m }}} \right) \frac{{{\mathrm{d}^2}}}{{\mathrm{d}{t^2}}}\\ \quad + \frac{{2 L_s k_3 }}{{3 L_m \phi _{ds} }}\frac{\mathrm{d}}{{{\mathrm{d}}t}} + L_m \phi _{ds} \frac{{p }}{{J }} \end{array} \right] T_e \ \end{aligned}$$
(9)

Taking the Laplace transform of Eq. (9) gives the open-loop transfer function of torque and q-axis rotor voltage.

$$\begin{aligned} \frac{{T_e }}{{V_{qr} }} = \frac{{L_s s }}{{\frac{{2 L_s }}{{3 \phi _{ds} }}\left( {\frac{{L_s L_r - L_m^2 }}{{L_m^2 }}} \right) s^2 + \frac{{2 L_s k_3 }}{{3 L_m \phi _{ds} }}s + L_m \phi _{ds} \frac{{p }}{{J }}}} \end{aligned}$$
(10)
Fig. 3
figure 3

Zero-pole mapping of rotor flux during gain variation 1–5

Fig. 4
figure 4

Zero-pole mapping of torque during LVRT from 10 to 220 V

Fig. 5
figure 5

Zero-pole mapping of torque during gain variation 5–10

Using Eqs. (7) and (9), the PI controller is designed by using symmetry criteria method (SCM) to study the pole-zero mapping of rotor side controller. From Eq. (7), the rotor flux, the gain value s between 1 and 5 the pole are placing in semi-circle in imaginary axis, crossing of gain value 5 give the poles placement of real axis is shown in Fig. 3. Similarly, in Eq. (9) which includes the stator voltage, we can observe the variation of grid voltage from 10 to 220 V in steep manner; the pole placement on imaginary axis in increasing order is seen from Fig. 4. Finally, by changing the gain values of torque controller, the pole-zero placement is similar to rotor flux, and here, only difference is the gain chosen between 5 and 10 as shown in Fig. 4. Hence, from Figs. 3, 4 and 5, the pole placement is toward left-hand side of root locus, and the proposed DTC–FOC technique shows stability of the system.

5 SMC

SMC-based DTC–FOC is used to evaluate the contribution that the controllers of the wind power generation units were able to exert on grid disturbances. This showed the effectiveness that SMC has in enhancing the transient and dynamic performance of the DFIG as well as the great potential that it has in drawing an even superior dynamic performance of grid-connected wind turbines. This was further corroborated by carrying out transient studies using time-domain simulations of multi-machine power systems with embedded wind power generation. It was found that the best control strategy was: (i) to apply SMC in the machine side converter to control the rotor voltage in order to operate the wind turbine at optimum efficiency, at the desired power factor; (ii) to apply SMC in the grid side converter to maximize the damping of electromechanical oscillations by drawing on its reactive power capability. The control law was derived using a defined Lyapunov function.

From Eq. (1), the dynamic modeling of DFIG, electromagnetic torque, q-axis rotor voltage and rotor flux that can be written in stator flux orientation (SFO) is given by

$$\begin{aligned} {T_e}= & {} - \frac{3}{2}\frac{{{L_m}}}{{{L_s}}}{\phi _{ds}}{i_{qr}}\nonumber \\ {V_{qr}}= & {} {R_{\mathrm{r}}}{i_{qr}} + \frac{{\mathrm{d}{\phi _{qr}}}}{{{\mathrm{d}}t}} - \left( {{\omega _s} - \omega } \right) {\phi _{dr}}\nonumber \\ {\phi _{qr}}= & {} {L_r}{i_{qr}} + {L_m}{i_{qs}} \end{aligned}$$
(11)

The simplified torque equation (Eq. (11)) is rewritten in q-axis components as

$$\begin{aligned} {T_e}= & {} \left[ {\frac{3}{2}\left( {1 - \sigma } \right) {i_{qs}} - \frac{3}{2}\frac{{\left( {1 - \sigma } \right) }}{{{L_m}}}{\phi _{qr}}} \right] {\phi _{ds}}\nonumber \\ \sigma= & {} 1 - \frac{{L_m^2}}{{{L_s}{L_r}}} \end{aligned}$$
(12)

Torque sliding surface and derivative of torque are given by Eq. (13)

$$\begin{aligned} {S_{{T_e}}}= & {} {T_e} - {T_{\mathrm{ref}}}\nonumber \\ \frac{{\mathrm{d}{S_{{T_e}}}}}{{{\mathrm{d}}t}}= & {} \left[ {\frac{3}{2}a\left\{ \begin{array}{l} - {V_{qr}} + {i_{qr}}.\frac{{{L_r}}}{{{T_r}}} + \left( {{\omega _s} - \omega } \right) {\phi _{dr}} + \frac{{\left( {1 - \sigma } \right) }}{{{L_m}}}{L_r}\\ \left( {{V_{qs}} - {R_{\mathrm{s}}}{i_{qs}} - {\phi _{ds}}{\omega _s}} \right) \end{array} \right\} } \right] .{\phi _{ds}}\nonumber \\ {A_1}= & {} \left[ {\frac{3}{2}a\left\{ { - {V_{qr}} + {i_{qr}}.\frac{{{L_r}}}{{{T_r}}} + \frac{{\left( {1 - \sigma } \right) }}{{{L_m}}}{L_r}\left( \begin{array}{l} {V_{qs}} - \\ {R_{\mathrm{s}}}{i_{qs}} - {\phi _{ds}}{\omega _s} \end{array} \right) } \right\} } \right] .{\phi _{ds}}\nonumber \\ a= & {} \frac{{1 - \sigma }}{{\sigma {L_m}}} \end{aligned}$$
(13)

Using Eqs. (11) and (13), take the similarly notation for rotor flux using

$$\begin{aligned} {S_{{\phi _r}}}= & {} {\phi _r} - {\phi _{\mathrm{ref}}}\nonumber \\ \frac{{\mathrm{d}{S_{{\phi _r}}}}}{{{\mathrm{d}}t}}= & {} b\frac{{\mathrm{d}{i_{dr}}}}{{{\mathrm{d}}t}}\nonumber \\ b= & {} \frac{K}{{s + {T_r}}} \end{aligned}$$
(14)

The derivative of rotor flux is given by

$$\begin{aligned} \frac{{\mathrm{d}{S_{{\phi _r}}}}}{{{\mathrm{d}}t}}= & {} b\left[ \begin{array}{l} c{V_{dr}} - \frac{1}{{\sigma {T_r}}}{i_{dr}} + c{\phi _{qr}}(\omega _s - \omega ) - a{V_{ds}}\\ \quad + a{R_{\mathrm{s}}}{i_{ds}} - a\omega _s{\phi _{qs}} \end{array} \right] \nonumber \\ \frac{{\mathrm{d}{S_{{\phi _r}}}}}{{{\mathrm{d}}t}}= & {} b\left[ {{A_2} - a{V_{ds}} + a{R_{\mathrm{s}}}{i_{ds}} - {b_4}\omega _s{\phi _{qs}}} \right] \nonumber \\ {A_2}= & {} c{V_{dr}} - \frac{1}{{\sigma {T_r}}}{i_{dr}} + c{\phi _{qr}}(\omega _s - \omega )\quad c = \frac{1}{{\sigma {L_r}}} \end{aligned}$$
(15)

where \({\phi _{{\mathrm{r}}}}\), \({T _{e}}\) are the actual values and \({\phi _{\mathrm{ref}}}\), \({T _{\mathrm{ref}}}\) are the corresponding reference values of rotor flux and electromagnetic torque, respectively. Torque and flux dynamic slinging surface are given by

$$\begin{aligned} \frac{{\mathrm{d}{S_{{\phi _r}}}}}{{{\mathrm{d}}t}}= & {} - K{\mathrm{sign}}({S_{{\phi _r}}}) - G{S_{{\phi _r}}}\nonumber \\ \frac{{\mathrm{d}{T_e}}}{{{\mathrm{d}}t}}= & {} - K{\mathrm{sign}}({S_{{T_e}}}) - G{S_{{T_e}}}\nonumber \\ {V _{dr}}= & {} \frac{{ - K{\mathrm{sign}}({S_{{T_e}}}) - G{S_{{T_e}}} - {A_1}}}{{\frac{3}{2}a\left( {{\omega _s} - \omega } \right) {\phi _{dr}}}}\nonumber \\ {V _{qr}}= & {} \frac{{K{\mathrm{sign}}({S_{{\phi _r}}}) + G{S_{{\phi _r}}} + b{A_2} + ba{R_{\mathrm{s}}}{i_{ds}} + ab{V_{ds}}}}{{a\omega _s}}\nonumber \\ \end{aligned}$$
(16)

Convergence of rotor flux and torque is improved by designing \(GS_{{T_e}}\), \(GS_{{\phi _r}}\) and also choosing positive values of G and K. To get the robustness of SMC and eliminating estimated problems, Eq. 16 is modified as

$$\begin{aligned} {V _{dr}}= & {} \frac{{K{\mathrm{sign}}({S_{{T_e}}}) - G{S_{{T_e}}} - {{{\overline{A}} }_1}}}{{\frac{3}{2}{\overline{a}} \left( {{\omega _s} - \omega } \right) {\phi _{dr}}}}\nonumber \\ {V _{qr}}= & {} \frac{{K{\mathrm{sign}}({S_{{\phi _r}}}) + G{S_{{\Phi _r}}} + b\overline{{A_2}} + ba{R_{\mathrm{s}}}{i_{ds}} + ab{V_{ds}}}}{{{\overline{a}} \omega _s}} \nonumber \\ \end{aligned}$$
(17)

To examine the stability by choosing Lyapunov function V, the first derivative of V is given by

$$\begin{aligned} V= & {} \frac{1}{2}S_{{T_e}}^2 + \frac{1}{2}S_{{\phi _r}}^2\nonumber \\ \dot{V}= & {} {S_{{T_e}}}.\frac{{\mathrm{d}{S_{{T_e}}}}}{{{\mathrm{d}}t}} + {S_{{\phi _r}}}.\frac{{\mathrm{d}{S_{{\phi _r}}}}}{{{\mathrm{d}}t}} \end{aligned}$$
(18)

Substituting Eqs. (13) and (15) in the first derivative of Lyapunov function

$$\begin{aligned} {\dot{V}}= & {} {S_{{T_e}}}\left[ {{A_1} + \frac{a}{{{\overline{a}} }}\left( { - K{\mathrm{sign}}({S_{{T_e}}}) - G{S_{{T_e}}} - {{{\overline{A}} }_1}} \right) } \right] \nonumber \\&+\,{S_{{\phi _r}}}\left[ \begin{array}{l} b\overline{{A_2}} + ba{R_{\mathrm{s}}}{i_{ds}} - ba{V_{ds}} \\ \quad -\frac{a}{{{\overline{a}} }}\left( {K{\mathrm{sign}}({S_{{\phi _r}}}) + G{S_{{\phi _r}}} + g\overline{{A_2}} + ba{R_{\mathrm{s}}}{i_{ds}} + ba{V_{ds}}} \right) \end{array} \right] \end{aligned}$$

or

$$\begin{aligned} {\dot{V}}= & {} \left( {{A_1} - \frac{a}{{{\overline{a}} }}\overline{{A_1}} } \right) {S_{{T_e}}} + \left( {b{A_2} - \frac{a}{{{\overline{a}} }}b\overline{{A_2}} } \right) {S_{{\phi _r}}} \nonumber \\&-\,\frac{a}{{{\overline{a}} }}G\left( {S_{{T_e}}^2 + S_{{\phi _r}}^2} \right) \nonumber \\&+\, {S_{{\phi _r}}}\left[ {ab{R_{\mathrm{s}}}{i_{ds}}\left( {1 - \frac{a}{{{\overline{a}} }}} \right) - ba{V_{ds}}\left( {1 + \frac{a}{{{\overline{a}} }}} \right) } \right] \end{aligned}$$
(19)

The time differentiation of Lyapunov function is positive if

$$\begin{aligned} K < \frac{a}{{{\overline{a}} }}\left[ {\left( {{A_1} - \frac{a}{{{\overline{a}} }}\overline{{A_1}} } \right) {S_{{T_e}}} + \left( {b{A_2} - \frac{a}{{{\overline{a}} }}g\overline{{A_2}} } \right) {S_{{\phi _r}}}} \right] \end{aligned}$$
(20)

Better robustness of both rotor flux and torque is achieved by taking the greater positive value of K.

6 Results and Discussion

The proposed technique of a grid-connected DFIG-based WES with SMC and PI controllers is carried out in MATLAB/Simulink environment. The DTC–FOC control method generates pulses to both RSC and GSC in order to achieve less oscillations of capacitor link voltage and rotor speed smoothing of DFIG under different utility grid conditions like LVRT and VD. A stepwise wind speed profile has been applied with minimum and maximum wind speed values in order to test the system under different rotor speed conditions (motoring and generating mode of operation). LVRT and VD profile was applied to examine the system performance under more realistic wind speed profile. In this paper, DFIG is chosen at a rating of 5.5kW and its parameters are listed in Tables 1 and 2. The simulation results for proposed and PI-based DTC–FOC DFIG WES are shown in Figs. 6, 7, 8 and 9. These results represents the stator voltages (\(V_s\)), active (\(P_s\)) and reactive (\(Q_s\)) power of stator, generating speed (\(N_r\)), torque (\(T_e\)), capacitor link voltage (\(V_{\mathrm{dc}}\)), stator (\(I_Sabc\)) and rotor (\(I_rabc\)) currents, and magnitude of rotor flux (\(\phi _{{\mathrm{r}}}\)). The reference and desired values are shown in Figs. 6, 7, 8 and 9. The comparative PI and SMC LVRT results are presented in Figs. 6, 7; from Fig. 6a, LVRT of stator voltage initiation is at \(t=1.0\,\hbox {s}\) and clear at \(t=1.6\,\hbox {s}\). During LVRT, the active power and reactive power oscillations are more in PI in contrast to SMC as shown in Fig. 6b, c. In a similar manner, Fig. 6e, f shows predominant transients of torque and capacitor link voltages improved in SMC compared to PI. The generator speed ripples and settling time of proposed technique which are better than those of PI during LVRT are shown in Fig. 6d. From Fig. 6, we conclude that the actual values of toque and rotor speed are tracking its reference values, respectively. Similarly, Fig. 7 shows the stator currents, rotor currents, magnitude of rotor flux and dq-axis rotor flux. From Fig. 7a, b, the oscillations and transients of stator currents are better in proposed SMC compared to PI. From Figure 7c, d, rotor transients are more predominant in PI compared to SMC. The actual rotor flux follows the reference, but more transients presented in PI contrast to SMC and also rotor flux within the permissible limits. For better understanding of rotor flux during the LVRT is shown in Fig. 7f.

Fig. 6
figure 6

LVRT simulation results with SMC and PI DFIG-based WES a stator voltage, b active power, c reactive power, d generator speed, e torque, and f capacitor voltage

Fig. 7
figure 7

LVRT simulation results with SMC and PI DFIG-based WES a, b stator currents; c, d rotor currents; e rotor flux, fdq-axis rotor flux

Fig. 8
figure 8

Combined LVRT and VD simulation results with SMC and PI DFIG-based WES a stator voltage, b active power, c reactive power, d generator speed, e torque, and f capacitor voltage

Fig. 9
figure 9

Combined LVRT and VD simulation results with SMC and PI DFIG-based WES a, b stator currents, c, d rotor currents, e rotor flux, fdq-axis rotor flux

Figures 8 and 9 show the comparison simulation results for both SMC and PI during LVRT with VD. The conditions are the same for the above-said LVRT, but in addition to VD initiate at 1.7 s and clear at 2 s. Stator voltage is shown in Fig. 8a; the active power and reactive power transients are more in PI during clearing period of LVRT and VD compared to SMC as shown in Fig. 8b, c. The oscillations and ripples of active and reactive power are more in LVRT and zero for during voltage dip; this is due to the fact that magnitude of stator voltages is zero. Figure 8d shows the generator speed of both actual and reference for SMC and PI. Speed transients are more in PI during LVRT, and also more ripples are present in VD compared to SMC. The torque and capacitor link voltage oscillations and ripples are improved in the proposed SMC technique compared to SMC shown in Fig. 8e, f. Similarly, in Fig. 9a–d, rotor and stator transients are more predominant in PI compared to SMC during LVRT and VD. The reference and actual rotor flux follow each other, but less transients are presented in SMC in contrast to PI and also rotor flux within the permissible limits. For better understanding, rotor flux during the LVRT and VD is shown in Fig. 9f. From Figs. 6, 7, 8 and 9, we conclude that the actual values of rotor flux, generator speed, capacitor link voltage and electromagnetic follow the corresponding reference values in steady-state condition as well as LVRT and VD for both controllers, but in PI produce the more oscillations and transients during VD and LVRT grid conditions.

Fig. 10
figure 10

Experimental schematic diagram of HC-based DFIGWES

Fig. 11
figure 11

DFIG experimental validation of step change in both speed and DC-link voltage

Fig. 12
figure 12

DFIG experimental stator phase voltage, stator, grid and rotor current during step change in speed, torque and DC-link voltage

Fig. 13
figure 13

Zooming portion of Fig. 12

Fig. 14
figure 14

DTC–FOC experimental results of stator, grid and rotor current during VD and LVRT

Fig. 15
figure 15

DTC–FOC experimental results of active and reactive power, and capacitor link voltage during VD and LVRT

Fig. 16
figure 16

DTC–FOC experimental results of rotor speed, torque, stator and rotor current during step change of both torque and speed

Fig. 17
figure 17

DTC–FOC experimental results of stator and rotor current during step change of both torque and speed

Fig. 18
figure 18

DTC–FOC experimental results of rotor speed, torque, stator and rotor current during steeply change of both torque and speed

Fig. 19
figure 19

DTC–FOC experimental results of stator and rotor current during steeply change of both torque and speed

7 Experimental Results

The experimental prototype details are shown in Fig. 10. It includes the generator motor setup, back-to-back converters, host PC, dSPACE microlab box, autotransformers, sensors and digital signal oscilloscopes (DSO). Here, the HC algorithm is developed in FPGA-based DS1202. Figure 11 shows the step change of torque, capacitor link voltage, active and reactive powers. The control technique tracks the reference DC voltage and also produces less transients of both active (\(-2.5\,\hbox {kW}\)) and reactive (50 var) powers under steady-state condition. The power transients are due to step change in capacitor link voltage and generator speed. The oscillation of active and reactive powers is between \(-2\) to \(-2.2\,\hbox {kW}\) and \(-100\) to 50 var, also more settling time required. The condition of Fig. 12 shows corresponding conditions of Fig. 11; it shows the stator voltage, currents of stator, grid and rotor. The step change of torque corresponding to stator phase voltage 220 V, stator, grid and rotor currents of in between 5.5–7.5 A, 2.5–4.5 A and 8–11 A. The zooming portion of corresponding Fig. 12 is given in Fig. 13. The results of the combined VD and LVRT analysis of the proposed DFIG-based WES during 13 N-m are seen in Figs. 14 and 15. The VD of grid 0.54 and 0.45 times rated phase voltage of time interval of 0–50 s and 110–140 s respectively. Figure 14 shows the currents of stator, grid and rotor: during VD, the current transients of stator (7.5 A), grid (4.5 A) and rotor (13 A), and similarly during LVRT, current transients of stator (9 A), grid (5.5 A) and rotor (14 A), respectively. The details of Fig. 15 describe the active power, reactive power, actual and reference of capacitor link voltage: transients of active (\(-2.5\) to \(-3.2\,\hbox {kW}\)) and reactive (50 var to \(-200\,\hbox {var}\)) powers for VD of grid and during LVRT the active (\(-2.5\) to \(-4\,\hbox {kW}\)) and reactive (50 var to \(-150\,\hbox {var}\)) powers, respectively. Similarly, Fig. 15 shows the actual capacitor link voltage tracking the reference DC-link voltage, transient of capacitor link voltages during VD (270 v to 290 V) and LVRT (275 V to 298 V), respectively.

Table 1 Simulation rating of DFIG
Table 2 HIL rating of DFIG

Figures 16, 17, 18 and 19 show stator and rotor currents during step change of both torque and rotor speed: the step change of torque (8 N-m, 20 N-m at 72 s and 10 N-m at 145 s) and rotor speed (1520 rpm at 5 s and 1380 rpm at initial), respectively. Figure 16 shows the constant rotor speed and step change of torque, and corresponding currents of both stator (3.2 A, 8 A and 4.5 A) and rotor (5.5 A, 13 A and 7 A) are shown in Fig. 17. Figure 18 shows the steep change of both rotor speed (1470 rpm at 8 s, 1520 rpm at 52 s, 1380 rpm at 114 s and initial 1430 rpm) and torque. Transient of torque at the instant of speed change between 8–15 N-m, 8–14 N-m and 8–0 N-m. The current oscillations of better response are during step change of rotor speed. The corresponding numerical values are shown in respective figures. The proposed SMC-based DTC–FOC controller gives better performance during both steady-state and dynamic conditions.

8 Conclusion

The decoupling control of SMC-based DTC and FOC for DFIG-based WES shows better improved performance compared to PI. SMC shows reduced transients of stator and rotor currents, capacitor link voltage, torque and generator speed in contrast to PI controller. DTC–FOC technique aims to minimize both the speed and capacitor link oscillations during LVRT and VD. The proposed technique is also verified with HIL. The DTC–FOC method satisfactory conditions is given by

  1. 1.

    The SMC-based DTC–FOC technique shows the reduced ripples of torque, flux, currents and also smoothing of generator speed as compared to PI under ideal grid conditions.

  2. 2.

    The proposed scheme-based SMC shows the better performance of DC-link voltage oscillations, current transients, torque and flux ripples and also smoothing of generator speed as compared to PI during LVRT and VD conditions.

DTC–FOC-DFIG improves the WES performance without any auxiliary circuit up to 3.5kW range during LVRT and VD grid conditions, and it also reduced the ripples under steady-state condition.