Foam drainage construction boundary condition determination method and system

By constructing a wellbore multiphase flow model and gas reservoir production characteristic model, the wellbore effusion state and foam drainage construction time are predicted, and the problem of decreasing shale gas well production capacity in the existing technology is solved, and the accurate prediction of wellbore effusion and bubble drainage construction is achieved. The optimized design has improved the production capacity of shale gas wells.

CN119026200AActive Publication Date: 2024-11-26PETROCHINA CO LTD

Patent Information

Application Number
CN202310592174.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-23
Publication Date
2024-11-26
Estimated Expiration
2043-05-23

AI Technical Summary

Technical Problem

The prior art is difficult to accurately predict the wellbore effusion state and foam drainage construction time, resulting in a decrease in shale gas well production capacity and low prediction accuracy, which ignores the influence of the multiphase flow law in the wellbore.

Method used

Build a wellbore multiphase flow model that considers the pressure field, temperature field and wellbore structure, and combines the gas reservoir production characteristic model to predict the critical liquid carrying velocity and gas apparent flow velocity of the target gas well, determine the wellbore effusion time and characteristics, and optimize the bubbles Schedule construction plan.

Benefits of technology

Accurate prediction of the effusion state of the wellbore and advance prediction of the bubble drainage construction time are achieved, the construction efficiency of foam drainage technology is improved, the filling system and intervention time of bubble drainage treatment agent are optimized, and the production capacity of shale gas wells is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119026200A_ABST
    Figure CN119026200A_ABST
Patent Text Reader

Abstract

The invention discloses a foam drainage construction boundary condition determination method and system. The method comprises the steps that a wellbore multiphase flow model considering a pressure field, a temperature field and a wellbore structure is constructed; constructing a gas reservoir production characteristic model considering reservoir shale gas adsorption and desorption characteristics; according to target gas well production parameters predicted by the wellbore multiphase flow model and the gas reservoir production characteristic model, constructing a critical liquid-carrying speed model, and according to the critical liquid-carrying speed model, predicting the critical liquid-carrying flow velocity of the target gas well; predicting the gas apparent velocity of the target gas well according to the gas reservoir production characteristic model; and on the basis of the critical liquid carrying flow velocity and the gas apparent flow velocity, the wellbore liquid accumulation time and wellbore liquid accumulation characteristics of the target gas well are determined. According to the method provided by the invention, the influence of the multiphase flow rule in the shaft on the gas reservoir production dynamic state and the foam drainage construction effect is considered, and the foam drainage construction effect and the subsequent filling system can be judged according to the real-time shaft liquid accumulation condition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of shale gas reservoir development, and in particular to a method and system for determining boundary conditions for foam drainage construction. Background Art

[0002] Wellbore liquid loading is a common technical problem faced in the development of unconventional gas reservoirs such as shale gas. It will lead to a decrease in the pressure difference between the bottom hole flow pressure and the formation pore pressure, resulting in a decrease in gas well production capacity, which seriously restricts the efficient exploration and development of shale gas reservoirs. As one of the main means to solve the problem of wellbore liquid loading, the foam drainage technology and its reasonable construction process design are of great significance to reducing the production capacity damage caused by the problem of gas well liquid loading.

[0003] In order to reduce the impact of wellbore liquid accumulation on shale gas well productivity and improve the construction efficiency of foam drainage technology, relevant scholars at home and abroad have carried out a series of studies. The optimization of foam drainage technology involves two key issues: one is the reasonable construction time of foam drainage, and the other is the reasonable amount of foam drainage agent.

[0004] Regarding the construction time of foam drainage, currently, the relevant methods mainly focus on the critical liquid-carrying velocity to study the liquid accumulation state and determine whether foam drainage is needed. However, judging whether the wellbore is filled with liquid based on a single flow rate can only identify the current production status, and cannot predict the wellbore liquid accumulation state and the foam drainage construction time in advance. Some scholars have conducted relevant research from the perspective of gas reservoir simulation and predicted the dynamic changes in gas reservoir production capacity. However, the relevant methods only consider the influence of gas reservoir seepage characteristics, and their prediction accuracy is relatively low, ignoring the influence of multiphase flow laws in the wellbore on gas reservoir production dynamics and foam drainage construction effects. Summary of the invention

[0005] The present invention aims to solve at least one of the technical problems in the above-mentioned technology to a certain extent. To this end, the first aspect of the present invention proposes a method for determining boundary conditions of foam drainage construction, comprising:

[0006] Construct a wellbore multiphase flow model that takes into account the pressure field, temperature field and wellbore structure;

[0007] Construct a gas reservoir production characteristic model that takes into account the adsorption and analytical characteristics of reservoir shale gas;

[0008] Constructing a critical liquid carrying velocity model according to the target gas well production parameters predicted by the wellbore multiphase flow model and the gas reservoir production characteristic model, and predicting the critical liquid carrying velocity of the target gas well according to the critical liquid carrying velocity model;

[0009] Predicting the gas superficial velocity of the target gas well according to the gas reservoir production characteristic model;

[0010] Based on the critical liquid-carrying flow rate and the gas superficial flow rate, the wellbore liquid accumulation time and wellbore liquid accumulation characteristics of the target gas well are determined.

[0011] Preferably, the construction of a wellbore multiphase flow model taking into account the pressure field, temperature field and wellbore structure includes:

[0012] Divide the wellbore into a number of wellbore micro-units according to depth;

[0013] Calculating the lower end temperature of the first wellbore microunit according to the temperature field equation;

[0014] Based on the set pressure drop and average temperature of the first wellbore micro-unit, the fluid physical property parameters of the first wellbore micro-unit are calculated, and the theoretical pressure drop of the first wellbore micro-unit is calculated by combining the two-phase drift velocity equation and the two-phase momentum mass equation;

[0015] comparing a set pressure drop of the first wellbore microunit with a theoretical pressure drop;

[0016] When it is determined that the first wellbore micro-unit does not satisfy the micro-unit convergence, the theoretical pressure drop is used as a new set pressure drop, and the theoretical pressure drop is iterated; when it is determined that the first wellbore micro-unit satisfies the micro-unit convergence, the pressure drop solution of the next micro-unit is entered;

[0017] The above method is repeated until all wellbore micro-units are solved, and the wellbore multiphase flow model considering the pressure field, temperature field and wellbore structure is obtained.

[0018] Preferably, the two-phase momentum mass equation includes the gas-liquid phase mass conservation equation and the gas-liquid mixture momentum conservation equation; wherein,

[0019] The gas-liquid phase mass conservation equation includes:

[0020]

[0021]

[0022] Among them, E g Indicates the interface gas content; E l represents the interface liquid content; ρ g represents the density of the gas phase; ρ l represents the density of the liquid phase; v g represents the velocity of the gas phase; v l represents the velocity of the liquid phase; t represents time; s represents the position in three-dimensional space;

[0023] The gas-liquid mixture momentum conservation equation includes:

[0024]

[0025] E g +E l =1

[0026] ρ M =E g ρ g +E l ρ l

[0027] u M =E g u g +E l u l

[0028] u g =C0u M +u gr

[0029] Where A is the cross-sectional area of ​​the flow channel; f M is the wellbore flow friction factor; ρ M is the density of the mixture; u g represents the gas phase velocity; u l represents the liquid phase velocity; u M represents the mixture velocity; u gr represents the drift velocity; p is the wellbore pressure; C0 is the distribution coefficient; g represents the gravitational acceleration; d represents the equivalent diameter; and θ represents the well inclination angle.

