APP下载

A novel flow control scheme for reciprocating compressorbased on adaptive predictive PID control①

2020-10-09LiuWenhua刘雯华ZhangJinjieZhouChaoWangYaoSunXuHongHuaibing

High Technology Letters 2020年3期

Liu Wenhua (刘雯华), Zhang Jinjie②, Zhou Chao, Wang Yao, Sun Xu , Hong Huaibing

(*Compressor Health and Intelligent Monitoring Center of National Key Laboratory of Compressor Technology, Beijing University of Chemical Technology, Beijing 100029, P.R.China) (* *Beijing Key Laboratory of Health Monitoring Control and Fault Self-Recovery for High-End Machinery, Beijing University of Chemical Technology, Beijing 100029, P.R.China)

Abstract

Key words: reciprocating compressor, capacity control, predictive PID control, internal model control (IMC)

0 Introduction

Reciprocating compressors are key equipment most commonly used in oil extraction, gas production, oil refining, chemical industries, refrigeration, and gas transmission[1]. But, in practice, excess gas is compressed repeatedly resulting in a large amount of energy waste since the capacity of the compressor is usually regulated by backflow. To solve the high energy waste problem of reciprocating compressor, many capacity regulation methods for reciprocating compressors have been developed, including intermittent operation of compressor, suction-gas throttling scheme, cylinder unloading scheme and jacking suction valve backflow scheme[2-4]. With the advantages of wide adjustable range and high energy saving, the method by controlling suction valve has become the most popular method to solve the high energy consumption of reciprocating compressor[5,6].

The control nature of the exhaust flow regulation of the reciprocating compressor belongs to pressure control. Since reciprocating compressor is usually a two-stage compressor or more, the whole pressure control has strong coupling and nonlinearity. However, the operating condition of the compressor requires that the pressure of the buffer tank should not fluctuate greatly during the flow regulation process, which is a great challenge to the pressure control of the system with strong coupling and nonlinearity. Wang et al.[7]designed a set of compressor capacity control system by using s7-300 series programmable logic controller, the exhaust pressure of each stage of the compressor was controlled by the method of recursive refluxing step by step, and the load of each stage was automatically calculated by PID controller. Refs[8,9] also used PI controllers to control pressure. However, due to the coupling effect between different stages, the controlling overshoot led to obvious pressure fluctuation, and the regulation effects were not satisfactory. In Ref.[10], the internal model controller was used instead of traditional PID controller to optimize the control effect of flow regulation of two-stage reciprocating compressor, which achieved good performance. However, the accurate modeling of the compressor was required, and the settling time was long.

In most applications, considering the process stability or limited hardware conditions, the manual mode, that is, setting exhaust flow manually is used for flow control. In this mode, it is necessary to constantly adjust the set exhaust flow rate, due to the change of the inlet temperature, pressure and other operating conditions. To solve this issue, a novel compressor flow control scheme based on intake temperature and pressure ratio is proposed.Firstly, the cylinder intake model under the capacity regulation condition is established to calculate the load of the 1st stage cylinder at different intake temperatures. Secondly, the pressure ratio of each stage of the compressor is controlled by predictive PID controller.

To solve the problem of coupling relationship between different stages, the multivariable grey prediction model is used. The deviation between the predicted value and the set value is input into the PID controller for automatic load calculation to ensure the rapidity and stability of pressure control. Furthermore,the adaptive proportion coefficient is introduced to prevent the deterioration of control performance due to the decrease of prediction model accuracy. It is not easy to find a set of PID control parameter to coordinate the rapidity, overshoot and steady error of the system. Therefore, an improved particle swarm optimization algorithm is adopted to obtain the optimal control parameters.

This paper is organized as follows. Section 1 introduces the composition and working principle of the stepless capacity regulation system. Section 2 describes a novel flow control scheme. The comparison of simulation results among adaptive predictive PID (APPID) control with traditional PID control and internal model control is analyzed in Section 3. Section 4 introduces the application case of the control scheme proposed in this study. Finally, Section 5 concludes the work.

1 System composition and principle of regulation

The stepless capacity regulation system (SCRS) for reciprocating compressor is mainly composed of hydraulic mechanism, actuator and control unit. The hydraulic mechanism includes hydraulic oil station, accumulator, high-speed solenoid valve, hydraulic pipeline, etc., to provide the required oil pressure for the actuator.The actuator is composed of compressor suction valve, actuating cylinder and unloader.The control unit includes controller, solenoid valve drive module, upper computer and so on.The structure diagram of a two-stage reciprocating compressor equipped with SCRS is shown in Fig.1.

