Abstract
In the process of research on the flow velocity distribution in a partially filled pipe, the under-sampling of measurement data often occurs. For the first time, this problem is solved by the improved non-uniform B-spline curve fitting approximation (NBSC) method. The main innovation of this method is to reconstruct the flow velocity distribution fitting curve with a small amount of non-uniform feature points containing flow velocity information. First, the curvature of a whole discrete sampled data is analyzed, then the weighted threshold is set, and the sampled points that satisfy the threshold are extracted as the initial velocity distribution feature points. Next the node vectors were constructed according to the initial feature points, and the initial interpolation fitting curves are generated. Secondly, by using the relative deviation between the initial approximation curve and each sampled point, new feature points were added where the curve allowable deviation exceeded the specified tolerance, and then a new interpolation fitting curve was obtained. The above procedure was repeated until the fitting curve reached expected accuracy, thus the appropriate feature points were determined. Experimental results showed that, in the case of the same approximation deviation, the proposed NBSC method can solve the problem of under-sampling of measurement data better.
1. Introduction
In many engineering occasions, the velocity distribution of the fluid is required to be obtained, for the velocity of full filled pipes, through the efforts of scientific researchers, a relatively complete theory has been established. But in many cases, the fluid in the pipeline is in a state of partially filled, for example, the transport of wastewater in sewer flows, the petro chemical industries etc. [1]. The velocity distribution in a partially filled pipe is different from that of full filled pipes, the factors affecting velocity, such as wall friction and shear force, all vary with the change of the pipeline depth ratio. When the fluid flow is a partially-filled pipe laminar, the velocity distribution is relatively simple. Ng and Lawrence [2] studied the velocity of the laminar flow in partially-filled pipes with numerical simulations. The analytical expressions of laminar flow velocity in partially filled pipes are given by Guo and Meroney [3], and Fullard and Wake [4] respectively, which are verified by digital simulation. It is different from the laminar flow velocity in partially filled pipes, where the fluid is in a turbulent state, due to the influence of free surface and secondary flow in the upper part of the fluid, the velocity of the fluid is much more complex than that of the laminar flow, so the research on turbulent flow velocity distribution in partially filled pipes is a focus and it is a difficulty in the field of hydraulics.
A lot of research on the velocity of partially filled pipes have been carried out. Knight and Sterling [5], and Sterling and Knight [6] have studied the velocity in the smooth section of partially filled pipes using a Pitot-static tube. Clark and Kehler [7] researched about the mean velocity distribution of corrugated culvert using acoustic Doppler velocimetry. Using a stereoscopic particle distribution velocimetry (PIV) system, Yoon et al. [8] studied the two-dimensional velocity distribution in partially-filled circular pipes. Henry et al. [1] investigated the stream wise velocity distribution using stereoscopic particle imaging velocimetry (S-PIV) in the partially filled pipes cross-stream plane. Chiu et al. [9–13], and Marini et al. [14] analyzed the two-dimensional velocity distribution formula with Shannon entropy, which represented the observed data reasonably well in a rectangular open channel. Luo and Singh [15], and Cui and Singh [16] derived the partially filled pipes velocity using the Tsallis entropy, which can reasonably describe the velocity near the boundary.
These studies greatly improved the research of partially-filled pipe turbulent velocity. But all of these methods need sufficient sampled data. However, in many engineering applications, only a few measuring points can be obtained due to the measuring equipment, construction environment etc., and the known sampled data is non-uniformly distributed. Therefore, it is necessary to reasonably reconstruct the fluid velocity distribution in the case of non-uniform undersampled.
In the aspect of reconstructing the original field in the case of undersampled, a series of studies have been carried out and many theoretical methods have been also put forward, such as ordered-subsets expectation-maximization method [17], Least squares fitting algorithm [18, 19], NURBS curve fitting method [20, 21], B-spline curve fitting method [22, 23], etc. Because the B-spline curve method has excellent properties such as geometric invariance, convex hull, and local support, this method is often used in scientific research and engineering applications, such as data analysis and distribution reconstruction [24–27]. However, the traditional B-spline fitting curve do not directly pass through the sampled points, which leads to lower fitting accuracy and cannot truly reflect the flow velocity. Especially, when the measurement data is small, the fitting accuracy of this method is lower. How to get better flow velocity distribution reconstruction under the condition of under-sampling of measurement data, this would be the main problem to be solved in this paper.
In order to solve the previous problems, an improved non-uniform B-spline curve interpolation method called NBSC was proposed in this paper. According to the characteristics of velocity distribution, a small amount of sampling points containing velocity information are selected as featured points, and the velocity distribution curve was reconstructed according to the velocity information contained in the featured points, so as to solve the problem of under-sampling of measured data in velocity data acquisition. The main content of this method includes five aspects: (a) introduction of traditional B-spline curve method, (b) the curvature of discrete sampled points and the extraction of distribution featured points, (c) reconstruction of the node vectors, (d) adjustment of feature points, and (e) reconstruction of the flow velocity distribution.
2. Traditional B-Spline Curve Method
2.1. B-Spline Curve Mathematical Definition
Let be the position vector along the curve as a function of the parameter , a B-spline curve can be defined as
where is the control points, is the number of control points, is the order of B-spline curve, is the knot vector, and is the th-order B-spline basis function, which is defined as follows:
The calculation process of the B-spline curve method can be summarized as follows: First, the sampled data was parameterized, then the node vector was defined according to the parameterized data. Second, the basis function can be obtained according to Equations (2) and (3). Third, the control points of the fitting curve can be calculated by using the sampling data and the basis function. Finally, with the obtaining of basis function and control points, the B-spline curve can be drawn according to Equation (1).
2.2. Uniform Node Vector with Parameter
Node vector is an important parameter in the B-spline curve fitting method. An appropriate node vector can not only ensure the curve reflecting the distribution of measurement points correctly, but also avoids matrix singularity when reverse calculating control vertexes. In any case, one needs to allocate a location parameter to each of the sampling data, then define a node vector, and finally compute the basis function and control points [20]. In this paper, the Cumulative Chord Length method [20] was used to parameterize the sampled data, then the node vectors was constructed with the parameterized sampled data.
Assuming the sampled data sequence , and chord length , in which , then the total chord length , and the normalized expression of location parameter based on the Cumulative Chord Length method can be assigned as
Let the repeatability of the node vector at both ends be , then the relationship between control points and the sampled data is , . Assuming the domain of node vector , then the normalized node vector can be written as
2.3. Construction of Control Points
The node vector of the sampling data can be calculated by Equation (5), and then the value of the basis function can be obtained by Equations (2) and (3). According to the basis function and the sampled data sequence , the linear equation of the control points is given as follows
The equation can be rewritten as
where and −1 represent the matrix transpose. The equation can be solved with Gauss Elimination method [28], then the control points are obtained.
With the obtaining of control points and basis function , the B-spline curve can be drawn according to Equation (1). Obviously, in the calculation process, the control points and basis function are the two main features of B-spline method. From the above analysis, the two parameters are mainly determined by node vector. Therefore, the merits of the node vector directly determine the fitting accuracy of the B-spline curve.
2.4. Initial B-Spline Fitting Curve
A schematic diagram of partially filled circular pipe section is shown in Figure 1, where is the diameter of the measuring pipe, and is the fluid depth from the bottom of the pipe to the water surface, and is the vertical height from the bottom of the pipe to the position of the measuring point. A Cartesian coordinate system is set in this way such that the bottom of the pipe has the coordinate origin, and presents the transverse distance from the centerline, and presents the vertical depth from axis upward positive. According to the definition of traditional B-spline curve fitting method, the flow velocity distribution curve of the partially filled pipe flow field is shown in Figure 2.