[0030] Preferably, the expression of the distribution coefficient includes:

[0031]

[0032]

[0033]

[0034]

[0035]

[0036] Where C0 represents the distribution coefficient; f tp represents flow friction; Ra represents Reynolds number; D represents pipe diameter; β represents air holdup rate; V sg V represents the critical velocity of gas phase; sl represents the liquid phase critical velocity; x represents the mass gas content; m g Indicates gas phase mass flow rate; m l Re represents the liquid mass flow rate; tp represents the two-phase flow Reynolds number; α represents the cross-sectional air content; ρ g , lRespectively represent the gas phase and liquid phase density; C1 represents the annular flow coefficient;

[0037] Preferably, the two-phase drift velocity equation includes:

[0038]

[0039] Here, σ represents the surface tension.

[0040] Preferably, the temperature field equation includes:

[0041]

[0042]

[0043]

[0044] Among them, T fout represents the fluid temperature at the outlet of the micro-unit of the wellbore; T fin represents the fluid temperature at the wellbore micro-unit inlet; T eout represents the formation temperature at the outlet of the micro-unit of the wellbore; T ein represents the formation temperature at the outlet of the micro-unit of the wellbore; Z out Z represents the wellbore micro-unit exit depth; iu represents the entrance depth of the micro-unit of the wellbore; g t represents the temperature gradient of the micro-unit of the wellbore; α J represents the Joule-Thomson coefficient; A1 represents the relaxation factor; U to Represents the overall heat transfer coefficient; W m represents mass flow rate; r to Indicates the outer diameter of the casing; K e Represents the thermal conductivity of the formation; C p represents the specific heat capacity of the fluid at constant pressure; f(t D ) represents a dimensionless time function; v m represents the mixture flow rate; z represents the well depth; and p represents the wellbore pressure at the corresponding depth.

[0045] Preferably, when calculating the fluid physical property parameters of the first wellbore microunit based on the set pressure drop and the average temperature of the first wellbore microunit, the calculation formula of the fluid physical property parameters used includes:

[0046]

[0047] Where Z represents the gas compressibility coefficient; T r It indicates the ratio of the absolute temperature of the gas in its actual state to its critical temperature; P r Indicates contrast pressure;

[0048]

[0049] Among them, σ w represents the gas-water interfacial tension; P represents the wellbore pressure at the calculated depth; T represents the wellbore temperature at the calculated depth.

[0050] Preferably, the gas reservoir production characteristic model is composed of several equations including the two-phase mass conservation equation, Darcy's law, auxiliary equations, heat transfer equations and shale gas adsorption analytical equations.

[0051] Preferably, the two-phase mass conservation equation includes:

[0052]

[0053] Among them, S g Indicates gas phase saturation; S w Indicates water phase saturation; B g Represents the volume coefficient of the gas phase; B w Indicates the volume coefficient of the water phase; μ g Indicates the viscosity of the gas phase; μ w Indicates the viscosity of the water phase; k rg represents the relative permeability of the gas phase; k rw represents the relative permeability of the water phase; p g Indicates the pressure of the gas phase; p w represents the pressure of the water phase; Z represents the gas compressibility coefficient; q gs represents the gas phase flow rate; q ws Indicates the liquid phase flow rate.

[0054] Preferably, the auxiliary equations include: capillary force equation, saturation equation, gas-liquid two-phase relative permeability equation, porosity equation, gas-liquid two-phase system coefficient equation; wherein,

[0055] The capillary force equation includes:

[0056] p cgw =p g -p w =p cgw (S w )

[0057] The saturation equation includes:

[0058] S g +S w =1

[0059] The gas-liquid two-phase relative permeability equation includes:

[0060] k rw =f(S w )

[0061] k rg =f(S g )

[0062] The porosity equation includes:

[0063]

[0064] The gas-liquid two-phase system coefficient equation includes:

[0065]

[0066]

[0067] Among them, ρ g represents the gas phase density; ρ w represents the density of liquid phase; represents porosity; represents the initial porosity; p cgw Indicates capillary pressure; C R represents the rock compression coefficient; p sc Indicates the pressure under standard ground conditions; T sc Indicates the temperature under standard ground conditions; V w Indicates the water phase flow rate; V ws represents the volume of liquid phase; ρ ws represents the liquid density; ρ w represents the density of water phase; c w represents the compressibility coefficient of water phase; represents the initial volume fraction of liquid phase; represents the initial density of the gas phase; represents the initial density of the liquid phase; represents the initial pressure of the gas phase.

[0068] Preferably, the heat transfer equation includes:

[0069]

[0070] Where U represents the internal energy of the gas; ρ s represents the density of shale; c s represents the specific heat capacity of shale; h represents the enthalpy of gas; k t represents the thermal conductivity coefficient; T1 represents the temperature field of the wellbore; ρ represents the rock density; v represents the fluid flow rate; t represents time.

[0071] Preferably, the shale gas adsorption analytical equation includes:

[0072]

[0073] Among them, V Lrepresents the Langmuir concentration of the gas; K(T) represents the adsorption equilibrium constant;

[0074] K(T)=k0T -1 / 2 e -E / RT

[0075] Where k0 represents the pre-exponential constant and E is the characteristic adsorption energy.

[0076]

[0077]

[0078] Where C(p,T) represents the gas concentration in the microscopic pore system at temperature T and pressure p; τ represents the adsorption time.

[0079] Preferably, the critical liquid carrying velocity model is constructed based on the target gas well production parameters predicted by the wellbore multiphase flow model and the gas reservoir production characteristic model, including:

[0080] Determine the gas well type of the target gas well; wherein the gas well type includes: vertical well, inclined well and horizontal well;

[0081] Determine and construct a critical liquid carrying velocity calculation formula according to the gas well type;

[0082] Substituting the target gas well production parameters into the critical liquid carrying velocity calculation formula, the critical liquid carrying velocity model is obtained.

[0083] Preferably, the vertical well critical liquid carrying velocity calculation formula corresponding to the vertical well includes:

[0084]

[0085] Among them, v vgc represents the critical liquid-carrying velocity of a vertical well; k represents the empirical coefficient obtained by fitting the production data; d represents the droplet width; σ w represents the air-water interfacial tension; ρ l represents the liquid density; ρ g represents gas density; g represents gravitational acceleration.

[0086] Preferably, the calculation formula for the critical liquid-carrying velocity of the vertical well corresponding to the inclined well includes:

[0087]

[0088]

[0089] Among them, v cgc represents the critical liquid-carrying velocity of the inclined well; σ represents the surface tension; n represents the gas velocity correlation coefficient; μa represents the viscosity of the liquid; β represents the droplet inclination angle; θ represents the well inclination angle; R represents the ideal gas constant; and d represents the droplet width.

[0090] Preferably, the calculation formula for the critical liquid-carrying velocity of the vertical well corresponding to the horizontal well includes:

[0091]

[0092] Among them, v hgc Represents the critical liquid-carrying velocity of a horizontal well.

[0093] Preferably, after determining the wellbore liquid accumulation time and the wellbore liquid accumulation characteristics of the target gas well, the method further includes: designing a foam drainage scheme according to the wellbore liquid accumulation time and the wellbore liquid accumulation characteristics, including:

[0094] According to the formation temperature requirements and the temperature resistance characteristics of the reagents, the foaming reagents are divided into several treatment agents, each of which corresponds to a different temperature range;

