Method and system for calculating transient pump shutdown pressure based on water hammer effect correction, and medium
Patent Information
- Application Number
- CN202610780679.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-02
- Publication Date
- 2026-10-23
AI Technical Summary
[0003]目前,瞬时停泵压力的确定主要依赖于停泵后压力曲线的直接判读或简单数学处理,这些方法在实际应用中存在明显不足:(1)噪声干扰显著:井下压力传感器采集的信号易受机械振动、流体湍流等噪声影响,导致压力曲线波动剧烈,难以准确识别停泵时刻的真实压力值;(2)水击效应干扰:停泵瞬间流体动能转化为压力能,引发水击波动,使压力曲线在停泵初期呈现振荡衰减特征,若直接选取第一个排量为零的压力值(波峰或波谷),将导致瞬时停泵压力计算结果偏高或偏低;(3)人工判读主观性强:现有方法多依赖人工选取压力拐点或拟合衰减曲线,受操作者经验影响大,重复性差
本申请的计算方法,通过差值门限约束条件的设置和修正值的计算,实现了停泵压力的自动、稳定计算,显著提升了瞬时停泵压力的计算精度和工程适用性。具体效果如下:
Smart Images

Figure CN122964420A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of oil and gas extraction technology, and specifically relates to a method and system for calculating instantaneous pump stop pressure based on water hammer effect correction, as well as the medium. Background Technology
[0002] Hydraulic fracturing is a core technology for the efficient development of unconventional oil and gas reservoirs. Its core objective is to enhance oil and gas permeability by creating a complex fracture network within the reservoir using high-pressure fluids. In this process, the instantaneous pump shutdown pressure, as the bottom hole pressure at the moment of pump shutdown, is one of the key parameters for evaluating fracturing effectiveness. It not only directly reflects the dynamic characteristics of fracture propagation and formation stress state but also provides real-time data for optimizing and adjusting construction parameters. Accurate acquisition and analysis of instantaneous pump shutdown pressure data are crucial for avoiding over-fracturing, optimizing proppant distribution, ensuring construction safety, and improving ultimate recovery rates. It is an indispensable and vital aspect of hydraulic fracturing design, construction, and evaluation.
[0003] At present, the determination of instantaneous pump stop pressure mainly relies on the direct interpretation of the pressure curve after pump stop or simple mathematical processing. These methods have obvious shortcomings in practical applications: (1) Significant noise interference: The signal collected by the downhole pressure sensor is easily affected by noise such as mechanical vibration and fluid turbulence, resulting in violent fluctuations in the pressure curve and making it difficult to accurately identify the real pressure value at the moment of pump stop; (2) Water hammer effect interference: The fluid kinetic energy is converted into pressure energy at the moment of pump stop, which causes water hammer fluctuations, making the pressure curve show oscillating decay characteristics in the early stage of pump stop. If the first pressure value with zero displacement (peak or trough) is directly selected, the instantaneous pump stop pressure calculation result will be too high or too low; (3) Strong subjectivity of manual interpretation: Existing methods mostly rely on manual selection of pressure inflection points or fitting decay curves, which are greatly affected by the operator's experience and have poor repeatability.
[0004] To address the problems of noise interference, significant water hammer, strong subjectivity in manual interpretation, and unstable calculation results in existing pump shutdown pressure calculation processes, this application proposes a pump shutdown pressure solution method based on pressure curve filtering and water hammer effect correction. Through signal smoothing, peak-valley matching, difference filtering, and water hammer correction, automatic and stable calculation of pump shutdown pressure is achieved. This method effectively separates noise and water hammer effects, reduces human intervention, significantly improves the accuracy and engineering applicability of instantaneous pump shutdown pressure calculation, and provides a reliable basis for optimizing fracturing construction parameters. Summary of the Invention
[0005] To address the aforementioned issues, this application provides a method, system, and medium for calculating instantaneous pump stop pressure based on water hammer effect correction.
[0006] The first objective of this application is to provide a method for calculating instantaneous pump shutdown pressure based on water hammer effect correction, including: Based on the pressure curve, pressure drop data is obtained; Based on the pressure drop data, obtain the set of pressure wave peak values and the set of pressure wave trough values; Peak-valley matching and data pairing are performed on the sets of pressure wave peak values and pressure wave trough values. Based on the matching set of pressure peaks and troughs obtained from the matching process, and the difference threshold constraint, the correction value for the water hammer phenomenon is obtained. The difference between the pressure drop data and the correction value is used as the pressure drop data after water hammer effect correction; The corrected pressure drop data at the preset time and the instantaneous pressure at the corresponding time are summed, and the sum is used as the corrected instantaneous pump stop pressure.
[0007] In a specific embodiment of this application, obtaining pressure drop data based on the pressure curve includes: For the pressure curve, calculate the difference between the maximum pressure when the pump stops and the pressure after the pump stops, and use the calculated difference as the original pressure drop data; The original pressure drop data is smoothed and filtered to obtain the pressure drop data.
[0008] In a specific embodiment of this application, obtaining the set of pressure wave peak values and the set of pressure wave trough values based on pressure drop data includes: Perform first-order difference processing on the pressure drop data; If the value obtained by the first-order difference processing of the current group number is greater than zero, and the value obtained by the first-order difference processing of the next group number is less than zero, then mark the corresponding position of the current group number as the pressure wave peak position. If the value obtained by the first-order difference processing of the current group number is less than zero, and the value obtained by the first-order difference processing of the next group number is greater than zero, then mark the corresponding position of the current group number as the pressure trough position. Based on the marked pressure peak and pressure trough positions, obtain the set of pressure peak values and the set of pressure trough values.
[0009] In a specific embodiment of this application, the peak-valley matching and data pairing processing of the pressure wave peak value set and the pressure wave trough value set includes: Perform a consistency check on the set of pressure wave peak values and the set of pressure wave trough values; For data that fails the consistency check, perform periodic re-matching; Once the data passes the consistency check, the peak-valley matching and data pairing processing steps are completed.
[0010] In a specific embodiment of this application, the consistency verification of the pressure wave peak value set and the pressure wave trough value set includes: Compare the number of peaks and troughs in the set of pressure wave peaks and the set of pressure wave troughs; If the number of peaks and troughs are equal, the consistency check is passed. If the number of peaks and troughs are not equal, the data fails the consistency check.
[0011] In a specific embodiment of this application, the determination of the periodic matching of peaks and troughs includes: the periodic re-matching includes: initial half-cycle determination and peak-trough pairing; The initial half-cycle determination includes: If the first trough value is zero, then remove the first trough value and update the trough set; If the first trough value is not equal to zero, the original set of trough values is retained; The peak-valley pairing includes: Choose one set from the set of pressure wave peak values and the set of pressure wave trough values as the matching benchmark; The first m peaks and the first m troughs are selected sequentially according to the order of pump stop times, and a pairing relationship is established to obtain the pressure peak and trough matching set.
[0012] In a specific embodiment of this application, the difference threshold constraint condition is that the pressure difference is greater than the difference threshold value, and the pressure difference is the pressure difference between each pair of corresponding peaks and troughs in the pressure peak and trough matching set obtained by the matching process.
[0013] In a specific embodiment of this application, obtaining the correction value for the water hammer phenomenon based on the matching set of pressure peaks and troughs obtained through matching processing, and the difference threshold constraint condition, includes: In the pressure peak and trough matching set obtained from the matching process, the pressure difference between each pair of corresponding peaks and troughs is taken. Compare the pressure difference with the difference threshold value, and determine whether the comparison result satisfies the difference threshold constraint condition; Select the pressure peak and trough matching set obtained by matching the matching process that satisfies the difference threshold constraint; Based on the selected set, the correction value for the water hammer phenomenon is calculated.
[0014] In a specific embodiment of this application, the calculation of the correction value for the water hammer phenomenon includes: If no valid peak-valley index is detected in the current stage, set the correction value R to zero; When only one set of valid peak-valley indices is detected, the correction value is the average of that peak-valley pair; When two or more valid peak-valley indices are detected, the average value of the second peak-valley pair is taken as the correction value R.
[0015] The second objective of this application is to provide a system for calculating instantaneous pump stop pressure based on water hammer effect correction, comprising: Database module: Used to obtain pressure drop data based on pressure curves; Data processing module: used to obtain the set of pressure wave peak values and the set of pressure wave trough values based on pressure drop data; also used to perform peak-valley matching and data pairing processing on the set of pressure wave peak values and the set of pressure wave trough values. The calculation module is used to obtain the correction value for water hammer based on the pressure peak and trough matching set obtained from the matching process and the difference threshold constraint condition; it is also used to use the difference between the pressure drop data and the correction value as the pressure drop data after water hammer effect correction; it is also used to sum the corrected pressure drop data and the instantaneous pressure at the preset time after pump shutdown, and use the sum as the corrected instantaneous pump shutdown pressure.
[0016] A third objective of this application is to provide an electronic device comprising: a processor coupled to a memory; The memory is used to store computer programs; The processor is configured to execute the computer program stored in the memory, so that the electronic device performs the method as described.
[0017] A fourth objective of this application is to provide a computer-readable storage medium storing a program or instructions that, when run on a computer, cause the computer to perform the method described thereon.
[0018] The fifth objective of this application is to provide a computer program product, including a computer program / instructions that, when executed by a processor, implement the method described.
[0019] Compared with the prior art, this application has the following advantages: The calculation method in this application, through the setting of difference threshold constraints and the calculation of correction values, achieves automatic and stable calculation of pump shutdown pressure, significantly improving the calculation accuracy and engineering applicability of instantaneous pump shutdown pressure. Specific effects are as follows: Optimize water hammer effect correction. By setting difference threshold constraints and distinguishing between multiple effective index cases in the calculation of correction values, the water hammer fluctuations and the actual pressure decay characteristics are separated more accurately, and the corrected pressure drop curve better matches the theoretical decay trend.
[0020] The pressure drop data in this application has been smoothed and filtered to improve calculation accuracy. By eliminating random noise interference through smoothing filtering, and combining peak-valley difference screening with a water hammer correction model, the pressure deviation caused by water hammer effect is significantly reduced, and the calculation results are closer to the true value.
[0021] Meanwhile, this application employs peak-valley matching and data pairing processing to enhance algorithm stability. By using peak-valley matching and data pairing processing, invalid valley removal logic is implemented, resolving the pairing error problem caused by mismatched peak and valley numbers, thus improving the repeatability and consistency of the calculation results.
[0022] The method described in this application achieves full-process automation. From sliding filter processing, peak-valley matching and data pairing processing, correction value calculation to the final instantaneous pressure calculation, the entire process is completed automatically, significantly improving data processing efficiency and reducing errors caused by manual intervention. It also enhances engineering applicability. Using the preset pump shutdown pressure as a benchmark, combined with corrected pressure drop, it can stably output instantaneous pump shutdown pressure that meets industry standards, providing a reliable basis for on-site construction decisions.
[0023] Other features and advantages of this application will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained by means of the structures pointed out in the description, claims and drawings. Attached Figure Description
[0024] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0025] Figure 1 A flowchart of a method for calculating instantaneous pump stop pressure based on water hammer effect correction according to certain embodiments of this application is shown; Figure 2 The following is a pressure curve of the pump stopped for 5 minutes with water hammer characteristics in Embodiment 1 of this application; Figure 3 The diagram shows the initial pressure drop data curve in Embodiment 1 of this application; Figure 4 The pressure drop data curve in Embodiment 1 of this application is shown; Figure 5 N is shown in Embodiment 1 of this application. P ≠N T A schematic diagram illustrating the mismatch between peaks and troughs during the time period; Figure 6 The graph shown is a curve after peak-valley pairing in Embodiment 1 of this application; Figure 7 The following is an example of ΔP in Embodiment 1 of this application. k A schematic diagram of the steady decay phase when >δ; Figure 8 The following is an example of ΔP in Embodiment 1 of this application. k Schematic diagram of the steady decay phase when ≤δ; Figure 9 The diagram shows the corrected curve when two or more valid peak-valley indices are detected in Embodiment 1 of this application. Figure 10 The instantaneous pump stop pressure curve in Embodiment 1 of this application is shown; Figure 11 The instantaneous pump stop pressure curve obtained by direct interpretation in Embodiment 1 of this application is shown; Figure 12 A framework diagram of an instantaneous pump stop pressure calculation system based on water hammer effect correction according to certain embodiments of this application is shown; Figure 13 A frame diagram of an electronic device according to certain embodiments of this application is shown; In the diagram: 10, Database module; 20, Data processing module; 30, Calculation module; 300, Electronic device; 301, Processor; 302, Memory. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0027] like Figure 1 As shown, a method for calculating instantaneous pump stop pressure based on water hammer effect correction according to certain embodiments of this application includes: S1. Obtain pressure drop data based on the pressure curve; S2. Based on the pressure drop data, obtain the set of pressure wave peak values and the set of pressure wave trough values; S3. Perform peak-valley matching and data pairing processing on the set of pressure wave peak values and the set of pressure wave trough values; S4. Based on the matching set of pressure peaks and troughs obtained from the matching process, and the difference threshold constraint, the correction value of the water hammer phenomenon is obtained. S5. Use the difference between the pressure drop data and the correction value as the pressure drop data after water hammer effect correction; S6. The corrected pressure drop data at the preset time and the instantaneous pressure at the corresponding time are summed, and the sum is used as the corrected instantaneous pump stop pressure.
[0028] In some embodiments of this application, step S1 includes: S1-1. For the pressure curve, calculate the difference between the maximum pressure when the pump stops and the pressure after the pump stops, and use the calculated difference as the original pressure drop data. S1-2. Perform smoothing filtering on the raw pressure drop data to obtain the pressure drop data.
[0029] In some embodiments of this application, in steps S1-2, the smoothing filtering process is a mean smoothing filtering process based on a convolution function, or a mean smoothing filtering process based on an arithmetic mean.
[0030] The mean smoothing filtering based on the convolution function and the mean smoothing filtering based on the arithmetic mean are operations well known in the art, and will not be described in detail here.
[0031] The reason for step S1-2: Rapidly changing raw data during monitoring often contains sudden spikes or abnormal fluctuations. These phenomena are often not actual physical processes, but rather caused by instantaneous interference or noise in the monitoring system. Smoothing filtering effectively removes interference from both fixed-frequency and random noise, making the pressure drop curve smoother and more continuous, thus providing a reliable data foundation for subsequent analysis and interpretation. Step S1-2 effectively reduces the interference of instantaneous noise points on the signal, making the pressure drop curve smoother and its derivative characteristics more pronounced.
[0032] In some embodiments of this application, step S2 includes: S2-1. Perform first-order difference processing on the pressure drop data. The expression for the first-order difference processing is shown in equation (1): (1) In equation (1), , All data are pressure drop figures after the pump was stopped. This is the result of first-order difference processing. n This refers to the number of monitoring measurements of all pump pressures after the pump is stopped.
[0033] S2-2. If the value obtained from the first-order difference processing of the current group number is greater than zero, and the value obtained from the first-order difference processing of the next group number is less than zero, then mark the corresponding position of the current group number as the pressure wave peak position; that is, if d( n )>0 and d( n +1)<0, then n The corresponding pressure curve position is marked as the location of the peak; If the value obtained by the first-order difference processing of the current group number is less than zero, and the value obtained by the first-order difference processing of the next group number is greater than zero, then the corresponding position of the current group number is marked as the pressure trough position; that is, if d(n)<0 and d(n+1)>0, then the pressure curve position corresponding to n is marked as the trough position. S2-3. Based on the marked pressure peak and pressure trough positions, obtain the set of pressure peak values. and pressure trough value set , where P i T represents the i-th peak value. j N represents the j-th trough value. P With N T These represent the number of peaks and troughs, respectively.
[0034] Steps S1-2 are interconnected with S2, which frees the extraction of peak and valley features from the influence of pseudo-extreme points caused by the original noise. This ensures that the rising and falling segments of the pressure drop signal and their inflection points are presented more clearly and realistically, making the interpretation of the pressure response during the pump shutdown phase more accurate. In turn, this improves the reliability of the extracted pressure wave peak and pressure wave valley feature parameters, providing a high-quality data foundation for dynamic response analysis.
[0035] In some embodiments of this application, step S3 includes: S3-1. Perform a consistency check on the set of pressure wave peak values and the set of pressure wave trough values; S3-2. Perform periodic re-matching for data that fails the consistency check; S3-3. For data that passes the consistency check, end the peak-valley matching and data pairing processing steps.
[0036] In some embodiments of this application, step S3-1 includes: S3-1-1. Compare the number of peaks and troughs in the set of pressure wave peaks and the set of pressure wave troughs; S3-1-2. When the number of peaks and troughs are equal, the consistency check is passed. S3-1-3, When the number of peaks and troughs is not equal (i.e., N) P ≠N T If the data fails the consistency check, then it is not valid.
[0037] In some embodiments of this application, the periodic rematching specifically involves: performing a rationality check on the set of trough values, including: initial half-cycle judgment (S3-2-1) and peak-trough pairing (S3-2-2).
[0038] In some embodiments of this application, step S3-2-1, the initial half-cycle determination, includes: in the valley value set, based on whether the first valley value is equal to zero, selecting whether to update the valley set.
[0039] In some embodiments of this application, the step of selecting whether to update the valley set based on whether the first valley value is equal to zero includes: When the first trough value is equal to zero, the first trough value is removed and the trough set is updated (its expression is detailed in equation (2)) until the first trough value is not equal to zero: (2) In equation (2), This is the updated set of troughs.
[0040] If the first trough value is not equal to zero, the original set of trough values is retained.
[0041] In some embodiments of this application, step S3-2-2, the peak-valley pairing, includes: S3-2-2-1. Select one set as the matching benchmark from the set of pressure wave peak values and the set of pressure wave trough values; S3-2-2-2. Select the first m peaks and the first m troughs in sequence according to the order of pump stop time, and establish a pairing relationship to obtain the pressure peak and trough matching set. The expression is detailed in equation (3): (P K , T K ), k=1,2,…,m(3) In equation (3), P K ,T K These are the sets of pressure wave peaks and pressure wave troughs, respectively. Here, k refers to the order of the corresponding peaks and troughs. If there are 10 peaks and troughs, then k takes the value of 1-10, and m=10.
[0042] For example, the determination of the matching benchmark includes: Among all sets of pressure peak sets and pressure trough sets, the pressure peak set or pressure trough set is selected as the matching benchmark based on the number of data in the set; among them, the pressure peak set or pressure trough set with fewer data is selected, and the specific expression is shown in Equation (4) to ensure that the peaks and troughs correspond one-to-one in the time series: M=min(N P, N T (4) In equation (4), N P With N T denoted by , representing the number of peaks and troughs respectively, and M is the selection function for the matching benchmark.
[0043] Through the pairing process in step S3, the physically meaningful rising and falling segments in the pressure drop signal can be correctly matched, and the incomplete period extrema caused by the initial half-cycle oscillation can be effectively eliminated. The pressure drop sequence after matching correction can more realistically reflect the pressure decay characteristics after pump shutdown, providing reliable data for the subsequent calculation of the correction amount for water hammer phenomenon.
[0044] In some embodiments of this application, step S4 includes: S4-1. In the pressure peak and trough matching set obtained by the matching process, take the pressure difference between each pair of corresponding peaks and troughs. The expression is detailed in equation (5): (5) In equation (5), K = 1, 2, ..., m, P k With T k Let ΔP represent the k-th peak value and the k-th trough value, respectively. k Used to characterize the amplitude of local oscillations. Larger ΔP k This often implies significant liquid column oscillation, while a smaller ΔP k This indicates that the pressure system is gradually stabilizing.
[0045] S4-2. Compare the pressure difference with the difference threshold value, and determine whether the comparison result meets the difference threshold constraint condition. S4-3. Select the pressure peak and trough matching set obtained by matching processing that satisfies the difference threshold constraint condition; S4-4. Based on the selected set, calculate the correction value for the water hammer phenomenon.
[0046] In some embodiments of this application, in step S4, the difference threshold constraint condition is that the pressure difference is greater than the difference threshold value.
[0047] In step S4, to avoid misjudgment of the results due to abnormal fluctuations or noise interference, a difference threshold δ is introduced to constrain the calculation results. The threshold value can be adaptively estimated based on the local standard deviation of the smoothed signal, and is generally taken as... δ =0.06 (or adjust appropriately according to monitoring accuracy). When ΔP k When ΔP > δ, it indicates that the section has significant water hammer characteristics; when ΔP k When the value is less than or equal to δ, the signal is considered to be in a stable decay phase.
[0048] Step S4, by introducing a peak-valley difference calculation and threshold screening mechanism, effectively identifies the affected area of water hammer, establishing a clear data foundation for subsequent pressure drop correction.
[0049] In some embodiments of this application, step S4-4 includes: S4-4-1. When no valid peak-valley index is detected in the current stage, set the correction value R to zero; S4-4-2. When only one set of valid peak-valley indices is detected (i.e., m=1), the correction value is the average value of that peak-valley pair, and its expression is detailed in equation (6): R = (P1 + T1) / 2 (6) In equation (6), P1 and T1 are the peak and valley values respectively when only one set of valid peak-valley indices is detected; S4-4-3. When two or more sets of valid peak-valley indices are detected (i.e., m≥2), the average value of the second set of peak-valley pairs is taken as the correction value R, and its expression is detailed in equation (7): R = (P² + T²) / 2 (7) In equation (7), P2 and T2 are the peak value and valley value of the second group when two or more valid peak-valley indices are detected, respectively.
[0050] Based on the peak and valley identification results, the center balance processing of the fluctuation range was achieved by adjusting the value of the correction value, which effectively weakened the false high amplitude response caused by liquid inertial oscillation. While preserving the true pressure change law of the formation, the quantitative suppression of the water hammer effect was achieved, making the initial segment of the pressure drop curve more consistent with the true change trend of pressure decay after pump shutdown. The introduction of the correction value R provides a quantitative basis for the accurate determination of the pump shutdown pressure.
[0051] In some embodiments of this application, the expression for step S5 is detailed in equation (8): (8) In equation (8), For pressure drop data, R is the correction value. The pressure drop data is corrected for the water hammer effect. T This is the time series after the pump was stopped.
[0052] Step S5 effectively removes abnormal pressure drops caused by the reciprocating oscillation of the wellbore fluid, causing the oscillation center of the pressure drop curve to converge towards the true starting position (origin). The corrected pressure drop sequence can more accurately reflect the intrinsic decay trend of pressure after pump shutdown, providing a reliable dynamic basis for the accurate determination of the instantaneous shutdown pressure (ISIP).
[0053] In some embodiments of this application, the expression for step S6 is detailed in equation (9): (9) In equation (9), For the corrected instantaneous pump stop pressure, P[ T t[ ] represents the instantaneous pressure after pump shutdown, [ ] represents the pressure drop data after water hammer effect correction, and t represents the preset time after pump shutdown. The value of t follows the principle that the fluid flow in the wellbore tends to be stable at time t, and the pressure fluctuation has been attenuated to the background noise range, which can represent the steady-state pressure at time t and reduce the uncertainty caused by the initial oscillation.
[0054] In some embodiments of this application, for example, the value of t is 5min, and equation (9) is transformed into equation (10): (10) In equation (10), P[ T 5min [This refers to the instantaneous pressure 5 minutes after the pump stops.]
[0055] Example 1: The pressure curve of a well after 5 minutes of pump shutdown was obtained using an instantaneous pump stoppage pressure calculation method based on water hammer effect correction in the above embodiments (see details). Figure 2 The calculation of the instantaneous pump shutdown pressure after water hammer effect correction includes: Step 1: Same as step S1, where the calculated initial pressure drop data can be found in [link to relevant documentation]. Figure 3 The pressure drop data after processing the initial pressure drop data using mean smoothing filtering based on convolution functions is detailed in [link to relevant documentation]. Figure 4 ; Step 2: Same as step S2; Step 3: Same as step S3, except that the number of peaks and troughs in the consistency check result does not match (i.e., N). P ≠N T The situation is as follows: Figure 5 As shown, the data after peak-valley pairing is detailed in [link to data]. Figure 6 , Step 4: Same as step S4, except that the results are filtered horizontally and vertically to determine whether the difference threshold constraint is met. The conditions for meeting the constraint are as follows: Figure 7 As shown, the conditions that are not met are as follows: Figure 8 As shown; Step 5: Same as step S5, except that the corrected scenario when two or more sets of valid peak-valley indices are detected is shown in the figure below. Figure 9 As shown; Step 6: Same as step S6, calculate the instantaneous pump stop pressure corrected for water hammer effect as follows: Figure 10 As shown.
[0056] Figure 11 The uncorrected instantaneous pump stop pressure diagram is shown. Figure 11The position marked by the five-pointed star represents the pressure at the moment the pump stops. However, due to the water hammer effect, it is not the actual pump stop pressure. The selection of the pump stop pressure on site is either the pressure at the moment of pump stop or the result of estimation based on experience to eliminate the water hammer effect, both of which have certain errors.
[0057] from Figure 10 and Figure 11 The comparison shows that the corrected instantaneous pump stop pressure can more accurately reflect the intrinsic decay trend of the pressure after pump stop than the uncorrected instantaneous pump stop pressure.
[0058] from Figure 2 , Figure 10 It can be seen that 5 minutes after the pump was stopped ( Figure 2 The pressure change trend at the position with the horizontal axis at 300 tends to stabilize, proving the rationality of selecting 5 minutes for the pump shutdown pressure calculation in this application.
[0059] Therefore, the calculation method of this application can effectively eliminate the oscillation interference in the early stage of pump shutdown, making the obtained ISIP closer to the real instantaneous pump shutdown pressure. The method of this application realizes the automated and stable extraction of pump shutdown pressure, effectively improving the accuracy and reliability of instantaneous pump shutdown pressure calculation, while enhancing the applicability of engineering applications, and providing reliable basic data support for subsequent fracture activation identification and fracturing effect evaluation.
[0060] like Figure 12 As shown, a system for calculating instantaneous pump stop pressure based on water hammer effect correction according to certain embodiments of this application includes: Database module 10: Used to obtain pressure drop data based on pressure curves; Data processing module 20: used to obtain the set of pressure wave peak values and the set of pressure wave trough values based on pressure drop data; also used to perform peak-valley matching and data pairing processing on the set of pressure wave peak values and the set of pressure wave trough values. Calculation module 30: It is used to obtain the correction value of water hammer phenomenon based on the pressure peak and trough matching set obtained by matching processing and the difference threshold constraint condition; it is also used to use the difference between the pressure drop data and the correction value as the pressure drop data after water hammer effect correction; it is also used to sum the corrected pressure drop data at a preset time and the instantaneous pressure at the corresponding time, and use the sum as the corrected instantaneous pump stop pressure.
[0061] like Figure 13 As shown, in some embodiments of this application, an electronic device is provided, the electronic device 300 including: a processor 301, the processor 301 being coupled to a memory 302; The memory 302 is used to store computer programs; The processor 301 is configured to execute the computer program stored in the memory 302, so that the electronic device performs the method described in the above embodiments.
[0062] In some embodiments of this application, a computer-readable storage medium is provided that stores a program or instructions that, when executed on a computer, cause the computer to perform the methods described in the above embodiments.
[0063] According to embodiments of this application, the computer-readable storage medium may be a non-volatile computer-readable storage medium, such as, but not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this application, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, electronic device, or apparatus.
[0064] In some embodiments of this application, a computer program product is provided, including a computer program / instructions that, when executed by a processor, implement the methods described in the above embodiments.
[0065] Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A method for calculating instantaneous pump shutdown pressure based on water hammer effect correction, characterized in that, include: Based on the pressure curve, pressure drop data is obtained; Based on the pressure drop data, obtain the set of pressure wave peak values and the set of pressure wave trough values; Peak-valley matching and data pairing are performed on the sets of pressure wave peak values and pressure wave trough values. Based on the matching set of pressure peaks and troughs obtained from the matching process, and the difference threshold constraint, the correction value for the water hammer phenomenon is obtained. The difference between the pressure drop data and the correction value is used as the pressure drop data after water hammer effect correction; The corrected pressure drop data at the preset time and the instantaneous pressure at the corresponding time are summed, and the sum is used as the corrected instantaneous pump stop pressure.
2. The instantaneous pump stop pressure calculation method based on water hammer effect correction according to claim 1, characterized in that, The process of obtaining pressure drop data based on the pressure curve includes: For the pressure curve, calculate the difference between the maximum pressure when the pump stops and the pressure after the pump stops, and use the calculated difference as the original pressure drop data; The original pressure drop data is smoothed and filtered to obtain the pressure drop data.
3. The instantaneous pump stop pressure calculation method based on water hammer effect correction according to claim 1, characterized in that, The set of pressure wave peak values and the set of pressure wave trough values obtained based on pressure drop data include: Perform first-order difference processing on the pressure drop data; If the value obtained by the first-order difference processing of the current group number is greater than zero, and the value obtained by the first-order difference processing of the next group number is less than zero, then mark the corresponding position of the current group number as the pressure wave peak position. If the value obtained by the first-order difference processing of the current group number is less than zero, and the value obtained by the first-order difference processing of the next group number is greater than zero, then mark the corresponding position of the current group number as the pressure trough position. Based on the marked pressure peak and pressure trough positions, obtain the set of pressure peak values and the set of pressure trough values.
4. The instantaneous pump stop pressure calculation method based on water hammer effect correction according to claim 1, characterized in that, The peak-valley matching and data pairing processing of the pressure wave peak value set and pressure wave trough value set includes: Perform a consistency check on the set of pressure wave peak values and the set of pressure wave trough values; For data that fails the consistency check, perform periodic re-matching; Once the data passes the consistency check, the peak-valley matching and data pairing processing steps are completed.
5. The instantaneous pump stop pressure calculation method based on water hammer effect correction according to claim 4, characterized in that, The consistency check of the pressure wave peak value set and the pressure wave trough value set includes: Compare the number of peaks and troughs in the set of pressure wave peaks and the set of pressure wave troughs; If the number of peaks and troughs are equal, the consistency check is passed. If the number of peaks and troughs are not equal, the data fails the consistency check.
6. The instantaneous pump stop pressure calculation method based on water hammer effect correction according to claim 4, characterized in that, The periodic rematching includes: initial half-cycle judgment and peak-valley pairing; The initial half-cycle determination includes: If the first trough value is zero, then remove the first trough value and update the trough set; If the first trough value is not equal to zero, the original set of trough values is retained; The peak-valley pairing includes: Choose one set from the set of pressure wave peak values and the set of pressure wave trough values as the matching benchmark; The first m peaks and the first m troughs are selected sequentially according to the order of pump stop times, and a pairing relationship is established to obtain the pressure peak and trough matching set.
7. The instantaneous pump stop pressure calculation method based on water hammer effect correction according to claim 1, characterized in that, The difference threshold constraint condition is that the pressure difference is greater than the difference threshold value, and the pressure difference is the pressure difference between each pair of corresponding peaks and troughs in the pressure peak and trough matching set obtained by the matching process.
8. A method for calculating instantaneous pump stop pressure based on water hammer effect correction according to any one of claims 1-7, characterized in that, The method of obtaining the correction value for water hammer based on the pressure peak and trough matching set obtained from the matching process, and the difference threshold constraint, includes: In the pressure peak and trough matching set obtained from the matching process, the pressure difference between each pair of corresponding peaks and troughs is taken. Compare the pressure difference with the difference threshold value, and determine whether the comparison result satisfies the difference threshold constraint condition; Select the pressure peak and trough matching set obtained by matching the matching process that satisfies the difference threshold constraint; Based on the selected set, the correction value for the water hammer phenomenon is calculated.
9. The instantaneous pump stop pressure calculation method based on water hammer effect correction according to claim 8, characterized in that, The correction values for calculating water hammer include: If no valid peak-valley index is detected in the current stage, set the correction value R to zero; When only one set of valid peak-valley indices is detected, the correction value is the average of that peak-valley pair; When two or more valid peak-valley indices are detected, the average value of the second peak-valley pair is taken as the correction value R.
10. A system for calculating instantaneous pump stop pressure based on water hammer effect correction, characterized in that, include: Database module: Used to obtain pressure drop data based on pressure curves; Data processing module: used to obtain the set of pressure wave peak values and the set of pressure wave trough values based on pressure drop data; also used to perform peak-valley matching and data pairing processing on the set of pressure wave peak values and the set of pressure wave trough values. The calculation module is used to obtain the correction value of water hammer phenomenon based on the pressure peak and trough matching set obtained by matching processing and the difference threshold constraint condition; it is also used to use the difference between the pressure drop data and the correction value as the pressure drop data after water hammer effect correction; it is also used to sum the corrected pressure drop data at a preset time and the instantaneous pressure at the corresponding time, and use the sum as the corrected instantaneous pump stop pressure.
11. An electronic device, characterized in that, include: Processor, the processor being coupled to memory; The memory is used to store computer programs; The processor is configured to execute the computer program stored in the memory to cause the electronic device to perform the method as described in any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a program or instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1 to 9.
13. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the method of any one of claims 1 to 9.
