Next Article in Journal
Containerised Application Profiling and Classification Using Benchmarks
Previous Article in Journal
Joint Optimization Algorithm for Small Base Station States Control and User Association in Wireless Caching Networks
Previous Article in Special Issue
Heat Transfer Performance of a Downhole Electric Tubular Resistive Heater
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Modeling the Submergence Depth of Oil Well States and Its Applications

1
Laboratory of Oil & Gas Information Intelligent Processing & Visualization, School of Computer Science, Xi’an Shiyou University, Xi’an 710065, China
2
Xi’an Precision Machinery Research Institute, Xi’an 710077, China
3
School of Petroleum Engineering, Xi’an Shiyou University, Xi’an 710065, China
*
Author to whom correspondence should be addressed.
Submission received: 2 November 2022 / Revised: 28 November 2022 / Accepted: 29 November 2022 / Published: 2 December 2022
(This article belongs to the Special Issue Modeling and Numerical Simulations in Petroleum Engineering)

Abstract

:
Obtaining the liquid storage state of oil wells in real time is very important for oilfield production. In this paper, under the premise of fully considering the transformation factors of full-pumping and nonfull-pumping states of oil wells, submergence depth models suitable for full- and nonfull-pumping wells are constructed. To reduce the application complexity of the models, parameter-reduction processing is performed to enhance the usability of the models. By analyzing the change trend of the submergence depth during the rising, maintaining, and falling of the oil well in the full-pumping state and nonfull-pumping state models, the judgment criteria for the transition of the oil well state are provided. On this basis, the application methods of nonlinear interpolation and least squares curve-fitting numerical solutions of submergence depth models are studied, and the unique existence of the solution of the corresponding one-variable nonlinear characteristic equation in the (0, 1) open interval is proven. Finally, the error estimation of the numerical solution is carried out, the calculation formula of the number of iterations for the numerical solution of the dichotomy is provided, and the error of the relevant numerical solution is verified.

1. Introduction

In oilfield production, the submergence depth or dynamic liquid level depth of an oil well is an important index used to measure the fullness of the oil well pump, determine reasonable oil well production parameters, and formulate efficient production measures [1,2]. The normal operation of the pumping unit requires a stable supply production balance, and a reasonable submergence depth measures whether oil wells can achieve this goal. This index is essential for oil well pumping management and is a key factor used to ensure the stable production, high efficiency, and low energy consumption of oil wells; additionally, it provides the premise for achieving the best economic benefits.
For this reason, many researchers have conducted related studies on the submergence depth of oil wells or the state of the dynamic liquid level. Zhang and Wang [3] aimed at the problem of unreasonable submergence depth of pumping units in China’s oilfields; the optimization scheme of submergence depth was discussed with system efficiency and economic benefits as objective functions. Qu et al. [4] believed that submergence depth is an important factor affecting liquid production and mechanical recovery efficiency. By establishing an objective function of comprehensive mechanical recovery performance with higher liquid production and efficiency, the optimal design of the submergence depth was achieved. Dong et al. [5] determined the change trend in pump efficiencies by changing the pump efficiency value of the submergence depth according to the factors that affect pump efficiency to guide actual production. Using the relationship curve between pump efficiency and submergence depth, Lin [6] analyzed the distribution of the submergence depth of oil wells in normal production and, combined with production practice, provided the limit of the reasonable submergence depth of oil wells. Wu et al. [7] believed that a reasonable submergence depth is directly related to oil well pumping efficiencies through the oilfield production experience. In a certain range, a high submergence depth can reduce the degree of pump leakage, which is conducive to improving pump efficiency. However, if the submergence depth is too high, the pump efficiency may be reduced due to the increased elastic expansion of the sucker rod. These studies showed the importance of a reasonable submergence depth for oilfield production.
On this basis, various submergence depth- or dynamic liquid-level-related models have been developed. Liu et al. [8] determined the mathematical model of submergence depth changes during pumping by studying the change characteristics of the submergence depth according to the similarity between the flow pressure change and the voltage change during capacitor discharge. This is only one step away from the theoretical derivation of the oil well pumping submergence depth model. Sun et al. [9] proposed a venturi flow correction model based on system identification technology to improve the accuracy of downhole flow measurements. By analyzing the theoretical model and influencing factors of the traditional venturi, combined with the downhole flow conditions, a modified model of factors, such as flow coefficients and differential pressures, is established, which improves the accuracy of downhole flow measurements. To improve the simulation accuracy of the indicator diagram, the displacement coefficient, and the dynamic system parameters of oil wells with a low submergence depth and insufficient liquid supply, Wang et al. [10] successively established a simulation model of the fluid-pumping law and instantaneous pressure in the pump barrel and improved the simulation model of the bottom boundary condition of the sucker rod string’s longitudinal vibration, the dynamic simulation model of the oil well indicator diagram, and the simulation model of the oil well pump filling coefficient and leakage coefficient by comprehensively considering relevant parameters. Then, the calculation model of the discharge coefficient was improved. Zhang et al. [11] used generalized Darcy’s law to model fluid flow, which showed that ultralow matrix permeability could determine the pressure field and displacement field. However, it was also clearly stated that, due to the influence of various factors, developing accurate models is still a major challenge. Liu et al. [12] built a submergence depth model of oil well liquid storage according to the percolation characteristics of the oil layer, combined with the variation law of oil well permeability, liquid pressure, and oil well pressure. The model theoretically gives the variation law of submergence depth and time. Regarding the production cost of oil field production, Liu et al. [13] established a matching model between the periodic average submergence depth and the best speed by analyzing the relevant factors that affect the efficiency of oil wells in the oilfield, combined with the relationship between periodic average pump efficiency and average submergence depth.
In recent years, the rapid development of artificial intelligence has also provided new ideas for studying submergence depth or the dynamic liquid surface state. According to the characteristics of the time series of the submergence depth of pumping oil, Yu et al. [14] analyzed and processed the sample data of the submergence depth and time change of the measured site and proposed a submergence depth prediction method based on a support vector machine (SVM). The impulse information of the linear motor was introduced as the input of the prediction model to form an improved submergence depth prediction method. Li et al. [15] predicted the production efficiency of relevant oilfield pumping data by establishing a differential autoregressive moving average model in a time-series analysis. Han et al. [1] proposed a prediction method for submergence depth based on a hybrid model to solve problems of production cost. To ensure that the prediction of the submergence depth met the actual production requirements, an analysis model was established. The data-driven model was used to compensate for the prediction results of the analytical model, and the influence of various parameters on prediction accuracy was reduced. Through the simulation experiment of predicting the submergence depth, the advantage of comprehensive prediction performance was proven. Liang and Zhang [2] obtained the depth-estimation algorithm for the dynamic liquid level by designing an improved short-time energy zero-crossing function and three electric center clipping functions, integrating multichannel liquid-level position estimation information, and then obtaining the dynamic liquid-level-prediction model.
In summary, since the first modern industrial oil well, “Drake”, was drilled in Pennsylvania over 160 years ago, various oil-well-pumping-related models and calculation methods have been developed. These models and methods have played a positive role in applications, but these models contain some empirical factors that are difficult to fully adapt to the actual pumping state of oil wells. When pumping, it is necessary to manually adjust the corresponding parameter values based on experience. As for modeling using artificial intelligence technology, the key factor is that the source and amount of sample data determine the model’s accuracy. Because oil well states change dynamically during pumping in oilfield production, a reasonable pumping strategy is formulated according to the current submergence depth of oil wells so that the pumping unit can not only work in an efficient state but also significantly improve oil well production. Therefore, obtaining the submergence depth of pumping wells in real time and accurately is crucial for efficient pumping in oilfields.
To this end, according to the law of fluid flow and the change law of the submergence depth during pumping, submergence depth models suitable for various pumping states, such as a full-pumping state model and a nonfull-pumping state model, are constructed in this paper. Corresponding application methods are given: the nonlinear-interpolation method and the least squares curve-fitting method.

