Method, device, medium and program for determining well opening and closing duration of intermittent gas well

By acquiring casing and tubing pressure and flow data, the well opening and closing time of intermittent gas wells is optimized, solving the inefficiency problem caused by relying on manual experience in existing technologies and improving the efficiency of gas well development.

CN121998794APending Publication Date: 2026-05-08CNPC GREATWALL DRILLING COMPANY +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CNPC GREATWALL DRILLING COMPANY
Filing Date
2024-11-08
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

The existing methods for formulating intermittent gas well opening and closing procedures rely on manual experience, resulting in low gas well development efficiency and a large management workload.

Method used

By obtaining the casing pressure, pressure inflection point, and tubing pressure of intermittent gas wells within a reference production cycle, the reference well opening and shut-in times are determined. Combined with the gas well flow rate and critical fluid carrying flow rate, the reference well opening and closing times are calculated to optimize the well opening and closing strategy.

Benefits of technology

It improved the extraction efficiency of gas wells, reduced management workload, and enhanced the development effect of gas wells.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121998794A_ABST
    Figure CN121998794A_ABST
Patent Text Reader

Abstract

The invention discloses a method for determining the well opening and closing time length of an intermittent gas well, and relates to the technical field of oil and gas exploitation, and the method comprises the steps: obtaining the first pressure of a sleeve, a pressure inflection point corresponding to the first pressure and the second pressure of an oil pipe during the well closing period of the intermittent gas well in each reference production cycle, determining a plurality of reference well opening moments of the intermittent gas well according to the first pressure, the pressure inflection point and the second pressure; the gas well flow, the critical liquid-carrying flow and the second pressure of the casing pipe of the intermittent gas well in the well opening period in each reference production cycle are obtained, and multiple reference well closing moments of the intermittent gas well are determined according to the gas well flow, the critical liquid-carrying flow and the second pressure; and according to the multiple reference well opening moments and the multiple reference well closing moments of each reference production cycle, the reference well opening and closing duration of the reference production cycle is determined, according to the reference well opening and closing duration of the multiple reference production cycles, the target well opening and closing duration of the intermittent opening gas well in the target production cycle is determined, and the exploitation efficiency of the gas well can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of oil and gas extraction technology, and in particular to a method, apparatus, electronic device, storage medium, and program product for determining the opening and closing time of intermittent gas wells. Background Technology

[0002] During the development of oil and gas fields, as the development progresses into the middle and later stages, the formation pressure decreases, reducing the fluid-carrying capacity of gas wells. Formation water and condensate cannot be effectively discharged, leading to fluid accumulation in the wellbore and severely impacting gas well production. At this point, an intermittent well operation method is necessary. When the gas well pressure and production drop to a certain level, the well is shut off to restore pressure. Once the pressure recovers to a sufficient level, production resumes, allowing the well to carry fluids for production.

[0003] Currently, the methods for establishing gas well switching systems, such as timed and pressure-controlled switching, involve manual setting and require a large amount of daily management work. Furthermore, the development effect is highly dependent on the professional knowledge and management experience of relevant technical personnel in gas production engineering and reservoir engineering, resulting in low gas well development efficiency. Summary of the Invention

[0004] This invention provides a method, apparatus, electronic device, storage medium, and program product for determining the opening and closing time of intermittent gas wells, in order to solve the problem of low extraction efficiency and improve the development efficiency of gas wells.

[0005] According to one aspect of the present invention, a method for determining the well opening and closing time of an intermittent gas well is provided, comprising:

[0006] The method involves acquiring the first casing pressure, the pressure inflection point corresponding to the first pressure, and the second tubing pressure during the shut-in period of each reference production cycle for the intermittently operated gas well; and determining multiple reference well-opening times for the intermittently operated gas well based on the first pressure, the pressure inflection point, and the second pressure; and...

[0007] The gas well flow rate, critical fluid carrying flow rate, and second pressure of the casing are obtained during the well opening period of the intermittent gas well in each reference production cycle. Multiple reference shut-in times of the intermittent gas well are determined based on the gas well flow rate, the critical fluid carrying flow rate, and the second pressure.

[0008] The reference well opening and closing time of each reference production cycle is determined based on multiple reference well opening times and multiple reference well closing times. The target well opening and closing time of the intermittent gas well in the target production cycle is determined based on the reference well opening and closing times of multiple reference production cycles.

[0009] According to another aspect of the present invention, a device for determining the opening and closing time of an intermittent gas well is provided, comprising:

[0010] The reference well opening time determination module is used to obtain the first pressure of the casing, the pressure inflection point corresponding to the first pressure, and the second pressure of the tubing during the well shut-in period in each reference production cycle of the intermittent gas well, and to determine multiple reference well opening times of the intermittent gas well based on the first pressure, the pressure inflection point and the second pressure.

[0011] The reference shut-in time determination module is used to obtain the gas well flow rate, critical fluid carrying flow rate and the second pressure of the casing during the well opening period of the intermittent gas well in each reference production cycle, and to determine multiple reference shut-in times of the intermittent gas well based on the gas well flow rate, the critical fluid carrying flow rate and the second pressure.

[0012] The target well opening / closing duration determination module is used to determine the reference well opening / closing duration of the reference production cycle based on multiple reference well opening times and multiple reference well closing times for each reference production cycle, and to determine the target well opening / closing duration of the intermittently operated gas well in the target production cycle based on the reference well opening / closing durations of the multiple reference production cycles.

[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0014] At least one processor; and

[0015] A memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the method for determining the opening and closing time of intermittent gas wells according to any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the method for determining the opening and closing time of an intermittent gas well as described in any embodiment of the present invention.

[0018] According to another aspect of the present invention, a computer program product is provided, the computer program product comprising a computer program that, when executed by a processor, implements the method for determining the opening and closing time of intermittent gas wells as described in any embodiment of the present invention.