Fig.1 Composition of stepless capacity regulation system

The actuator driven by the hydraulic pressure control the opening and delayed closing of inlet valve to regulate the exhaust flow. Therefore, SCRS makes a new backflow process in addition to the original work cycle. By controlling the duration of the backflow process accurately, the accurate control of different exhaust flow can be achieved. The working principle of the system is shown in Fig.2.

Fig.2 Schematic diagram of SCRS

The working cycle of the reciprocating compressor under the capacity regulation condition includes the following 5 processes.

1) Expansion process: curve A-B. The pressure of the high pressure gas remaining in the cylinder clearance gradually decreases after expansion, and the inlet and exhaust valves are closed.

2) Suction process: curve B-C. When the pressure in the cylinder is lower than a certain value, the inlet valve opens automatically under the action of pressure difference, and the suction process ends at point C.

3) Backflow process: curve C-Cr. At point C, the high speed solenoid valve is energized, and the suction valve is forced to open by the actuator driven by high hydraulic oil and remains open. The air being sucked into the cylinder is returned to the intake line without compressed through the jacked suction valve.

4) Compression process: curve Cr-Dr. At the end of the backflow process, that is, at the point Dr, the high-speed solenoid valve is cut off, the actuator is withdrawn under the action of the unloader spring, and the suction valve is closed under the action of the pressure difference, and then the compressor enters the compression process.

5) Exhaust process: curve Dr-A. The exhaust valve opens automatically under the action of differential pressure when the pressure in the cylinder is higher than a certain value. The compressor enters the exhaust process.

Through the above new working cycle, the excess capacity is returned to the inlet pipe through the inlet valve and no energy is wasted. Thus, it can be seen that the area of the dynamic pressure indicator diagram of the compressor decreases significantly (as shown in Fig.2) and the power decreases.

In addition, the main control objective of the SCRS is to ensure that the pressure of each stage exhaust buffer tank can quickly track the set value and remain stable under disturbance by controlling the load of the front and rear cylinder of the buffer tank.

2 Flow control scheme

To regulate the capacity of the compressor, it is necessary to adjust the pressure ratio of each stage of the compressor. The proper pressure ratios enable the compressor to work with best efficiency, which not only reduces the energy waste of the compressor, but also ensures the safety and stability of the compressor. Therefore, the novel flow control scheme based on intake temperature and pressure ratio is proposed.

2.1 The first stage load calculation method

The total inlet flow of the compressor varies with the inlet temperature and pressure. Therefore, a novel load calculation method is adopted to calculate the compressor inlet load (1st stage load). The 1st stage load is the ratio of the actual required exhaust flow to the current full load suction flow (standard condition).

The narrow channel flow model is applied to calculate compressor inlet flow. The mass flow equation of the gas with adiabatic flow in the narrow channel is as follows[11]:

(1)

where,mrepresents the mass of the gas,αrepresents the flow coefficient,Arepresents the channel area,kis the specific heat ratio,νis the specific volume of the gas in the cylinder,Tinis the gas temperature of the tight narrow passage,Rgis the general gas constant,PinandPoutrepresents the pressure of the gas flowing in and out of the narrow passage, respectively.

According to the working principle of the compressor, the pressure in the cylinder during the suction process of the compressor can be expressed as[12]

(2)

The real-time volume of the cylinder when the piston moves in the cylinderVcyis

(3)

where,αhis the clearance coefficient of the first cylinder,Vhis the piston stroke volume of cylinder,λis the ratio of cylinder connecting rod length to crankshaft radius,V0is the clearance volume of cylinder.

Combined with Eq.(1) and Eq.(3), the single-cycle full-load intake capacity of the compressor can be expressed as

(4)

where,M1srepresents the suction mass flow of the 1st cylinder.M1sis converted to standard gas volume flow rateQ1s.

(5)

where,Tis absolute temperature,Mis the molar mass of gas,Pis the standard atmospheric pressure,ωis the compressor speed. The actual flow rate required by the production process at timetisQ(t). Therefore, the load of the 1st stage cylinder of the reciprocating compressor at timetcan be expressed as

η1(t)=Q(t)/Q1s

(6)

2.2 The load calculation method based on APPID

In this paper, the predictive control is combined with PID to deal with the time delay and nonlinearity of the system. The dynamic prediction model is used to solve the system’s delayed deviation, and the deviation signal is sent to the controller in advance. The control signal is timely applied to the controlled object, so as to reduce overshoot and stabilize the regulation process quickly. The control flow chart is shown in Fig.3. The grey prediction model can effectively overcome the influence of system delay by predicting the system output at the future time.

