Introduction
At the present, the control algorithms have as a main limitation the processing power of the micro-processors. This is a disadvantage that many times forces the designer to utilize simpler or easier to implement strategies, putting aside more complex algorithms for predictive control or slow response problems, which are not suitable for the field of generators that must work in real time.
Most of industrial processes or in the fields of home and automotive applications, it suffices to solve control problems with simple adaptive algorithms. Furthermore, they utilize PID controls or fuzzy logic controls that use small computational capacity, and there is no need for high yielding microprocessors. That is in accordance with an acceptable variability in the change of set points or with the complexity of the systems perturbations.
In the case of a wind turbine generator, the complexity comes from the radical changes in the speed of the wind and the way the turbine blades are going to convert that available energy into a generation torque.
The generator controller must face a system where perturbations are unpredictable. While it is regulating an operating point to reach stability, it is already requiring a new operating point for the following wind conditions. The set points therefore must be varying, choosing the best alternative to allow the turbine to deliver the highest quantity of available energy at that moment, to the generator.
Among the main control problems of low power wind turbines, a bad management of the torque coming from the generator - which is at the end what becomes the available energy - can generate instability or even the destruction of its parts; damaging the blades, producing failures in the transmission or an insufficient electric generation among other problems, especially when sudden gusts of wind and random direction changes (Anaya, 2009). In the present research, one of the effects observed in a real turbine was the production of vibrations in the tower when the generator was badly regulated.
The power that a turbine can produce for a given wind condition depends very much on its design. Among the parameters that we seek to optimize is the tip speed ratio λ, lambda, which is the relationship between the speed of the tip of the blade and the speed of the wind in front of the turbine. There is an optimal point where the power is the maximum possible and it depends on the proper regulation of the blades rotation speed. Managing the generator counter torque, the speed can be regulated with an optimal value of λ which generally is a value between 6.5 to 7.5 for these sizes of turbine. In other words, we are looking for a rotation speed where the tangential speed at the tip of the blades is about seven times faster than the speed of the wind (Stiebler, 2008).
Over the past few years, several control technics have been proposed for variable speed turbines, as adaptive controllers (Nasar, 2015), fuzzy (Bhurtun, 2008), predictive (Novak, 2014), RNA (Wei, 2014) and others, especially in fully rate converted wind turbines, where the power grid can be decoupled from the generator. A multirate-sampling algorithm “MRSA” has been proposed by the authors (De la Sen, 1985), since slow controllers work with slow changes of wind velocity and improves any perturbance of unmodeled dynamics, while faster sampling controller improves the stability for rapid changes of speed. Multirate sampling is a well-known technic in classical control and is used very often in communications, audio, filters, Blue Ray players and hard disk drives.
Methods and procedures
Mathematical modeling
There is a great variability in the wind energy availability throughout the day and according to the geographic location, there could be little wind in the mornings and lots of wind in the afternoons, reducing its intensity when the night falls. There are also variations from one minute to the other and less or more quantity for each month of the year when we carry out the research. The control mathematical algorithms should be then able to solve the search of an operating point where we can obtain the highest quantity possible of energy.
Independently of the available wind energetic capacity, three regions of operation are defined according to the wind speed: the startup region with less than 5 m/s, the operation region between speeds of 5-14 m/s and the region of losses at speeds higher than 14 m/s. The proposed turbine is of low power, less than 1.8 kW. We aim to make it inexpensive and therefore we use the squirrel-cage induction motor that can be used in reverse thanks to a computer (Bose, 2006). The generator should be also inexpensive and should be able to work under the proposed conditions.
The power contained in the wind passing an area A with a velocity of v, derived from the kinetic energy of flowing air
The power generated by the turbine with a circular area is proportional to the cube of the wind velocity
Where the power Pt depends on the air density ρ, the square of the blades radius R, the cube of the wind speed, the efficiency of the parts ηmt and the power coefficient Cp, which in turn depends on the construction of the turbine regarding λ, which is the ratio between the tangential speed at the tip of the blades and the wind speed v (Stiebler, 2008)
Where v is the wind speed, vt is the speed at the tip of the blade at an R distance, in meters, from the turbine shaft center, wt is the angular speed in rad/s and n is the spin speed in rpm. The power coefficient Cp is found after building the turbine. The power curve looks like a mountain and it has therefore an optimal point of operation at the top, see Figure 1, depending on the shape of the turbine, λ is approximately 7 when the wind speed is nominal and equal to 10 m/s. λopt=7.
The speed of the system must be regulated with efficiency. There are many torque regulators for induction generators, most of them are based on power electronics using transistors IGBT as gates, which regulate the currents of the generator (Chapman, 2005), it can be used to regulate the rotor speed and helps the system to convergence to the correct λ in real time.
Solution proposal
A multirate-sampling algorithm “MRSA” is proposed (De la Sen, 1985), to regulate the tip speed ratio λ in a fully rated converted configuration, see Figure 2. The input for the controller is the actual λ and the output is the set point of torque for the TFOC. The MRSA can obtain the λ value from a speed sensor in the shaft and from a wind speed sensor in a place near the turbine. The main purpose of the MRSA is to establish a closed/loop control, in order to converge to the value of λopt.
The MRSA is an ensemble of discrete PID controls, each of them having a different sample time so that when the wind is changing rapidly, the high sample time PID should have more influence or weight on the torque output from the generator and, when the wind is more stable, the low sample time PID should have higher influence. The value or influence of each of the weights will be adaptive, according to the error variation.
The MRSA output will deliver the correction signal for the generator torque ΔTG, so that the blades shaft keeps the path towards a speed where the turbine will deliver the maximum power, in other words, an optimal λ. Faced with wind changes, the transitory error will be established where λ will not be equal to λopt and the MRSA controller will work in cascade with the TFOC controller, so that it will deliver the set point to achieve the convergence to the optimal torque Topt. TFOC is a well-known technique to control induction motors and generators (Kraus, 2002).
The output of the TFOC will be delivered to the IGBTs converter unit as three current values, which are the set points of currents for the tri-phase generator. The DSP processor will calculate the quadrature currents Iq an Id from the setpoints stablished by the magnetic field and the mechanical torque of the MRSA. Then using a current model estimator which calculates the angle of the oriented field, both currents will be converted to real tri-phase currents for the generator. The DSP will monitor and control the currents from the generator, using a closed loop PID controller, also using hall effect sensors and delivering the current with the IGBTs to the battery controller or directly to a DC load, or to a resistor brake in case of emergencies. IGBTs are necessary for the fully rated converter configuration (Anaya, 2009). IGBTs receives sinusoidal voltages and currents from the generator, but delivers DC voltages and currents to the DC-link bank of capacitors. The Battery controller monitors the DC current received from the IGBTs, controls the charge current to the batteries and monitors the load current. A DC-DC converter is necessary to change the variable voltage from the DC-link to standard batteries voltages. An DC-AC converter is necessary to supply the voltage to the load.
Optimal point of operation
The wind turbine must have a position sensor or encoder and an anemometer installed nearby. In this way, the DSP processor will be able to obtain the shaft rotation speed and the wind speed. Knowing the diameter of the blades, we obtain the tip speed and finally the wind speed ratio λ (Leihold, 2002; Jha, 2011; Coral, 2014).
In Figure 1 the relationship of Cp with λ for a 2kW turbine can be seen, with a 1.9 m radius and 3 blades. Since the power is the result of its torque times its angular speed
The equation defining the torque of the turbine, taking the efficiency ηmt into account (2), (3) and (4)
Considering Cp(λ) and λ in a single function Ct(λ)
Finally, the torque of the turbine is obtained as a function dependent of λ
The turbine torque Tt related to the generator shaft, the inertia momentum and the friction B, are the elements opposing the mechanical generator torque TG, according to the equation
where
TG |
= generator torque |
J |
= moment of inertia in the whole gyratory system |
B |
= friction coefficient |
rt |
= gear ratio in the gearbox |
w |
= angular speed of the generator, in rad/s |
In conclusion, the controller, upon obtaining the actual value of λ, utilizing the wind speed v and the rpm of the shaft “n”, according to equation (3), can make an estimate of the power generated Pte with equation (2), so that applying a proper generator torque TG, can manage the angular speed transient w, which is proportional to the turbine shaft speed, making it converge to an optimal w value, wopt.
For example, if a turbine with λopt=7, solving equation (9) for a turbine with radius R=1.9 m, gear ratio rt=9.8:1 (2 poles generator); then, the angular speed of the generator for optimal conditions will be 36.1v.
If the wind speed at that moment is 8 m/s, the optimal angular speed will be 288.8 rad/s or in rpm it will be n=2758 rpm. For periods of time relatively long, a stable wind speed implies a stable torque of the turbine Tt. In that case, the control must be concentrated in achieving the position of the optimal operating point and the generation torque TG, to obtain the optimal angular speed. For the previous example, with a mechanic efficiency of 90% nmt=0.9, the torque of the turbine in optimal conditions would be for a CP=0.48; Tteopt=(π/2) x 0.9 x (1.2kg/m3) x (1.9m)3x (0.48/7) x (8m/s)2 = 51.06 N.m. Then the torque in the generator side would be; Tte = Tteopt/rt = (51.06)/(9.8)=5.2 N.m.
In a stable state, it would be obtained according to equation (8)
In other words, the set point for the generator is to maintain an electromagnetic torque conducive to an optimal speed of operation to obtain the maximum energy benefit. It should be noted that these conditions do not conduce to the maximum torque of the turbine but it is close to that point of operation.
Finally, one arrives to the determination of the generator torque control equation
K is a constant that absorbs mechanical deficiencies and minor variations in the wind.
Turbine with a MRSA control
The MRSA controller is used to manage the generator torque TG set point, and is composed or structured of five PID working with different sample times. Initially the first tests have been made with 5 PIDs to compare and analyze the behavior with respect to other strategies. A PID is analyzed in analogic form and later it is discretized; then, the multiple-time sampling techniques are applied.
For any time, the wind speed value v can be read with an anemometer and the turbine shaft rpm are read with an encoder, see Figure 3. Values “v” and “n” to start the calculation of λ using equation (3).
The PIDs will start with an initial weight of one and then they start to change, adapting to the change in the wind, so they will work with the tip speed ratio error regarding the optimal ratio; then it will calculate the generator torque TG and make it converge to the optimal torque, in accordance with equation (11), where the variation of λ regarding the time is proportional to the variation of the generator torque TG.
The error has been defined as the difference between the optimal lambda λopt set point and the actual λ determined by the sensors, where λopt is the blades tip speed ratio, at the best conditions for the optimization of energy
The PID analogic equation has the form of
Where “e” is the error as a function of time and the constants Kp, Ki y Kd are the tuning PID constants. The constants depend on the turbine parameters, there must be a tuning process to obtain the correct values.
Because we are dealing with a digital computer, the variables are denoted in relation to the sample k, in other words, one obtains λk.
The error equation for a discrete PID controller is
And the error variation is
The PID discrete equation has the form of
Where “z” is the discrete variable in Z transformed. Making a change of variables
We obtain the discrete equation
Where e[k] is the λ error and its previous states e[k-previous state]; and u[k] is the correction control signal ∆TGK delivered to the TFOC cascade controller, to obtain the torque of the corresponding generator, see Figure 4.
Multirate-Sample adaptive control
Among the contributions of this project, we propose that in the solution of the discrete PID, we use not only one sample time but rather a group of 5 PIDs with different sample times that should not be multiples of each other except for just one PID having the maximum speed and being multiple of all the rest. The number of PIDs depends on the DSPs processing capacity. Same approach could be reached with any other strategy algorithms instead of PIDs. The simulation model is shown in Figure 5.
Each PID will find a solution to the generator torque ΔTG[i], where the “i” index indicates a solution to the control problem but found at different sampling frequencies. The equation of each PID changes to
The sample times can have a common multiple with that of high frequency, but we should try to avoid that they are multiples among themselves. The purpose is that the total solution is indeed a sum of partial solutions, whose results come from a discrete series of PIDs. If there are even multiples, for example, a large part of the partial solutions is going to be repeated in each PID, therefore, the following restriction can be set up.
Finally, each ΔTGi will have a weight in regard to the total control signal ΔTG, so that the weights will be adjusting in an adaptive way, to the speed at which the error is changing.
The following step is to establish the adaptability of the weights Wi for each of the PIDs solutions in such a way that it adapts to the current conditions of the error and its derivative and, in addition, guarantees convergence, following criteria such as Lyapunov (Rau, 1993; Nasar, 2015; Coral, 2014). The error variation allows us to have an idea about the error direction in a near future; that is why they are used to assure the convergence. In Matlab a function “AdaptaPesoX” in C language has been prepared for each sample time X, the input is the λ error, which is sampled at different frequencies, and the outputs are the weights, see Figure 6. The output of the functions of adaptability also end in the workspace as a gain (“GananciaX” = weight Wi) for each of the PIDs.
Adaptive criteria
After establishing a criterion for the weights Wi, a table is prepared with regions that will depend on the values of the error and its derivative, for each individual sample ki,. A range of the error and its derivative is established to select the region
In this way, a rating is obtained for errorki
-
MN denotes a very negative error
errorki < - errmáx
-
MDN moderately negative
errorki < - errmín
-
C centered near zero
-errmín < errorki <errmín
-
MDP moderately positive
errorki > errmín
-
MP very positive
errorki > errmáx
Likewise, the same criteria are established for Δerrorki
The simulation processes
The wind pushes the blades, and these generate a torque at the turbine shaft, causing the acceleration of the system. The wind speed will be continuously recorded with an anemometer, likewise a reading of the speed of the shaft, will be done so that it can calculate the value of the rate of lambda λ. It can be observed in Figure 5, the difference between the calculated and the optimal lambda λ opt produce the error value lambda or error of rate Eq. (12), which enters the block MRSA. Internally the error of rate lamba λ is sampled in five different frequencies and each of them is delivered to a PID controller Eq. (19), which calculate the individual control actions for each frequency. It seeks to solve five control actions at different frequencies, not multiples between each other, to then integrate them into one Eq. (20). Each of the five control actions obtained shall be multiplied by a variable weight Eq. (21). To obtain the variable weights, the derivative of the error is obtained, which, together with the error enter a block of calculation to find the corresponding variable weight. Adaptation of weight block allows to give higher priority to the PID that allows the error to decrease more efficiently at that time, as described in the introduction. This is made by use of the equations (22 to 25) using a program with the adaptability criteria, programed in the c language. Then the values of control actions are added and the final control action is obtained, as the output of the block MRSA. The output of the MRSA is the Torque set point for the block of the field oriented controller FOC. The generator controller FOC will produce the necessary torque in order to lead the speed of the shaft until a frequency where the error of Lamda is reduced Eq. (11), because the rate Lambda depends directly of the shaft rpm Eq. (3). In the simulation, the moment of inertia, the friction and the difference of torque between the generator and the turbine are the input data to calculate the shaft speed, and then that resulting speed, converted to rpm is feedbacked to the turbine model to obtain a new torque. See Table 1 for the simulation data.
Symbol | Parameter description | Value | Unit | Symbol | Parameter | Value | Units |
---|---|---|---|---|---|---|---|
Turb. | Gen. | description | |||||
R | Turbine radius | 1.9 | m | Pnom | Nom. Power | 2.4 | HP |
v | Nominal wind speed | 10 | m/s | Tn | Nom. Torque | 4.98 | N.m. |
Cp opt | Power coefficient | 0.48 | -- | N nom | Nom. RPM | 3460 | r.p.m. |
ηmt | Mechanic Efficiency | 0.88 | -- | I nom | Nom. current | 7 | A |
Potopt | Opt. Turb. Power | 3688 | kW | η | Efficiency | 80.8 | % |
λ opt | Tip speed ratio | 7.05 | -- | Cos φ | Power factor | 0.83 | --- |
wtopt | Angular Speed | 36.86 | rad/s | Rs | Stator res. | 0.9486 | Ω |
ntopt | Turbine RPM | 352 | r.p.m. | Rr | Rotor res. | 0.7114 | Ω |
Ttopt | Opt. Turb. Torque | 88 | N.m. | Ls | Stator ind. | 0.00373 | H |
RT | Gear ratio | 9.83 | -- | Lr | Rotor ind. | 0.00388 | H |
ngopt | Generator RPM | 3460 | r.p.m. | Lm | Mutual ind. | 0.0923 | H |
Jt | Total Mom. Inertia | 1.05 | kg.m2 | JG | Gen. Inertia | 0.015 | kg.m2 |
Results and discussions
The controller simulation was carried out in the mathematical toolbox Matlab with Simulink tools, scripts and functions, and the SimPower Systems tool. Figure 6 shows the block diagram with the generator controlled by the cascade TFOC with the MRSA control, on the right-hand side is the turbine model with the output Tm in p.u.
The simulations have been made in base of a 2.4 HP induction generator and an isolated wind turbine of 3.8 m in diameter, which are very common in countries with towns who don’t reach the electric power systems. Table 1 shows the parameters used on simulations. The sample time Ts, for the solution of the simulation, was sought from 4 times to 16 times higher than the maximum frequency of 5 kHz, i.e up to Ts=2 uS. The generator is a modified model of the AC Drives of FOC Induction Motor Drive library, to which the rectifier and the chopper were removed to use it as a generator and not as a motor. In addition, a 150000uF power capacitor was added.
The turbine is started from a rest state with a nominal wind speed of 10 m/s, see Figure 7. The starting torque of the turbine diminishes because of lack of speed according to the torque coefficient CT that, associated with a total inertia momentum Jt of 1.05 kg.m2, would delay the startup process. For this reason, the MRSA helps the system by turning on the generator in a motor mode for about 2 seconds, fed by a 310V battery. In this way, enough speed is achieved to auto-generate the reactive power that the generator needs to feed itself. After 2 seconds the generator torque decays and inverts, in order to generate and feed the battery.
In Figure 7, the simulation is shown with a duration of 15 seconds long. The first graphic shows the Lamda Error converging to zero and the second one Lambda is converging to 7. The next two graphics are the speed of the generator and then the turbine speed in r.p.m. The nominal generator speed is 3460 r.p.m. and the turbine 352 r.p.m. The next two graphics are the turbine and the generator torques. The startup is a torque command as a motor of 2.2-3.4 N.m with a 2 second ramp up time; then it finally falls to -3.45 N.m; as a generator. In this way, it can be tested if it is charging the DC bus. The last two graphics shows the power generated in the turbine and the last one the power in the batteries, who has the negative values because it is bee charged.
In Figure 8, the simulation shows the simulation results of the adaptive Weights W0, W2 and W4. They have been adjusted to change or alternate around the value one. Each Weight has three graphics in Figure 8, first is the Lambda error, then the derivative of the error and the third graphic is the value of the Weight. In the fourth graphic, the Lamda λ error can be observed, as it converges to cero.
Conclusions
This paper presents the application of a Multi-rate sampling technique to the control of turbine generator systems. It has been shown that an adaptive structure of different control algorithms, processing in different sample times and with different weights of influence, can be used to establish a powerful control algorithm. The method is capable of adapt to the different speeds of the wind in real time, converging to the optimal speed and changing the weights of their influence for each circumstance.
Nowadays the use of intelligent controllers with new strategies such as the MRSA, genetic algorithms, among others, are having more importance and thanks to the power of DSPs, we can count nowadays with more robust and trustable machines.
The multirate-sampling algorithm technique, MRSA, has proved to be successful in laboratory tests where it was given extreme operation conditions. The use of the error and the error variation together with the adaptation of the weights Wi, reproduce in some way the criteria of convergence and stability.