[0019] The technical solution of this invention improves the production efficiency of gas wells by acquiring the first casing pressure, the pressure inflection point corresponding to the first pressure, and the second tubing pressure during the shut-in period of each reference production cycle of an intermittently operated gas well; determining multiple reference well opening times of the intermittently operated gas well based on the first pressure, the pressure inflection point, and the second pressure; acquiring the gas well flow rate, the critical fluid carrying flow rate, and the second casing pressure during the well opening period of each reference production cycle of the intermittently operated gas well; determining multiple reference shut-in times of the intermittently operated gas well based on the gas well flow rate, the critical fluid carrying flow rate, and the second pressure; determining the reference well opening and shut-in duration of the reference production cycle based on the multiple reference well opening times and multiple reference well closing times of each reference production cycle; and determining the target well opening and shut-in duration of the intermittently operated gas well in the target production cycle based on the reference well opening and shut-in durations of the multiple reference production cycles.

[0020] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 This is a flowchart of a method for determining the opening and closing time of an intermittent gas well according to Embodiment 1 of the present invention;

[0023] Figure 2 This is a flowchart of another method for determining the opening and closing time of an intermittent gas well according to Embodiment 2 of the present invention;

[0024] Figure 3 This is a schematic diagram of a device for determining the opening and closing time of an intermittent gas well according to Embodiment 3 of the present invention;

[0025] Figure 4 This is a schematic diagram of the structure of an electronic device for implementing the method for determining the opening and closing time of intermittent gas wells according to an embodiment of the present invention. Detailed Implementation

[0026] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0028] Example 1

[0029] Figure 1 This invention provides a flowchart of a method for determining the opening and closing time of intermittent gas wells, according to Embodiment 1. This embodiment is applicable to determining the opening and closing time of future production cycles based on known opening and closing times of intermittent gas wells. This method can be executed by an intermittent gas well opening and closing time determination device, which can be implemented in hardware and / or software and can be configured in an electronic device. Figure 1 As shown, the method includes:

[0030] S110. Obtain the first pressure of the casing, the pressure inflection point corresponding to the first pressure, and the second pressure of the tubing during the shut-in period of each reference production cycle of the intermittently opened gas well, and determine multiple reference well opening times of the intermittently opened gas well based on the first pressure, the pressure inflection point, and the second pressure.

[0031] Intermittent gas wells refer to gas wells that are extracted using intermittent extraction methods. During the extraction of natural gas, as the extraction time increases, gas wells may experience problems such as reduced pressure, decreased production, and liquid accumulation, leading to discontinuous production. Therefore, this intermittent production method is necessary for gas well extraction.

[0032] The reference production cycle can be one or more historical production cycles of the same intermittently opened gas well. For example, if the intermittently opened gas well is opened five times and closed five times during the exploitation process, the times corresponding to the five well openings and the five well closings can be combined to obtain five reference production cycles. Each production cycle corresponds to one well opening time and one well closing time.

[0033] The shut-in period can refer to the time during which an intermittent gas well is closed. For example, during the production process of an intermittent gas well, if the well meets the shut-in conditions, it is shut down. After the well is shut down, if the well meets the opening conditions, it is opened. The shut-in period can be the time between the well being shut down and its reopening. Casing is a downhole completion tool used for cementing operations in oil and natural gas wells. Casing supports the wellbore and injects cementing material into pores or fractures, thus securing the wellbore while preventing pressure from the formation and the inflow of oil and gas into the wellbore. Tubing is a pipeline used to transport crude oil and natural gas from the oil and gas reservoir to the surface after drilling is completed. Tubing withstands the pressure generated during production, ensuring that oil and gas are transported to the surface smoothly and safely. In intermittent gas wells, oil and gas can be transported to the surface via tubing, while casing ensures the stability and safety of the wellbore. The extraction of oil and gas from open gas wells is accomplished through the coordinated use of tubing and casing.

[0034] The first pressure of the casing can be the shut-in casing pressure during the well shutdown period, or the pressure exerted by the formation on the casing during the well shutdown period. The shut-in casing pressure characterizes the pressure of the formation where the gas well is located, and the amount of natural gas the well can produce can be determined based on the casing pressure. The pressure inflection point corresponding to the first pressure can be the intersection of the early and late tangents on the casing pressure recovery curve during the well shutdown period. It characterizes the turning point in the casing pressure recovery process and can be determined through linear regression analysis and significance testing of the casing pressure recovery curve, or through other technical means. This invention does not specifically limit the method for determining the casing pressure inflection point. The second pressure of the tubing can be the shut-in tubing pressure during the well shutdown period. The shut-in tubing pressure characterizes the energy level of the oil and gas well.

[0035] The reference well start time can be obtained based on the casing pressure, the corresponding casing pressure inflection point, and the tubing pressure during the shut-in period of the intermittent gas well. It simulates the timing of ending the shut-in earlier or later than the actual well start time, and restarting the intermittent gas well for continued production, within the shut-in period. Specifically, after determining the actual well start and shut-in times for any historical production cycle of the intermittent gas well, the shut-in period can be determined based on the actual well start time. Then, multiple reference well start times corresponding to this historical production cycle can be determined based on the casing pressure, the corresponding casing pressure inflection point, and the tubing pressure during the shut-in period. It should be noted that the reference well start time is the well start reference time after the casing pressure inflection point. The reference well start time can be before or after the actual well start time. The limitation is that the reference well start time must be a time after the time corresponding to the casing pressure inflection point. For example, if the casing pressure inflection point is 15:30, then the reference well start time is a time after 15:30. For instance, in the historical production cycle of an intermittently operated gas well, if the actual well shut-in time is 15:00, the actual well start time is 16:00, and the casing pressure inflection point is 15:30, then the reference well start time could be any of the following times: 15:50, 15:51, 15:55 before the actual well start time, and / or 16:01 and 16:05 after the actual well start time.

[0036] Optionally, determining multiple reference well opening times for the intermittently operated gas well based on the first pressure, the pressure inflection point, and the second pressure may include: determining the inflection point time corresponding to the pressure inflection point; determining a time period of a first preset length after the inflection point time as the well shut-in period to be analyzed; and determining multiple reference well opening times for the intermittently operated gas well from the well shut-in period to be analyzed based on the first pressure and the second pressure collected during the well shut-in period to be analyzed. The first preset length of time period may include the well shut-in period after the inflection point time and the time period corresponding to the first preset time node from the inflection point time. Optionally, determining the inflection point time corresponding to the pressure inflection point, and defining a time period of a first preset length after the inflection point time as the well shut-in period to be analyzed; and determining multiple reference well opening times of the intermittent gas well from the well shut-in period to be analyzed based on the first pressure and the second pressure collected during the well shut-in period to be analyzed, may include: determining the inflection point time corresponding to the pressure inflection point, defining the well shut-in period after the inflection point time as the well shut-in period to be analyzed; and determining multiple reference well opening times of the intermittent gas well from the well shut-in period to be analyzed based on the first pressure and the second pressure collected during the well shut-in period to be analyzed.

