Abstract

The layout of the pump station is easily affected by topography, site, and other factors, resulting in poor inlet flow patterns in the forebay, which seriously affect the normal operation of the pump station. To optimize its inlet flow pattern, the size of the hollow rectification sill has been continuously improved through physical model tests to meet the requirements of the required pump station inlet flow field. In this paper, particle swarm optimization (PSO) was combined with the Gaussian process (GP) to establish a particle swarm-Gaussian process (PSO-GP) model to predict the velocity uniformity of the inlet sump of pump stations with different hole-to-height ratios, hole-to-width ratios, upper-to-lower sill length ratios, and sill height-to-water table ratios. Finally, the hollow rectification sill with the optimal size was obtained and tested in the physical model to compare the rectification effect with other sizes of hollow sills. The results show that the algorithm model can help the traditional physical experiment quickly predict the velocity uniformity of the inlet sump of the pump station. Through the optimization by the PSO-GP algorithm, we can get the optimal size of the hollow rectification sill. Its hole-to-height ratio is 0.62, its hole-to-width ratio is 0.37, upper-to-lower sill length ratio is 0.63, and sill height-to-water table ratio is 0.23. It shows that this method is practical in the optimization design of the hollow rectification sill and provides a new method for the optimization of the flow field in the forebay of the pump station.

1. Introduction

To improve the unhealthy flow patterns such as vortex and deviation in the forebay and inlet sump of the pump station, various rectification measures [1], such as separate columns [2], separate sills [3], and diversion piers [4, 5], are usually taken in the forebay of the pump station to optimize the flow pattern of the forebay. Ying et al. [6] established a numerical model of the flow pattern in the forebay of the pump station. Based on computational fluid dynamics and the VOF method, they concluded that the optimization effect of the flow pattern was the best when the sills were installed at 80% of the distance between the column and the outlet. Xia et al. [7] used the N-S equation and reliable k-ε turbulence model to analyze the flow pattern of the forebay and inlet sump based on FLUENT. By constructing an inverted T-shaped sill and changing its parameters, they studied its influence on the flow pattern and side velocity of the forebay and found that the inverted T-shaped sill significantly improved the flow pattern of the forebay and obtained the optimal size through comparing at the same time. Luo et al. [8] used numerical simulation methods [915] to predict and simulate the flow in the forebay, used two different diversion piers to optimize the flow pattern in the forebay, and used model experiments to support each other. As a new rectification measure, the hollow sill [16] is more effective than other measures in rectifying the deviation, eliminating the vortex, clearing the sediment, and protecting the building.

In recent years, many scholars at home and abroad have applied intelligent algorithms to the optimization of pump stations [17, 18], such as genetic algorithm (GA) [19], ant colony optimization (ACO) [20], and wolf pack algorithm (WPA) [21]. Ahmadebrahimpour [22] applied the WPA to the optimal dispatch model of the reservoir and found that this algorithm can lead to simple results with a good optimization effect, which is suitable for optimal dispatch of the reservoir. Feng et al. [23] used the hybrid WPA to optimize the dispatch of the parallel pump station group, provided an effective operation plan, and reduced the operational energy consumption. Wang et al. [24] used genetic algorithms to establish a model with the minimum total operating power of the pump station as the objective function to optimize the plan to reduce the operating power consumption of the pump station. Shang et al. [25] used GA combined with the simulated annealing algorithm to optimize the load optimal dispatch of large hydropower plants. The particle swarm optimization (PSO) algorithm [2631] has also been used in the pump station optimization in recent years [32] and has achieved good results, but this method requires the individual to be evaluated each time the individual position and velocity information are updated, which takes a long time [33], greatly increases the calculation cost, and affects the practicability of the optimization algorithm. Therefore, it is necessary to find a modeling solution to reduce individual evaluation time. The Gaussian process (GP) [3436] is a rapidly developing machine learning method in recent years. It has good adaptability to complex problems such as small samples, high dimensionality, and nonlinearity. Studies have shown that the GP model greatly reduces the time required for accurate simulation in the optimal design of the flow pattern of the pump station while ensuring its accuracy.