2. Materials and Methods

2.1. Submergence Depth Model Construction

When an oil well is pumping, it is either in a full pumping state or a nonfull pumping state. For a given pumping speed, when the submergence depth is greater than or equal to the stroke height of the oil well pump, it is in the full-pumping state; otherwise, it is in the nonfull-pumping state. Whether the oil well is in a full-pumping state or a nonfull-pumping state, it meets the following fluid balance equation:
Q I n Q O u t = Q D i f ,
where QIn, QOut and QDif represent the input, output, and remaining quantities, respectively. For oil well pumping, these quantities represent the permeability of the reservoir (m3/s), the pumping capacity (m3/s), and the remaining capacity of the oil well (m3/s), respectively.
In fact, the fluid balance equation is also applicable for describing the balance state of other substances with similar balance properties, such as liquids whose viscosities are lower than a certain value, gases, and electric charges. In the following, the balance equation is used to construct the models of the submergence depth of oil wells in the full-pumping state and the nonfull-pumping state.

2.1.1. Oil Well Full-Pumping State Model

In the full-pumping state, the pumping speed corresponding to the pumping unit speed is v (m3/s), according to fluid balance Formula (1):
K A μ L P E P v = S d h d t ,
where K is the permeability coefficient (m2), A is the cross-sectional area of the liquid passing through the rock (m2), μ is the viscosity of the liquid (Pa·s), L is the length of the rock (m), PE is the reservoir pressure (Pa), P is the oil well pressure (Pa), and S is the cross-sectional area of the oil well (m2).
The density of the oil is denoted by ρ (kg/m3), and the acceleration due to gravity is denoted by g (N/kg). According to the liquid pressure formula P = ρ g h , Formula (2) can be transformed into
K A ρ g μ L h E h v = S d h d t ,
where hE is the reservoir height (m) of the oil well corresponding to the reservoir pressure PE, hereafter referred to as the maximum submergence depth; and h represents the current submergence depth of the oil well (m).
Taking the comprehensive seepage parameter of the oil well C f = K A ρ g μ L S , Formula (3) can be simplified as follows:
d h d t + C f h = C f h E v S .
For a given rotational speed of the pumping unit, solving the differential equation in Formula (4) to obtain the model of the oil well in the full-pumping state yields the following:
h = h 0 + h E v C f S h 0 1 e C f t ,
where h0 is the initial submergence depth (m); that is, the submergence depth of the oil well when t = 0 .
The term hp denotes the pump stroke height (m). Since Formula (5) (also called full-pumping state Model (5)) applies to the full-pumping state, for any time t, it meets the following requirements: h h p . Then, the conditions h E h p and h 0 h p are met. The submergence depth h in the model changes with time. In addition to the gravity acceleration g and the cross-sectional area S of the oil well, other parameters will change with the pumping time of the oil well pump. It is not difficult to see that the comprehensive seepage parameter Cf in the model will change with the other parameters. Defined and used in this way, parameter Cf also includes other factors that affect trace amounts that are not reflected in the formula. Therefore, in the pumping process, the parameter Cf will also change. However, under normal circumstances, the change in parameter Cf is relatively slow, and the amount of change is small, which indicates that a certain law occurs. The degree of its change mainly depends on the remaining oil reserves of the reservoir and the oil-pumping capacity of the oil well. The greater the ratio of the reservoir’s residual volume to pumping volume, the slower the change speed of parameter Cf. After pumping for a long time, the value of parameter Cf will inevitably change. Therefore, when the change in Cf reaches a certain degree, its value must be obtained again through measurement or calculation in practical applications.
According to Formula (5), when the oil well is in the full-pumping state and starts pumping, the corresponding submergence depth is the initial submergence depth h0 when the time t is 0. Assuming that the pumping speed v = 0 , when the time t approaches infinity, the submergence depth tends to be the largest; that is, the submergence depth h tends to hE. Assuming that the pumping speed v > 0 , when the time t is great enough, hE will drop to hp. If pumping is continued, the oil well will enter the nonfull-pumping state.

2.1.2. Oil Well Nonfull-Pumping State Model

