## 1. Introduction

In recent years, wind energy has been established as the fastest growing energy source among renewables. From a global perspective, more than 90 countries have been involved in the installation of new renewable wind power plants [1]. In 2015, the new global installed capacity hit the record for an increase of approximately 64 GW. During 2016, more than 54 GW were installed for a total of approximately 487 GW by the end of 2016. Conservative prognoses forecast an increment of 60 GW in 2017 with a continuous annual grow of about 75 GW by 2021. With the continued improvement in wind turbines technology and ecological concerns, the wind power is now a serious competitor against heavily subsidized energy industries [1, 2].

Doubly-fed induction generator (DFIG) is a wound-rotor induction machine with voltage injection in the rotor winding. This allows a limited speed control of the electric machine, which is sufficient to implement maximum aerodynamic efficiency by maintaining the tip-speed ratio at the nominal value at most operational conditions of the turbine.

The success of DFIG in wind energy applications lies in the reduced power converter, which is typically about 25–30% of the nominal power of the electric machine; furthermore, by current injection in the rotor, it is possible to control the reactive power injected to the electric grid, which is very important for minimizing cooper loses or reactive power compensation [3]. More than 70% of the installed wind turbines use DFIG. However, this machine is very sensitive to voltage variations in the grid because the stator is directly connected to the grid [4], in contrast to other variable-speed machines that are connected through a full-size power converter.

Sliding mode control (SMC) is a nonlinear control technique that ensures finite-time convergence of the sliding surface to zero guarantying robustness against bounded disturbances and parameter variations [9]. The main disadvantage of SMC is the chattering effect (high frequency oscillations with finite amplitude) caused by unmodeled dynamics and discretization [9]. On the other hand, power electronics are controlled by means of the injection of discontinuous signals matching with the discontinuous nature of conventional SMC; therefore, conventional SMC can be used for direct switching of power electronics on DFIG applications, avoiding modulation. SMC has been successfully implemented in DFIG control and tested under unbalanced conditions and harmonics [11, 15, 16, 17, 18]. However, the proposals given in [16, 17] require modulation, and the tested faults are moderate since these do not represent a brusque variation in the stator voltage. The SMC presented in [15, 16, 17, 18] works under unbalanced conditions but implementation of the SMC regarding the commutation of the power electronics is not discussed.

In this chapter, it is presented a SMC with the following advantages: (a) do not required modulation; (b) do not require modifications of the controller structure to withstand stator voltage perturbances (compared with classical control approach as direct-torque-control [DTC], see [5]); and (c) the controller can regulate torque and reactive power even under unbalanced conditions, which is equivalent to negative current regulation. Therefore, the proposed SMC offers a very simple alternative that requires neither symmetrical decomposition nor pulse width modulation and is not affected by parameter variation. Furthermore, the DFIG system with SMC is characterized in the frequency domain for estimating the commutation frequency of power electronics. A maximum switching frequency value is ensured by means of the addition of hysteresis in the sign function. The hysteresis value is computed applying the Tsypkin’s method, a theoretically exact technique to analyze nonlinear systems [12, 14]. Due to the nature of the power converter, the voltage gain seen by the controller is variable in time, which makes difficult to maintain the switching frequency constant. However, it is possible to compute a maximum switching frequency value (minimum hysteresis value), which provides a commutation frequency inside of the acceptable values given in the datasheet of the power electronics.

The chapter presents the dynamic modeling of the electric machine and the wind turbine, the controller design, frequency domain characterization, and finally, fault-ride through capability is evaluated analyzing the regulated current from a sequence components point of view.

## 2. Aerodynamic model of wind turbine

Horizontal axis wind turbines are used to extract mechanical power from the wind resource based on the lifting force of the rotor blades. The mechanical power is a function of the kinematic energy of the wind and the power coefficient:

The power coefficient is a function of the tip speed ratio and the pitch angle. Since very complex aerodynamic analyses are required to characterize turbine blades, the power coefficient is usually approximated using mathematical expressions such as [7]:

where
*c*
_{1} to *c*
_{7} are coefficients dependent on the blades geometry.