In recent years, more and more scholars have combined multiple algorithms to optimize the model [3741]. In this paper, we combined the advantages of the two algorithms and first established the PSO-GP model. Compared with the traditional GP model, this model used PSO to optimize the hyperparameters of the GP model [42] to avoid problems such as long training time in traditional GP modeling. Finally, the established PSO-GP model was used as the fitness evaluation plan of the PSO algorithm to optimize the hollow rectification sill of the forebay of the pump station. For the optimized rectification sill, physical model test [43, 44] and DPIV measurement technology were used [33, 4547] to verify the validity and engineering practicability of the PSO-GP model in optimizing the design of the hollow rectification sill of the forebay of the pump station.

2. Principle of the PSO-GP Model

2.1. Gaussian Process Model

The Gaussian process model can establish the mapping relationship between the input x and the output Y of the training set, and based on this mapping relationship, give the predicted value corresponding to the test sample z+. The Gaussian process describes a function distribution. It is a set where any subset of an infinite number of random variables conforms to the joint Gaussian distribution. Its properties can be determined by the mean function and the covariance function, namely,where is an arbitrary d-dimensional vector and and represent the mean function and covariance function, respectively. Therefore, GP can be expressed as

Assuming a finite training set containing n observations , among which represents a -dimensional training input matrix composed of n d-dimensional training input vectors and represents a corresponding training output vector composed of n training output scalars , the model can be expressed as

The observation target value y is polluted by additive noise . is a random variable that obeys the normal distribution, whose mean value is 0 and variance is , namely,

X is the input vector, and y is the observation value polluted by noise. The prior distribution of y iswhere is the -order symmetric positive-definite covariance matrix, matrix elements are used to measure the correlation between and , and the joint Gaussian prior distribution composed of n training sample outputs y and test sample outputs iswhere is the -order covariance matrix between the test output sample and n training samples and is the -order covariance matrix of the test output sample itself.

The covariance function of GP must satisfy the Mercer condition: a nonnegative positive-definite covariance matrix can be guaranteed for any point set. Here, the square exponential covariance function (SE) is used:where is the amplitude factor and is the distance . The properties of the GP mean function and the covariance function are determined by a set of hyperparameters, which are also the only parameters that GP needs to determine. According to Bayes’ theorem, based on the training set, the most likely output value corresponding to can be predicted. The purpose of adopting Bayes’ theorem is to use the observed real data to continuously update the probability prediction distribution, that is, use the given input , the input value X, and the observation target value y of the training set, to infer the largest possible predicted posterior distribution of :whereis the predicted mean value, showing the most likely test output value.

2.2. Particle Swarm Optimization Algorithm

The particle swarm optimization algorithm [48] has the advantages of easy implementation, simple algorithm, and fewer parameters and can effectively solve global optimization problems. The velocity and position update formula of the particle swarm algorithm iswhere and are called the learning factor and acceleration constant; Rand () is a random number between (0, 1); and are the velocity and position of the d-dimensional particle i in k iterations; is the position of the individual extreme value of the d-dimensional particle i; and is the position of the global extreme value of the group in the d-dimension.

2.3. PSO-GP Model

The traditional optimal hyperparameters of the GP model are obtained by the maximum likelihood estimation method, that is, the partial derivative of the hyperparameters is obtained by establishing the log-likelihood function of the conditional probability of the training sample, and then the conjugate gradient optimization method is used for the optimal hyperparameter solution. This optimization method will result in a large number of high-order calculations during the training of the GP model, which will affect the efficiency of GP modeling. In response to the above problems, this paper used the PSO intelligent algorithm to optimize the hyperparameters of the GP model to quickly establish the GP model. The number of hyperparameters of the GP model is determined by the selected covariance function and mean function. When initializing the particles, each particle represents a set of hyperparameters, which are sequentially assigned to the covariance function and mean function of the GP model. The mean absolute error (MAE) between the prediction of the GP model and the sample is used as the PSO fitness function for global optimization. The position and velocity information of the particles are updated in each iteration, and the calculation is stopped when the maximum number of iterations is reached.