In the nonfull-pumping state, the pumping speed corresponding to the full-pumping state speed v is h / h p v . Formula (1) is thus satisfied during the pumping process:
K A ρ g μ L h E h h h p v = S d h d t .
Thus, the following holds:
d h d t + C f + v S h p h = C f h E .
It is assumed that C n = C f + v / S h p ; then, the differential equation in Formula (7) can be solved to obtain the oil well nonfull-pumping state model:
h = h 0 + h E 1 v C n S h p h 0 1 e C n t .
When the oil well is in the nonfull-pumping state, the submergence depth must satisfy h < h p and h 0 < h p .
The change in parameter Cn in Formula (8) (also called the nonfull-pumping state model (8)) is related to the comprehensive seepage parameter Cf and the oil well pumping speed v. Assuming that the pumping speed v = 0 , when the time t approaches infinity, the submergence depth tends to be the greatest; that is, the submergence depth h tends to hE. Assuming that the pumping speed v > 0 , when the time t approaches infinity, hE tends to 0.
In summary, for the constructed submergence depth models of Formulas (5) and (8) of oil wells in full and nonfull-pumping states, the change in the submergence depth (except at time t) is mainly related to the change in the oil well’s comprehensive seepage parameter Cf and pumping speed v. Especially for the nonfull-pumping model, the change trend of the submergence depth is more sensitive to the pumping speed because of the small liquid reserves in the oil well.

2.2. Submergence Depth Model Analysis

2.2.1. Trends of Change in the Submergence Depth