[0037] Optionally, determining the inflection point time corresponding to the pressure inflection point, and defining a time period of a first preset length after the inflection point time as the well shut-in period to be analyzed; determining multiple reference well opening times of the intermittent gas well from the well shut-in period to be analyzed based on the first pressure and the second pressure collected during the well shut-in period to be analyzed, may include: determining the inflection point time corresponding to the pressure inflection point, defining a time period from the inflection point time to the first preset time node after the inflection point time as the well shut-in period to be analyzed; and determining multiple reference well opening times of the intermittent gas well from the well shut-in period to be analyzed based on the first pressure and the second pressure collected during the well shut-in period to be analyzed.

[0038] The first preset time node can be pre-set by the user based on the production status of the reference production cycle or the generation requirements of the reference well opening time, to ensure the integrity of the reference well opening time. The first preset time node can be before or after the actual well opening time. For example, in the historical production cycle of an intermittent gas well, if the actual well shut-in time is 15:00, the actual well opening time is 16:00, and the casing pressure inflection point corresponds to 15:30, then the first preset time node can be set to 17:00 or 18:00, or it can be set to 15:40 or 15:50. This invention does not specifically limit the size of the first preset time node; those skilled in the art can set it themselves based on historical production curve data. By adding the first preset time node, the range of the reference well opening time can be limited from the actual well opening time to the first preset time node, increasing or decreasing the determination range of the reference well opening time, ensuring both the integrity and rationality of the reference well opening time.

[0039] The inflection point can be determined based on the pressure inflection point corresponding to the casing pressure during the shut-in period of the intermittent gas well. The shut-in period can be a time interval during the shut-in period of the intermittent gas well. The shut-in period to be analyzed can be the time interval from the inflection point of the casing pressure during the shut-in period to the actual well opening time, or it can be the time interval from the inflection point of the casing pressure during the shut-in period to the first preset time node. Multiple reference well opening times of the intermittent gas well can be determined from the shut-in period to be analyzed based on the tubing pressure and casing pressure collected during the shut-in period to be analyzed.

[0040] For example, in the historical production cycle of an intermittent gas well, the actual well shut-in time is 15:00, the actual well opening time is 16:00, and the first preset time node is 17:00. By analyzing the data of the historical production cycle, the inflection point time corresponding to the pressure inflection point of the current historical production cycle of the intermittent gas well is determined to be 15:40. Therefore, the corresponding well shut-in period to be analyzed can be either the period from 15:40 to 16:00 or the period from 15:40 to 17:00. Based on the tubing and casing pressure data collected during the shut-in period, multiple reference well-opening times can be determined from 15:40 to 16:00 or 15:40 to 17:00. For example, 15:45, 15:55, etc., falling within the 15:40 to 16:00 range, or 16:45, 16:55, etc., falling within the 15:40 to 17:00 range, can be used as reference well-opening times for the current historical production cycle of the intermittent gas well. Inflection points reflect the dynamic behavior of fluids within the well or changes in formation pressure. By using the time period after the inflection point as a reference well-opening time period, more accurate data and information can be used to formulate well-opening strategies for the next production cycle, thereby avoiding the adverse effects of opening wells too early or too late, and ultimately improving production efficiency.

[0041] Optionally, determining multiple reference well opening times for the intermittently operated gas well from the well-shutdown period based on the first pressure and the second pressure collected during the well-shutdown period to be analyzed includes: determining the pressure difference corresponding to the first pressure and the second pressure collected during the well-shutdown period to be analyzed; determining the maximum and minimum pressure differences among the pressure differences; and determining the change in the difference corresponding to the pressure differences; and determining multiple reference well opening times for the intermittently operated gas well from the well-shutdown period to be analyzed based on the maximum difference, the change in the difference, and the minimum difference.

[0042] The pressure difference can be the difference between the first and second pressures after the casing pressure reaches the pressure inflection point during the shut-in period of an intermittent gas well. This pressure difference is used to characterize the in-well fluid state, formation energy changes, and production dynamics of the intermittent gas well. The maximum difference can be the difference between the tubing pressure and casing pressure at the pressure inflection point during the shut-in period. The minimum difference can be determined by multiplying the tubing pressure and casing pressure during the shut-in period by a preset multiple. For example, after determining the difference between the tubing pressure and casing pressure during the shut-in period, the minimum pressure difference can be determined based on this difference, and then multiplied by a preset multiple to obtain the minimum difference. The preset multiple can be a constant less than or equal to 1. The difference change can be a preset change determined by technicians based on the production parameters corresponding to different historical production cycles. For example, the preset change corresponding to the historical production cycle can be set to 0.035 MPa.

[0043] Optionally, determining multiple reference well opening times for the intermittent gas well from the shut-in period to be analyzed based on the maximum difference, the change in difference, and the minimum difference may include: starting with the maximum difference and using the change in difference as the step size, decreasing the maximum difference to the minimum difference, and obtaining multiple reference well opening times for the intermittent gas well in the historical production cycle based on the time and casing pressure inflection point data corresponding to the oil-casing pressure difference obtained each time in the historical production curve corresponding to the historical production cycle.

[0044] For example, the casing pressure, tubing pressure, and casing pressure inflection point information during the shut-in period of each historical production cycle of an intermittent gas well can be obtained. Based on the casing pressure inflection point information corresponding to the current historical production cycle, the casing pressure inflection point time is determined. The time period from the casing pressure inflection point time to the actual well opening time of the current historical production cycle is determined as the first time period, and the time period from the inflection point time to the first preset time node is determined as the second shut-in period to be analyzed. The difference between the tubing pressure and casing pressure during the shut-in period of the intermittent gas well is determined based on the casing pressure and tubing pressure. Then, based on the difference in tubing pressure and casing pressure, the shut-in period to be analyzed, preset multiples, and preset changes, multiple reference well opening times are determined from the first shut-in period to be analyzed. For reference well opening times not appearing in the first shut-in period to be analyzed, they can be determined from the second shut-in period to be analyzed. By determining multiple reference well opening times corresponding to the intermittent gas well in historical production cycles, data support can be provided for optimizing well opening time, thereby improving the production efficiency of the gas well.