[0095] An orthogonal experimental method is used to construct a foam drainage related test matrix; wherein the parameters corresponding to the elements of the foam drainage related test matrix include: treatment agent type, treatment agent concentration, well inclination angle, hydrogen sulfide content, gas flow rate and maximum drainage volume;

[0096] Calculating the liquid accumulation position based on the wellbore multiphase flow model and the gas reservoir production characteristic model, and calculating the liquid accumulation volume of the target gas wellbore;

[0097] A foam drainage treatment agent is selected according to the volume of the effusion and the foam drainage related test matrix.

[0098] Preferably, the calculating of the liquid accumulation position based on the wellbore multiphase flow model and the gas reservoir production characteristic model includes:

[0099] According to the wellhead oil pressure data, iteratively calculating the wellbore pressure distribution relationship under the liquid accumulation condition of the target gas well from the wellhead downward to obtain a first distribution curve;

[0100] The casing annulus is regarded as a pure gas column, based on the wellhead casing pressure data of the target gas well and according to the temperature and pressure parameters of the gas in the wellbore, the bottom hole flowing pressure of the target gas well is iteratively calculated from the wellhead downward using the pressure iteration method;

[0101] Based on the bottom hole flow pressure and the temperature and pressure parameters of the formation water, iteratively calculate the wellbore pressure distribution relationship from the bottom hole upward to obtain a second distribution curve;

[0102] The intersection point of the first distribution curve and the second distribution curve is the fluid accumulation position.

[0103] The second aspect of the present invention further provides a system for determining boundary conditions for foam drainage construction, and the system is used to implement at least one of the above methods.

[0104] Compared with the prior art, the present invention has the following beneficial effects:

[0105] 1. The present invention provides a method for determining boundary conditions for foam drainage construction, constructs a reservoir-wellbore integrated coupling capacity prediction model and a critical liquid-carrying velocity calculation model, and proposes a new method for distinguishing wellbore liquid accumulation, which can predict the specific time of foam drainage construction in advance;

[0106] 2. The method provided by the present invention establishes a model for predicting the characteristics of wellbore fluid accumulation, and constructs a foam drainage formula optimization design method based on the volume of wellbore fluid accumulation. According to the prediction results, the construction schemes such as the injection system and intervention time of the foam drainage treatment agent can be optimized in advance;

[0107] 3. The method provided by the present invention can judge the effect of the foam drainage construction and the subsequent injection system according to the real-time wellbore fluid accumulation status.

[0108] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description and the accompanying drawings.

[0109] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0110] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0111] Figure 1 Schematic diagram of the method for determining boundary conditions for foam drainage construction;

[0112] Figure 2 A schematic diagram showing a comparison between the scatter points of the apparent flow velocity and the scatter points of the critical liquid-carrying flow velocity on the 47th day given in Example 1;

[0113] Figure 3 A schematic diagram showing a comparison between the scatter points of the apparent flow velocity and the scatter points of the critical liquid-carrying flow velocity at day 95 given in Example 1;

[0114] Figure 4 A schematic diagram showing a comparison between the scatter points of the apparent flow velocity and the scatter points of the critical liquid-carrying flow velocity on the 142nd day given in Example 1;

[0115] Figure 5The curve diagram of the wellbore liquid accumulation depth calculated according to the reservoir-wellbore integrated coupling model given in Example 1;

[0116] Figure 6 It is a schematic diagram of a curve showing a change in wellbore liquid accumulation height over time after foam production given in Example 1;

[0117] Figure 7 The scatter plot of the critical liquid carrying flow rate and the actual flow rate after the foam production given in Example 1 with the change of well depth;

[0118] Figure 8 A schematic diagram of a method for calculating the depth of fluid accumulation in a wellbore provided in an embodiment;

[0119] Fig. 9 A schematic diagram showing a comparison between the scatter points of the apparent flow velocity and the scatter points of the critical liquid-carrying flow velocity on the 32nd day given in Example 2;

[0120] Fig.10 A schematic diagram showing a comparison between the scatter points of the apparent flow velocity and the scatter points of the critical liquid-carrying flow velocity on the 86th day given in Example 2;

[0121] Fig.11 A schematic diagram showing a comparison between the scatter points of the apparent flow velocity and the scatter points of the critical liquid-carrying flow velocity on the 128th day given in Example 2;

[0122] Fig.12 is a curve diagram of wellbore liquid accumulation depth calculated according to the reservoir-wellbore integrated coupling model given in Example 2;

[0123] Fig.13 It is a schematic diagram of a curve showing a change in the wellbore liquid accumulation height over time after foam production given in Example 2;

[0124] Fig.14 This is a scatter plot of the critical liquid carrying flow rate and the actual flow rate after bubble drainage production as a function of well depth, as given in Example 2. DETAILED DESCRIPTION

[0125] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0126] Figure 1 The method for determining the boundary conditions of foam drainage construction provided by the present invention comprises:

[0127] Construct a wellbore multiphase flow model that takes into account the pressure field, temperature field and wellbore structure;

[0128] Construct a gas reservoir production characteristic model that takes into account the adsorption and analytical characteristics of reservoir shale gas;

[0129] According to the target gas well production parameters predicted by the wellbore multiphase flow model and the gas reservoir production characteristic model, a critical liquid carrying velocity model is constructed, and the critical liquid carrying velocity of the target gas well is predicted according to the critical liquid carrying velocity model;

[0130] Predict the gas superficial velocity of the target gas well based on the gas reservoir production characteristic model;

[0131] Based on the critical liquid-carrying velocity and gas superficial velocity, the wellbore liquid loading time and wellbore liquid loading characteristics of the target gas well are determined.

[0132] According to some embodiments of the present invention, a wellbore multiphase flow model considering pressure field, temperature field and wellbore structure is constructed, and the steps include:

[0133] According to the pressure iteration method, the wellbore is divided into n wellbore micro-units;

[0134] The temperature at the lower end of the wellbore micro-unit is calculated according to the temperature field formula;

[0135] Assuming the pressure difference of the first wellbore micro-unit, the fluid physical properties are calculated according to the average temperature and average pressure of the micro-unit. Combining the drift flow model and the mass conservation equation of the two phases, the gas phase velocity, liquid phase velocity, gas content, liquid holdup and other parameters are calculated.

[0136] The pressure drop of the micro-unit is calculated by using the momentum equation and compared with the assumed value. If the requirements are met (the requirements here refer to the convergence of the micro-unit, and the convergence condition of the micro-unit is that the error between two adjacent iterations is less than 10 -5 ) then proceed to the next micro-unit solution, otherwise, take the newly calculated pressure drop as the initial value and iterate the micro-unit pressure drop again;

[0137] After the micro-unit converges, the thermodynamic parameters and the lower temperature of the new micro-unit are calculated, and a new round of iteration is started until the bottom hole depth is calculated.

[0138] The formulas and equations used in this process include:

[0139] 1. Two-phase momentum mass equation, including: gas-liquid phase mass conservation equation and gas-liquid mixture momentum conservation equation; wherein, the gas-liquid phase mass conservation equation includes:

[0140]

[0141]

[0142] Among them, E g Indicates the interface gas content; E l represents the interface liquid content; ρ g represents the density of the gas phase; ρ l represents the density of the liquid phase; v g represents the velocity of the gas phase; vl represents the velocity of the liquid phase; t represents time; s represents the space in three-dimensional space;