According to Formulas (5) and (8) of the models, oil wells can be divided into three types: the full-pumping type, the transition type, and the nonfull-pumping type. For the maximum pumping speed vMax of the pumping unit, after a long period of pumping, when h E h p + v M a x / C f S , the oil well is the full-pumping type; when h E < h p , the oil well is the nonfull-pumping type; otherwise, when h p h E < h p + v M a x / C f S , the oil well is the transition type. These three well types correspond to two well states: full-pumping and nonfull-pumping (see Table 1 and Figure 1). When the submergence depth h h p , the oil pumping state of the oil well is the full-pumping state; otherwise, when the submergence depth h < h p is the nonfull-pumping state. Among them, the oil well of the full-pumping type can only be in the full-pumping state, and the oil well of the nonfull-pumping type can only be in the nonfull-pumping state. In the transition-type oil well, the state of the oil well may be in the state of full pumping, or it may be in the state of nonfull pumping, and the well’s state may also transition between the two, depending on the well’s seepage and pumping conditions.
If the oil well is of the full-pumping type, for the full-pumping state model of Formula (5), h h p . During the pumping process, when t = 0 , the submergence depth is the initial submergence depth h0. At this time, h 0 h p . In the model, the submergence depth h changes with time t, and the comprehensive seepage parameter Cf changes with the oil-storage condition of the reservoir during the oil-pumping process. Normally, Cf changes very slowly, and its change is negligible over a considerable period. Therefore, Cf can generally be treated as a constant. However, after a long period of pumping, when the remaining oil storage in the reservoir decreases by a certain amount and the variation in Cf reaches a certain level, it needs to be recalculated to match the current state of the oil well to the greatest extent. As the pumping process continues, the time t increases gradually. If the reservoir has sufficient oil storage, the submergence depth h will be higher than the pump stroke height hp; that is, h h p . The oil well will be in the full-pumping state for a long time.
If the oil well is of the nonfull-pumping type, for the nonfull-pumping state model of Formula (8), during the pumping process, the initial submergence depth of the oil well h 0 < h p , and the change in the parameter Cn in the model is mainly related to the pumping speed v; thus, the change in the submergence depth h will be more sensitive to v. If the oil storage speed of the oil well is not less than the current oil pumping speed, after a long period, the oil pumping process reaches a certain time t, and the submergence depth h will gradually increase but will not be greater than hp. If the oil well storage speed is always lower than the current pumping speed, the submergence depth h will gradually decrease with increasing time t. When h is low to a certain extent, it is necessary to stop pumping.
If the oil well is of the transition type, it may be in a full-pumping state or a nonfull-pumping state, which is determined by the oil well’s permeability and pumping speed. The current state of the oil well needs to be determined according to the relationship between h and hp. During the pumping process, when h h p , the oil well is in a full-pumping state, corresponding to the model of the full-pumping state in Formula (5). For the transition-type oil well in the full-pumping state, if the oil storage speed of the oil well is less than the current pumping speed, the submergence depth h will gradually decrease with increasing time t. After reaching a certain time, h < h p , the oil well will transition from the full-pumping state to the nonfull-pumping state. At this time, the corresponding Formula (8) is the nonfull-pumping state model. For the transition-type oil well in the state of nonfull pumping, if the oil storage speed of the well is not less than the current pumping speed, after a long pumping time, the submergence depth h will gradually increase until h h p , and the well will again transition from the nonfull-pumping state to the full-pumping state. When the pumping state changes, that is, from the full-pumping state to the nonfull-pumping state, or from the nonfull-pumping state to the full-pumping state, its initial submergence depth h0 is replaced by hp, and the time t starts counting from 0.
Regardless of whether a well is in the full or nonfull-pumping state, for a given pumping speed, its submergence depth is in one of three phases: the rising phase, the holding phase, or the falling phase. For the full-pumping model, these three phases (see Figure 2) can be expressed as follows:
d h t d t = C f h E v C f S h 0 e C f t = { > 0 v < C f S h E h 0 = 0 v = C f S h E h 0 < 0 v > C f S h E h 0 .
When d h t / d t > 0 , the submergence depth is in the rising phase, and when d h t / d t = 0 , the submergence depth is in the holding phase; otherwise, the submergence depth is in the falling phase. Similarly, for the nonfull-pumping model, the three phases (see Figure 3) can be expressed as follows:
d h t d t = C n h E h E v C n S h p h 0 e C n t = > 0 v < C f S h E h 0 h p h 0 = 0 v = C f S h E h 0 h p h 0 < 0 v > C f S h E h 0 h p h 0 .
The trend of change in the submergence depth is determined by the comprehensive seepage parameter Cf of the oil well and the pumping speed v of the pumping unit. Especially for the nonfull-pumping model, because the oil well has fewer liquid reserves, the variation trend of submergence depth highly depends on the pumping speed.

2.2.2. Pumping State Transition

During the pumping process, the oil well of the full-pumping type is in the full-pumping state, and the oil well of the nonfull-pumping type is in the nonfull-pumping state. However, for the oil well of the transition type, the state of the oil well may change during the pumping process, from the full-pumping state to the nonfull-pumping state or from the nonfull-pumping state to the full-pumping state, depending on the well’s comprehensive seepage parameter Cf and pumping speed v.
Figure 4 shows a schematic diagram of the transition of an oil well submergence depth from the full-pumping state to the nonfull-pumping state. Combining Formulas (5) and (9), it can be found that this state transition should satisfy the following requirements:
h E v C f S < h p h 0 t > 1 C f ln C f S h E h p v C f S h E h 0 v .
The denominator of Formula (11) is C f S h E h 0 v 0 ; otherwise, the submergence depth of the full-pumping state model in Formula (5) will have a constant value of h0, and the pumping state will not change.
It is assumed that v c = 1 + v / C f S h p ; then, an oil well transitioning from the nonfull-pumping state to the full-pumping state should satisfy the following conditions:
h E v c h p > h 0 t 1 C f v c ln h E h p v c h E h 0 v c .
Similarly, the denominator is h E h 0 v c 0 ; otherwise, the submergence depth of the nonfull-pumping state model in Formula (8) will have a constant value of h0, and the pumping state of the oil well will not change. The submergence depth of the oil well from the nonfull-pumping state to the full-pumping state is shown in Figure 5.
Regarding the parameters hE and Cf of the oil well model in the full-pumping state (Formula (5)), when the oil well transitions into the nonfull-pumping state, the current submergence depth satisfies h < h p ; the parameters hE and Cf do not change, and at this time, the initial submergence depth h0 is replaced by hp. The state model Formula (5) is replaced by Formula (8), and the time restarts. The transition of an oil well from the nonfull-pumping state to the full-pumping state is similar to the transition process described above.
The models (Formulas (5) and (8)) of the oil well’s pumping submergence depth can also be applied to include only the submergence depth variation of pure oil storage or the pure oil pumping process. In fact, the pure oil storage submergence depth model and the pure oil pumping submergence depth model are special cases of oil well pumping submergence depth models. According to the oil well pumping submergence depth constructed above, the oil well pure storage model and the oil well pure pumping model can be obtained:
(1) When the oil well stops pumping; that is, v = 0 , the pure oil storage model [12] is as follows:
h = h 0 + h E h 0 1 e C f t .
Obviously, Formula (13) is a special case of Formulas (5) and (8) in the case of v = 0 .
(2) Under the assumption that the permeability coefficient of the oil well is K = 0 , the pure oil pumping model [16] is as follows:
h = h 0 v S t , h 0 h p , t S v h 0 h p h 0 e v S h p t , h 0 < h p .
Similarly, Formula (14) is a special case of Formulas (4) and (7) in the case of K = 0 . In reality, oil wells that satisfy Formula (14) hardly exist, and they are suitable for the liquid pumping process of a straight vessel.

3. Results

3.1. Submergence Depth Models’ Numerical Solutions

When the values of h0, hE, and Cf are known, the submergence depth at any point in time can be obtained using Formula (5) or (8). The submergence depth corresponding to time t 0 = 0 is recorded as h0, and the timing is then started from this point to obtain the submergence depth at subsequent time points in sequence. For the time point 0 = t 0 < t 1 < t 2 and corresponding submergence depth h i   ( i = 0 , 1 , 2 ) , the values of the parameters hE and Cf are obtained by a numerical solution.

3.1.1. Nonlinear-Interpolation Method

(1) Full-pumping state
It is considered that x = e C f 0 , 1 . For h in the rising phase, the sampling time points 0 = t 0 < t 1 < t 2 and the corresponding submergence depth h p < h 0 < h 1 < h 2 satisfy the following:
h i = h 0 + h E v C f S h 0 1 x t i , i = 1 , 2 .
Thus, it holds that h 1 h 0 i = 0 t 2 1 x i = h 2 h 0 i = 0 t 1 1 x i . The corresponding nonlinear-interpolation method’s characteristic function of the full-pumping state is as follows:
f x = h 1 h 0 i = 0 t 2 1 x i h 2 h 0 i = 0 t 1 1 x i .
Thus, the following expressions hold:
f 0 = h 1 h 2 < 0 ,
f 1 = h 1 h 0 t 2 h 2 h 0 t 1 = h 1 h 0 t 2 t 1 h 2 h 1 t 1 t 0 .
In Formula (15), the submergence depth hi and the solution x satisfy h 2 h 1 h 1 h 0 = x t 2 x t 1 x t 1 x t 0 ; therefore:
f 1 = h 1 h 0 t 2 t 1 t 1 t 0 x t 0 x t 1 x t 2 x t 1 t 2 t 1 x t 1 x t 0 t 1 t 0 .
It is assumed that F t = x t . Then, according to the Lagrange mean value theorem, there is a τ 1 t 0 , t 1 and a τ 2 t 1 , t 2 such that:
f 1 = h 1 h 0 t 2 t 1 t 1 t 0 x t 0 x t 1 F τ 2 F τ 1 .
Since F t = x t ln x 2 and h 1 h 0 t 2 t 1 t 1 t 0 x t 0 x t 1 > 0 , for t 0 , F t is a monotonically increasing function. Thus, f 1 > 0 . Therefore, there is a solution to the characteristic equation f x = 0 , x 0 , 1 .
The following proves that for Δ x > 0 , x 0 , 1 , and x + Δ x 0 , 1 , when f x 0 , the function is monotonically increasing.
f x + Δ x = h 1 h 0 j = t 1 t 2 1 x + Δ x j h 2 h 1 j = 0 t 1 1 x + Δ x j > 1 + Δ x x t 1 h 1 h 0 j = t 1 t 2 1 x j h 2 h 1 j = 0 t 1 1 x j = 1 + Δ x x t 1 f x f x .
Therefore, f x crosses zero at a single point in x 0 , 1 , so the corresponding characteristic equation f x = 0 has a unique solution x 0 , 1 [17]. Then,
C f = ln x h E = h 0 + h i h 0 1 x t i + v C f S , 1 i 2 .
The solution given in Formula (22) is also suitable for h in the falling phase.
(2) Nonfull-pumping state
Similar to the full-pumping state, for x = e C n 0 , 1 and h in the rising phase, the sampling time points 0 = t 0 < t 1 < t 2 and the corresponding submergence depth 0 h 0 < h 1 < h 2 < h p satisfy:
h i = h 0 + h E 1 v C n S h p h 0 1 x t i , i = 1 , 2 .
The corresponding nonfull-pumping state characteristic function is the same as the full-pumping state characteristic function, that is, Formula (16). Similarly, the solution x 0 , 1 of the corresponding characteristic equation leads to the following:
C f = ln x + v S h p h E = h 0 + h i h 0 1 x t i + 1 + v C f S h p , 1 i 2 .
The solution given in Formula (24) also applies to h in the falling phase.
Regardless of a full-pumping state or the nonfull-pumping state, the submergence depth tester has a certain error (<1%). To avoid error amplification, the time between every two sampling points should not be too short. With the extension of the pumping time, parameters Cf and hE change to a certain extent; thus, it is necessary to update them promptly according to the actual situation of the oil well.

3.1.2. Least Squares Curve-Fitting Method

For the submergence depth h of the full-pumping state model (Formula (5)) in the rising phase, it is assumed that the number of sampling nodes is N ( 2 ) . The submergence depths corresponding to time points 0 = t 0 < t 1 < t 2 < t N are 0 = t 0 < t 1 < t 2 < t N respectively. For 1 i N , it is assumed that H i = h i h 0 , and H E = h E v / C f S h 0 ; then, the two-norm error function is:
g C f , H E = i = 1 N H E 1 e C f t i H i 2 .
The parameters Cf and HE are calculated, as shown below, to minimize the value of the two-norm error function.
It is given that x = e C f . The least squares curve-fitting characteristic function corresponding to the two-norm error Formula (25) is [12]:
f x = 1 i < j N x t i t 1 k = 0 t j 2 a k x k H i k = 0 t j 1 x k H j k = 0 t i 1 x k ,
where a k = k + 1 t i , t j k 1 t j t i , 0 k t j t i 1 t j t i k t j 2 .
According to a reference [17], the characteristic equation f ( x ) = 0 has a unique solution in x 0 , 1 , which can be solved by using the dichotomy method, and we can obtain the following:
H E = i = 1 N H i 1 x t i i = 1 N 1 x t i 2 = i = 1 N t i H i x t i i = 1 N t i x t i 1 x t i .
Therefore, the least squares curve-fitting solution for the full-pumping state model given in Formula (5) is:
C f = ln x h E = H E + h 0 + v C f S .
Referring to the analysis for the full-pumping state model, for the nonfull-pumping state model (Formula (8)), it is given that x = e C n , and for 1 i N , H i = h i h 0 , and H E = h E 1 v / C n S h p h 0 . Similarly, using Formula (26), the least squares curve-fitting solution of its corresponding characteristic equation is:
C f = ln x + v S h p h E = H E + h 0 1 + v C f S h p .
Solutions (28) and (29) are also suitable for cases in which the submergence depth h is in the falling phase.
However, in the above two solutions, when the submergence depth is in the holding phase, the value of the comprehensive seepage parameter Cf of the oil well cannot be obtained using Formula (16) or (26). Instead, it can be obtained by changing the pumping speed such that the submergence depth is in the rising or falling phase.

3.2. Error Analysis

3.2.1. Number of Iterations and Error Estimation

The corresponding numerical solutions for x, Cf, and Cn in Formulas (5) and (8) are denoted by x ¯ , C f ¯ , and C n ¯ , respectively. For a given error 0 < ε < 1 , x ¯ x < ε is needed. M denotes the number of iterations, satisfying ε 2 M . Therefore, the maximum number of iterations of the dichotomy is as follows:
M = 1 int ln ε ln 2 .
For the nonlinear-interpolation method, the error in the comprehensive seepage parameter of the full-pumping state model satisfies the following:
C f ¯ C f < C f ¯ C f + C f ¯ C f 2 2 ! + + C f ¯ C f n n ! + = e C f ¯ C f 1 < e C f ¯ e C f ¯ = x ¯ x < ε .
Since C n ¯ C n = C f ¯ C f , Formula (31) also holds for the nonfull-pumping state model.
Both Formula (22) for the full-pumping state model and Formula (24) for the nonfull-pumping state model satisfy the following:
h ¯ E h E β ε ,
where β = 1 + v C f S h p h 0 h i t i x ¯ t i 1 x ¯ t i 2 + O ε , ( 1 i 2 ) . It can be seen in Formula (31) that 0 < x ¯ < 1 holds when ε is sufficiently small. Therefore, the larger the value of the sampling time point is, the smaller the β value.
For the least squares curve-fitting method, the numerical error on the parameter Cf is the same as that for nonlinear interpolation, and the numerical error on the parameter hE can be obtained from Formulas (27)–(29):
h ¯ E h E 1 + v C f S h p H ¯ E H E = β ¯ ε .
Here, β ¯ = O t 1 x ¯ t 1 ; that is, the parameter β ¯ is of the same order as t 1 x ¯ t 1 .
In fact, it can be seen in Formulas (16) and (26) that when N = 2 , the solutions obtained through nonlinear interpolation and least squares curve-fitting are the same; that is, the former is a special case of the latter.
The following takes the pumping process of the oil well in the full-pumping state as an example to verify and analyze the sampling data characteristics and error trends of the nonlinear-interpolation method and the least squares curve-fitting method.

3.2.2. Application Analysis of the Nonlinear-Interpolation Method

For h E = 1000   ( m ) , v / ( C f S ) = 12.5   ( m ) , and C f = 0.005   ( h 1 ) , according to pumping Formula (5), the corresponding model is:
h = 100 + 887.5 1 e 0.005 t .
The sampling time nodes are t 1 = 24   ( h ) and t 2 = 96   ( h ) , and the corresponding submergence depths are h 1 = 200.358   ( m ) and h 2 = 438.330   ( m ) . The calculation results are shown in Table 2. In this table, “ ε ” is the specified error setting for the solution of Formula (16), and “error Cf” and “error hE” are the absolute error values corresponding to C f ¯ C f and h ¯ E h E , respectively. Since the value of β in Formula (32) is in the order of 1.9 × 10−05, it can be seen in Formulas (27) and (28) that both “error Cf” and “error hE” satisfy the set requirements.
The solution error of the corresponding Formula (16) can be set as needed, but the measurement error cannot be set to meet a particular requirement. Table 3 shows the calculation results obtained with a solution error setting of ε = 1 × 10 12 and a measurement error of 1%. In Table 3, “relative error Cf” is C f ¯ C f / C f , and “relative error hE” is h ¯ E h E / h E . For h i ± Δ h i ( i = 0 , 1 , 2 ) , the symbol “+” or “−” indicates h i + 1 % × h i or h i 1 % × h i respectively. For example, “+” in term h 0 ± Δ h 0 indicates h 0 + 1 % × h 0 = 1.01 × h 0 , and similarly, “−” indicates 0.99 × h 0 . “0” means no error.
Formula (16) shows that in the solution equations for the model, when the errors of h i ( i = 0 , 1 , 2 ) increase or decrease in the same value, the errors cancel each other out, and the result does not affect the solution x. Therefore, the value of the parameter Cf is not affected, but the value of hE is affected. Under the assumption that h ¯ i = 1 + δ h i , ( i = 0 , 1 , 2 ) , where δ is the error, h ¯ E = h E + δ h E v C f S is obtained from Formula (22). However, when the error of h1 is in the opposite direction of h2, it has a great influence on the value of solution x of the equation.

3.2.3. Application Analysis of the Least Squares Curve-Fitting Method

To facilitate the development of a comparison, the same test model and parameters are considered as in Section 3.2.2 above, with ε = 1.0 × 10−12. For sampling point N = 2, the calculation results are the same as those for the nonlinear-interpolation method. The sampling time points (unit is h) are 24, 48, 72, and 96, and the calculation results are shown in Table 4.
For sampling time point N = 11 (from 6 to 96 with a step size of 9), the positive and negative error distribution and the errors in the results are shown in Table 5.
Comparing Table 4 and Table 5, although the sampling points have doubled, the error has not decreased proportionally, and only the results of the sampling points with a cross-distribution of positive and negative errors have been significantly improved. For example, the results of row no. 3 and 4 in Table 5 are better than those of no. 3 to 8 in Table 4.
To observe the numerical calculation convergence law of the least squares curve-fitting method, the sampling time points are equally divided with a maximum time point of 1000 (h), and the relative error calculation results for Cf and hE are given for an alternating distribution of positive and negative errors at the sampling points (see Table 6 and Figure 6). When solving the equation corresponding to the least squares curve-fitting characteristic function (Formula (26)), the relative errors of Cf and hE tend to decrease as the number of sampling points increases, and the time taken increases exponentially. For the convenience of observation, the “time used (s)” item in Figure 6 is reduced by a factor of 700.
It can be seen in Table 6 and Figure 6 that:
(1) The “relative error Cf” and “relative error hE” decrease as the number of sampling points increases;
(2) For odd numbers of sampling points, the result is better than that for the adjacent even numbers; whether the number of nodes is odd or even, the more nodes that participate in the operation, the smaller the error;
(3) If one of the sampling points is used as the boundary to divide the positive and negative errors of the sampling points, the operation result is relatively poor. However, the more sampling points there are, the lower the probability of positive and negative error segmentation of such sampling points.
In summary, it can be seen from the derivation and testing of the numerical methods:
(1) When the measurement errors of all sampling points are the same or close, it can be seen in the characteristic function (Formula (16) or (26)) that the error of solution x and the comprehensive seepage parameter Cf is also smaller. However, it affects the value of hE, and the error is determined by the measurement error;
(2) The more uniform the positive and negative error distributions are, the better the results of the least squares curve-fitting method are compared with those of the nonlinear-interpolation method;
(3) When the number of nodes involved in the calculation is three, the nonlinear-interpolation method is a special case of the least squares curve-fitting method. Therefore, the least squares curve-fitting method has wider adaptability.

4. Conclusions

(1) In accordance with the fluid-balance equation, a full-pumping state model and a nonfull-pumping state model are constructed. The dimensionality of the parameters other than time and the oil well submergence depth is reduced using the correlation characteristics of the seepage parameters, which effectively reduces the number of parameters in the models of submergence depth for oil wells during pumping and enhances the availability of this model.
(2) The relationship between the three types of oil wells and the two states are combed, the trends of the changes in the submergence depth in three phases (rising phase, holding phase, and falling phase) for the models of an oil well in the full and nonfull-pumping states are analyzed, and the judgment criteria for the corresponding submergence depth and the law governing the change in the pumping speed are given. On this basis, the criteria for transitioning an oil well from the full-pumping state to the nonfull-pumping state and from the nonfull-pumping state to the full-pumping state are given, which provides a basis for practical applications.
(3) For the nonlinear-interpolation method and the least squares curve-fitting method, the corresponding univariate characteristic equations are derived, and the unique existence of the solution of the characteristic equations in the (0, 1) interval is proven. The errors of the two numerical solution methods are estimated, the iteration times of the dichotomy are given, the relevant numerical solution tests and result analysis are carried out, and the possible adverse conditions of the sampling data are evaluated to provide a reference for avoiding such conditions.
(4) For the numerical-solution method of least squares curve-fitting, the computing environment was an Intel® CoreTM i7-3770 CPU @ 3.40 GHz. When the number of sampling points was 10, 50, 100, 200, and 500, the time consumption was no more than 0.02, 0.6, 2, 7, and 45 s, respectively.

Author Contributions

Conceptualization, T.L.; methodology, T.L., X.T., L.L. and X.G.; software, X.T. and Y.Z.; validation, X.T. and Y.Z.; formal analysis, L.Z. and X.S.; investigation, X.G. and X.S.; resources, X.G., L.Z. and X.S.; data curation, X.G., L.Z. and X.S.; writing—original draft preparation, T.L. and L.L.; writing—review and editing, L.L. and X.G.; supervision, T.L.; project administration, L.L.; funding acquisition, T.L. and X.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China, grant number 52104032; the Natural Science Basic Research Plan in Shaanxi Province of China, grant number 2020JQ-787; the Natural Science Basic Research Plan in Shaanxi Province of China, grant number 2022JQ-671; the 68th Batch of China Postdoctoral Foundation, grant number 2020M683597; and the Natural Science Basic Research Plan in Shaanxi Province of China, grant number 2019JM-174.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Han, Y.; Song, X.; Li, K.; Yan, X. Hybrid modeling for submergence depth of the pumping well using stochastic configuration networks with random sampling. J. Pet. Sci. Eng. 2021, 208, 109423. [Google Scholar] [CrossRef]
  2. Xin, L.; Zhu-hong, Z. Research on Depth of Oil Well Moving Liquid Surface Based on Short-term Energy and LSTM. Comput. Mod. 2021, 04, 15–19. [Google Scholar] [CrossRef]
  3. Zhang, Y.; Wang, B. Determination of rational submergence depth of oil well pump. Oil Drill. Prod. Technol. 1999, 21, 62–65. [Google Scholar] [CrossRef]
  4. Qu, B.; Xu, H.; Ma, W.; Xu, Y. Impacts of submergence depth on overall performance of sucker rod pumping system. China Pet. Mach. 2015, 43, 89–93. [Google Scholar] [CrossRef]
  5. Dong, H.; Wu, T.; Liao, Q.; Chang, Z. Relationship between suitable submergence depth with pump efficiency. Inn. Mong. Petrochem. Ind. 2010, 36, 36–39. [Google Scholar] [CrossRef]
  6. Lin, X. Analysis of relation between sucker-rod working condition and submergence depth. Petrochem. Ind. Technol. 2016, 23, 99. [Google Scholar] [CrossRef]
  7. Wu, Q.; Han, L.; Wang, Y.; Fu, S. Influence factors of pump efficiency and determination of pump depth in deep well. Spec. Oil Gas Reserv. 2005, 12, 82–84. [Google Scholar] [CrossRef]
  8. He, L.; Jiashan, G.; Xueyan, W. Research on Reasonable Intermittent pumping System of oil Pumping Well. Oil Drill. Prod. Technol. 1900, 22, 69–72. [Google Scholar] [CrossRef]
  9. Fuchao, S.; Xiaohan, P.; Longda, L.; Fanfu, L.; Weina, J. Correction model research on oil well downhole flowrate test based on venturi. In Proceedings of the 33rd Chinese Control Conference, Nanjing, China, 28–30 July 2014; pp. 6664–6667. [Google Scholar] [CrossRef]
  10. Wang, H.B.; Dong, S.M.; Gan, Q.M.; Xin, H.; Zhu, G. Dynamic parameter simulation model of low-production pumping well and the ways to improve system efficiency. J. Acta Pet. Sin. 2018, 39, 1299–1307. [Google Scholar] [CrossRef]
  11. Zhang, Q.; Yan, X.; Shao, J. Fluid flow through anisotropic and deformable double porosity media with ultra-low matrix permeability: A continuum framework. J. Pet. Sci. Eng. 2021, 200, 108349. [Google Scholar] [CrossRef]
  12. Liu, T.; Zheng, M.; Song, X.; Wu, Y.; Zhang, R. Submergence depth modeling of oil well reservoirs and applications. J. Pet. Sci. Eng. 2021, 208, 109234. [Google Scholar] [CrossRef]
  13. Liu, T.; Lou, H.; Gao, X. Research on construction and application method of oil pumping speed control model. J. Xi’an Shiyou Univ. Nat. Sci. Ed. 2022, 37, 125–130. [Google Scholar] [CrossRef]
  14. Yu, D.; Qi, W.; Deng, S.; Zhang, Y.; Zhang, F.; Wang, X. Submergence forecasting of a submersible plunger pump based on the support vector machine. Acta Pet. Sin. 2011, 32, 53–538. [Google Scholar] [CrossRef] [Green Version]
  15. Li, X.; Tan, C.D.; Tan, P.F.; Zhang, S.L. Application of ARIMA Model in Time Series Analysisto Predict the Efficiency of Pumping Well Production System. Peak Data Sci. 2017, 6, 41–44. [Google Scholar] [CrossRef]
  16. Liu, T.; Zhao, Y.; Huang, Y. Research on the Submergence Depth Model of Oil Well Pumping. In Proceedings of the 2021 6th International Conference on Intelligent Computing and Signal Processing (ICSP), Xian, China, 9–11 April 2021; pp. 213–216. [Google Scholar]
  17. Liu, T.; Dong, Y. Research on numerical solution of one-sided monotonic function dichotomy. J. Phys. Conf. Ser. 2021, 2012. [Google Scholar] [CrossRef]
Figure 1. Relationship between oil well types and pumping states.
Figure 1. Relationship between oil well types and pumping states.
Applsci 12 12373 g001
Figure 2. Schematic diagram of three-phase trends of the submergence depth in the full-pumping model.
Figure 2. Schematic diagram of three-phase trends of the submergence depth in the full-pumping model.
Applsci 12 12373 g002
Figure 3. Schematic diagram of three-phase trends of the submergence depth in the nonfull-pumping model.
Figure 3. Schematic diagram of three-phase trends of the submergence depth in the nonfull-pumping model.
Applsci 12 12373 g003
Figure 4. Schematic diagram of transition from the full-pumping state to the nonfull-pumping state.
Figure 4. Schematic diagram of transition from the full-pumping state to the nonfull-pumping state.
Applsci 12 12373 g004
Figure 5. Schematic diagram of transition from the nonfull-pumping state to the full-pumping state.
Figure 5. Schematic diagram of transition from the nonfull-pumping state to the full-pumping state.
Applsci 12 12373 g005
Figure 6. Error trends of the least squares curve-fitting method with the number of sampling points.
Figure 6. Error trends of the least squares curve-fitting method with the number of sampling points.
Applsci 12 12373 g006
Table 1. Relationship between discriminant conditions and pumping models.
Table 1. Relationship between discriminant conditions and pumping models.
Oil Well TypeConditionPumping Model
Full-pumping type h p + v M a x C f S h E Full-pumping state Model (5)
h p h 0
Transition type h p h E < h p + v M a x C f S 1. If the size relationship between h and hp remains unchanged, keep the original state model.
Otherwise, take h 0 = h p and restart the timing:
2. When condition h < h p becomes h > h p , use Model (5);
3. When condition h > h p becomes h < h p , use Model (8).
Nonfull-pumping type h p > h E Nonfull-pumping state Model (8)
h p > h 0
Table 2. Parameter error of solving equations.
Table 2. Parameter error of solving equations.
εError CfError hE
1.00 × 10−012.31 × 10−037.29 × 10+02
1.00 × 10−021.93 × 10−043.16 × 10+01
1.00 × 10−033.64 × 10−056.22 × 10+00
1.00 × 10−048.73 × 10−071.48 × 10−01
1.00 × 10−052.02 × 10−073.43 × 10−02
1.00 × 10−062.17 × 10−083.68 × 10−03
1.00 × 10−072.08 × 10−093.52 × 10−04
1.00 × 10−083.27 × 10−105.54 × 10−05
1.00 × 10−092.03 × 10−113.44 × 10−06
1.00 × 10−101.14 × 10−122.00 × 10−07
1.00 × 10−111.15 × 10−132.00 × 10−08
1.00 × 10−121.36 × 10−142.30 × 10−09
Table 3. Measurement error distribution and calculation results.
Table 3. Measurement error distribution and calculation results.
h0 ± Δh0h1 ± Δh1h2 ± Δh2Relative Error CfRelative Error hE
+++2.71 × 10−129.88 × 10−03
2.71 × 10−129.88 × 10−03
0+2.05 × 10−011.29 × 10−01
0+2.02 × 10−011.92 × 10−01
Table 4. Positive and negative error distributions of the sampling points (N = 4).
Table 4. Positive and negative error distributions of the sampling points (N = 4).
Noh0 ± Δh0hi ± ΔhiRelative Error CfRelative Error hE
1+++++2.72 × 10−129.88 × 10−03
22.72 × 10−129.88 × 10−03
30++1.18 × 10−011.03 × 10−01
40++1.18 × 10−018.11 × 10−02
50++1.67 × 10−011.49 × 10−01
60++1.63 × 10−011.04 × 10−01
70++2.20 × 10−012.06 × 10−01
80++2.11 × 10−012.06 × 10−01
Table 5. Positive and negative error distributions of the sampling points (N = 11).
Table 5. Positive and negative error distributions of the sampling points (N = 11).
No.h0 ± Δh0hi ± ΔhiRelative Error CfRelative Error hE
1++++++++++++8.56 × 10−119.88 × 10−03
22.86 × 10−119.88 × 10−03
30++++++7.79 × 10−039.76 × 10−03
40+++++7.79 × 10−039.91 × 10−03
50++++++1.99 × 10−021.48 × 10−02
60++++++7.94 × 10−025.66 × 10−02
70+++++01.95 × 10−011.28 × 10−01
800+++++1.86 × 10−011.80 × 10−01
Table 6. Calculation results for an alternating distribution of positive and negative errors at the sampling points.
Table 6. Calculation results for an alternating distribution of positive and negative errors at the sampling points.
Sampling Point NRelative Error CfRelative Error hETime Used (s)
31.37 × 10−026.78 × 10−040.02
42.48 × 10−025.28 × 10−030.03
56.75 × 10−041.35 × 10−030.05
61.18 × 10−022.99 × 10−030.08
72.07 × 10−031.37 × 10−030.10
87.26 × 10−032.05 × 10−030.13
92.90 × 10−031.28 × 10−030.16
105.23 × 10−031.57 × 10−030.19
112.87 × 10−031.13 × 10−030.24
124.07 × 10−031.28 × 10−030.29
132.68 × 10−031.01 × 10−030.35
143.41 × 10−031.11 × 10−030.40
152.33 × 10−038.85 × 10−040.46
162.91 × 10−039.48 × 10−040.51
172.25 × 10−038.14 × 10−040.59
182.62 × 10−038.51 × 10−040.66
191.95 × 10−037.24 × 10−040.74
202.27 × 10−037.55 × 10−040.79
251.58 × 10−035.69 × 10−041.27
301.48 × 10−035.03 × 10−041.84
351.17 × 10−034.16 × 10−042.47
401.10 × 10−033.78 × 10−043.19
459.28 × 10−043.28 × 10−044.04
508.78 × 10−043.03 × 10−044.92
557.63 × 10−042.70 × 10−045.98
607.31 × 10−042.53 × 10−047.11
656.41 × 10−042.28 × 10−048.33
706.28 × 10−042.17 × 10−049.67
755.64 × 10−041.99 × 10−0411.07
805.47 × 10−041.90 × 10−0412.56
854.94 × 10−041.75 × 10−0414.20
904.84 × 10−041.69 × 10−0415.90
954.44 × 10−041.57 × 10−0417.65
1004.37 × 10−041.52 × 10−0419.69
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Liu, T.; Tian, X.; Liu, L.; Gu, X.; Zhao, Y.; Zhang, L.; Song, X. Modeling the Submergence Depth of Oil Well States and Its Applications. Appl. Sci. 2022, 12, 12373. https://0-doi-org.brum.beds.ac.uk/10.3390/app122312373

AMA Style

Liu T, Tian X, Liu L, Gu X, Zhao Y, Zhang L, Song X. Modeling the Submergence Depth of Oil Well States and Its Applications. Applied Sciences. 2022; 12(23):12373. https://0-doi-org.brum.beds.ac.uk/10.3390/app122312373

Chicago/Turabian Style

Liu, Tianshi, Xue Tian, Liwen Liu, Xiaoyu Gu, Yun Zhao, Liumei Zhang, and Xinai Song. 2022. "Modeling the Submergence Depth of Oil Well States and Its Applications" Applied Sciences 12, no. 23: 12373. https://0-doi-org.brum.beds.ac.uk/10.3390/app122312373

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop