## Abstract

This chapter addresses the problem of controlling the Complete chain of the wind turbine system using the permanent magnet synchronous generator (PMSG) connected with the Distribution network via an AC/DC/AC converters through LCL filter, the control to be applied in different parts of the system, whose objectives are three: (1) adjust the generator speed to track a varying reference signal; (2) the control of the network-side converter must be maintained the current injected into the network in a unit power factor correction (PFC); (3) regulating the DC Link voltage at a constant value. Firstly, the mathematical modeling for all system components studied in d-q frame and its state space equation are established to simplify the proposed control, thereafter a nonlinear backstepping approach is used in this work to achieve the objectives indicated above. The performance of the proposed approach is evaluated based on the various simulations results carried out under Matlab/Simulink/Simpower software.

### Keywords

- wind energy
- PMSG
- AC/DC/AC converter
- LCL filter
- nonlinear control
- backstepping approach
- PFC

## 1. General introduction

Nowadays, the demand for electrical energy continues to increase, as the intense industrialization of the last decades and the multiplication of electric household appliances has led to considerable electrical energy needs. The various traditional power stations use fossil fuels (coal, oil, natural gas, etc.) and, consequently, development, fissile sources (nuclear energy) such as uranium, hydrocarbons and Water, thermal power plants are responsible for releases of atmospheric gases. Nuclear energy has an undeniable advantage of not causing pollution, but the risk of a nuclear accident remains, and which increases over the years like the storage of non-repeatable nuclear waste. The treatment and burial of waste are real problems that make this energy unattractive for future generations [1].

All these disadvantages have prompted researchers to reduce their exploitation to solve their problems, using the so-called “renewable” energies (wind and solar). The latter are perfectly in line with the overall effort to reduce CO_{2} emissions. Wind power is clearly in the forefront. This energy is transformed into mechanical energy by wind turbines and then converted to electrical energy by generators [2]. Therefore, there are different wind turbine configurations installed in large scale; The major distinction among them is made between generator synchronous or asynchronous [3].

After having transformed wind energy into electrical energy, it is necessary to adapt it to the load it is feeding or the network to which our production system is connected, since the wind turbines considered as generator of variable power. Where the voltage supplied by the generator undergoes variations due to fluctuations in the speed of rotation thereof as a function of the wind speed. This results in a variation in the electrical power supplied to the load supplied. Moreover, the shape and frequency of the supplied voltage are not necessarily adapted to the load. To solve these problems, it is necessary to use power electronics via a generator-side rectifier and a network-side inverter, new control approaches are learned to optimize this generation of energy.

In this chapter, we use the permanent magnet synchronous generator (PMSG) a variable speed, which found a particular interest in applications of wind energy, because have many advantages such are considered stable, their small size and high energy efficiency, ability of operation at slow speed and they do not need a gearbox [4, 5]. The last years have seen rapid progress in the control of nonlinear systems related to renewable energies. This system has been treated using several control strategies ranging from simple techniques, for example so-called oriented flow control (FOC) [6], to more sophisticated nonlinear approaches, which poses a major problem which is the need to use a mechanical sensor (speed, load torque). This imposes an additional cost and increases the complexity of the assemblies, for example, feedback linearization [7], hybrid mode/slip/neuro fuzzy control [8], the direct control of the couple (DTC) [9].

In nonlinear control or having non-constant parameters systems, conventional control laws may be inadequate because they are not strong especially when the demands on accuracy and other dynamic characteristics of systems. We must appeal to non-sensitive control laws to changes in parameters, to disturbance and nonlinearities, On the other hand.

In this chapter, we present a technique to control two power converters which is based on the backstepping approach, it Draws the attention of many researchers in the field of control of electrical machines [10, 11, 12, 13]. The importance of backstepping controllers lies in: the high accuracy, fast dynamic response, stability, simplicity of design and implementation, and vis-à-vis robustness changes in internal or external parameters [14]. The rest of this paper is organized as follows. In Section 2 the mathematical model detailed and the state space of the system studies are presented, and the control proposed based on the technical backstepping for the whole system are presented in Section 3. Section 4 present the simulation example in the platform MATLAB/Simulink/Simpowers, we end this chapter with a conclusion.

## 2. Modeling of the wind system based on a synchronous generator

In the second part of this chapter we have proposed the concept of a complete wind chain. In this part, we establish a mathematical model of the whole wind chain by insisting in particular on the Multiphysics character (taking into account the mechanical, magnetic, electrical phenomena)

The modeling of the wind turbine requires the modeling of the electric generator, the power converter and the filter of the control system [15]. This section divided into two parts:

The first part is devoted to the modeling of the permanent magnet synchronous machine associated with the rectifier