[0143] The momentum conservation equation for gas-liquid mixtures includes:

[0144]

[0145] E g +E l =1

[0146] ρ M =E g ρ g +E l ρ l

[0147] u M =E g u g +E l u l

[0148] u g =C0u M +u gr

[0149] Where A is the cross-sectional area of ​​the flow channel; f M is the wellbore flow friction factor; ρ M is the density of the mixture; u g represents the gas phase velocity; u l represents the liquid phase velocity; u M represents the mixture velocity; u gr represents the drift velocity; p is the wellbore pressure; C0 is the distribution coefficient; g represents the gravitational acceleration; d represents the equivalent diameter; and θ represents the well inclination angle.

[0150] Among them, the expression of the distribution coefficient C0 includes:

[0151]

[0152]

[0153]

[0154]

[0155]

[0156] Where C0 represents the distribution coefficient; f tp represents flow friction; Ra represents Reynolds number; D represents pipe diameter; β represents air holdup rate; V sg V represents the critical velocity of gas phase;sl represents the liquid phase critical velocity; x represents the mass gas content; m g Indicates gas phase mass flow rate; m l Re represents the liquid mass flow rate; tp represents the two-phase flow Reynolds number; α represents the cross-sectional air content; ρ g , l Respectively represent the gas phase and liquid phase density; C1 represents the annular flow coefficient;

[0157] 2. Two-phase drift velocity equation, including:

[0158]

[0159] Here, σ represents the surface tension.

[0160] 3. Temperature field equations, including:

[0161]

[0162]

[0163]

[0164] Among them, T fout represents the fluid temperature at the outlet of the micro-unit of the wellbore; T fin represents the fluid temperature at the wellbore micro-unit inlet; T eout represents the formation temperature at the outlet of the micro-unit of the wellbore; T ein represents the formation temperature at the outlet of the micro-unit of the wellbore; Z out Z represents the wellbore micro-unit exit depth; in represents the entrance depth of the micro-unit of the wellbore; g t represents the temperature gradient of the micro-unit of the wellbore; α J represents the Joule-Thomson coefficient; A1 represents the relaxation factor; U to Represents the overall heat transfer coefficient; W m represents mass flow rate; r to Indicates the outer diameter of the casing; K e Represents the thermal conductivity of the formation; C p represents the specific heat capacity of the fluid at constant pressure; f(t D ) represents a dimensionless time function; v m represents the mixture flow rate; z represents the well depth; and p represents the wellbore pressure at the corresponding depth.

[0165] According to some embodiments of the present invention, when calculating the fluid physical property parameters of the first wellbore microunit based on the set pressure drop and the average temperature of the first wellbore microunit, the calculation formula of the fluid physical property parameters used includes:

[0166]

[0167] Where Z represents the gas compressibility coefficient; T r It indicates the ratio of the absolute temperature of the gas in its actual state to its critical temperature; P r Indicates contrast pressure;

[0168]

[0169] Among them, σ w represents the gas-water interfacial tension; P represents the wellbore pressure at the calculated depth; T represents the wellbore temperature at the calculated depth.

[0170] According to some embodiments of the present invention, before predicting the target gas well production parameters according to the wellbore multiphase flow model and the gas reservoir production characteristic model, the method further includes: modifying the wellbore multiphase flow model and the gas reservoir production characteristic model based on actual production data, including:

[0171] The dynamic production data of the gas well is obtained through the real-time network data transmission system at the gas well production site. The reservoir-wellbore coupling capacity prediction model composed of the wellbore multiphase flow model and the gas reservoir production characteristic model is used to predict the gas velocity, flow type, and pressure distribution profile with well depth in the wellbore according to the actual production needs and different time spans. The empirical coefficients of the prediction model are corrected through real-time data to improve the prediction accuracy. The process includes:

[0172] The original pore pressure of the formation, the initial water saturation of the formation, the geothermal gradient, the reservoir porosity, the reservoir permeability, the well depth structure parameters, the real-time production data of the wellhead, the formation water density, the gas production density, the formation water volume coefficient, etc. are obtained by using the production logging results, the statistical data of the wellhead production and the formation fluid PVT experimental test results. The temperature and pressure fields in the wellbore are calculated by one-dimensional iteration, the seepage field in the reservoir is solved by the two-dimensional finite difference method, and the reservoir-wellbore integrated model is solved by the semi-implicit coupling method. The corresponding prediction software is formed by FORTRAN programming. After the empirical parameters in the coupling model are corrected by the historical data of gas well production, the relationship curve between the gas well production and time, and the relationship curve between the gas flow rate, liquid holdup and flow type and the well depth at different times can be obtained. When calculating, firstly, according to the initial conditions and boundary conditions of the wellbore model, the bottom hole flowing pressure at the current moment is calculated. With this as the boundary condition, the gas reservoir model under the current time step is calculated. If the model converges, it will enter the next time step and transfer the wellhead gas-liquid flow rate calculated by the gas reservoir to the wellbore model; if the model does not converge, the time step is shortened, the wellbore model is recalculated to obtain a new bottom hole pressure, and the gas reservoir model is solved until the coupling model of this time step is fully converged. The calculation is repeated in this way until the calculation time reaches the predetermined total time.

[0173] According to some embodiments of the present invention, a gas reservoir production characteristic model considering shale gas adsorption analytical characteristics is constructed, which is composed of several equations including a two-phase mass conservation equation, Darcy's law, auxiliary equations, a heat transfer equation and a shale gas adsorption analytical equation.

[0174] 1. Two-phase mass conservation equation, including:

[0175]

[0176] Among them, S g Indicates gas phase saturation; S w Indicates water phase saturation; B g Represents the volume coefficient of the gas phase; B w Indicates the volume coefficient of the water phase; μ g Indicates the viscosity of the gas phase; μ w Indicates the viscosity of the water phase; k rg represents the relative permeability of the gas phase; k rw represents the relative permeability of the water phase; p g Indicates the pressure of the gas phase; p w represents the pressure of the water phase; Z represents the gas compressibility coefficient; q gs represents the gas phase flow rate; q ws Indicates the liquid phase flow rate.

[0177] 2. Auxiliary equations, including: capillary force equation, saturation equation, gas-liquid two-phase relative permeability equation, porosity equation, gas-liquid two-phase system coefficient equation; among them,

[0178] Capillary force equations, including:

[0179] p cgw =p g -p w =p cgw (S w )

[0180] Saturation equation, including:

[0181] S g +S w =1

[0182] The gas-liquid two-phase relative permeability equation includes:

[0183] k rw =f(S w )

[0184] k rg =f(S g )

[0185] The above formula shows that the gas / liquid relative permeability is a function of the gas / liquid saturation.

[0186] Porosity equation, including:

[0187]

[0188] The coefficient equation of the gas-liquid two-phase system includes:

[0189]

[0190]

[0191] Among them, ρ g represents the gas phase density; ρ w represents the density of liquid phase; represents porosity; represents the initial porosity; p cgw Indicates capillary pressure; C R represents the rock compression coefficient; p sc Indicates the pressure under standard ground conditions; T sc Indicates the temperature under standard ground conditions; V w Indicates the water phase flow rate; V ws represents the volume of liquid phase; ρ ws represents the liquid density; ρ w represents the density of water phase; c w represents the compressibility coefficient of water phase; represents the initial volume fraction of liquid phase; represents the initial density of the gas phase; represents the initial density of the liquid phase; represents the initial pressure of the gas phase.