Fig.3 Adaptive grey predictive PID control structure

2.2.1 Multivariate gray prediction model

The grey prediction model is applied to predict the pressure change in advance. There is a strong coupling relationship between each stage cylinder load and each stage buffer tank pressure. In order to solve this problem, this work transforms the multivariable system into several multi-input single output subsystems. The control problem of multivariable system is transformed into several single output subsystem control problems. For each subsystem, grey system prediction modelGM(1,N+1) is adopted to predict the output of the subsystem. The block diagram of grey system prediction modelGM(1,N+1) is shown in Fig.4.

Fig.4 GM (1, N+1) block diagram of grey system

The time series of theith subsystem of the multivariable system is as

(7)

(8)

where,i=1,…,N;nrepresents the dimension of the data.

The gray differential equation ofGM(1,N+1) model can be expressed as

(9)

(10)

where,

(11)

(12)

By discretizing the gray Eq.(9), the following expression can be obtained:

(13)

where,Tis the simple time. By performing I-AGO, the predicted results can be obtained as

(14)

In the control process, the data has a certain timeliness. The parameters of the grey model are updated repeatedly to ensure that the predicted value of the model can accurately and timely reflect the real situation of the controlled object[13]. The parametersai=[ai,bi1,…,biN]Tare updated in real time.

2.2.2 Adaptive predictive PID

In order to prevent the deterioration of the system regulation effect due to the low prediction accuracy of the prediction model, the adaptive proportion coefficientz(0≤z≤1) is introduced. When the prediction accuracy of the prediction model is high, the proportion coefficientzis large, and PID control is dominant. On the contrary, when the proportion coefficientzis taken as a small value, the controller becomes the traditional PID control.

According to the grey model, the predicted output value at timek+hcan be calculated. The predicted error can be expressed as

The actual measurement error can be expressed as

The adaptive proportion coefficientzis introduced, the system error signal input to PID controller is

(15)

The parameter proportion coefficientzcan be adjusted according to the prediction accuracy of the model.

The control signal increment can be expressed as

△η(k)=Ae(k)-Be(k-1)+Ce(k-2)

(16)

where,Zsis the sample time,Kpis the proportional gain,TIis the integral time,Tdis differential time. The actual control signal loadη(k) at timekis

η(k)=η(k-1)+△η(k)

(17)

η(k-1) is the load ratio at timek-1.

2.2.3 PID parameter optimization based on PSO

The PID controller parameter optimization has always been the focus of scholars. The control performance depends on the choice of parametersKp,TI,TdandZs. The particle swarm optimization (PSO) algorithm is a fast and efficient swarm intelligence algorithm, which can obtain the best values of parametersKp,TI,TdandZs.

In the final stage of convergence of the traditional PSO algorithm, the algorithm falls into the local optimal value, which is caused by the decrease of particle swarm diversity, and the convergence efficiency is low because the particles are easily trapped in the poor search area and it is difficult to jump out. In this work, the standard particle position and speed update algorithm is improved as

Vi(k+1)=ω(k)Vi(k)+c1r1(Gbest.i-xi(k))

+c2(k)r2(Pbest.i-xi(k))

(18)

xi(k+1)=xi(k)+Vi(k+1)

(19)

c2(k)=β(k)c2

where,ω(k) represents the inertia weight,ωstartis the initial weight,ωendis the inertia weight when the iteration reaches the maximum number,Tmaxis the maximum number of iterations,c1andc2are positive constant parameters usually in the range of [0 2] called acceleration coefficients and known also as the cognitive and collective parameters,β(k) is the adaptive descending factor of the optimal solution of individual history, and its value in the range of [0 1],r1andr2are random variables generated for each speed update between [0 1],Vi(k) is the speed of theith particle at each iterationk,xi(k) is the position of theith particle at each iterationk. In order to prevent the particle from searching blindly, the position and speed of the particle are limited. At lastPbest.idenotes the local best position of theith particle at each iterationk, andGbest.idefines the global best position at each iterationk.

The PSO algorithm is used to optimize multivariable PID controller parametersP.

P=[Kp1,TI1,Td1,Zs1,…,KpN,TIN,TdN,ZsN]

The objective of parameter optimization is to find a group of optimized multivariable PID parameters, so that the system response speed is faster, and the overshoot is smaller, the settling time is shorter. In this work, quadratic control indicators are adopted.

J=ET(k)QE(k)+ηT(k)Rη(k)

(20)

where,

Q=diag{q1,q2, …,qN},