In the second part, we present the modeling of the converter on the network side (inverter); connected to the grid via an LCL filter show by Figure 1.

### 2.1. AC/DC rectifier-generator modeling

The control of an electric motor is a difficult task and requires, above all, a good knowledge of its dynamic model.

This part will consist in describing the machine mathematically with its nonlinear model by putting some working hypotheses in evidence [16, 17], which allowed the study of behavior of the latter. The model adopted is based on the transformation of PARK.

Expressed in the d-q coordinates, are given the following state space form:

where

### 2.2. DC/AC inverter-grid modeling

The supply network is connected to a single-phase inverter consisting of four semiconductors (IGBT with antiparallel diodes for bidirectional current mode) displayed in two branches. A single switch on the same leg can be conductive at the same time, this converter connecting with the network through an LCL filter, the latter they minimize the amount of current distortion injected into the utility grid [18, 19]. Applying Kirchhoff’s laws, this subsystem is described by the following set of differential equations:

where

Elaborate partial model uses binary control signals, to develop the control laws, and it will be based on the average model in which each variable is replaced by its average value over a switching period.

Now, let us introduce the following notation:

where *x* represents an averaging value over a cutting period of a real signal.

The state space equations obtained up to now are put together to get a state space model of the whole system including the AC/DC/AC converters combined with the synchronous generator. The whole model is rewritten here by:

## 3. Nonlinear controller design

The main challenge of our research work is to design a control law for the permanent magnet synchronous generator, which is more powerful for monitoring control, disturbance rejection, stability, parametric uncertainties of robustness, compliance with constraints Physics and computation time, while maintaining the nonlinear aspect [20].

Since a few years, many evolutions have been made within the framework of the control of the nonlinear systems whose backstepping technique forms part. The backstepping approach is a systematic and recursive methodology for the synthesis of nonlinear control laws, the basic idea of backstepping control is to make the system looped, equivalent to cascaded order one subsystems Stable in the Lyapunov sense, which gives it robust qualities and an asymptotic global stability of the tracking error. For each subsystem, a so-called virtual control law is calculated, in order to ensure the convergence of the first-order subsystems characterizing the continuation of trajectories toward their equilibrium states (tracking errors are zero). The determination of the control laws that flows from this approach is based on the use of Lyapunov functions [14]

From the point of view of control, this is expressed in the following three objectives:

Speed control: forces the speed of the generator to follow a reference signal varies.

PFC: the current injected into the network must be sinusoidal and in phase with the AC supply voltage.

Check the voltage of the DC bus at a given reference. This is usually set to a constant value equal to the nominal input voltage of the drive.

The control to be applied in different parts of the system. The generator-side converter is mainly used to control the speed of the generator to extract the maximum output power at different wind speeds [16, 18], the mains-side converter is mainly used to control reactive power on the one hand and Maintain the voltage In the DC bus capacitor of the constant value and make the current output of the inverter in phase with the gate voltage.

A nonlinear recoil control design scheme is developed for PMSG speed tracking control.

### 3.1. Generator speed control

The system includes a fast mode (electrical currents) and a slow (mechanical) mode. The adopted control strategy uses cascaded loops, two internal loops to control the currents of the d and q axes, and an external loop to control the speed of the generator, in order to guarantee satisfactory speed reference tracking quality despite [21]. The uncertainties of the generator parameters. In this sense, we go through three steps, as shown in Figure 2. In each step, we calculate the associated error and we ensure the stability of the system by choosing the good function of Lyapunov in order to find the commands.

Usually the current of the d-axis must be set to zero in order to keep the flow constant in the air gap of the machine [22]. The current of the q-axis must follow a reference signal of the external speed loop [23].

In order, the PMSG speed is used as a reference value for a controller to capture the maximum power of the incident energy of the wind turbine.

#### 3.1.1. Step 1: calculation of the virtual control law i qref

To solve the speed monitoring problem, the velocity control error and its path designated by the reference value are defined:

Let a virtual input x used to ensure the stability of the speed loop, the dynamics of the speed control error is given by:

The asymptotic stability of the resulting closed loop system is guaranteed according to Lyapunov stability theorem. To the speed of tracking error goes to zero, the Lyapunov function is constructed for the subsystem is given by:

If this function is always positive (it is the case now) and its derivative is always negative, the error will be stable and tends to zero.

The derivative of the function is written as follows:

For the derivative of the test to be still negative, it must take the derivative of the form:

Where

Once the virtual input x1 defined in the first loop to stabilize the dynamics of (13), we define the second error on the current as follows:

#### 3.1.2. Step 2: calculation of the final control law u 1

This step makes it possible to determine the control law u_{1} of the global system