For the traditional Gaussian process, the type of covariance function and the input dimension of the data determine the number of parameters of the GP model. Assume that there are N groups of input data 1 × n, the corresponding output is 1 × m, and the Gaussian process covariance function is the exponential squared covariance function:

Among them, matrix is the positive feature-length scale parameter corresponding to the input variable element, and is the signal covariance. For N sets of training data, the training parameters required for the corresponding Gaussian process are

After initializing and establishing the GP model, assume that the predicted output value obtained by the GP model is , and the original accurate output value of the GP test input sample is . Assuming that each set of data selects N data points, the mean square error (MSE) formula is used here. The model design process is shown in Figure 1.

3. Hollow Rectification Sill of the Forebay in the Pump Station

3.1. Model Building

The sill is currently widely used in engineering as a rectification measure with low cost and convenient construction. The commonly used sill is mostly an integral solid structure, and the flow velocity and direction of the water flow will be adjusted after passing through the rectification sill. However, when the water level is low, the commonly used rectification sill will cause the water level of the forebay to decrease, which will worsen the inlet flow pattern, and it is easy to form sedimentation behind the sill, which will affect the normal operation of the pump station. When the new hollow rectification sill is at a low water level, water can pass through the hollow part at the bottom, thereby minimizing the impact of the rectification sill on the overflowing water level, and at the same time, it is more beneficial to the adjustment of the flow velocity and flow direction. It also plays a certain role in scouring and silting before and after the rectification sill.

A geometric model of the water intake part of the pump station is established. The plane size is shown in Figure 2, and the unit of the size in the figure is mm. The single pump flow of the pump station studied in this paper is 25 m3/s, and the total flow is 100 m3/s. The pump station is on the left bank of the diversion channel. The model is composed of the intake channel, the forebay of the pump station, and the inlet sump. To ensure similar flow patterns, we chose the upstream 800 m of the diversion channel to the intersection of the pump station and the check gate for our study. The pump station has four units, numbered 1–4 from right to left according to the flow direction. The elevation of the bottom of the intake channel is −2 m, the elevation of the base plate of the inlet flow channel is −5.3 m, and the elevation of the base plate of the gate is −2 m. The working condition with 1.7 m of design water level and four units operating together is studied.

A physical model is built as shown in Figure 3. The total inflow is 100 m3/s; except for the inlet and outlet and free water surface, the rest are solid walls. The scale of the model is 1 : 25. The entire test model includes the intake channel, the forebay, the pier, the inlet flow channel, the control valve, the water tank, the pipeline, and the auxiliary pump. At the same time, the WYG-III; wireless measurement and control intelligent water level meter of Nanjing Hydraulic Research Institute and piezometer tube were used to measure the water level and verify the accuracy of the water level. FLOWATCH portable hydrometric propeller was mainly used for the flow velocity measurement, and the LDY-250S integrated electromagnetic flow meter was adopted for flow measurement. The experimental flow field data were collected by the DPIV high-definition flow field measurement system. Digital particle image velocimetry (DPIV) is an emerging branch of PIV, which is a noninterference, transient, and full-field flow measurement technology developed by using image processing technology based on flow display. Then, they were processed by software Tecplot. The layout of the sill in the specific model is shown in Figure 4.

3.2. Type Selection of the Hollow Sill

The specific arrangement is to install a sill at the intersection of the forebay and intake channel with a height of 1 m. Four holes shall be opened directly opposite to the four inlet flow channels on the rectification sill with the hole width of 2.5 m and the hole height of 0-1 m. To make the test results universal, the ratio of the hole height to the sill height is defined as the hole-to-height ratio, the ratio of the total width of the four holes to the total width of the sill is the hole-to-width ratio, the ratio of the upper and lower bottom length of the sill is the upper-to-lower sill length ratio, and the ratio of sill height to the water level is the sill height-to-water table ratio. The placement position of the sill is shown in Figure 4, and the detailed drawing of the hollow sill is shown in Figure 5.

To study the hollow rectification sill, 100 sets of randomly matched data with different hole-to-height ratios, hole-to-width ratios, upper-to-lower sill length ratios, and sill height-to-water table ratios were selected, numbered, and analyzed. See the specific size selection range in Table 1.