[0192] 3. Heat transfer equations, including:

[0193]

[0194] Where U represents the internal energy of the gas; ρ s represents the density of shale; c s represents the specific heat capacity of shale; h represents the enthalpy of gas; k t represents the thermal conductivity coefficient; T1 represents the temperature field of the wellbore; ρ represents the rock density; v represents the fluid flow rate.

[0195] 4. Shale gas adsorption analytical equation, including:

[0196] The extended Langmuir adsorption-desorption equation considering the temperature and pressure effect is used to describe the gas adsorption behavior in the microscopic pore system. Its formula is:

[0197]

[0198] Among them, VL represents the Langmuir concentration of the gas; K(T) represents the adsorption equilibrium constant;

[0199] K(T)=k0T -1 / 2 e -E / RT

[0200] Where k0 represents the pre-exponential constant; E is the characteristic adsorption energy; the diffusion process of gas in the shale microscopic pore system is described by the pseudo-steady-state non-equilibrium adsorption-desorption model, and the gas diffusion obeys Fick's first law. The equation form is as follows:

[0201]

[0202] Where C(p,T) represents the gas concentration in the microscopic pore system at temperature T and pressure p; τ represents the adsorption time.

[0203] Therefore, the source and sink term caused by desorption and diffusion in the microscopic pore system can be expressed as:

[0204]

[0205] According to some embodiments of the present invention, a critical liquid carrying velocity model is constructed based on target gas well production parameters predicted by a wellbore multiphase flow model and a gas reservoir production characteristic model, including: determining a gas well type of the target gas well (gas well types include: vertical wells, inclined wells and horizontal wells); determining and constructing a critical liquid carrying velocity calculation formula based on the gas well type; substituting the target gas well production parameters into the critical liquid carrying velocity calculation formula to obtain the critical liquid carrying velocity model.

[0206] The calculation formula for the vertical well critical liquid carrying velocity corresponding to the vertical well includes:

[0207]

[0208] Among them, v vgc represents the critical liquid-carrying velocity of a vertical well; k represents the empirical coefficient obtained by fitting the production data; d represents the droplet width; σ w represents the air-water interfacial tension; ρ l represents the liquid density; ρ g represents gas density; g represents gravitational acceleration.

[0209] The calculation formula for the critical liquid-carrying velocity of a vertical well corresponding to a deviated well includes:

[0210]

[0211]

[0212] Among them, v cgcrepresents the critical liquid-carrying velocity of the inclined well; σ represents the surface tension; n represents the gas velocity correlation coefficient; μ a represents the viscosity of the liquid; β represents the droplet inclination angle; θ represents the well inclination angle; R represents the ideal gas constant; and d represents the droplet width.

[0213] The calculation formula for the critical liquid-carrying velocity of a vertical well corresponding to a horizontal well includes:

[0214]

[0215] Among them, v hgc Represents the critical liquid-carrying velocity of a horizontal well.

[0216] Figure 2-Figure 4 The following are schematic diagrams of gas phase superficial velocity and critical liquid carrying velocity on the 47th day, 95th day and 142nd day obtained by the reservoir-wellbore integrated coupling model composed of the wellbore multiphase flow model and the gas reservoir production characteristic model combined with the critical liquid carrying velocity model given in Example 1, with the horizontal axis being the velocity and the vertical axis being the well depth. Figures 2 to 4 It can be seen that at 47 days, the gas phase apparent velocity is just greater than the critical liquid-carrying velocity; at 95 days, the two curves just intersect, and the gas phase velocity is less than or equal to the critical liquid-carrying velocity; at 142 days, the gas phase velocity is less than the critical liquid-carrying velocity. Liquid accumulation in the wellbore occurs approximately after 47 days.

[0217] Figure 9-11 The schematic diagrams of the gas phase superficial velocity and the critical liquid-carrying velocity obtained in Example 2 on the 32nd day, the 86th day, and the 128th day are shown in turn, with the velocity on the abscissa and the well depth on the ordinate. By comparison, it can be seen that on the 32nd day, the gas phase superficial velocity is greater than the critical liquid-carrying velocity; on the 86th day, the two curves just intersect, and the gas phase velocity is less than or equal to the critical liquid-carrying velocity; on the 128th day, the gas phase velocity is less than the critical liquid-carrying velocity. By comparing these figures, it can be seen that wellbore liquid accumulation occurs approximately after 32 days.

[0218] According to some embodiments of the present invention, after determining the wellbore liquid accumulation time and wellbore liquid accumulation characteristics of the target gas well, the method further includes:

[0219] Design a foam drainage plan based on the wellbore fluid accumulation time and wellbore fluid accumulation characteristics, including:

[0220] According to the formation temperature requirements and the temperature resistance characteristics of the reagents, the foaming reagents are divided into several treatment agents, each of which corresponds to a different temperature range;

[0221] The orthogonal experimental method is used to construct the foam drainage related test matrix; the parameters corresponding to the elements of the foam drainage related test matrix include: treatment agent type, treatment agent concentration, well inclination angle, hydrogen sulfide content, gas flow rate and maximum drainage volume;

[0222] Calculate the location of liquid accumulation based on the wellbore multiphase flow model and the gas reservoir production characteristic model, and calculate the liquid accumulation volume in the wellbore of the target gas well;

[0223] The foam drainage treatment agent is selected based on the test matrix related to the volume of effusion and foam drainage.

[0224] Figure 5 This is the wellbore liquid accumulation depth curve calculated according to the reservoir-wellbore integrated coupling model given in Example 1. The wellbore liquid accumulation height is 213m and the liquid accumulation volume is 423L. The corresponding treatment agent can be selected by combining the above data with the foam drainage related test matrix. Fig.12 is a wellbore fluid accumulation depth curve obtained according to Example 2 of this method.

[0225] According to some embodiments of the present invention, a method for designing a bubble stripping scheme includes:

[0226] According to the formation temperature requirements and the product's temperature resistance, the foaming agents are divided into products with different temperature ranges. Foaming simulation tests are conducted on products with different temperature ranges. According to the orthogonal test method, the effects of gas flow rate, foaming agent concentration, well inclination, formation water salinity, and hydrogen sulfide content on the maximum drainage volume are tested. According to the test results, a relevant test result matrix (treatment agent type, treatment agent concentration, treatment agent temperature resistance, well inclination, salinity, hydrogen sulfide content, gas flow rate, and maximum drainage volume) is constructed to facilitate interpolation optimization calculation of the results when optimizing the treatment agent type and dosage.

[0227] According to some embodiments of the present invention, a method for designing a foam drainage scheme selects a foam drainage treatment agent based on a test matrix related to effusion volume and foam drainage, and the selection method includes: evaluating the relationship between the maximum drainage volume and dosage, gas flow rate and cost of different treatment agents.

[0228] The test ranges of the various parameters in the embodiment are: ① concentration: 0.5%-5%; ② temperature: 40℃-220℃; ③ well inclination: 0°-90°; ④ flow range: (0-10 6 m 3 / d) / wellbore cross-sectional area; ⑤ Formation water mineralization: 0-10 5 mg / L; ⑥ Hydrogen sulfide content: 0-60g / m 3 Each factor can be set to different levels according to needs.