The tip speed ratio is the relationship between the tangential speed of the blades tip and the wind speed if it is expressed using the DFIG mechanical speed and the gearbox ratio we obtain:

Pitch angle is normally used for aerodynamically reduce power extraction when the wind speed is above the nominal value. For normal operation, it is maintained constant, while the rotor speed is controlled by the DFIG to maintain the tip speed ratio constant, for the blades model shown in
**Figure 1**
, the nominal pitch angle is zero and the nominal tip speed ratio is 8 for a maximum power coefficient of approximately 0.41. The parameters used to generate the displayed function are *c*
_{1} = 0.5 ; *c*
_{2} = 116 ; *c*
_{3} = 0.4 ; *c*
_{4} = 0 ; *c*
_{6} = 5 ; *c*
_{7} = 21:

## 3. Dynamic modeling of the DFIG

The dynamic equivalent circuit of DFIG can be expressed in an arbitrary reference frame rotating at a speed equal to ω [6, 8]:

The electromagnetic torque can be expressed as an interaction between rotor current and stator magnetic flux:

A common expression of the stator reactive power in terms of the stator voltage and rotor current is:

The second term of Eq. (13) is the reactive power required to magnetize the electric machine.

The basic scheme of a wind turbine is shown in
**Figure 2**
. A back-to-back power converter is necessary to send the required voltage to the rotor. In the grid side, it is also necessary a converter since the power flow must be bidirectional, from the electric machine to the grid at super-synchronous operation of the machine and from the electric grid to the machine at sub-synchronous operation. Grid side converter is usually controlled by cascade controller, which maintains DC-link voltage constant by regulating the grid current. The reactive power can also be controlled; hence, the wind turbine operates at unitary power factor, or it can inject reactive power to the grid similarly to an electrically excited synchronous generator. For purposes of this work, let us consider that the DC-link voltage is maintained constant by the grid-side controller.

### 3.1. Rotor-side power converter model

DFIG rotors are typically connected in star with the neutral connection isolated, the voltage if measured from phase a to the neutral point of the rotor star will be a combination of the phase voltages, which can be summarized using the following matrix equation:

Each component of the vector *S*
_{1,2,3} has only two valid states, 0 or 1. Then, each phase voltage has six different possible values:

## 4. Sliding mode controller design

It is well known from vector control that orienting the machine model presented in Section 3 in the stator flux reference frame is an effective way for decoupling active power (or torque) and reactive power control by means of rotor current regulation. In normal operation, the stator voltage vector will lead the stator flux by approximately 90 degrees neglecting voltage drop due to the stator resistance. From Eqs. (12) and (13) oriented at the stator flux direction, i.e., *λ _{sq}
* = 0 and

*v*= 0, we obtain a decoupled control system:

_{sd}From Eq. (8), the direct axis component of stator current can be expressed as:

Substituting Eq. (15) in Eq. (10):

where

The quadrature component of rotor flux can be obtained in a similar way:

Substituting Eqs. (16) and (17) in (6) and (7) and solving for

where *ω _{r}
* =

*ω*−

_{s}*ω*. Since the reference frame selected rotate at a synchronous speed,

_{m}*ω*is equivalent to the rotor current angular speed and the slip angular frequency.

_{r}In
**Figure 3**
, the equivalent system for current regulation is shown. Under normal operation, the stator flux induces a voltage in the quadrature axis loop. The induced voltage is proportional to the slip and affects only the active power (or torque) regulation loop. Under a grid fault, the stator flux is directly affected and can be analyzed as another perturbation affecting the current regulation. Analyzing the flux in positive, negative, and natural fluxes, we can see the influence of the induced voltage (perturbation) to the current regulation loop. The positive sequence flux has an induced voltage proportional to *sω _{s}
*, the slip is less than 0.3 for this type of machine; therefore, the induced voltage is low. The natural flux does not rotate; therefore, the induced voltage is proportional to the mechanical speed of the machine, and the negative flux rotates opposite to the reference frame orientation, the induced voltage is very large, proportional to near twice the synchronous speed (2 −

*s*)

*ω*[8]. If the grid fault is very large, no control strategy could withstand this kind of perturbation, since the induced voltage may be larger than the rotor voltage. For that reason, external protection devices are required, and the simplest one is the crowbar.