R=diag{r1,r2, …,rN},

E(k)=[e1(k),e2(k), …,eN(k)]T,

η(k)=[η1(k),η2(k), …,ηN(k)]T.

The fitness function is taken asf=minJ, the optimization objective is to minimizeJ.

3 Simulation

To verify the effectiveness of the adaptive predictive PID, the two-stage reciprocating compressor is taken as the research object. The simulations among internal model control (IMC), conventional PID control and APPID control are carried out.Based on the two-stage compressor in Ref.[10], the relationship model between load and buffer tank pressure is expressed as the following differential equations.

(21)

where,p1andp2represent the pressure of the 1st- stage buffer tank (absolute pressure) and the pressure of the 2nd-stage buffer tank (absolute pressure),p0is the standard atmosphere.The parametersη1andη2represent the 1st-stage intake load ratio and 2nd-stage intake load respectively.ξ(0≤ξ≤1) represents the exhaust valve opening coefficient of the secondary buffer tank.

For the flow control of the two-stage compressor, the distributed control scheme is adopted, that is, the 2nd-stage pressure controlled by the 1st-stage load, and the 1st-stage pressure controlled by the 2nd-stage load. The sampling time is fixed as 1s. The performance is best when the prediction step size of the 1st and 2nd stage of the APPID controllers are 2 and 15 after several times of trial and error.The PSO optimization method is used to optimize the parameters of PID controller and APPID controller. The parameters of PSO algorithm are set as follows. Population size 50, particle dimension 6, maximum number of iterations 20, inertial weight declines gradually from 0.9 to 0.3, accelerationc1=1.494,c2=1.494, and the optimized results are shown in Table 1.

Table 1 Optimized PID controller parameters

Att=0 s, a 60 kPa positive step signal is applied to the 2nd-stage pressure setting value. Att=300 s, 60 kPa positive step signal is applied to the 1st stage exhaust pressure set value. Whent=500 s, a square-wave disturbance signal with duration of 100 s and amplitude of 30 kPa is applied to the 2nd-stage pressure. The simulation results under different controller are shown in Fig.5 and Fig.6. As can be seen from the figures, APPID controller has a significant improvement over the traditional PID controller in controlling overshoot. Compared with internal model controller, there are significant advantages in settling time while maintaining no overshoot.

In order to further analyze and compare the advantages and disadvantages of different controllers, the control performance indicators in the time domain are summarized as shown in Table 2. It can be seen that PID controller has the shortest settling time, but large overshoot. The internal model controller has no overshoot, but the settling time is the longest and the control performance become poor when overcoming the fixed value disturbance. The advantage of the APPID controller is the integration of the internal model controller and the PID controller, which not only has no overshoot, but also a short settling time, while maintaining the ability of the PID controller to overcome the disturbance.

Fig.5 The 1st stage pressure change trend diagram

Fig.6 The 2nd stage pressure change trend diagram

Table 2 Performance index of time domain control effect

In order to further analyze the robustness, the opening coefficient of the exhaust valve is changed and the simulation is carried out under the original control parameters. The results are shown in Fig.7 and Fig.8. After the change of opening coefficient, the overshoot of PID controller increases. The internal model controller settling time increases, and in the case of a fixed value disturbance, oscillation and steady-state error occur. However, the APPID controller still has a high control performance. The results show that the APPID has a strong robustness after parameter optimization.

4 Application

The flow control scheme based on temperature and pressure ratio has been successfully applied to the flow regulation of air compressor and achieved good application effect.

There are 3 4M16 air compressors running in parallel in the air booster device of Sichuan Meifeng Chemical Co., Ltd. The rated exhaust flow of a compressor is 6 400 Nm3/h, the rated power is 1.3 MW, and the speed is 375 rpm. Due to the change of gas consumption and ambient temperature, the exhaust flow of the device is large when 3 air compressors are running. However, the flow of the device is too small if only 2 compressors are running. In order to regulate the exhaust flow of the device, the ‘one-back-one’ backflow valve at the 1st stage of each compressor and the total vent valve are currently used, as shown in Fig.9.

Fig.7 Trend diagram of pressure change in the 1st stage when model mismatch

Fig.8 Trend diagram of pressure change in the 2nd stage when model mismatch

Fig.9 Original exhaust flow control scheme

Although the structure is simple and can ensure smooth flow regulation of the device, it inevitably causes excessive power consumption of the 3 compressors. In order to solve the problem of energy waste caused by excessive exhaust, SCRS is added to the unit air compressor 103A. Its configuration scheme is shown in Fig.10. The overall exhaust flow of the device is regulated by adjusting the exhaust flow of unit 103A, and the backflow valves of the other 2 compressors are closed. The control structure diagram is shown in Fig.11.