[0045] S120. Obtain the gas well flow rate, critical fluid carrying flow rate, and second pressure of the casing during the well opening period of the intermittent gas well in each reference production cycle, and determine multiple reference shut-in times of the intermittent gas well based on the gas well flow rate, the critical fluid carrying flow rate, and the second pressure.

[0046] The well opening period can be the time period during which an intermittent gas well is opened. For example, during the extraction of an intermittent gas well, if the conditions for opening the intermittent gas well are met, the gas well is opened; after the intermittent gas well is opened, if the conditions for closing the well are met, the gas well is closed; the well opening period can be the time period between when the gas well is opened and when it is closed again.

[0047] The gas well flow rate refers to the volume of gas flowing from the formation into the wellbore per unit time during the gas well's production process. The critical fluid-carrying flow rate is the minimum gas production rate at which a gas well can continuously carry fluid out of the wellbore. When the gas well's production falls below this critical value, the fluid inside the wellbore cannot be effectively carried out, potentially leading to a series of problems such as fluid accumulation in the wellbore, increased pressure, and decreased production.

[0048] Among them, the second pressure of the casing can be the casing micro-rise pressure determined based on the casing pressure during the well opening period. The casing micro-rise pressure is the small increase in casing pressure relative to a certain reference point or initial state during the well opening production stage, and is used to characterize the casing pressure micro-rise value during the well opening period of the gas well.

[0049] The reference shut-in time can be obtained based on the slight increase in casing pressure, gas flow rate, and critical fluid-carrying flow rate during the well opening period of the intermittent gas well. It simulates the time when the intermittent gas well will be shut down earlier or later than the actual shut-in time, either during or after the opening period, thus ceasing further production. Specifically, after determining the actual opening and shut-in times for any historical production cycle of the intermittent gas well, the well opening period (opening time) can be determined based on the actual shut-in time. Then, multiple reference shut-in times corresponding to this historical production cycle can be calculated based on the slight increase in casing pressure, gas flow rate, and critical fluid-carrying flow rate during the opening period. The reference shut-in time can be before or after the actual shut-in time; the limitation is that the reference shut-in time must be a time after the time corresponding to the critical fluid-carrying flow rate. For example, if the critical fluid carrying capacity corresponds to 16:30, then the reference well opening time is a time after 16:30. For example, in the historical production cycle of an intermittently operated gas well, if the actual well opening time is 16:00 and the actual well shut-in time is 18:00, and the critical fluid carrying capacity corresponds to 16:30, then the reference well opening time could be any of the following times: 17:50 or 17:51 before the actual well shut-in time, and / or 18:05 or 18:06 after the actual well shut-in time.

[0050] Optionally, determining multiple reference shut-in times for the intermittently operated gas well based on the gas well flow rate, the critical fluid-carrying flow rate, and the second pressure includes: determining the moment when the gas well flow rate drops to the critical fluid-carrying flow rate as the critical moment, and determining a second preset length of time period after the critical moment as the well opening period to be analyzed; determining multiple reference shut-in times for the intermittently operated gas well based on the second pressure collected during the well opening period to be analyzed. The second preset length of time period may include both a second preset length of time period after the critical moment and the well opening period after the critical moment.

[0051] Optionally, the step of determining the moment when the gas well flow rate drops to the critical fluid-carrying flow rate as the critical moment, and determining the second preset length of time period after the critical moment as the well opening period to be analyzed; determining multiple reference shut-in times for the intermittently opened gas well based on the second pressure collected during the well opening period to be analyzed may include: determining the moment when the gas well flow rate drops to the critical fluid-carrying flow rate as the critical moment, and determining the second preset length of time period after the critical moment as the well opening period to be analyzed; determining multiple reference shut-in times for the intermittently opened gas well based on the second pressure collected during the well opening period to be analyzed.

[0052] Optionally, the step of determining the moment when the gas well flow rate drops to the critical fluid-carrying flow rate as the critical moment, and determining the second preset length of time period after the critical moment as the well opening period to be analyzed; determining multiple reference shut-in times for the intermittently opened gas well based on the second pressure collected during the well opening period to be analyzed, may further include: determining the moment when the gas well flow rate drops to the critical fluid-carrying flow rate as the critical moment, and determining the well opening period after the critical moment as the well opening period to be analyzed; determining multiple reference shut-in times for the intermittently opened gas well based on the second pressure collected during the well opening period to be analyzed.

[0053] The critical moment can be determined based on the critical liquid-carrying flow rate corresponding to the gas flow rate during the well opening period of the intermittent gas well, and is the time corresponding to the critical liquid-carrying flow rate. The well opening period can be a time interval during the well opening period of the intermittent gas well. The well opening period to be analyzed can be the period from the critical moment to the actual shut-in moment during the well opening period of the intermittent gas well, or the period from the critical moment to the second preset time node after the critical moment. Multiple reference shut-in moments of the intermittent gas well can be determined from the well opening period to be analyzed based on the casing second pressure collected during the well opening period to be analyzed.

[0054] The second preset time node can be pre-set by the user based on the production status of the reference production cycle or the generation requirements of the reference shut-in time, to ensure the integrity of the reference shut-in time. The second preset time node can be before or after the actual shut-in time. For example, in the historical production cycle of an intermittent gas well, if the actual well opening time is 16:00, the actual well shut-in time is 17:00, and the critical fluid carrying flow rate corresponds to 16:30, then the second preset time node can be set to 17:00 or 18:00, or it can be set to 16:40 or 16:50. This invention does not specifically limit the size of the second preset time node; those skilled in the art can set it according to the requirements of the reference shut-in time. By adding a second preset time node, the range of the reference shut-in time can be limited from the actual shut-in time to the second preset time node, increasing or decreasing the determination range of the reference shut-in time, ensuring both the integrity and rationality of the reference shut-in time.