In Figure 2, is the maximum value of the flow velocity, where the curve obtained by the traditional B-spline curve fitting method is generally close to the velocity sampled data, but there is obvious deviation between the fitting curve and the sampled data. Moreover, all the sampled data were processed equally when the control points are inversely calculated, which makes the number of iterations increase, and greatly reduces the computational efficiency. But reducing iteration time it will cause further increase in the local deviation.
In many engineering applications, only insufficient sampled data can be obtained due to the influence of construction environment, equipment, and other factors. The B-spline curve is fitted with undersampled data, and the results are shown in Figure 3.

From Figure 3, it is clear that the conventional B-spline curve fitting method based on a few sampled data reduces the computational complexity, however, there is a large deviation between the fitted data and the sampled data. Therefore, how to reconstruct the velocity image in the case of under-sampling is the main problem to be solved.
3. Improved Non-uniform B-Spline Curve Method
In many cases, only insufficient sample points can be measured. If the flow velocity information contained in these sample points can fully express the trend of the flow velocity distribution, then the B-spline curve method can be used to reconstruct the entire flow velocity distribution curve. Based on this idea, an improved non-uniform B-spline curve (NBSC) method was proposed. Compared with the traditional B-spline method, there are two obvious changes in this method. First, some sampled data were extracted as feature points, which have important influence on the shape of approximation curve. Second, the non-uniform node vectors were reconstructed with these extracted feature points. The basis function and control points were updated with the new node vector. With the obtaining of new control points the new fitting curve were drawn. Obviously, the key to this method is to reasonably select feature points containing flow velocity information. In this paper, the curvature distribution method is used to determine the feature points of the fitting curve.
3.1. The Curvature of Discrete Points
In comparison with several methods of algorithm for curvature [29–31], the curvature distribution was solved with Local Estimation method in this paper. In the Local Estimation method, the parametric polynomials are established by using the front and back three points of the measured points, then the curvature of the sampled point in the data sequence can be expressed as
where represent the first derivative of the curve at parameter , represent the second derivative, and the magnitude of the curvature reflects the variation degree of flow velocity.
3.2. Selection of Unbalanced Feature Points
According to Formula (8), the curvature of flow velocity at each sampled point on the central line of the pipeline can be obtained, the result is shown in Figure 4, where the abscissa is the height of the measuring point from the bottom of the tube, and the longitudinal coordinate is the curvature of the flow velocity at each measuring position.

