This application claims priority to Chinese patent application number 202210961074.6 filed on 11 Aug. 2022, which is incorporated by reference.
The present disclosure relates to methods and systems that mitigate liquid loading in gas wells.
Gas wells often produce both gas (natural gas) and liquid. The liquid can include connate water, water-based frac fluid, or gas condensate. If the production stream of gas and liquid has a velocity greater than a critical gas velocity, the liquid is carried with the gas to the surface. If the production stream of gas and liquid has a velocity less than the critical gas velocity, the liquid is not carried with the gas to the surface and can accumulate in the wellbore. Such liquid accumulation is referred to as liquid loading. The liquid loading can limit or even stop the production of gas from the gas well.
One method of mitigating liquid loading in gas wells is referred to as intermittent production, which involves operating the gas well in successive bimodal production cycles that include a production mode followed by a shut-in mode. In the production mode, the choke at the wellhead is open to enable both gas and liquid to be produced at the surface. During the production mode, the well can experience liquid loading. In the shut-in mode, the choke is closed to stop production of both gas and liquid at the surface. During the shut-in mode, liquid can flow from the wellbore back into the reservoir rock to reduce liquid loading and permit the bottomhole pressure to recover for the next production cycle.
One problem with intermittent production is that it is difficult to determine the timing of the choke adjustments that determine the duration of both the production mode and shut-in mode of the production cycles in a manner that effectively mitigates liquid loading and optimizes the production of gas from the well over time. Historically, the timing of the choke adjustments is based on pre-selected time periods. However, the use of such pre-selected time periods typically does not effectively mitigate liquid loading and optimize the production of gas from the well over time because the production parameters considered for this task are different in every well and the parameters associated with a single well change over time.
This summary is provided to introduce a selection of concepts that are further described below in the detailed description. This summary is not intended to identify key or essential features of the claimed subject matter, nor is it intended to be used as an aid in limiting the scope of the claimed subject matter.
Methods and systems are provided for controlling production of gas in association with liquids from a well in a manner that mitigates liquid loading in the well. Production tubing disposed in the well provides a flow path for gas and liquids to the surface. An electrically-controlled choke and a controller are disposed at the surface. The choke is in fluid communication with the production tubing, and the controller interfaces to the choke. The controller executes autonomous control operations that control operation of the choke. The autonomous control operations involve production cycles that include a production mode followed by a shut-in mode. In the production mode, the controller is configured to operate the choke in an open position. In the shut-in mode, the controller is configured to operate the choke in a closed position.
In embodiments, in the production mode, the controller is configured to perform operations that involve:
In embodiments, the first computational model can be configured to relate measured operating parameters (such as gas flow rate, tubing head pressure, casing head pressure, and combinations thereof) and static parameters (such as gas density, liquid density, wellbore depth, and combinations thereof) to the liquid height.
In embodiments, the first computational model can be based on fluid mechanics with assumptions that (a) liquid height in the annulus of the well outside the production tubing is negligible, and (b) production from the well will be the stable flow, which means that kinetic energy loss is negligible.
In embodiments, the first computational model can employ an iterative method that calculates a value for a compressibility factor for the fluid flow.
In embodiments, the first computational model can be configured to calculate bottomhole pressure from measured casing head pressure, and then use the calculated bottomhole pressure together with measured tubing head pressure and values for gas density, liquid density, and wellbore depth to determine the liquid height.
In embodiments, the determination of the liquid-loading flag over time is further based on comparing measured gas flow rate to a critical gas flow rate determined from another computation model.
In embodiments, the determination of the liquid-loading flag over time is further based on differential liquid height calculated during the production mode.
In embodiments, during the shut-in mode, the controller can be configured to perform operations that involve: i) determining a liquid height over time from a second computational model, wherein the liquid height represents height or depth level of liquid loading in the well, and wherein the second computational model is based on the conversation of energy for static fluids in the well; ii) determining an observation time window where the liquid height over time in the shut-in mode falls below a threshold level; iii) predicting gas flow rate for different points in time within the observation time window using a trained machine learning model; iv) identifying a point in time in the observation window that corresponds to a maximum predicted gas flow rate within the observation time window; and v) automatically and selectively transitioning to the production mode at the point in time identified in iv).
In embodiments, the second computational model can be based on fluid mechanics with assumptions that (a) liquid height in the annulus of the well outside the production tubing is negligible, and (b) there is no production from the well such that kinetic energy loss and friction loss can be omitted from the calculation.
In embodiments, the second computational model can employ an iterative method that calculates a value for a compressibility factor for the fluid.
In embodiments, the second computational model can be configured to calculate bottomhole pressure from measured casing head pressure, and then uses the calculated bottomhole pressure together with measured tubing head pressure and values for gas density, liquid density, and wellbore depth to determine the liquid height.
In embodiments, the threshold level can be determined from analysis of historical data.
In embodiments, the trained machine learning model can implement a Decision Tree model, Random Forest ML model, an XG Boost ML model, an Artificial Neural Network model, or another suitable ML model.
In embodiments, the machine learning model is trained from historical times-series operational data collected during intermittent production from a number of gas wells and stored in a database.
In embodiments, the historical time-series operational data is preprocessed for modeling.
In embodiments, the preprocessing of the historical time-series operational data can include data extraction operations and data labeling operations, wherein the data extraction operations are configured to extract or calculate relevant or meaningful feature data for respective shut-in periods, and the data labeling operations are configured to assign labels or tags to the feature data, wherein the labels or tags are indicative of the gas flow rate for the production periods that follow the respective shut-in periods.
In embodiments, the label or tag assigned to the feature data for a given shut-in period can be calculated as the average gas flow rate measured during the production period that follows the given shut-in period.
In embodiments, similar data extraction operations can be performed on time-series operational data collected in the shut-in mode to extract or calculate relevant or meaningful feature data for the shut-in mode for input to the trained machined learning model.
In embodiments, the controller can be configured to operate the choke in a fully open or other fixed open setting in the production mode over time.
In embodiments, the controller can be configured to operate the choke in variable open settings in the production mode over time.
In embodiments, the controller can be configured to operate the choke in variable open settings based on predictions of the gas flow rate made by the ML model for different open settings of the choke.
In embodiments, the controller can be implemented by a gateway device located at or near a well site, wherein the gateway device is configured to collect real-time operational data related to production of gas and liquids from the well.
In embodiments, the controller can be implemented by a cloud computing environment that communicates with a gateway located at or near a well site, wherein the gateway is configured to collect real-time operational data related to production of gas and liquids from the well and to forward the real-time operational data to the cloud computing environment.
In embodiments, some or all of the autonomous control operations are performed by at least one processor.
The subject disclosure is further described in the detailed description which follows, in reference to the noted plurality of drawings by way of non-limiting examples of the subject disclosure, in which like reference numerals represent similar parts throughout the several views of the drawings, and wherein:
The particulars shown herein are by way of example and for purposes of illustrative discussion of the embodiments of the subject disclosure only and are presented in the cause of providing what is believed to be the most useful and readily understood description of the principles and conceptual aspects of the subject disclosure. In this regard, no attempt is made to show structural details in more detail than is necessary for the fundamental understanding of the subject disclosure, the description taken with the drawings making apparent to those skilled in the art how the several forms of the subject disclosure may be embodied in practice. Furthermore, like reference numbers and designations in the various drawings indicate like elements.
Reference will now be made in detail to embodiments, examples of which are illustrated in the accompanying drawings and figures. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the invention. However, it will be apparent to one of ordinary skill in the art that the invention may be practiced without these specific details. In other instances, well-known methods, procedures, components, circuits, and networks have not been described in detail so as not to unnecessarily obscure aspects of the embodiments.
It will also be understood that, although the terms first, second, etc., may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first object or step could be termed a second object or step, and, similarly, a second object or step could be termed a first object or step, without departing from the scope of the invention. The first object or step, and the second object or step, are both, objects, or steps, respectively, but they are not to be considered the same object or step.
The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the description of the invention and the appended claims, the singular forms “a,” “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term “and/or” as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. It will be further understood that the terms “includes,” “including,” “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Further, as used herein, the term “if” may be construed to mean “when” or “upon” or “in response to determining” or “in response to detecting,” depending on the context.
Attention is now directed to processing procedures, methods, techniques, and workflows that are in accordance with some embodiments. Some operations in the processing procedures, methods, techniques, and workflows disclosed herein may be combined and/or the order of some operations may be changed.
At the surface 11, the tubing 21 is fluidly coupled to an electrically-controlled choke 25. The choke 25 can be embodied by an electrically-controllable needle valve or another suitable electrically-controlled valve. Surface-located pressure and temperature sensors (labeled 27) are configured to measure the tubing head pressure and wellhead temperature, respectively, upstream of the choke 25. A surface-located pressure sensor 29 is configured to measure casing head pressure. A surface-located flow meter 31 is configured to measure the flow rate of gas (or gas flow rate) in the production stream downstream of choke 25. The flow meter 31 can embody various types of flow meters, such as ultrasonic flow meters, thermal mass flow meters, or other suitable flow meters. A surface-located separator 33 is configured to separate out gas from the production stream downstream of the flow meter 31. Gas exits separator 33 through a delivery line 35 leading to a sink, such as a scrubber or pipeline or storage facility. Separator 33 can also be configured to separate out water and possibly gas condensate from the production stream downstream of the flow meter 31. The water and possibly gas condensate can be discharged from separator 33 through one or more delivery lines (one shown as 37) that lead to a surface facility, such as a water disposal system for water, or a stock tank for gas condensate.
A surface-located controller 39 is also provided, which includes one or more data communication interfaces to the choke 25, the pressure and temperature sensors 27, the pressure sensor 29, the flow meter 31, and possibly other surface equipment or downhole equipment. The data communication interface(s) can employ standard or proprietary wired or wireless communication protocols. The data communication interface(s) can be configured to provide for communication of time-series operational data to controller 39. The time-series operational data can include i) data representing the values of pressure and temperature measured by the sensors 27, 29 over time, and ii) data representing the value of gas flow rate measured by the flow meter 31 over time. The controller 39 can collect and store the time-series operational data for processing as described herein. Examples of such time-series operational data are shown in
In embodiments, controller 39 can be configured to implement autonomous control operations that dynamically adjusts or controls the choke 25 to carry out intermittent production according to the process of
The production mode begins in block 301 where controller 39 controls choke 25 to operate with an open setting and records the Open Point (Time) for the current production cycle.
In block 303, controller 39 records a gas flow rate Q as measured by the surface-located flow meter 31 or derived from such measurements. The casing head pressure, tubing head pressure, temperature, and other parameters can also be measured and recorded.
In block 305, controller 39 determines the critical gas flow rate Qc from a computation model. The critical gas flow rate Qc represents the minimal gas flow rate to avoid liquid loading of the well. If the gas flow rate Q is greater than the critical gas flow rate Qc, it is assumed that liquid loading will not occur. If the gas flow rate Q is less than the critical gas flow rate Qc, it is assumed that liquid loading can possibly occur based on the operating parameter of the well. There are many different models that can be used to determine the critical gas flow rate Qc, such as the Tuner model or the Li Min model. In embodiments, the computational model of block 305 can be based on the Li Min model as summarized in
In block 307, controller 39 determines a liquid height H1 from a computational model that is based on the conservation of energy for the production flow through the production tubing. In embodiments, the liquid height H1 represents the height or depth level of the liquid loading in the well as illustrated in
In embodiments, the computational model of block 307 is configured to relate measured operating parameters (such as gas flow rate, tubing head pressure, and casing head pressure) and static parameters (such as gas density, liquid density, and wellbore depth) to liquid height H1. In embodiments, the computational model of block 307 can be based on fluid mechanics with assumptions (1) that (a) liquid height in the annulus of the well outside the production tubing 13 is negligible, and (b) production from the well will be the stable flow, which means that kinetic energy loss is negligible. The computational model can also employ an equation based on the conservation of energy for the production flow through the tubing string as illustrated in
In one embodiment, the computational model of block 307 can account for gas flow from the bottom of the well to the well head based on an assumption of stable fluid flow. In this case, one can consider an element length (dl) of wellbore for analysis based on the energy equation as follows:
dp+ρdν+ρgdH+dW+dL
w=0 Eqn. (1)
For the vertical gas flow, one can assume that there no power in and out, so the dW is 0. Because of stable flow, the kinetic energy loss is 0 and the v·dv is 0. So the energy equation (1) can be simplified as follows:
One can further assume standard pressure and temperature conditions, such as Psc=0.101325 MPa, Tsc=293K, that relate to a standard gas flow qsc in m3/d, to give the gas velocity (m/s) in the any point of tubing (p, T) as follows:
Furthermore, the density of gas ρ can be related to the pressure p as follows:
Equations (2)-(4) can be combined to give:
Integral calculus can be applied to Eqn. (5) for the ΔH length between two points 1,2 of the tubing as follows:
Furthermore, the gas compressibility factor Z can be related to the dimensionless pseudoreduced pressure and temperature as follows:
The dimensionless pseudoreduced pressure ppr and the dimensionless pseudoreduced temperature Tpr can be related to the pressure and temperature, respectively, as follows:
This system of equations relates Z with p and T. We can measure T1, H, and the temperature gradient, and apply the system of equations to calculate T2. When we have the T1, T2, P1, Ppc, and Tpc, we can assume the P2 to calculate Z, gas density, and P2′. If the absolute value of (P2−P2′) is within a predefined error range, the method has converged and P2 is the second pressure. We call this method an iterative method. This iterative method can be used to calculate the pressure at the bottom of the well (BHP).
In block 309, controller 39 determines a differential liquid height delta-H1, which represents the difference in the liquid height H1 at two different time points. For example, if the liquid height H1 is 3000 m at 1:00 AM, and the liquid height H1 is 2800 m at 4:00 AM, delta-H1 for the time period between 1:00 AM and 4:00 AM is 200 m.
In block 311, controller 39 uses decision logic to determine whether a liquid-loading flag is true or false based on the values for the gas flow rate Q, the critical gas flow rate Qc, the liquid height H1, delta-H1, and possibly other parameters.
In block 313, controller 39 evaluates the liquid-loading flag determined in 311. If the liquid-loading flag is true, controller 39 triggers or transitions to the Shut-In Mode of blocks 315 to 325; otherwise controller 39 continues the production mode and repeats the operations of 305 to 313 for follow-on points in time during the production mode.
The shut-in mode begins in block 315 where controller 39 controls choke 25 to operate with a closed setting and records the Close Point (Time) for the current production cycle.
In block 317, controller 39 performs operations for different time-offsets after the Close Point, which involve:
In embodiments, the ML model used in block 317 can implement a Decision Tree model, Random Forest ML model, an XG Boost ML model, an Artificial Neural Network model, or another suitable ML model.
In embodiments, the computational model of block 317 is based on fluid mechanics with assumptions (1) that (a) liquid height in the annulus of the well outside the production tubing 13 is negligible, and (b) there is no production from the well such that kinetic energy loss and friction loss can be omitted from the calculation. The computational model can also employ an equation based on the conservation of energy for the static fluids in the tubing string as illustrated in
Because of the no production from annulus in the shut-in mode, the computational model of block 317 can use a stable pressure calculation method. In this method, the iterative method as described above can be used to calculate the bottom hole pressure (tubing shoe pressure) from the casing top (based on casing head pressure). With the tubing shoe pressure, tubing head pressure, gas density, liquid density and wellbore depth known, one can calculate the liquid height.
In block 319, controller 39 evaluates the liquid height H1 over the different time offsets against a liquid height benchmark (this is based on the historical data analysis) to determine an operational time window where the liquid height H1 is less than the liquid height benchmark.
In block 321, controller 39 evaluates the predicted gas flow rate within the operational time window to find the maximum predicted gas flow rate in the operational time window.
In block 323, controller 39 identifies the time offset for the maximum predicted gas flow rate in the operational time window.
In block 325, controller 39 triggers or transitions to the production mode at the identified time offset to initiate the next production cycle.
In embodiments, choke 25 can be operated in a fully open (or other fixed open setting) in the production mode over time.
In other embodiments, choke 25 can be operated in variable open settings in the production mode over time. In this case, the ML model can predict the gas flow rate for different open settings of the choke 25 and the operations of 317 to 323 can be adapted to identify the time offset and variable open setting of the choke for the maximum predicted gas flow rate in the operational time window. This time offset and open setting of the smart choke as determined from this analysis can then be used when entering the production mode.
In embodiments, the ML model used in block 317 can be trained from historical times-series operational data collected during intermittent production from a number of gas wells and stored in a database. The historical time-series operational data can be indicative of various operational parameters (such as gas flow rate, tubing head pressure, casing head pressure, temperature, and possibly other suitable parameters) over time during past intermittent production. The time-series operational data can include timestamps that provide a measure of time in association with the operational parameters. An example of such historical time-series data for gas flow rate is shown in
In embodiments, the methods, systems, and workflows described herein can employ a distributed computing platform configured to implement autonomous control operations for intermittent production from a gas well as shown in
The cloud services 919 include services that monitor operating conditions of the gas well 913, which is referred to as operational surveillance of such gas well. Such services are typically embodied by software executing in a computing environment, such as a cloud computing environment. An example computing environment is described below with respect to
In embodiments, the gateway device 911 can include applications that implement autonomous control operations for intermittent production from the gas well 913. Such applications are typically embodied by software executing in a computing environment. In this environment, the applications of the gateway 911 collect time-series operational data that characterizes operation of the gas well 913 from the sensors 915. The applications deployed or installed on the gateway device 911 can be configured to implement autonomous control operations that process the time-series operational data to dynamically adjust or control the choke 916 to carry out intermittent production according to the processing of the controller as described herein.
In other embodiments, applications deployed or installed on the cloud service 919 can be configured to implement autonomous control operations that process the time-series operational data supplied thereto to communicate and cooperate with the gateway 911 to dynamically adjust or control the choke 916 to carry out intermittent production according to the processing of the controller described herein.
In some embodiments, the methods of the present disclosure may be executed by a computing system.
The processor 1004 may include a microprocessor, microcontroller, processor module or subsystem, programmable integrated circuit, programmable gate array, or another control or computing device.
The storage media 1006 may be implemented as one or more computer-readable or machine-readable storage media. Note that while in the example embodiment of
It should be appreciated that computing system 1000 is only one example of a computing system, and that computing system 1000 may have more or fewer components than shown, may combine additional components not depicted in the example embodiment of
Further, the steps in the processing methods and workflows described herein may be implemented by running one or more functional modules in information processing apparatus such as general-purpose processors or application-specific chips, such as ASICs, FPGAs, PLDs, or other appropriate devices. These modules, combinations of these modules, and/or their combination with general hardware are all included within the scope of protection of the invention.
Some of the methods and processes described above can be performed by a processor. The term “processor” should not be construed to limit the embodiments disclosed herein to any particular device type or system. The processor may include a computer system. The computer system may also include a computer processor (e.g., a microprocessor, microcontroller, digital signal processor, or general-purpose computer) for executing any of the methods and processes described above.
The computer system may further include a memory such as a semiconductor memory device (e.g., a RAM, ROM, PROM, EEPROM, or Flash-Programmable RAM), a magnetic memory device (e.g., a diskette or fixed disk), an optical memory device (e.g., a CD-ROM), a PC card (e.g., PCMCIA card), or other memory device.
Some of the methods and processes described above, can be implemented as computer program logic for use with the computer processor. The computer program logic may be embodied in various forms, including a source code form or a computer executable form. Source code may include a series of computer program instructions in a variety of programming languages (e.g., an object code, an assembly language, or a high-level language such as C, C++, or JAVA). Such computer instructions can be stored in a non-transitory computer readable medium (e.g., memory) and executed by the computer processor. The computer instructions may be distributed in any form as a removable storage medium with accompanying printed or electronic documentation (e.g., shrink wrapped software), preloaded with a computer system (e.g., on system ROM or fixed disk), or distributed from a server or electronic bulletin board over a communication system (e.g., the Internet or World Wide Web).
Alternatively or additionally, the processor may include discrete electronic components coupled to a printed circuit board, integrated circuitry (e.g., Application Specific Integrated Circuits (ASIC)), and/or programmable logic devices (e.g., a Field Programmable Gate Arrays (FPGA)). Any of the methods and processes described above can be implemented using such logic devices.
The foregoing description, for purpose of explanation, has been described with reference to specific embodiments. However, the illustrative discussions above are not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations are possible in view of the above teachings. Moreover, the order in which the elements of the methods described herein are illustrated and described may be re-arranged, and/or two or more elements may occur simultaneously. The embodiments were chosen and described in order to best explain the principals of the invention and its practical applications, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to the particular use contemplated.
Accordingly, all such modifications are intended to be included within the scope of this disclosure as defined in the following claims. In the claims, means-plus-function clauses are intended to cover the structures described herein as performing the recited function and not only structural equivalents, but also equivalent structures. Thus, although a nail and a screw may not be structural equivalents in that a nail employs a cylindrical surface to secure wooden parts together, whereas a screw employs a helical surface, in the environment of fastening wooden parts, a nail and a screw may be equivalent structures. It is the express intention of the applicant not to invoke 35 U.S.C. § 112, paragraph 6 for any limitations of any of the claims herein, except for those in which the claim expressly uses the words ‘means for’ together with an associated function.
Number | Date | Country | Kind |
---|---|---|---|
202210961074.6 | Aug 2022 | CN | national |