[0055] For example, in the historical production cycle of an intermittent gas well, the actual well opening time is 16:00, the actual well closing time is 18:00, and the second preset time node is 19:00. By analyzing historical production cycle data, the critical time corresponding to the critical liquid-carrying flow rate for the current historical production cycle of the intermittent gas well is determined to be 17:40. Therefore, the corresponding shut-in period to be analyzed can be either 17:40 to 18:00 or 17:40 to 19:00. Based on the slight increase in casing pressure collected during the shut-in period, multiple reference shut-in times can be determined from 17:40 to 18:00 or 17:40 to 19:00. For example, multiple time points such as 17:45 and 17:55, which fall within the 17:40 to 18:00 range, or 18:45 and 18:55, which fall within the 17:40 to 19:00 range, can be used as reference shut-in times for the current historical production cycle of the intermittent gas well. This allows for more accurate determination of the shut-in time for the intermittent gas well, improving production efficiency.

[0056] Optionally, determining multiple reference shut-in times for the intermittently opened gas well based on the second pressure collected during the well opening period to be analyzed includes: determining the maximum pressure value and the minimum pressure value corresponding to the second pressure collected during the well opening period to be analyzed, and determining the pressure change corresponding to the second pressure; determining multiple reference shut-in times for the intermittently opened gas well from the well opening period to be analyzed based on the minimum pressure value, the pressure change, and the maximum pressure value.

[0057] The maximum pressure value can be the maximum slight increase in casing pressure during the well opening period of an intermittent gas well, determined based on the casing pressure and a preset pressure multiple. For example, after determining the casing pressure during the well opening period, the minimum casing pressure value can be determined based on the casing pressure. Then, the maximum slight increase in casing pressure, i.e., the maximum pressure value, is obtained by multiplying the minimum casing pressure value by the preset pressure multiple. The preset pressure multiple can be a constant less than or equal to 0.2. The minimum pressure value can be a preset minimum slight increase in casing pressure determined by technicians based on production parameters corresponding to different historical production cycles. For example, the minimum slight increase in casing pressure corresponding to a historical production cycle can be set to 0. The pressure change can be the change in the preset slight increase in casing pressure determined by technicians based on production parameters corresponding to different historical production cycles. For example, the change in the preset slight increase in casing pressure corresponding to a historical production cycle can be set to 0.07 MPa.

[0058] Optionally, determining multiple reference shut-in times for the intermittently operated gas well from the well-opening period to be analyzed based on the minimum pressure value, the pressure change, and the maximum pressure value may include: starting with the minimum pressure value and using the pressure change value as a step size, increasing the minimum pressure value to the maximum pressure value, and determining multiple reference shut-in times corresponding to each historical production cycle based on the time corresponding to the slight increase in casing pressure obtained in each increment in the historical production curve. If there is no corresponding slight increase in casing pressure data in the historical production curve, the reference shut-in time corresponding to the slight increase in casing pressure data in the historical production curve can be determined based on the historical production curve data and the slight increase in casing pressure data.

[0059] For example, the well flow rate, critical fluid carrying capacity, casing pressure, and slight increase in casing pressure during the shut-in period of each historical production cycle of an intermittently operated gas well can be obtained. Based on the critical fluid carrying capacity corresponding to the current historical production cycle, the critical moment is determined. The time period from the critical moment to the actual shut-in moment of the current historical production cycle is defined as the first well-opening period to be analyzed, and the time period from the actual shut-in moment to a second preset time node is defined as the second well-opening period to be analyzed. Based on the slight increase in casing pressure, preset pressure multiples, and preset minimum casing pressure slight increase of the intermittently operated gas well, multiple reference shut-in moments are determined from the first well-opening period to be analyzed. For reference shut-in moments not appearing in the first well-opening period to be analyzed, they are determined from the second well-opening period to be analyzed based on historical production curve data and casing pressure slight increase data. This process determines multiple reference shut-in moments for the intermittently operated gas well. Multiple reference shut-in moments can provide data support for optimizing shut-in time and improve the production efficiency of the gas well.

[0060] S130. Determine the reference well opening and closing time of the reference production cycle based on the multiple reference well opening times and multiple reference well closing times of each reference production cycle, and determine the target well opening and closing time of the intermittent gas well in the target production cycle based on the reference well opening and closing time of the multiple reference production cycles.

[0061] The target production cycle can be the production cycle for which the well opening and shut-in times need to be predicted before the intermittent gas well has started production. The reference production cycle corresponding to the target production cycle can be one or more historical production cycles for which the intermittent gas well has already finished production. The multiple reference production cycles corresponding to the target production cycle can be a preset number of reference production cycles that are adjacent to the target production cycle in terms of production time. The preset number can be a number set by the user according to the prediction requirements. For example, the preset number of reference production cycles can be all historical production cycles of the intermittent gas well, or it can be other numbers. The adjacent target production cycle refers to the historical production cycle that is adjacent to the production cycle to be predicted. For example, if the current intermittent gas well has experienced five well openings and five well shut-ins, then five historical production cycles of the current intermittent gas well can be determined. Then, according to the user's prediction requirements, all five historical production cycles can be determined as reference production cycles, or three or four can be selected as reference production cycles. Preferably, the historical production cycle that is closest to the target production cycle is selected as the historical production cycle, and the sixth production cycle that has not yet started production is determined as the target production cycle.

[0062] Specifically, the reference well opening and shut-in times for each reference production cycle are determined based on multiple reference well opening times and multiple reference well shut-in times. This can be achieved after determining the number of reference production cycles, by obtaining the gas well flow rate, critical fluid carrying capacity, and well opening casing pressure during the well opening period for each production cycle, as well as the shut-in casing pressure, pressure inflection point related to the shut-in casing pressure, and shut-in tubing pressure during the shut-in period for intermittently opened gas wells. Multiple reference shut-in times are determined for each reference production cycle based on the gas well flow rate, critical fluid carrying capacity, and well opening casing pressure during the well opening period. Similarly, multiple reference well opening times are determined for each reference production cycle based on the shut-in casing pressure, pressure inflection point related to the shut-in casing pressure, and shut-in tubing pressure during the shut-in period. This results in multiple reference well opening times and multiple reference shut-in times for each reference production cycle.