Using Eq. (21), the temporal derivatives given by:

In order to ensure the convergence of the tracking error to zero, also requires that the current be regulated and limited, we use the extension of the following Lyapunov function:

Its temporal derivative is given by the following equation:

Finally, in order to make

Where

We deduce the law of final control:

#### 3.1.3. Step 3: calculating the control law u 2

This stage interests us to stabilize the subsystem (11) which aims to force the current

The current tracking error:

Its temporal derivative is given by the following equation:

The third function of Lyapunov is selected so that:

So that the derivative of the criterion is always negative, the derivative of V1 must take the form

Using (28)–(30), the control law is given by:

### 3.2. DC/AC inverter-grid control design

Our goal is to inject active energy into the network while maintaining a very good power factor (PFC). This means that the three-phase system absorbed by the converter should be sinusoidal and in phase with the supply mains voltage [18]. We are therefore looking for a regulator that forces the current to follow a reference signal of the form. For the moment, the quantity is any real positive. The controller will now be designed by applying the backstepping control technique to the system of Eqs. (12)–(14); The synthesis ends in three stages since the relative degree of the system is equal to three when the output considered is the current.

#### 3.2.1. Step 4: stabilization of subsystem (12)

Let us introduce the following error on the current:

With

Given the Eq. (12) of the whole model, the dynamics of the error can be written as follows:

Suppose that

The derivative of this equation gives:

A judicious choice of

By following the backstepping method and to ensure a continuous stability voltage, the virtual control

Since

#### 3.2.2. Step 5: stabilization of subsystem (13)

The temporal derivative of

The virtual input

We obtain the derivative of (40)

It can easily be verified that the time derivative

where

Since

#### 3.2.3. Step 6: stabilization of subsystem (14)

The third design step consists in choosing the actual control signal u, so that all errors (

To analyze the error system, composed of Eqs. (43), (44), consider the candidate of the augmented Lyapunov function:

The derivative is given by:

Using (44)–(46), the control law of the system is given by:

## 4. Simulation results and discussion

Simulation of the wind energy conversion (WEC) system the global control system described by Figure 3 is simulated using the Matlab/Simulink (V. R2015a), operating under Windows 8. The controlled part is a wind system including the synchronous generator and the associated AC DC/AC power converters via LCL filter with the numerical values (Figures 4 and 5):

PMSG:

Network and filter:

*Controller parameters:*

Speed and id regulator:

PFC regulator:

Vdc regulator:

The speed rotation ω of the generator does not change much value, it remains practically equal to the reference value

The rate of the current

Figures 8 and 9 respectively show the current

Figures 10 and 11, respectively, show the shape of the DC bus voltage

For this second simulation part, a random wind profile was applied in order to test the degree of continuity and efficiency of the control used in this chapter.

The above figures show the results of the command by Backstepping applied to the GSAP. The objective is to control the operation of the closed loop system by varying the first reference rotational speed of 0 rad/s at 80 rad/s and then at a final value equal to the nominal speed: 157 rad/s. Figures 12–15, show the simulation results obtained using the nominal parameters of the generator. These figures describe the good system performance in a closed loop in terms of trajectory tracking and disturbance rejection on multiple speeds: low and high speed. In addition, the current d-axis of good follows its reference. Figures 16, 17, show that the output current in phase with the power supply voltage and the DC link is stable at a constant value which is check the control objectives.

The active and inverted power injected into the grid are presented at the Figure 18, the reactive power tends toward its reference value

### 4.1. Interpretation of results

From the simulation results obtained, it can be noted from the first view that the regulator based on the backstepping approach has practically slightly better performances than those of the conventional regulator, especially in dynamic conditions, Where it can be observed in all the figures presented in the simulations that the response time for is very short for the signals to restore to the maximum values, so this fast correction either of the velocity or the currents or voltages translates the continuation of our system And assured the performance of our regulator

In the injection part, the power to the network it is observed that our regulator respects the characteristics of our grid that it is the frequency or the phase on the one hand, and on the other hand the power injected to the network one notes that the power Reactive voltage tends to zero and the active power reacted with the variation of the speed of the generator when the speed reaches the maximum power is totally transmitted to the network.

## 5. Conclusion

In this chapter, the nonlinear control of the wind conversion chain based on a synchronous generator with permanent magnet controlled by the electronic converters with MLI control was presented. This electrical combination enabled us to execute the control strategy designed to this wind system studied which was the extraction of the maximum power called “MPPT”, also the injection of the current to the network with a good power factor at the “Using a speed control controlled by a backstepping approach. The simulation results obtained in this chapter clearly show an acceptable degree of efficiency of the chosen regulation which causes the system to return to its optimum point after a variation of the wind speed.