[0229] According to one embodiment of the present invention, the comprehensive performance of three treatment agents, YHS-1, YHS-2 and YHS-3, was evaluated. The orthogonal test design has 7 factors and 3 levels. The 7 factors correspond to the type of treatment agent, concentration, test temperature, well inclination, salinity, hydrogen sulfide content and gas flow rate, respectively. The level of each factor is: ① Concentration: 0.5%, 1%, 1.5%; ② Temperature: 150℃, 160℃, 170℃; ③ Well inclination: 30°, 60°, 90°; ④ Flow range: (1, 5, 100,000 cubic meters / day) / wellbore cross-sectional area; ⑤ Formation water salinity: 3, 5, 7 g / L; ⑥ Hydrogen sulfide content: 10, 20, 30 g / m 3 ; ⑦Types: 1, 2, 3.

[0230] According to another embodiment of the present invention, the comprehensive performance of three treatment agents, YHS-1, YHS-2 and YHS-3, was evaluated. The orthogonal test design has 7 factors and 3 levels, and the 7 factors correspond to the type of treatment agent, concentration, test temperature, well inclination, salinity, hydrogen sulfide content, and gas flow rate, respectively. The level of each factor is: ① Concentration: 0.5%, 1%, 1.5%; ② Temperature: 70°C, 90°C, 110°C; ③ Well inclination: 30°, 60°, 90°; ④ Flow range: (0.5, 1, 20,000 cubic meters / day) / wellbore cross-sectional area; ⑤ Formation water salinity: 1, 3, 5 g / L; ⑥ Hydrogen sulfide content: 5, 10, 15 g / m 3 ; ⑦Types: 1, 2, 3.

[0231] First, determine the product type according to the temperature range; then, use the wellbore fluid accumulation condition as a restriction condition to select all the types of agents and concentration combinations that meet the requirements. The specific optimization conditions are as follows: ① Required drainage volume × usage concentration × unit price = cost, take the minimum; ② Maximum drainage volume > wellbore fluid accumulation volume; ③ Temperature resistance > target formation temperature; ④ Well inclination > target well inclination; ⑤ Gas flow rate < gas flow rate under existing drainage conditions; Based on the above restrictions, solve the minimum cost combination that meets the above requirements.

[0232] According to some embodiments of the present invention, after determining the wellbore liquid accumulation time and wellbore liquid accumulation characteristics, it also includes: judging whether to take subsequent bubble drainage measures and adjusting the subsequent production system, characterized in that:

[0233] Combined with actual production data, the height of wellbore liquid accumulation is calculated to obtain the curve of the relationship between wellbore liquid accumulation and drainage time. According to the changing trend of wellbore liquid accumulation and the accumulated drainage volume, it is judged whether to carry out subsequent operations. There are several situations:

[0234] ① The wellbore liquid accumulation continued to decrease to near zero, indicating that this foam drainage operation was relatively effective;

[0235] ② After the wellbore liquid accumulation is reduced to a certain value, it remains stable, and the cumulative drainage volume is completely greater than the initial design of the foaming agent dosage, indicating that the foaming effect of this time meets the requirements. According to the current wellbore liquid accumulation situation, the foaming agent dosage is redesigned;

[0236] ③ There is no obvious change in the wellbore liquid accumulation, which means that the foam drainage has completely failed. The wellbore liquid accumulation is far greater than the foam liquid carrying capacity of the foam drainage agent. Use a new foam drainage formula or use gas lift.

[0237] Figure 6 The curve of the change of the wellbore liquid accumulation height over time after the foam production given in Example 1 is combined with the critical liquid carrying flow rate calculation method, combined with the fluid physical properties and formation temperature and pressure characteristics of the gas well after the foam production, to calculate the latest critical liquid carrying flow rate, and adjust the gas production rate accordingly. Figure 7 This is a curve showing the changes in the critical liquid-carrying flow rate and the actual flow rate with the well depth after the foam drainage production in Example 1. The timing of the later foam drainage intervention can be further predicted based on this graph.

[0238] Fig.13 The curve of the change of the wellbore liquid accumulation height over time after the foam drainage production given in Example 2 is as follows. It can be seen from the figure that in about 13 days, the wellbore liquid accumulation has been completely discharged by this foam drainage construction, and a good foam drainage treatment effect has been achieved. Fig.14 This is a curve showing the variation of the critical liquid-carrying velocity with well depth after foam drainage production given in Example 2. As can be seen from the figure, after foam drainage, the timing of late foam drainage intervention can be further predicted based on the figure.

[0239] According to some embodiments of the present invention, a method for determining a wellbore fluid loading time includes:

[0240] Taking days as the time unit, first assume the simulation prediction time, solve the curves of the change of gas superficial velocity and critical liquid-carrying velocity with depth in the wellbore at the current moment according to the prediction time, and judge whether the wellbore is liquid-filled according to whether the two curves intersect or whether the critical liquid-carrying velocity is greater than the gas superficial velocity. If there is liquid-filled in the wellbore, adjust the calculation time according to the dichotomy method, and recalculate whether there is liquid-filled at the new moment. If there is no wellbore liquid-filled in the first calculation, expand the prediction calculation time range again until the wellbore liquid-filled in the first calculation within the calculation time, and then adjust the time according to the dichotomy method for subsequent calculations.

[0241] Starting from the second calculation, when the error between the calculation time and the previous time is less than 1 day, the last calculation time is the wellbore liquid accumulation time.

[0242] According to some embodiments of the present invention, a method for determining a wellbore fluid loading characteristic includes:

[0243] After the time of wellbore fluid accumulation is determined, the foam drainage construction plan can be prepared in advance. When the time distance to the predicted occurrence of wellbore fluid accumulation is about one week, the wellbore fluid accumulation situation is continuously corrected through dynamic production data to calculate the wellbore fluid accumulation depth.

[0244] The wellbore fluid accumulation volume can be obtained by multiplying the wellbore fluid accumulation depth by the wellbore cross-sectional area.

[0245] According to some embodiments of the present invention, a method for calculating a wellbore fluid accumulation depth includes:

[0246] According to the wellhead oil pressure data, the wellbore pressure distribution relationship under the liquid loading condition of the target gas well is iteratively calculated from the wellhead downward to obtain a first distribution curve;

[0247] The casing annulus is regarded as a pure gas column. Based on the wellhead casing pressure data of the target gas well and the temperature and pressure parameters of the gas in the wellbore, the bottom hole flowing pressure of the target gas well is iteratively calculated from the wellhead downward using the pressure iteration method.

[0248] Based on the bottom hole flow pressure and the temperature and pressure parameters of the formation water, the wellbore pressure distribution relationship is iteratively calculated from the bottom hole upward to obtain a second distribution curve;

[0249] The intersection point of the first distribution curve and the second distribution curve is the location of the fluid accumulation.

[0250] Figure 8 The figure is a schematic diagram of a method for calculating the depth of liquid accumulation in a wellbore according to an embodiment. Point A is the casing pressure at the wellhead, point B is the bottom hole flow pressure, point C is the wellhead oil pressure, and point D is the liquid accumulation point. According to the principle of pressure balance, the bottom hole flow pressure calculation formula is as follows:

[0251] P B =P A +P 气 =P C +P D +P 液

[0252] Among them, P B is the bottom hole flowing pressure; P A is the wellhead casing pressure; Pgas is the pure gas column pressure in the casing annulus; P C is the wellhead oil pressure; P D is the pressure at the fluid accumulation point in the wellbore; Pliquid is the pressure of the liquid column of the accumulated liquid.