[0063] Specifically, determining the target well opening / closing time of the intermittently operated gas well in the target production cycle based on the reference well opening / closing times of multiple reference production cycles can be achieved by obtaining multiple reference well opening times and multiple reference well closing times corresponding to each reference production cycle, and then determining the optimal reference well closing time and optimal reference well opening time for each reference production cycle based on these times. Then, based on the optimal reference well closing time and optimal reference well opening time corresponding to multiple reference production cycles, the optimal well opening time and optimal well closing time of the intermittently operated gas well in the next production cycle are predicted, and the predicted optimal well opening time and optimal well closing time are determined as the target well opening / closing time of the intermittently operated gas well in the target production cycle. This embodiment of the invention does not specifically limit the method for determining the target well opening / closing time; those skilled in the art can set their own method for determining the target well opening / closing time according to their needs.

[0064] The technical solution of this invention obtains the first casing pressure, the pressure inflection point corresponding to the first pressure, and the second tubing pressure during the shut-in period of an intermittent gas well in each reference production cycle. Based on the first pressure, the pressure inflection point, and the second pressure, it determines the maximum difference, the change in the difference, and the minimum difference. Based on the maximum difference, the change in the difference, and the minimum difference, it determines multiple reference well-opening times for the intermittent gas well, providing data support for the well-opening strategy of the next production cycle and thus improving production efficiency. It also obtains the gas well flow rate, critical fluid-carrying flow rate, and the second casing pressure during the well-opening period of the intermittent gas well in each reference production cycle. Based on the gas well flow rate, critical fluid-carrying flow rate, and the second pressure, it determines multiple reference shut-in times for the intermittent gas well, providing data support for the shut-in strategy of the next production cycle and thus improving production efficiency. Finally, it determines the reference well-opening and shut-in duration for each reference production cycle based on the multiple reference well-opening and shut-in times, and determines the target well-opening and shut-in duration for the intermittent gas well in the target production cycle based on the reference well-opening and shut-in durations for each reference production cycle, thereby improving the gas well production efficiency.

[0065] Example 2

[0066] Figure 2 This is a flowchart of another method for determining the well opening and closing duration of an intermittently operated gas well according to Embodiment 2 of the present invention. Based on the above embodiments, this embodiment further refines the determination of the reference well opening and closing duration for each reference production cycle based on multiple reference well opening times and multiple reference well closing times for each reference production cycle, and the determination of the target well opening and closing duration of the intermittently operated gas well in the target production cycle based on the reference well opening and closing durations of multiple reference production cycles. Terms identical to those in the above embodiments are not repeated here. Figure 2 As shown, the method includes:

[0067] S210. Obtain the first pressure of the casing, the pressure inflection point corresponding to the first pressure, and the second pressure of the tubing during the shut-in period of each reference production cycle of the intermittently opened gas well, and determine multiple reference well opening times of the intermittently opened gas well based on the first pressure, the pressure inflection point, and the second pressure.

[0068] S220. Obtain the gas well flow rate, critical fluid carrying flow rate, and second pressure of the casing during the well opening period of the intermittent gas well in each reference production cycle, and determine multiple reference shut-in times of the intermittent gas well based on the gas well flow rate, the critical fluid carrying flow rate, and the second pressure.

[0069] S230. For a single reference production cycle, each reference well opening time and each reference well shut-in time are combined to obtain multiple reference gas production periods.

[0070] The reference gas production period can be obtained by combining each reference shut-in time from multiple reference shut-in times in a single reference production cycle of an intermittently opened gas well with each reference open time from multiple reference open times. For example, if the multiple reference open times of the current reference production cycle are 16:55, 16:56, and 17:03, and the multiple reference shut-in times of the current reference production cycle are 17:55, 17:56, and 18:05, then the multiple reference time periods corresponding to the current reference production cycle can be determined as 16:55-17:55, 16:55-17:56, 16:55-18:05, 16:56-17:55, 16:56-17:56, 16:56-18:05, 17:03-17:55, 17:03-17:56, and 17:03-18:05. By identifying multiple reference gas production periods that may be the optimal production time periods within a single reference production cycle, data can be provided for the well opening and closing times in the next production cycle, thereby increasing gas production in the next production cycle and improving extraction efficiency.

[0071] S240. Determine the gas production rate of the intermittent gas well during the reference gas production period, and determine the average gas production rate during the reference gas production period based on the gas production rate during the intermittent period.

[0072] The time-period gas production can be the gas production volume corresponding to each of multiple reference time periods within a reference production cycle. The time-period gas production volume can be determined based on the actual gas production volume of the current cycle, combined with the well opening and closing times for each reference time period. Those skilled in the art can also determine the time-period gas production volume in other ways; this embodiment of the invention does not limit the specific method for determining the time-period gas production volume.

[0073] The average gas production can be obtained by dividing the gas production of each reference time period by the sum of the well opening and shut-in times, after determining the gas production of each reference time period. Those skilled in the art can also determine the average gas production in other ways; this embodiment of the invention does not limit the specific method for determining the average gas production.

[0074] By determining the gas production and average gas production for each reference time period, the average gas production within each reference gas production period can be predicted. This provides data for determining the optimal well opening and shut-in time for each reference time period, and ultimately determines the optimal well opening and shut-in time for the next production cycle, thereby improving the gas well extraction efficiency.

[0075] S250. Determine the reference well-closing duration of the reference production cycle based on the average gas production during the multiple reference gas production periods.

[0076] The reference well-opening / closing duration can be determined by analyzing the average gas production of each reference gas production period within multiple reference gas production periods of each reference production cycle. The reference gas production period with the highest average gas production is selected from among the multiple reference gas production periods, and its corresponding well-opening / closing duration is then defined as the reference well-opening / closing duration. It should be noted that after determining the reference well-opening period and reference well-shutdown period of the reference production cycle, the well-opening duration and well-shutdown duration corresponding to the reference production cycle can be determined based on these periods. By defining the well-opening / closing duration corresponding to the reference gas production period with the highest average gas production as the reference well-opening / closing duration, the maximum average gas production corresponding to each completed reference production cycle can be determined based on known production data from the reference production cycle. This provides data support for determining the optimal well-opening / closing duration for the next production cycle, thereby improving the production efficiency of the gas well in the next cycle.

[0077] S260. The reference well-opening durations of multiple reference production cycles are weighted and summed to obtain the target well-opening duration of the intermittent gas well in the target production cycle; wherein, the weight corresponding to the reference production cycle is negatively correlated with the time interval between the reference production cycle and the target production cycle in terms of production time.