4. Optimization Design of the Hollow Sill of the Forebay of the Pump Station Based on the PSO-GP Model

4.1. Establish the Index of Flow Rate Uniformity

The hollow sill with the optimal size parameter (obtained through PSO-GP optimization) was put into the physical model experiment for verification. The flow pattern was measured by DPIV, and finally, the velocity cloud diagram was obtained after Tecplot processing. The section at the junction of the forebay and the inlet flow channel is selected as the characteristic section (shown in Figure 4), and the uniformity of the axial velocity distribution is used as the index for evaluating the quality of flow rate. The closer to 100% , the better the velocity uniformity. The calculation formula is

The derived flow velocity data value is the average flow velocity of each small section after dividing the entire section into multiple small sections. For this purpose, an area-weighted uniformity objective function can be introduced:where is the area of each section, m2, is the average axial velocity of each section, m/s, is the number of nodes, is the uniformity of the axial velocity distribution, and is the average axial velocity of each section element, m/s, and its value is

4.2. PSO-GP Optimization Processing

After the PSO-GP model of the hollow sill of the forebay of the pump station is established, the PSO algorithm is used to optimize the design. The maximum number of iterations in the PSO algorithm is 1000, the acceleration constant is , the inertia weight is , the initial population is 20, and the dimension is 4. The optimized hollow sill is with the hole-to-height ratio of 0.62, hole-to-width ratio of 0.37, upper-to-lower sill length ratio of 0.63, and sill height-to-water table ratio of 0.23. It takes about 24 days to establish a physical model and conduct the test, about 500 seconds to complete the training of the PSO-GP model, 300 seconds to use PSO and PSO-GP to optimize the hollow sill of the forebay of the pump station, and 0.3 seconds for a generation of 20 particles (each particle represents 4 sets of size parameters). As a result, this far exceeds the time required to use other algorithms as the fitness function of the particle swarm algorithm. The process of bottom sill optimization is shown in Figure 6.

4.3. PSO-GP Optimization Error Analysis

We built a physical model for experimentation, selected 80 sets of data as training samples for the PSO-GP model, made hollow sills of different sizes based on these data, and conducted tests in the physical model. Then, we used DPIV to test and measure, observed the flow patterns affected by the hollow sills with different sizes, and used Tecplot software for postprocessing to obtain the corresponding velocity uniformity of the forebay of the pump station. And we used the velocity uniformity as the training input data of the PSO-GP model to establish the model; besides, we selected another 20 groups as the test samples, the output of the PSO-GP model was , and the output of each group of corresponding physical model test processing was . To have a comprehensive understanding of the hollow sill, we set the hole-to-height ratio to 0-1, the hole-to-width ratio to 0.14–0.48, the upper-to-lower sill length ratio to 0.4–1, and the sill height-to-water level ratio to 0.1–0.5. The error results are shown in Figure 7.

In order to verify the advantages of the PSO-GP algorithm, here we select the common PSO-GP algorithm and the Gaussian process algorithm for comparison and study, substitute the flow uniformity index as the training input data, respectively, and perform iterative calculations with different iteration times. The results are compared with the real values, and the results are shown in Figure 8. The calculation results show that compared with the PSO-GP algorithm and the Gaussian process algorithm, the PSO-GP algorithm has a significantly lower computational cost and smaller errors, especially the number of iterations. In the case of high accuracy can be achieved, using the described algorithm PSO-GP has a better advantage in the calculation time and accuracy.

5. Comparative Analysis of Optimization Results

After installing a hollow sill in the forebay of the pump station, water flowing out of the hollow part fully contacts water flowing through the rectification sill and energy dissipation behind the sill. The water flow in the hollow part has a good effect on the straight adjustment of the flow direction so that the water flow passing through the hollow part is relatively straight after adjustment, and the rectification sill plays a leading role in the adjustment of the entire flow. In the experiment, we found that the hole-to-height ratio, hole-to-width ratio, upper-to-lower sill length ratio, and sill height-to-water level ratio have a greater influence on the rectification effect. To study the influence of these factors on the flow pattern of the inlet water, plan 1 is the original plan without hollow sill rectification, and plans 2 to 7 are plans with six different sizes of the hollow sill. The flow fields of the surface layer and the bottom layer are shown in Figure 9. It can be seen from the figure that the hollow part gradually increases, the straight water flow it drives gradually increases, and the backflow of the forebay gradually decreases, but when the opening is too large, the hollow part of the sill will reduce the rectification effect of the water flow via holes; as a result, the rectification effect of the hollow rectification sill is reduced. From Figures 9(f)9(h), it can be seen that the backflow area on the right side of the diversion channel increases, and there is a local high-speed area on the right side of the no. 1 inlet flow channel. Through PSO-GP optimization, we can get that, for the best size, the hole-to-height ratio is 0.62, the hole-to-width ratio is 0.37, the upper-to-lower sill length ratio is 0.63, and the sill height-to-water level ratio is 0.23. The surface layer and bottom layer flow field are shown in plan 8, respectively. The flow pattern of the forebay is relatively good, and the flow velocity distribution in the inlet sump is also relatively uniform.

According to the flow velocity distribution of each inlet flow channel section, the flow velocity uniformity of the inlet section of each flow channel is studied and analyzed. According to formula (14), the velocity uniformity of each flow channel is calculated, and it can be seen that the velocity uniformity is 65%–75%. When the hole-to-height ratio is less than or equal to 0.62, the velocity uniformity increases with the increase of the hole-to-height ratio, so we can get that opening holes on the sill is beneficial to adjust the velocity uniformity. When the hole-to-height ratio is larger than 0.62, the velocity uniformity gradually decreases and reaches the maximum when the hole-to-height ratio is 0.62. Overall, the velocity is the most uniform when the hole-to-height ratio is 0.6. When the hole-to-width ratio is less than or equal to 0.37, the velocity uniformity increases with the increase of the hole-to-width ratio and gradually decreases when the hole-to-width ratio is larger than 0.37. The velocity uniformity reaches the maximum when the hole-to-width ratio is 0.37. Overall, the flow velocity is the most uniform when the hole-to-width ratio is 0.37. When the upper-to-lower sill length ratio is less than or equal to 0.63, the velocity uniformity increases with the increase of the upper-to-lower sill length ratio. When the upper-to-lower sill length ratio is greater than 0.63, the velocity uniformity gradually decreases and reaches the maximum when the ratio is 0.63. Overall, the velocity is the most uniform when the upper-to-lower sill length ratio is 0.63. The velocity uniformity increases with the increase of the hole-to-height ratio when the sill height-to-water table ratio is less than or equal to 0.23, and it gradually decreases when the ratio is larger than 0.23. The velocity uniformity reaches the maximum when the sill height-to-water level ratio is 0.23. Overall, the velocity is the most uniform when the sill height-to-water level ratio is 0.23.

6. Conclusion

In this paper, particle swarm optimization was combined with the Gaussian process to establish the PSO-GP model for the optimization of the design of the hollow sill of the forebay of the pump station, thereby effectively reducing the type selection time of the hollow sill during the optimization of the forebay of the pump station and also improving the accuracy of the type selection optimization. Through physical model test comparison, the PSO-GP model can be used to obtain more accurate velocity distribution of the forebay of the pump station, and velocity uniformity can be used to judge the optimization effect of the hollow sill. The optimal size of the hollow sill of the forebay of the pump station optimized by the PSO-GP model is as follows, that is, the hole-to-height ratio is 0.62, the hole-to-width ratio is 0.37, the upper-to-lower sill length ratio is 0.63, and the sill height-to-water level ratio is 0.23. After we put the hollow sill of this size in a physical model for tests and compared it with the rectification effect of other sizes of hollow sills, we found that the rectification effect of this size is the best, indicating that this method is practical in the optimization design of the hollow rectification sill of the forebay of the pump station.

Data Availability

The data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this paper.

Acknowledgments

This research was funded by the National Natural Science Foundation of China (51779215 and 52079120) and Jiangsu Graduate Research and Innovation Program (KYCX20_2980).