[0253] Based on the wellbore multiphase flow model-gas reservoir production characteristic model integrated coupling model, the semi-implicit solution algorithm provided when establishing the wellbore multiphase flow model is used, and iterative calculation is started from the wellhead oil pressure at point C. The distribution relationship of the wellbore pressure with the well depth under the condition of liquid accumulation can be obtained;

[0254] Using the wellhead casing pressure data, assuming that the casing annulus is a pure gas column, and based on the changes in temperature and pressure parameters of the gas in the wellbore, the bottom hole flowing pressure is calculated from point A at the wellhead using the pressure iteration method.

[0255] Starting from the bottom hole flowing pressure point B, according to the changes in the temperature and pressure parameters of the formation water, the calculation is iterated from the bottom of the well upward until the curve intersects with the wellbore pressure distribution curve predicted by the reservoir wellbore integrated coupling model. The intersection point D is the liquid accumulation position.

[0256] According to some embodiments of the present invention, the pressure iteration algorithm process is as follows:

[0257] ① Determine the starting point pressure P1, calculate the depth increment ΔZ and the number of segments N;

[0258] ② The initial design section pressure drop is ΔP, and the lower end pressure is calculated using the following formula

[0259] P 2设 =P1+ΔP 设

[0260] ③ Calculate the average pressure and average temperature of this section;

[0261] ④ Calculate fluid property parameters and flow parameters at average pressure and average temperature;

[0262] ⑤ Calculate the pressure gradient and pressure drop using the following formula:

[0263]

[0264] ⑥ Calculate the terminal pressure using the following formula:

[0265] P 2计 =P1+ΔP 计

[0266] ⑦ Compare the error between the assumed value and the calculated value of the pressure increment. If the error does not meet the requirements, P2 will be taken as the new assumed value and the calculation will start from step 2 until the requirements are met. Then the end pressure of the upper segment will be used as the starting pressure of the lower segment to start calculating the next segment.

[0267] The error calculation formula is:

[0268]

[0269] The present invention also provides a foam drainage construction boundary condition determination system, which is used to implement at least one of the above-mentioned foam drainage construction boundary condition determination methods.

[0270] Compared with the prior art, the present invention has the following beneficial effects:

[0271] 1. The present invention provides a method for determining the boundary conditions of foam drainage construction, constructs a reservoir-wellbore integrated coupled capacity prediction model and a critical liquid-carrying flow rate calculation model, and proposes a new method for distinguishing wellbore liquid accumulation, which can predict the specific time of foam drainage construction in advance; 2. The method provided by the present invention establishes a model for predicting the characteristics of wellbore liquid accumulation, and constructs a foam drainage formula optimization design method based on the wellbore liquid accumulation volume. According to the prediction results, the construction plans such as the injection system and intervention time of the foam drainage treatment agent can be optimized in advance; 3. The method provided by the present invention can judge the foam drainage construction effect and the subsequent injection system according to the real-time wellbore liquid accumulation status.

[0272] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for determining boundary conditions for foam drainage construction, in, include: Construct a wellbore multiphase flow model that takes into account the pressure field, temperature field and wellbore structure; Construct a gas reservoir production characteristic model that takes into account the adsorption and analytical characteristics of reservoir shale gas; Constructing a critical liquid carrying velocity model according to the target gas well production parameters predicted by the wellbore multiphase flow model and the gas reservoir production characteristic model, and predicting the critical liquid carrying velocity of the target gas well according to the critical liquid carrying velocity model; Predicting the gas superficial velocity of the target gas well according to the gas reservoir production characteristic model; Based on the critical liquid-carrying flow rate and the gas superficial flow rate, the wellbore liquid accumulation time and wellbore liquid accumulation characteristics of the target gas well are determined.

2. The method according to claim 1, in, The construction of a wellbore multiphase flow model taking into account pressure field, temperature field and wellbore structure includes: Divide the wellbore into a number of wellbore micro-units according to depth; Calculating the lower end temperature of the first wellbore microunit according to the temperature field equation; Based on the set pressure drop and average temperature of the first wellbore micro-unit, the fluid physical property parameters of the first wellbore micro-unit are calculated, and the theoretical pressure drop of the first wellbore micro-unit is calculated by combining the two-phase drift velocity equation and the two-phase momentum mass equation; comparing a set pressure drop of the first wellbore microunit with a theoretical pressure drop; When it is determined that the first wellbore micro-unit does not satisfy the micro-unit convergence, the theoretical pressure drop is used as a new set pressure drop, and the theoretical pressure drop is iterated; when it is determined that the first wellbore micro-unit satisfies the micro-unit convergence, the pressure drop solution of the next micro-unit is entered; The above method is repeated until all wellbore micro-units are solved, and the wellbore multiphase flow model considering the pressure field, temperature field and wellbore structure is obtained.

3. The method according to claim 2, in, The two-phase momentum mass equation includes the gas-liquid phase mass conservation equation and the gas-liquid mixture momentum conservation equation; wherein, The gas-liquid phase mass conservation equation includes: Among them, E g Indicates the interface gas content; E l represents the interface liquid content; ρ g represents the density of the gas phase; ρ l represents the density of the liquid phase; v g represents the velocity of the gas phase; v l represents the velocity of the liquid phase; t represents time; s represents the position in three-dimensional space; The gas-liquid mixture momentum conservation equation includes: AND g +E l =1 r M =E g r g +E l r l in M =E g in g +E l in l in g =C 0 in M +in gr Where A is the cross-sectional area of ​​the flow channel; f M is the wellbore flow friction factor; ρ M is the density of the mixture; u g represents the gas phase velocity; u l represents the liquid phase velocity; u M represents the mixture velocity; u gr represents the drift velocity; p is the wellbore pressure; C 0 is the distribution coefficient; g represents the gravitational acceleration; d represents the equivalent diameter; θ represents the well inclination angle.

4. The method according to claim 3, in, The expression of the distribution coefficient includes: Among them, C 0 represents the distribution coefficient; f tp represents flow friction; Ra represents Reynolds number; D represents pipe diameter; β represents air holdup rate; V sg V represents the critical velocity of gas phase; sl represents the liquid phase critical velocity; x represents the mass gas content; m g Indicates gas phase mass flow rate; m l Re represents the liquid mass flow rate; tp represents the two-phase flow Reynolds number; α represents the cross-sectional air content; ρ g , l Represent the density of gas phase and liquid phase respectively; C 1 Represents the annulus flow coefficient.

5. The method according to claim 4, in, The two-phase drift velocity equation includes: Here, σ represents the surface tension.

6. The method according to claim 5, in, The temperature field equation includes: Among them, T fout represents the fluid temperature at the outlet of the micro-unit of the wellbore; T fin represents the fluid temperature at the wellbore micro-unit inlet; T eout represents the formation temperature at the outlet of the micro-unit of the wellbore; T ein represents the formation temperature at the outlet of the micro-unit of the wellbore; Z out Z represents the wellbore micro-unit exit depth; in represents the entrance depth of the micro-unit of the wellbore; g t represents the temperature gradient of the micro-unit of the wellbore; α J represents the Joule-Thomson coefficient; A 1 represents the relaxation factor; U to Represents the overall heat transfer coefficient; W m represents mass flow rate; r to Indicates the outer diameter of the casing; K e Represents the thermal conductivity of the formation; C p represents the specific heat capacity of the fluid at constant pressure; f(t D ) represents a dimensionless time function; v m represents the mixture flow rate; z represents the well depth; and p represents the wellbore pressure at the corresponding depth.