_{s}SMC is robust against bounded disturbances and parameter variations; hence, it is a good alternative to control perturbed plants as the DFIG model shown in
**Figure 3**
. As we want to control the torque and reactive power, the following sliding surfaces are selected:

where

On the other hand, the voltage vector may have a d component due to voltage perturbation:

Substituting Eqs. (18) and (19) in (22) and (23):

(24) |

where

Under normal conditions, all the terms dependent on
*P _{Tem
}
* and

*P*. The control signals

_{Qs }*v*and

_{rd}*v*appears in the first derivate of the sliding surface, thus the relative degree of the control system is one. Then, finite time convergence to the sliding surface and robustness against bounded disturbance/uncertainties can be achieved using the control signal:

_{rq}where *M _{d}
* ,

*M*> 0. A detailed description of

_{q}*M*and

_{d}*M*computation is given in section 4.1.

_{q}Remark: A discontinuous function is intentionally selected because the nature of the rotor-side power converter is discontinuous as well; therefore, the control signal can be easily used directly from the controller algorithm to the power converter without modulation. On the contrary, any continuous control; e.g. saturation, sigmoid function, etc. employed to smooth the discontinuous control in Eq. (26) must be modulated to be implementable in a power converter; therefore, chattering will be present no matter the control strategy used.

The desired voltage need to be send through the rotor-side power converter. The voltage seen from the stator flux reference frame is obtained using park transform:

where the reference frame angle is *θ _{d}
* =

*θ*−

_{m}*θ*.

_{sf}Using Eqs. (14) (25) and (27), it is possible to establish a relationship between *dq* and *abc* quantities:

Since the matrix *D* is not square, the Moore-Penrose pseudo-inverse is used:

where:

The constant term
*σ _{abc}
*, thus the controller is robust against parametric uncertainties; under normal conditions, the stator flux direct component (

*λ*) and stator voltage quadrature component (

_{sd}*v*) are constant. In

_{sq}**Figure 4**is shown the basic scheme of the presented controller. The output of Eq. (29) is the equivalent

*abc*sliding surface, then a function similar to sign is used to evaluate the switch state (0 means lower leg activated and 1 means upper leg activated). The resulting control system does not require modulation since the switching state is determined directly from the control system.

### 4.1. Sliding mode existence condition

For a relative degree one system

With a scalar control

The condition for satisfying the existence of the sliding mode is [9]:

The stator-flux–oriented SMC has a very similar form of system of Eq. (30). Then, existence of SMC is ensured if the following conditions are met:

Therefore, choosing *M _{d}
* and

*M*using Eq. (33) ensures finite convergence to the sliding variable and insensitivity to bounded disturbance/uncertainties. The only requirement to compute the gains

_{q}*M*and

_{d}*M*is the knowledge of the bounds of the system and the disturbance/uncertainties, ∣

_{q}*F*

_{ Qs , Tem }∣, ∣

*d*

_{ Qs , T em }∣ and ∣

*P*

_{ Qs , Tem }∣. Note that real implementation of control gains in Eqs. (33) depends of DC-link voltage

*V*, which is variable in practice, and it must be ensured that

_{DC}*V*is regulated correctly to ensure a robust performance of the rotor side of the DFIG system.

_{DC}### 4.2. Switching frequency limitation

In
**Figure 4**
it is shown the scheme of an ideal sliding mode controller; however, it requires infinite switching frequency, which is not possible in real physical systems, therefore, the most common solution for this issue is to include a hysteresis loop to the ideal sign function [10] since hysteresis makes the switching frequency finite. Note that sigmoid functions and saturation can be implemented to reduce switching frequency as well as attenuate chattering. However, these functions are continuous and/or contain linear parts requiring modulation for its application to power electronics, while a sign function with hysteresis can be injected without modulation.

A widely used method to determine limit cycles and the oscillation frequency is the sinusoidal describing function (DF), which can be used for segmented nonlinear system composed by a linear system and a nonlinear part [12], that is the case of a linear plant controlled by a relay-based control system (see
**Figure 5**
). A requirement for applying DF is that the linear system *L*(*s*) must have a low-pass filter behavior. Furthermore, only the first harmonic is considered in the analysis. However, for relative degree-one systems as the one presented in this chapter, this technique is not suitable [12]. DF will predict no oscillations because it ignores the contribution of the harmonics. On the other hand, Tsypkin’s method is an exact method in which one can select the number of harmonics to be considered, and it can be applied to estimate oscillations in relative degree one systems. Therefore, the DFIG system with SMC presented in this chapter is analyzed in the frequency domain using Tsypkin’s method.

Expressing Eqs. (4)–(11) in matrix form:

where:

The system presents a nonlinearity due to the mechanical speed *ω _{m}
*, which is dependent on the electromagnetic torque and the mechanical equation; however, since the time scales of the electrical quantities is much smaller than the time scale of the mechanical system, we are going to study system of Eq. (34) as a set of linear systems varying the mechanical speed in a range of ±30% about the synchronous speed. Other supposition is that the system is fully decoupled, that is,

*v*controls

_{rd}*i*and

_{rd}*v*controls

_{rq}*i*. So, we can obtain both transfer functions from the diagonal elements of the following matrix equation:

_{rq}where *I* is a 4 x 4 identity matrix. The diagonal transfer functions will be relative degree one systems with four poles and three zeros:

Tsypkin’s locus is defined as [12]:

The conditions required to predict a limit cycle oscillating at an angular frequency *ω*
_{0} are [12]:

In
**Figure 6**
it is shown the graphical solution for a DFIG with the characteristics shown in
**Table 1**
, the mechanical speed has minor influence at high frequencies; therefore, it is valid to consider the DFIG as a linear system (note that the number of pole pairs is not considered in (34); therefore, the mechanical speed reported is the one of an equivalent two pole machine). Supposing that the power inverter has a maximum switching frequency of

However, the control system was designed to direct control torque and reactive power, so we need to calculate the hysteresis width of those quantities, which can be easily done since the control system is decoupled, and the current direct and quadrature components are directly related with reactive power and torque, respectively.

Moreover, as can be seen from
**Figure 6**
and Eqs. (38) and (39), the addition of hysteresis can be used to attenuated chattering since the hysteresis width is directly proportional to amplitude of chattering while it is inversely proportional to the frequency.

### 4.3. Step-by-step design

The design of the SMC proposed in this section can be summarized in the next step-by-step algorithm:

1. Select the sliding mode surfaces for torque and reactive power using Eq. (20).

2. Choose the gains, *M _{d}
* and

*M*, of the controller in Eq. (26) using the conditions given in Eq. (33) to guarantying robustness.

_{q}3. Compute a hysteresis value for the torque and reactive power controllers (sign functions) using Eqs. (40) to ensure an acceptable switching frequency in the power electronics.

Then, following the step-by-step process described in this subsection, a robust SMC to regulate torque and reactive power in DFIG systems can be designed. Furthermore, practical implementation is considered in the design since a method to compute a hysteresis value, limiting undesired high frequency commutation in power electronics, is provided.

## 5. Complex power and torque under unbalanced conditions

The active and reactive power can be obtained from electrical quantities seen from a stationary reference frame:

where the operator

In case of unbalanced conditions, the symmetrical components methods can be used for simplifying analysis, since zero sequence does not produce complex power, only positive and negative sequences are analyzed:

Substituting (43) and (44) in Eqs. (41) and (42) yields:

(45) |

(46) |

On the other hand, electromagnetic torque can be obtained using the well-known equation:

Using the symmetrical components theory, an unbalance condition can be modeled with invariant positive and negative sequence components; therefore, at steady state, the derivate term of Eqs. (4) and Eq. (5) are zero leading to the following positive and negative stator flux components:

Substituting Eqs. (43) and (44) and (48) in (47):

Comparing Eq. (50) with Eq. (45), it is easy to see that the same terms appear in both equations:

The terms *P*
_{
s12} and *P*
_{
s21} are the cause of oscillation in torque and power when an unbalanced dip occurs. Since the condition for canceling torque oscillations (*P*
_{
s12} = *P*
_{
s21}) is opposite to the condition for canceling active power oscillations (*P*
_{
s12} = − *P*
_{
s21}), it is not possible to cancel both at the same time. It is preferable to cancel torque oscillations; otherwise the mechanical components may be severely damaged. On the other hand, to cancel reactive power oscillations, the following condition must be met *Q*
_{
s12} = − *Q*
_{
s21}.

## 6. Simulation results

To test the controller, a DFIG was simulated using the parameters displayed in
**Table 1**
. The blades model surface is shown in
**Figure 1**
with gearbox ratio (*η* = 85.8) rotor radius (*r* = 40 m) and air density (*ρ* = 1.25 kg\m^{3}). The nominal wind speed of 12 m/s, the nominal tip speed ratio Λ*
_{opt}
* = 7.9533 and the maximum power coefficient is

*C*

_{ p ,max}= 0.4109. The pitch controller is ideal chopping the extracted aerodynamic power to the nominal power (2 MW) for wind speed above the nominal value. Considering that the maximum switching frequency of the converter is 7000 Hz; from

**Figure 6**the desired hysteresis width is

*δ*= 90.04

*A*; therefore,

*δ*= 128 × 10

_{Qs }^{3}and

*δ*= 811.

_{Tem }The following electromagnetic torque reference is used for maintaining the tip-speed ratio at the optimal value without measuring wind speed:

On the other hand, the reactive power reference is maintained at zero.

The wind speed profile is shown in
**Figure 7**
II, the wind speed was taken from real measurements reported by the Department of Wind Energy, Technical University of Denmark [19] with values oscillating in all the operational range of the wind speed.

The power extracted by the blades is shown in
**Figure 7**
III, during the high wind speed periods, the ideal pitch controller maintains the extracted power at the nominal value of 2 MW, while the mechanical speed is controlled during the rest of the time to optimize power extraction as shown in
**Figure 7**
IV. The rotor converter nominal power limits the operational speed of the wind turbine *P _{r}
* ≈

*sP*.

_{s}The references are followed even under unbalanced grid conditions, a two-phase voltage dip is simulated at the terminals of the electric machine, the voltage dip is 20% of the nominal value. In
**Figure 7**
I, it is displayed the detail of the voltage dip. The voltage dip starts at 95 seconds and ends at 98 seconds of the simulation, the time axis in
**Figure 7**
I is chopped from 95.05 to 97.95 s, in order to better see the stator voltage waveform during the fault. As demonstrated in Section 5, it is not possible to maintain both torque and reactive power constant during unbalanced conditions; therefore, the stator reactive power is affected (see
**Figure 7**
VI) since the controller forces the electromagnetic torque to be constant. As a result, the controller injects a negative sequence current to the rotor in order to cancel torque oscillations out (see
**Figure 7**
VII), it is worth mention that other control strategies as vector control requires a double control loop for controlling positive and negative sequence separated [13], which not only complicates the current regulation algorithm but also requires sequence decoupling of rotor current, a very complex issue that is avoided by using a robust control strategy.

Finally, the filtered rotor voltage is displayed in
**Figure 7**
VIII. The controller does not require modulation and automatically injects negative sequence voltage to regulate torque and reactive power under unbalanced conditions.

## 7. Conclusions

A stator-flux–oriented sliding mode control, which regulates torque and reactive power in DFIG, is presented. The controller is not dependent on electric machine parameters and do not require modulation, injecting the desired voltage vector directly to a two-level power converter. Despite the proposed SMC controller has a variable switching frequency, which is not desired in practical applications, the switching frequency is limited by a hysteresis loop in the torque and reactive power controllers. The hysteresis value is calculated by means of the frequency domain characterization of the DFIG system with SMC, via Tsypkin’s method. Then, the safe operation of the power converter regarding commutation frequency is ensured. Furthermore, the proposed SMC is capable to reject stator flux variations providing a desired operation even under unbalanced grid conditions. Compared with classical control techniques as DTC, the presented SMC does not require the modification of the control loop. The equations for compute the control gains that ensure robustness and existence of SMC are given. Simulations validating the advantages of the proposed SMC are shown.