1. Introduction
As an important piece of equipment, the compression system is widely used in metallurgy, the chemical industry, natural gas transportation, engine propulsion, and other industrial fields [
1]. A compression system is a complex thermodynamic system composed of pipelines and valves with a compressor as the core. The compressor map of the compression system in the operable area shows that the pressure ratio decreases with the increase in compressor flow [
2]. High pressure is usually required in industrial equipment, so it is necessary to keep the compressor’s designed condition in a safe range under “high pressure” conditions. In fact, the condition point where the SL (surge line) intersects the performance curve is usually the maximum pressure ratio of the compressor at a given speed. When operating safely, the operating point is located on the right side of the surge line. The operating point should be as close to the SL as possible to obtain a higher-pressure ratio without changing the speed. If the state operation condition is located on the left side of the SL, it will lead to the compressor surge, which is accompanied by the axisymmetric oscillation of airflow and severe vibration of pressure [
3]. Under surge conditions, the low mass flow rate and the poor ability of the compressor to work on the air are insufficient to provide sufficient pressure rise for the air. In a compressor and pipeline system, the gas pressure in the downstream chamber of the compressor impeller, including the diffuser and the downstream section of the pipe, is greater than the outlet pressure of the compressor impeller. Driven by reverse pressure, the flow of the compressor decreases, and countercurrent occurs. The release effect of countercurrent on the downstream high pressure makes the compressor flow periodically change along the axial direction during the surge, resulting in huge pressure vibration. The surge will destroy the impeller and bearing of the compressor, which results in ruinous damage to the compression system and causes serious economic losses and security threats [
4,
5]. To improve compressor efficiency and avoid the surge in industry, modeling and simulation study is of great significance for the control and design of compression systems.
In recent decades, the research on modeling and simulation of centrifugal compressor has attracted extensive attention and made a lot of progress. The famous Greitzer model was introduced by Greitzer [
6] in 1976 to predict the transient response of surge. Based on the Greitzer model, many dynamic modeling and experimental verification studies on compressors have been published. There are two research directions for the current literature. One is the mechanistic research of surge, while the other is the applied research of compression systems in practical industrial engineering.
For mechanism research, scholars focus on the establishment of mathematical models and conduct in-depth explorations. Moore and Greitzer [
7,
8] improved the Greitzer model, especially by describing the algorithm of compressor maps in detail. Gravdahl [
9] supplemented the modeling method with approximate calculations for varying compressor speeds. With the deep understanding of compressor surge by researchers, some nonlinear modeling, surge control modeling, and reversed flow regimes have become research hotspots. A nonlinear Greitzer compressor model and parameter identification method are introduced by Backi [
10,
11]. For Gravdahl [
2,
12,
13], Cortinovis [
14], Ziabari [
15], and Shafieian [
16], some simulation and modeling studies on the surge and surge control methods were carried out, including close-coupled valve, throttle control valve, torque control, and model predictive control (MPC). A compressor model was considered and developed to simulate reversed flow regimes in the surge by Powers [
17]. Two types of surge were discussed and studied on the parameter
Lc by Grapow [
18]. And the relationship between compressor physical parameters and the Greitzer model was discussed by Jaeschke [
19]. Tournes and Landrum [
20] described a velocity triangle model that can simulate the phenomenon of isentropic losses to replace the Moore–Greitzer cubic model. Venturini [
21] developed a compressor mathematical model based on physical properties and carried out a sensitivity analysis to evaluate the influence of model parameters on the model response. Yoon et al. [
22] derived a mathematical model based on the Greitzer compressor model and a transmission line model, where a centrifugal compressor with an exhaust pipeline was simulated. Series and parallel compressor models based on the Greitzer model and bond graph model were developed by Uddin and Gravdahl [
3] to analyze the parallel and series characteristics of compressors. In these studies, researchers usually followed the assumptions of the Greitzer model, and the research object was a single Greitzer compressor model. There are few studies on the real-time model of a complex compression system.
For application research, combining the Greitzer model with control and simulation methods, several compressor models were established to describe corresponding industrial compressor systems [
23,
24,
25,
26]. In the qualitative analysis, a compressor system model was established for the fault diagnosis of a gas-steam combined-cycle power plant (CCPP) in the field of power generation by Song [
27]. In the petrochemical industry, Liu [
28] studied a modeling method of a compressor and air cooler for natural gas transportation equipment. Dynamic modeling of a coupled vane compressor was developed, and dynamic forces acting on its components were studied and analyzed by Shakya and Ooi [
29]. In these studies, the compression system model is a “black box” model which has high precision. This model has obstacles in the physical mechanism without universality.
The existing research on compressor modeling is optimized based on the Greitzer model to adapt to different application scenarios. There are few studies on parallel and surge dynamic response simulation of the compression system. Due to complexity, nonlinearity, and the high cost of experimental verification, it is a challenge to derive a model of the surge phenomenon and compressor parallel in the dynamic modeling of complex compression systems considering friction loss and heat transfer. Hence, to improve the defect of the above models, real-time dynamic modeling to simulate the surge phenomenon and parallel characteristics of complex compressor systems needs to be presented.
In this paper, real-time Modular Dynamic System Greitzer (MDSG) modeling is proposed. For validation, an industrial air suction parallel compression system is established. The simulation results are compared with the experimental results. The surge test is dangerous, so we use MDSG modeling to simulate and discuss the dynamic phenomenon of compressor surge. To obtain the dynamic characteristics of compressor surge, the compression system with one valve and two valves, the common compressor function test equipment consisting of a compressor with an outlet valve or a compressor with an inlet valve and an outlet valve, is simulated by MDSG modeling. The dynamic phenomenon of the surge in the compression system is simulated and analyzed.
2. Mathematical Model Development of the MDSG Model
The mathematical model of the compressor is derived from the laws of conservation (mass, momentum, and energy) and the Greitzer model [
6]. All the pressure and temperature in the text are absolute values.
where Equations (1) and (2) are tensor forms, and
ui,
xi, and
fi are the tensor forms of velocity, distance, and force, respectively.
Ux,
Uy,
Uz in Equation (3) are the velocity in the direction of
x,
y, and
z.
A Greitzer model usually consists of the compressor, rear cavity, and downstream valve. The three parts are regarded as a system to describe the principle of surge. In the MDSG model, the compressor, pipe network, and valves are taken as independent dynamic simulation modules, which can not only set the characteristic parameters of target components specifically, improving the simulation accuracy, but also conform to the actual structure of the actual complex system. The component modules are divided into two categories. One includes compressors and valves with input parameters of upstream and downstream pressure and output parameters of mass flow rate. The other includes the pipe network, whose input parameter is the mass flow of each pipe network interface, and the output value is the pressure of each interface. The two modules appear alternately to realize the system simulation. The mathematical equations for each component are given in turn below.
The dimensionless performance map of the compressor and isentropic thermodynamics model is developed. Based on the Greitzer model [
6,
21], the optimized equations are as follows.
where
w is the mass flow rate, and its subscripts “out” and “in” define the outlet and inlet of the compressor, respectively.
Ac and
Lc are the cross-sectional areas and effective length of the equivalent compressor duct, respectively.
Vc is the volume of the internal flow passage of a single compressor, which mainly includes the space of flow passage between blades and the space inside the diffuser.
pc is the lumped pressure of the internal flow passage volume
Vc, which is calculated by the difference of the mass flow rate in and out of the compressor at a certain time in Equation (4).
pc is an internal iterative value because the input variable of the compressor module is the pressure upstream and downstream, and the output variable is the mass flow rate.
Figure 1 shows the specific calculation and iteration process of the compressor module. In the simulation, the mass flow rate of the compressor is calculated due to the upstream and downstream pressure. It is considered that the mass flow at this moment is the inlet flow, and the flow after a time step is the outlet flow. The mass flow
w and internal lumped
pc iterate over each other in each time step.
The throttle valve module takes upstream and downstream pressure as input and the mass as output. The throttle equation is given by:
According to the thermodynamic equation, the uniform parameter model of a pipe network with
m entrances and
n exits is as follows.
where subscript “in_
i” and “out_
j” represent the serial number of the inlet and outlet sections of the pipeline, respectively.
Flow losses usually include friction losses, local pressure losses at bends, and flow separation losses at fork crossings. The pressure loss Δ
pij from inlet
i to outlet
j is obtained as follows:
where
vm and
vd are the velocity of the main flow and tributary flow, respectively.
Di is the diameter of the pipe
i.
lf is the length of a straight pipe.
lt is the equivalent length of the bent pipe, which is defined as the length at which the fluid completes the change in velocity direction.
ζt is the pressure loss coefficient of the bend, which is a constant value related to pipe diameter and turning radius.
ζm and
ζd are the pressure loss coefficients of the main and tributary flow at fork crossings, respectively.
The MDSG simulation system was established, and the MATLAB/Simulink platform was used for modeling, simulation, and programming. The ideas of MDSG modeling are as follows:
Modular modeling. The compressor simulation module is obtained according to Equations (4) and (5), the input parameter is the pressure upstream and downstream, and the output parameter is mass flow. The valve simulation module is obtained according to Equation (6), the input parameter is the pressure upstream and downstream, and the output parameter is mass flow. The pipe network simulation module is obtained according to Equations (7)–(9), the input parameter is the mass flow of each interface, and the output parameter is the pressure of each interface. Key parameters are set according to the actual parameters of the simulated object.
Systematic modeling. According to the structure of the target compression system, the simulation module is divided into two categories: one is the pressure output type, mainly for the pipe network, and the other is the flow output type, mainly for the compressor and valve. The two types of modules appear in turn according to the actual situation. During the simulation, pressure and mass flow iterate with each other to achieve dynamic simulation.
3. Experimental Validation of the Parallel Compression System
To verify the reliability of the MDSG model, an industrial air suction parallel compression simulation system is developed.
Figure 2 shows the structure of the air suction compression system in detail. The system is connected to the upstream equipment for venting, which consists of three compressor subsystems, a suction pipeline, and valves. The green arrow in the figure represents the flow direction of air in the system during normal operation, where the exhaust gas is discharged into the atmosphere from the upstream equipment under the work of the parallel compression system. The compression subsystem has the same structure and operates in parallel as required. Valve 0 connects with the atmosphere to control the pressure in the suction pipeline. Moreover, detectors for pressure and temperature are installed at the inlet and outlet of each compressor.
Figure 3 shows the definition and transmission of each parameter in the MDSG model of the air suction parallel compression system. The equivalent geometric parameters (
Ac,
Lc,
Dh, and
Vc) of the compressors are provided by the manufacturer. The speed of the compressor is a constant 27,500 r/min, and the performance maps of the compressors are obtained from the test results of each compressor. It is worth noting that although the compressor models of the three subsystems are the same, there are slight differences in industrial construction, resulting in their pressure in the same mass flow not being the same. The geometric parameters of the pipe network
(Vp) of the three subsystems are derived from the diameter and length provided in the actual construction drawings. The geometric parameters of valves
(DT,
kT) depend on valve type and geometry, and the flow characteristic function of each valve (
Cf) is obtained from CFD numerical results. The boundary conditions include atmosphere pressure
p0, environment temperature
T0, and the pressure and temperature of upstream equipment
pM,
TM. Input parameters of the simulation system are the opening of each valve. An actual gas suction process lasting 700 s is simulated. The atmospheric pressure and temperature of the simulation are equal to the experiment, where
p0 = 97,000 Pa and
T0 = 300 K.
The pressure and temperature measured in the experiment of upstream equipment are used as the dynamic boundary condition for valve M. The valve opening recorded in the actual process is used as the input instruction of each valve in the simulation. The opening of valves 11, 21, 31, 13, 23, and 33 is 100%, and the opening of the recirculation valve 12, 22, and 32 is constantly 0% during the 700 s of the working condition, which results in a compressor recirculation mass flow rate of 0 for the three subsystems. The opening of valve 0 and valve M is shown in
Figure 4.
The dynamic parameter of air in all interfaces is obtained by the MDSG model.
Figure 5 shows the simulated pressure and experimental pressure of each compression subsystem in the air suction system. The simulation and experimental results of the inlet temperature (
T13,
T23,
T33,) and outlet pressure (
T14,
T24, T34) of the compressor are compared and analyzed in
Figure 6. The working condition of the three compression subsystems is the same because the valves in each subsystem do not change during the operation. The parallel system is continuously in a state of exhaust. The pressure variation of the compressor inlet in the three compression subsystems shows a consistent trend. The pressure increases at about 150 s and decreases at 500 s, which is caused by the change in the pressure of the upstream suction pipeline (
pz). The temperature of the inlet and outlet of the compressor is in a steady state, and the simulation and experimental results remain constant. According to the simulation results, the difference between each subsystem is very small when the compression system is in parallel suction operation, which is consistent with the text. The maximum error of the simulation and experiment results of temperature is less than 10 K, and the pressure is less than 1000 Pa in the parallel compression system. It can be found that the simulation values of pressure and temperature have the same changing trend as the experimental values, and the error is small in the whole process.
From
Figure 5 and
Figure 6, the behaviors of the three subsystems have consistent trends, with subtle differences in response speed and fluctuations. The pressure of the three subsystems is the same, but the temperature is slightly different. The reason is that although the structure of the three subsystems is consistent, the performance maps (
Ψ) of their compressors are slightly different, and the pressure under the same mass flow rate is not completely consistent. The differences in the performance map come from the actual test data of the compressors in three subsystems, which can explain the imparity in the simulation results of the subsystems. Moreover, the difference in temperature is mainly caused by the slight difference in the heat transfer process. In the actual compression system, the location of the outlet-temperature-measuring equipment of the three compressor subsystems is slightly different, which is reflected in the distance of the outlet and the number of pipe bends. To obtain more accurate simulation results, heat exchange terms
Qs are calculated, respectively, according to the flow process from the compressor outlet to the thermometer, which introduces deviation into the simulation.
Figure 7 shows the simulation results of the pressure and temperature of the suction pipeline. In this working condition, the parallel compression system downstream of the suction pipeline keeps a constant working state. The pressure and temperature change with the opening of valve 0 and valve M. The exhaust gas of the upstream equipment of valve M has a great influence on the suction pipe pressure. Valve 0 is connected with the atmosphere as a regulating valve, and its influence is relatively weak. Valve M gradually opens from 0.5 to 0.7 between 146 and 209 s as suction pipeline pressure
pz gradually increases, where the stage of pressure rise corresponds to the step change of the opening of valve M during this period. At 487 s, valve M closed from 0.7 to 0.5, resulting in a decrease in
pz. The pressure fluctuation of
pz in each stage is mainly caused by the change of opening of valve 0. The temperature of the suction valve varies within 6 K and is affected by the exhaust gas temperature of the upstream equipment. Qualitatively, the simulation results of the suction pipeline are consistent with the actual situation.
The relative error of pressure and temperature of the inlet and outlet of the compressor in the compression system is shown in
Figure 8. The average relative error of pressure of the compressor inlet is less than 2.1%, and for the compressor outlet, it is less than 0.9%. For the relative error of the temperature, the average value of the compressor inlet is less than 1.6%, and for the compressor outlet, it is less than 2.9%. The maximum dynamic relative errors of pressure and temperature in each subsystem are less than 5%. The relative error distribution of each compression subsystem is slightly different, and the overall trend is generally consistent. The reason is that the conditions of each subsystem are consistent in this verification, and both the structure and the parameters of the subsystems are the same, whether in real industry or the dynamic simulation. The average error is less than 3% which proves the reliability of MDSG as a gray box model in real-time dynamic simulation. The precision of dynamic simulation can be improved by coupling characteristic functions of key components on the premise of the modeling method based on physical mechanisms. In summary, experiment and simulation verify that the MDSG model is suitable for the real-time dynamic simulation study of parallel compression systems.
5. Conclusions
Based on the analysis of existing modeling methods, an MDSG model of a complex compression system was proposed. A complex gas suction parallel compression system was also developed by the MDSG method. The experimental validation of the parallel compression system showed that the average error is less than 3% and the maximum error is less than 5%.
The compression systems with one valve and two valves were established by the MDSG model, and the dynamic performance of the surge phenomenon of the compression system was simulated and analyzed. The simulation results are consistent with the surge phenomenon in previous studies, which indicates that MDSG modeling can simulate the dynamic changes of compressor surge conditions.
In the dynamic simulation research of compressor surge based on MDSG modeling, when a surge occurs, the operating point suddenly migrates on the performance curve, and the pressure is consistent with the vibration frequency of the mass flow during the surge. The phase difference between pressure fluctuation and flow fluctuation is one-quarter of a cycle under unsteady conditions because that plenum of the pipeline network has the function of air storage, and the change of mass flow at the inlet and outlet of the pipeline network is transformed into the fluctuation of pressure.
Adjusting the outlet valve instead of the inlet valve of the compression system can make the system enter the surge condition more efficiently. Furthermore, adjusting the inlet valve of the system will change the amplitude, frequency, and base value of the vibration of the pressure and flow under the surge condition.