7. The method according to claim 2, in, When calculating the fluid physical property parameters of the first wellbore microunit based on the set pressure drop and the average temperature of the first wellbore microunit, the calculation formula of the fluid physical property parameters used includes: Where Z represents the gas compressibility coefficient; T r It represents the ratio of the absolute temperature of the gas in its actual state to its critical temperature; P r Indicates contrast pressure; Among them, σ w represents the gas-water interfacial tension; P represents the wellbore pressure at the calculated depth; T represents the wellbore temperature at the calculated depth.

8. The method according to claim 1, in, The gas reservoir production characteristic model is composed of several equations including a two-phase mass conservation equation, Darcy's law, an auxiliary equation, a heat transfer equation and a shale gas adsorption analytical equation.

9. The method according to claim 8, in, The two-phase mass conservation equation includes: Among them, S g Indicates gas phase saturation; S w Indicates water phase saturation; B g Represents the volume coefficient of the gas phase; B w Indicates the volume coefficient of the water phase; μ g Indicates the viscosity of the gas phase; μ w Indicates the viscosity of the water phase; k rg represents the relative permeability of the gas phase; k rw represents the relative permeability of the water phase; p g Indicates the pressure of the gas phase; p w represents the pressure of the water phase; Z represents the gas compressibility coefficient; q gs represents the gas phase flow rate; q ws Indicates the liquid phase flow rate.

10. The method according to claim 9, in, The auxiliary equations include: capillary force equation, saturation equation, gas-liquid two-phase relative permeability equation, porosity equation, gas-liquid two-phase system coefficient equation; wherein, The capillary force equation includes: pcgw=pg-pw=pcgw(Sw) The saturation equation includes: Sg+Sw=1 The gas-liquid two-phase relative permeability equation includes: krw=f(Sw) krg=f(Sg) The porosity equation includes: The gas-liquid two-phase system coefficient equation includes: Among them, ρ g represents the gas phase density; ρ w represents the density of liquid phase; represents porosity; represents the initial porosity; p cgw Indicates capillary pressure; C R represents the rock compression coefficient; p sc Indicates the pressure under standard ground conditions; T sc Indicates the temperature under standard ground conditions; V w Indicates the water phase flow rate; V ws represents the volume of liquid phase; ρ ws represents the liquid density; ρ w represents the density of water phase; c w represents the compressibility coefficient of water phase; represents the initial volume fraction of liquid phase; represents the initial density of the gas phase; represents the initial density of the liquid phase; represents the initial pressure of the gas phase.

11. The method according to claim 10, in, The heat transfer equation includes: Where U represents the internal energy of the gas; ρ s represents the density of shale; c s represents the specific heat capacity of shale; h represents the enthalpy of gas; k t Represents the thermal conductivity; T 1 represents the temperature field of the wellbore; ρ represents the rock density; v represents the fluid flow rate; t represents time.

12. The method according to claim 11, in, The shale gas adsorption analytical equation includes: Among them, V L represents the Langmuir concentration of the gas; K(T) represents the adsorption equilibrium constant; K(T)=k 0 T -1 / 2 e -E / RT Among them, k 0 represents the pre-exponential constant; E is the characteristic adsorption energy; Where C(p,T) represents the gas concentration in the microscopic pore system at temperature T and pressure p; τ represents the adsorption time.

13. The method according to claim 12, in, The method of constructing a critical liquid carrying velocity model based on the target gas well production parameters predicted by the wellbore multiphase flow model and the gas reservoir production characteristic model comprises: Determine the gas well type of the target gas well; wherein the gas well type includes: vertical well, inclined well and horizontal well; Determine and construct a critical liquid carrying velocity calculation formula according to the gas well type; Substituting the target gas well production parameters into the critical liquid carrying velocity calculation formula, the critical liquid carrying velocity model is obtained.

14. The method according to claim 13, in, The calculation formula for the vertical well critical liquid carrying velocity corresponding to the vertical well includes: Among them, v vgc represents the critical liquid-carrying velocity of a vertical well; k represents the empirical coefficient obtained by fitting the production data; d represents the droplet width; σ w represents the air-water interfacial tension; ρ l represents the liquid density; ρ g represents gas density; g represents gravitational acceleration.

15. The method of claim 14, in, The calculation formula for the critical liquid-carrying velocity of the vertical well corresponding to the inclined well includes: Among them, v cgc represents the critical liquid-carrying velocity of the inclined well; σ represents the surface tension; n represents the gas velocity correlation coefficient; μ a represents the viscosity of the liquid; β represents the droplet inclination angle; θ represents the well inclination angle; R represents the ideal gas constant; and d represents the droplet width.

16. The method of claim 15, in, The calculation formula for the critical liquid-carrying velocity of the vertical well corresponding to the horizontal well includes: Among them, v hgc Represents the critical liquid-carrying velocity of a horizontal well.

17. The method of claim 1, in, After determining the wellbore liquid accumulation time and wellbore liquid accumulation characteristics of the target gas well, the method further includes: designing a foam drainage scheme according to the wellbore liquid accumulation time and the wellbore liquid accumulation characteristics, including: According to the formation temperature requirements and the temperature resistance characteristics of the reagents, the foaming reagents are divided into several treatment agents, each of which corresponds to a different temperature range; An orthogonal experimental method is used to construct a foam drainage related test matrix; wherein the parameters corresponding to the elements of the foam drainage related test matrix include: treatment agent type, treatment agent concentration, well inclination angle, hydrogen sulfide content, gas flow rate and maximum drainage volume; Calculating the liquid accumulation position based on the wellbore multiphase flow model and the gas reservoir production characteristic model, and calculating the liquid accumulation volume of the target gas wellbore; A foam drainage treatment agent is selected according to the volume of the effusion and the foam drainage related test matrix.

18. The method of claim 17, in, The calculating of the liquid accumulation position based on the wellbore multiphase flow model and the gas reservoir production characteristic model comprises: According to the wellhead oil pressure data, iteratively calculating the wellbore pressure distribution relationship under the liquid accumulation condition of the target gas well from the wellhead downward to obtain a first distribution curve; The casing annulus is regarded as a pure gas column, based on the wellhead casing pressure data of the target gas well and according to the temperature and pressure parameters of the gas in the wellbore, the bottom hole flowing pressure of the target gas well is iteratively calculated from the wellhead downward using the pressure iteration method; Based on the bottom hole flow pressure and the temperature and pressure parameters of the formation water, iteratively calculate the wellbore pressure distribution relationship from the bottom hole upward to obtain a second distribution curve; The intersection point of the first distribution curve and the second distribution curve is the fluid accumulation position.

19. A system for determining boundary conditions for foam drainage construction. in, The system is used to implement the method described in any one of claims 1 to 18.

Citation Information

Patent Citations

  • Water-production gas well liquid loading risk prediction method

    CN107045671A

  • Method suitable for judging hydrops of oil-gas-water co-production horizontal well

    CN110866321A

  • Method and system for permeability calculation using production logs for horizontal wells, using a downhole tool

    US20140136117A1

Cited By

  • Gas well shaft foam scrubbing agent concentration determination method based on shaft multiphase flow calculation

    CN119720869A

  • A method for determining the concentration of foaming agent in gas wellbore based on wellbore multiphase flow calculation

    CN119720869B

  • Method and device for calculating ultrahigh-pressure well closing water hammer pressure of ultra-deep well containing sulfur precipitation

    CN121118752A