Obviously, the curvature value of the curve is small where the velocity varies smooth, while the curvature value of the curve is relatively large the velocity varies sharply. Therefore, in the sampled data sequence, the principle of selecting feature points are as follows:(1)The sampled point with maximum curvature is the featured point.(2)The first sampled point and the end sampled point are the featured points.(3)The sampled points higher than the preset curvature threshold are the featured points. It should be noted that the curvature threshold is too high to reflect the characteristics of the curve. On the contrary, reducing the threshold will result in a large amount of calculation and lower computational efficiency. Therefore, the curvature weighted average is used as the preset threshold in this paper, where is the average of curvature and is the weight.
3.3. Restructuring of the Non-uniform Node Vector
According to the mentioned principle of selecting unbalanced feature points, the sampled points are selected as feature points, in which the first point , and the end point . The chord length is redefined as , , then the location parameter and the non-uniform node vector can be rewritten as
and
where is the quadratic normalized parameter value of the featured points. Then the basis function and the control points were updated according to Equations (3) and (7). With the obtaining of new control points the new fitting curve were drawn.
3.4. Quadratic Optimization of the Fitting Curve
For the initial fitting curve, if the local approximation deviation exceeds the maximum allowable deviation , some new feature points should be added appropriately to improve the local fitting accuracy. According to the proposed method, the fitting curve based on discrete sampled points can be obtained, and the relationship between the fitting curve and sampled data are as follows
where ε is the maximum relative tolerance of deviation, is the distance from measured data point to the nearest point of the fitting curve, i.e., . If , the corresponding sampled data point is the new featured point, and the node vector was reconstructed again with the non-uniform node vector construction method, then the approximation curve of quadratic optimization is obtained.
4. Experiment and Discussion
4.1. Experimental Measurement
The schematic test equipment is shown in Figure 5. The Particle Image Velocimetry (PIV) system was adopted to measure the fluid velocity of a single point, and the measurement accuracy was less than 0.5% in theory. The diameter of the transparent acrylic test pipe is . In order to ensure the fully developed flow profiles in the measuring section, the distance between the pipe inlet and the observation point are , and the distance between the pipe outlet and the measuring point are . The hydraulic slope of the test pipe is , the pipe wall was hypothesized to be hydro-dynamically smooth, and the roughness coefficient is . A laser light emitted from a 30 mJ Nd:YAG laser to illuminate the test point, and the interval of laser pulse is . Some glass spheres with diameter of were injected in order to speed the flow. The flow of the fluid depends on the drive of the pump power, and there is no device for stabilizing the fluid flow in the measurement system. The flow depth varies from 42% to 79% of .