[0078] The multiple reference production cycles corresponding to the target production cycle are a preset number of reference production cycles that are close to the target production cycle in terms of production time. For example, if an intermittent gas well has five historical production cycles, all five of the five historical production cycles can be used as reference production cycles, or four can be used as reference production cycles. When selecting four historical production cycles from the five, the production cycle with the closest production cycle time to the current target production cycle is preferred as the reference production cycle. That is, the first historical production cycle is discarded, and the four historical production cycles closest to the target production cycle are determined as the reference production cycles corresponding to the intermittent gas well. This is because the closer the time is to the target production cycle, the stronger the correlation with the target production cycle. The target well opening and closing time determined by the optimal well opening and closing time of the reference production cycles with strong correlation can provide a basis for the next production cycle, thereby improving the exploitation efficiency of the intermittent gas well.

[0079] It should be noted that, in the process of weighted summation of the reference well-switching durations for multiple reference production cycles, the weight corresponding to the reference production cycle is negatively correlated with the time interval between the reference production cycle and the target production cycle. By assigning higher weights to the reference well-switching durations of reference production cycles with shorter time intervals, and by weighted summation of the reference well-switching durations for multiple reference production cycles, the target well-switching duration of the intermittent gas well in the target production cycle can be obtained. This improves the prediction accuracy of the target well-switching duration for the target production cycle, thereby increasing the exploitation efficiency of the intermittent gas well in the target production cycle.

[0080] Optionally, after obtaining the target well opening and closing times of the intermittently operated gas wells in the target production cycle, the target well opening time and target well closing time of the target production cycle can be determined based on the target well opening and closing times; the target well opening time of the target production cycle can be determined based on the well closing time of the previous reference production cycle adjacent to the target production cycle and the target well closing time of the target production cycle, and the target well closing time of the target production cycle can be determined based on the target well opening time and target well closing time. Therefore, controlling the opening and closing of the intermittently operated gas wells in the target production cycle based on the target well opening time and target well closing time can improve the production efficiency of the intermittently operated gas wells in the target production cycle.

[0081] The technical solution of this invention involves obtaining the first casing pressure, the pressure inflection point corresponding to the first pressure, and the second tubing pressure during the shut-in period of an intermittent gas well within each reference production cycle; determining multiple reference well-opening times for the intermittent gas well based on the first pressure, the pressure inflection point, and the second pressure; obtaining the gas well flow rate, the critical fluid-carrying flow rate, and the second casing pressure during the well-opening period of the intermittent gas well within each reference production cycle; and determining multiple reference shut-in times for the intermittent gas well based on the gas well flow rate, the critical fluid-carrying flow rate, and the second pressure; and determining multiple reference well-shut-in times for the intermittent gas well based on the multiple reference well-opening times and multiple reference shut-in times for each reference production cycle. The reference well-switching duration for a reference production cycle is determined, and the reference well-switching durations for multiple reference production cycles are weighted and summed to obtain the target well-switching duration for the intermittent gas well in the target production cycle. By assigning higher weights to the reference well-switching durations for reference production cycles with shorter time intervals and weighting and summing the reference well-switching durations for multiple reference production cycles to obtain the target well-switching duration for the intermittent gas well in the target production cycle, the prediction accuracy of the target well-switching duration for the target production cycle can be improved, thereby improving the extraction efficiency of the intermittent gas well in the target production cycle.

[0082] Example 3

[0083] Figure 3 This is a schematic diagram of a device for determining the opening and closing time of an intermittent gas well, provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes: a reference well opening time determination module 310, a reference well shut-in time determination module 320, and a target well opening / closing time determination module 330.

[0084] The reference well opening time determination module 310 is used to acquire the first pressure of the casing, the pressure inflection point corresponding to the first pressure, and the second pressure of the tubing during the well shut-in period of each reference production cycle of the intermittent gas well, and to determine multiple reference well opening times of the intermittent gas well based on the first pressure, the pressure inflection point, and the second pressure; the reference well shut-in time determination module 320 is used to acquire the gas well flow rate, the critical fluid carrying flow rate, and the second pressure of the casing during the well opening period of each reference production cycle of the intermittent gas well, and to determine multiple reference well shut-in times of the intermittent gas well based on the gas well flow rate, the critical fluid carrying flow rate, and the second pressure; the target well opening / closing time determination module 330 is used to determine the reference well opening / closing time of the reference production cycle based on the multiple reference well opening times and the multiple reference well shut-in times of each reference production cycle, and to determine the target well opening / closing time of the intermittent gas well in the target production cycle based on the multiple reference well opening / closing times of the reference production cycles.

[0085] Furthermore, the reference well opening time determination module 310 includes: a well shut-in period determination unit 311 to be analyzed and a reference well opening time determination unit 312. Specifically, the well shut-in period determination unit 311 is used to determine the inflection point time corresponding to the pressure inflection point, and to determine the time period of a first preset length after the inflection point time as the well shut-in period to be analyzed; the reference well opening time determination unit 312 is used to determine multiple reference well opening times of the intermittent gas well from the well shut-in period to be analyzed based on the first pressure and the second pressure collected during the well shut-in period to be analyzed.

[0086] Furthermore, the reference well opening time determination unit 312 is specifically used to: determine the pressure difference between the first pressure and the second pressure collected during the well shut-in period to be analyzed, determine the maximum and minimum pressure difference, and determine the change in the pressure difference corresponding to the pressure difference; and determine multiple reference well opening times of the intermittently opened gas well from the well shut-in period to be analyzed based on the maximum difference, the change in the difference, and the minimum difference.

[0087] Furthermore, the reference shut-in time determination module 320 includes: a well opening period determination unit 321 to be analyzed and a reference shut-in time determination unit 322. The critical time determination unit 321 is used to determine the time when the gas well flow rate drops to the critical liquid carrying flow rate as the critical time, and to determine the second preset length of time period after the critical time as the well opening period to be analyzed. The reference shut-in time determination unit 322 is used to determine multiple reference shut-in times of the intermittently opened gas well based on the second pressure collected during the well opening period to be analyzed.