The 1st stage load is calculated by the set exhaust flow and inlet temperature, while the 2nd stage, 3rd and 4th stage load are controlled in real time by APPID controller to ensure the pressure ratio of each stage of compressor.

Fig.10 Topology of capacity regulation system

Fig.11 System control flow chart

The temperature difference between day and night causes the change of compressor exhaust flow. The operating data of the system for consecutive 28 hours are analyzed, as shown in Fig.12. It can be summarized that there is big difference in the inlet temperature between day (corresponding time period in Fig.12 is 8-20 h) and night, with a maximum temperature of 22 ℃ and a minimum of 7 ℃. Based on the temperature and pressure ratio flow control scheme, the 1st-stage load is adjusted according to the inlet temperature. The corresponding load is 66% at the minimum and 92% at the maximum. The APPID controller adjusts the load of other stages according to the set pressure ratio.

Fig.12 The 1st stage load and inlet temperature

It can be seen from Fig.13 that the exhaust flow also fluctuates in a small range near the set value of 16 850 Nm3/h. The positive and negative deviations are 100 Nm3/h and 200 Nm3/h respectively.

Fig.13 Exhaust flow curve

Fig.14 shows the effect of using APPID controller to control the compressor pressure ratio. The pressure of the first stage buffer tank is reduced from 120 kPa to 90 kPa, and there is no overshoot in the adjustment process. The adjustment time is 50 s. The pressure fluctuations of the 2nd and 3rd stage buffer tanks are 15 kPa and 34 kPa, respectively. When the pressure of the 2nd stage buffer tank increases from 400 kPa to 460 kPa, the adjustment time is 90 s without overshoot. The pressure fluctuation of the three-stage buffer tank is 20 kPa, while the pressure fluctuation of the 1st-stage buffer tank is less than 2 kPa.The pressure of the 3rd stage buffer tank increases from 1 000 kPa to 1 300 kPa, and there is also no overshoot in the adjustment process. The adjustment time is 75 s. During the adjustment process, the pressure of the 2nd stage buffer tank fluctuates by 6 kPa, while the first stage is not influenced. This shows that APPID can effectively overcome the influence of system delay on the adjustment performance and realize the pressure adjustment process without over-setting, and ensure the dynamic performance of the system.

Fig.14 Pressure ratio regulation process

When adjusting the pressure in the middle stage of the compressor, it is interesting to find that there is a large coupling effect on the rear stage, and then a small effect on the front stage, but almost no effect on the further front stage. Therefore, it can be considered that the coupling effect is unidirectional from front to back, while it is bidirectional between adjacent stages. Since the decoupling of each stage is not considered, changing the pressure of one stage has an effect on the other. The next work of this flow control scheme is to carry out decoupling among different stages.

To verify the energy saving effect of the system, the actual power comparison of different units under the same working condition is shown in Table 3. With the continuous reduction of the load, the power of the compressor 103A keeps decreasing, and the vent valve keeps turning down. The practical application results show that the flow control scheme based on temperature and pressure ratio can realize the stable control of exhaust flow under the condition that the inlet temperature keeps changing, and the APPID controller can make the pressure ratio of each stage stable. Comparing the power of 2 compressor units, SCRS can save energy of the compressor and greatly reduce the energy waste of the compressor.

Table 3 Power comparison between unit 103A and unit 102A

5 Conclusion

In this work, a novel flow control scheme based on inlet temperature and pressure ratio is proposed to solve the problem that the inlet temperature changes frequently, which results in the change of compressor’s exhaust flow rate. The 1st stage load of the compressor is calculated through the set exhaust flow combined with the inlet temperature, and the pressure ratio of each stages are controlled by the APPID controller. Through the simulation model of two-stage reciprocating compressor, the performance of APPID is studied. Compared with the traditional PID and internal model control, APPID has more advantages in settling time, overshoot and robustness. Finally, the control scheme is applied to a four-stage air compressor in Sichuan Meifeng Chemical Industry Co., Ltd. By analyzing the operation data of a day when the temperature difference between day and night is more than 15 ℃, the effectiveness of the flow control scheme is verified. The 1st stage load of the compressor is automatically adjusted according to the inlet temperature, while the 2nd, 3rd and 4th stage load are adjusted by APPID controller to ensure stable pressure ratio. The power of the compressor is decreasing with the decrease of the compressor load, and the energy saving of the compressor is realized.