4.2. Experimental Results
The streamwise mean velocity profiles at pipe vertical bisector was measured by the PIV on the cross-sectional plane for 42%, 50% , 62%, 70%, and 79% flow depth. In the measurement sequence, the uncertainty of the i-th measurement point can be expressed as.
where is the number of repeated measurements of a single measurement point, and is the average value of repeated measurements. According to Equation (12), the uncertainty of measurement of all measurement points were calculated, the uncertainty ranges from 0.00012 to 0.00043. In the vicinity of the bottom of the pipeline, the tracer particles collide with the pipe wall under the action of gravity, resulting in disordered motion. This disordered motion will affect the uncertainty of measurement, resulting in greater uncertainty closer to the bottom of the pipeline, and vice versa.
The measurement results are shown in Figure 6. Where is the flow depth, is the distance from the measuring position to the pipe bottom, and is the maximum velocity on the central section of the pipeline.

From Figure 6, the position of maximum velocity in the pipeline is below the free surface, and the position varies with different water depth, which is consistent with the measurement result of literature [1].
4.3. Comparisons and Discussions
According to the proposed NBSC method, the average velocity along the pipeline center line is processed, and the approximation curve of velocity profile at different flow depths are obtained. Under the condition of relative deviation less than 1%, the NBSC method was compared with the conventional B-spline curve method, and the results are shown in Figure 7. These data are presented using both and as the normalized velocity scale, the height of measuring point and the flow depth are used as normalized length scales.

(a)

(b)

(c)

(d)

(e)
Figure 7 shows the comparison profiles of partially filled pipe fluid for flow depths of 42%, 50%, 62%, 70%, and 79% respectively. As can be seen(1)The number of sampling points required for the improved B-spline curve fitting method is far less than that required by the traditional method. When the flow depth of the pipeline are 50% and 79% respectively, the appropriate fitting curve can be obtained only with four measuring points, and when the flow depth are 42%, 62%, and 70% respectively, only one feature point needs to be added. The workload of the measurement is greatly reduced.(2)Except for the two feature points at the head end and the end point, the other feature points are located at a place where the flow velocity changes relatively, and the distribution of feature points are non-uniform. The measured object can be measured more specifically by using the proposed method in this paper.(3)In the case of few feature points, there are a large deviation between the traditional B-spline fitting curve and the measured data. The approximation curve obtained by the first-order optimized B-spline curve fitting method can be better described as the distribution of flow velocity, but there is an obvious deviation in the local region. This deviation can be effectively reduced by using the quadratic optimization B-spline curve fitting method. This means that in a flow field where the flow velocity changes more drastically, the fitting accuracy can be improved by appropriately increasing the feature points.(4)Using the method proposed in this paper, the flow velocity distribution can be reconstructed with only a small amount of feature points and water depth ratio. Under the condition of relative deviation less than 1%, using the improved B-spline curve fitting method, the one-dimensional velocity distribution profile can be reconstructed with at most five feature points.
5. Conclusion
The velocity distribution in partially filled pipe is researched with non-uniform B-spline curve fitting method. A B-spline curve approximation algorithm based on few feature points is proposed, which mainly includes feature point extraction algorithm based on discrete curvature analysis, and feature point adjustment algorithm based on deviation analysis. The conclusion are as follows:(1)When the number of measurement points are the same, when compared with the traditional B-spline curve method, the proposed method has higher fitting precision. The deviation of B-spline approximation curve determined by feature points is obviously smaller than that of the traditional method.(2)When the fitting accuracy is the same, the workload of the proposed method is much lesser than that of the traditional B-spline curve method. The number of feature points obtained by extraction algorithm is obviously less than that of original measurement points, which reduces the computational complexity and improves the efficiency.(3)When the flow velocity changes drastically, more feature points are required, and when the flow velocity changes slowly, fewer feature points are required. This distribution law allows the measurements to be targeted more.(4)The method presented in this paper is easy to understand and apply to engineering applications. The analysis shows that this method has important practical significance for engineering applications. It can be used in steel smelting, aerospace, and other harsh environments, and can also be used in mold design, garment customization, big data analysis, etc., which can reduce the workload of design.
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 work was supported by the Science and Technology Project of Education Department of the Guangdong Province, China (2017GKTSCX079), and Science and Technology Project of Education Department of the Jiangxi Province, China (GJJ151069).