[0088] Furthermore, the reference shut-in time determination unit 322 is specifically used to: determine the maximum pressure value and the minimum pressure value corresponding to the second pressure collected during the well opening period to be analyzed, and determine the pressure change corresponding to the second pressure; and determine multiple reference shut-in times of the intermittently opened gas well from the well opening period to be analyzed based on the minimum pressure value, the pressure change, and the maximum pressure value.

[0089] Furthermore, the target well opening / closing duration determination module 330 includes: a reference well opening / closing duration determination unit 331, used for combining each reference well opening time and each reference well closing time for a single reference production cycle to obtain multiple reference gas production periods; determining the gas production of the intermittently opened gas well during the reference gas production periods; determining the average gas production during the reference gas production periods based on the gas production during the intermittent periods; and determining the reference well opening / closing duration of the reference production cycle based on the average gas production during the multiple reference gas production periods.

[0090] Furthermore, the target well opening / closing duration determination module 330 further includes: a target well opening / closing duration determination unit 332, used to perform a weighted summation of the reference well opening / closing durations of multiple reference production cycles to obtain the target well opening / closing duration of the intermittently opened gas well in the target production cycle; wherein, the weight corresponding to the reference production cycle is negatively correlated with the time interval between the reference production cycle and the target production cycle in terms of production time; wherein, the multiple reference production cycles corresponding to the target production cycle are a preset number of reference production cycles that are adjacent to the target production cycle in terms of production time.

[0091] The device for determining the opening and closing time of intermittent gas wells provided in this embodiment of the invention can execute the method for determining the opening and closing time of intermittent gas wells provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.

[0092] Example 4

[0093] Figure 4 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0094] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0095] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0096] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the method for determining the opening and closing time of intermittent gas wells.

[0097] In some embodiments, the method for determining the opening and closing duration of intermittent gas wells can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the method for determining the opening and closing duration of intermittent gas wells described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the method for determining the opening and closing duration of intermittent gas wells by any other suitable means (e.g., by means of firmware).

[0098] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0099] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0100] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0101] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0102] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0103] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0104] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0105] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for determining the well opening and closing time of an intermittent gas well, characterized in that, include: The first pressure of the casing, the pressure inflection point corresponding to the first pressure, and the second pressure of the tubing during the shut-in period of each reference production cycle of the intermittent gas well are obtained, and multiple reference well opening times of the intermittent gas well are determined based on the first pressure, the pressure inflection point, and the second pressure. as well as, The gas well flow rate, critical fluid carrying flow rate, and second pressure of the casing are obtained during the well opening period of the intermittent gas well in each reference production cycle. Multiple reference shut-in times of the intermittent gas well are determined based on the gas well flow rate, the critical fluid carrying flow rate, and the second pressure. The reference well opening and closing time of each reference production cycle is determined based on multiple reference well opening times and multiple reference well closing times. The target well opening and closing time of the intermittent gas well in the target production cycle is determined based on the reference well opening and closing time of each reference production cycle.

2. The method according to claim 1, characterized in that, The determination of multiple reference well opening times for the intermittent gas well based on the first pressure, the pressure inflection point, and the second pressure includes: Determine the inflection point time corresponding to the pressure inflection point, and determine the time period of the first preset length after the inflection point time as the well shut-in period to be analyzed; Based on the first pressure and the second pressure collected during the shut-in period to be analyzed, multiple reference well opening times for the intermittent gas well are determined from the shut-in period to be analyzed.

3. The method according to claim 2, characterized in that, The step of determining multiple reference well opening times for the intermittent gas well based on the first pressure and the second pressure collected during the well shut-in period to be analyzed includes: Determine the pressure difference between the first pressure and the second pressure collected during the well shut-in period to be analyzed, determine the maximum and minimum pressure differences, and determine the change in the pressure difference corresponding to the pressure difference. Multiple reference well opening times for the intermittent gas well are determined from the shut-in period to be analyzed based on the maximum difference, the change in the difference, and the minimum difference.

4. The method according to claim 1, characterized in that, The determination of multiple reference shut-in times for the intermittent gas well based on the gas well flow rate, the critical fluid-carrying flow rate, and the second pressure includes: The moment when the gas well flow rate drops to the critical fluid-carrying flow rate is defined as the critical moment, and the second preset time period after the critical moment is defined as the well opening period to be analyzed. Multiple reference shut-in times for the intermittent gas well are determined based on the second pressure collected during the well opening period to be analyzed.

5. The method according to claim 4, characterized in that, The determination of multiple reference shut-in times for the intermittent gas well based on the second pressure collected during the well opening period to be analyzed includes: Determine the maximum and minimum pressure values ​​corresponding to the second pressure collected during the well opening period to be analyzed, and determine the pressure change corresponding to the second pressure; Multiple reference shut-in times for the intermittent gas well are determined from the period of well opening to be analyzed based on the minimum pressure value, the pressure change, and the maximum pressure value.

6. The method according to claim 1, characterized in that, The step of determining the reference well opening / closing duration for each reference production cycle based on multiple reference well opening times and multiple reference well closing times for each reference production cycle includes: For a single reference production cycle, each reference well opening time and each reference well shut-in time are combined to obtain multiple reference gas production periods; Determine the gas production rate of the intermittent gas well during the reference gas production period, and determine the average gas production rate during the reference gas production period based on the gas production rate during the intermittent period; The reference well-opening duration of the reference production cycle is determined based on the average gas production during multiple reference gas production periods.

7. The method according to claim 1, characterized in that, The multiple reference production cycles corresponding to the target production cycle are a preset number of reference production cycles that are adjacent to the target production cycle in terms of production time; Determining the target switching time of the intermittent gas well in the target production cycle based on the reference switching times of multiple reference production cycles includes: The reference well opening and closing times of multiple reference production cycles are weighted and summed to obtain the target well opening and closing time of the intermittent gas well in the target production cycle; wherein, the weight corresponding to the reference production cycle is negatively correlated with the time interval between the reference production cycle and the target production cycle in terms of production time.

8. An electronic device, characterized in that, The electronic device includes: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method for determining the opening and closing time of intermittent gas wells as described in any one of claims 1-7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the method for determining the well opening and closing time of any one of claims 1-7.

10. A computer program product comprising a computer program / instructions, wherein, When the computer program / instruction is executed by the processor, it implements the method for determining the well opening and closing time of the intermittent gas well as described in any one of claims 1-7.