Bottom hole temperature acquisition method, device, equipment and medium
By obtaining the attribute parameters and initial conditions of natural gas, and updating the bottom-hole temperature using relational data, the problem of inaccurate bottom-hole temperature in the prior art is solved, and the accuracy of temperature measurement and application reliability are improved.
Patent Information
- Application Number
- CN202110021670.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-08
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2041-01-08
AI Technical Summary
When obtaining the bottom-hole temperature of a natural gas well, the obtained bottom-hole temperature temperature is inaccurate due to abnormal ground temperature gradients and the influence of gas-related parameters.
By obtaining multiple attribute parameters, initial temperature and initial pressure of natural gas, the target density and influence coefficient are determined using the first and second relational data, and the initial temperature is updated to obtain a more accurate bottom-hole temperature.
It improves the accuracy of bottom-hole temperature, ensures wellbore pressure control, incoming working fluid performance and effective design of downhole tools.
Smart Images

Figure CN114737957B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of oil and gas field well development, and in particular to a method, device, equipment and medium for obtaining bottom hole temperature. Background Art
[0002] As the depth of natural gas wells increases, the bottom hole temperature also increases. The bottom hole temperature has an important impact on wellbore pressure control, well working fluid performance, downhole tools and tubing strength. Therefore, accurate prediction of bottom hole temperature is of great significance for the safe and efficient production of ultra-deep gas wells.
[0003] In the related art, the vertical depth of the natural gas well and the geothermal gradient data of the area where the natural gas well is located are used to obtain the bottom hole temperature of the natural gas well. However, since the natural gas well is deep, the geothermal gradient will be abnormal, and the influence of relevant parameters of natural gas is not considered, resulting in inaccurate bottom hole temperature. Summary of the invention
[0004] The embodiment of the present application provides a method, device, computer equipment and medium for obtaining bottom hole temperature, which improves the accuracy of the obtained bottom hole temperature. The technical solution is as follows:
[0005] In one aspect, a method for obtaining bottom hole temperature is provided, the method comprising:
[0006] Acquire natural gas data, wherein the natural gas data includes a plurality of attribute parameters of natural gas, an initial temperature corresponding to a natural gas well, and a corresponding initial pressure;
[0007] determining a target density of the natural gas according to first relationship data, wherein the first relationship data is used to represent a corresponding relationship between the density of the natural gas and the natural gas data;
[0008] Determine a first influence coefficient corresponding to the natural gas according to second relationship data, wherein the second relationship data is used to indicate a corresponding relationship between the influence coefficient corresponding to the natural gas and the natural gas data, and the first influence coefficient is used to indicate an influence degree of the pressure corresponding to the natural gas well on the corresponding temperature;
[0009] updating the initial temperature according to the first influence coefficient and the reference pressure variable to obtain an updated temperature;
[0010] In response to a difference between the target density and the initial density being less than a reference threshold, a bottom hole temperature of the natural gas well is determined according to the updated temperature.
[0011] In a possible implementation, in response to the difference between the target density and the initial density being less than a reference threshold, determining the bottom hole temperature of the natural gas well according to the updated temperature parameter includes:
[0012] In response to the difference between the target density and the initial density being less than the reference threshold, determining the updated temperature parameter as the bottom hole temperature; or,
[0013] In response to a difference between the target density and the initial density being less than the reference threshold, updating the initial pressure parameter according to the reference pressure variable to obtain an updated pressure parameter;
[0014] determining a second influence coefficient corresponding to the natural gas according to the second relationship data, the updated temperature parameter and the updated pressure parameter;
[0015] The updated temperature parameter is updated according to the second influence coefficient and the reference pressure variable to obtain a re-updated temperature parameter, and the re-updated temperature parameter is determined as the bottom hole temperature.
[0016] In another possible implementation, after the initial temperature is updated according to the target influence coefficient and the reference pressure variable to obtain the updated temperature, the method further includes:
[0017] In response to a difference between the target density and the initial density being not less than the reference threshold, updating the initial pressure according to the reference pressure variable to obtain an updated pressure;
[0018] The updated pressure is used as the initial pressure, the updated temperature is used as the initial temperature, and the target density is used as the initial density, and the step of determining the target density of the natural gas according to the first relationship data is continued.
[0019] In another possible implementation, the first data relationship includes:
[0020]
[0021] Wherein, p is the initial pressure, ρ is the density of the natural gas, R is the universal gas constant, T is the initial temperature, α, γ, a, b, c and d are preset parameters, A 0 , B 0 , C 0 , D 0 and E 0 is a known parameter determined based on the multiple attribute parameters.
[0022] In another possible implementation, the second data relationship includes:
[0023]
[0024] Among them, μJ-T is the influence coefficient, c p is the constant-pressure molar specific heat capacity of the natural gas, T is the initial temperature, ρ is the density of the natural gas, and R is the universal gas constant.
[0025] In another possible implementation, the natural gas includes multiple components, and obtaining the natural gas data includes:
[0026] For each property parameter, respectively obtaining property sub-parameters and corresponding mole fractions of the plurality of components;
[0027] According to the mole fractions corresponding to the multiple components, the obtained multiple property sub-parameters are merged to obtain the property parameter.
[0028] In another possible implementation, the obtaining of natural gas data includes:
[0029] Display parameter setting interface;
[0030] The natural gas data input in the parameter setting interface is obtained.
[0031] In another possible implementation, the parameter setting interface includes a static parameter setting area, a fluid parameter setting area and a production parameter setting area, the static parameter setting area is used to set the initial temperature; the fluid parameter setting area is used to set the multiple property parameters; and the production parameter setting area is used to set the initial pressure.
[0032] On the other hand, a device for obtaining bottom hole temperature is provided, the device comprising:
[0033] A data acquisition module, used to acquire natural gas data, wherein the natural gas data includes a plurality of attribute parameters of natural gas, an initial temperature and an initial pressure corresponding to a natural gas well;
[0034] a density acquisition module, used to determine the target density of the natural gas according to first relationship data, wherein the first relationship data is used to represent the corresponding relationship between the density of the natural gas and the natural gas data;
[0035] An influence coefficient acquisition module, used to determine a first influence coefficient corresponding to the natural gas according to second relationship data, wherein the second relationship data is used to indicate a corresponding relationship between the influence coefficient corresponding to the natural gas and the natural gas data, and the first influence coefficient is used to indicate an influence degree of the corresponding pressure of the natural gas well on the corresponding temperature;
[0036] A temperature updating module, used for updating the initial temperature according to the first influence coefficient and the reference pressure variable to obtain an updated temperature;
[0037] The bottom hole temperature acquisition module is used to determine the bottom hole temperature of the natural gas well according to the updated temperature in response to the difference between the target density and the initial density being less than a reference threshold.
[0038] In a possible implementation, the bottom hole temperature acquisition module is used to:
[0039] In response to the difference between the target density and the initial density being less than the reference threshold, determining the updated temperature parameter as the bottom hole temperature; or,
[0040] In response to a difference between the target density and the initial density being less than the reference threshold, updating the initial pressure parameter according to the reference pressure variable to obtain an updated pressure parameter;
[0041] determining a second influence coefficient corresponding to the natural gas according to the second relationship data, the updated temperature parameter and the updated pressure parameter;
[0042] The updated temperature parameter is updated according to the second influence coefficient and the reference pressure variable to obtain a re-updated temperature parameter, and the re-updated temperature parameter is determined as the bottom hole temperature.
[0043] In another possible implementation, the device further includes:
[0044] a pressure updating module, configured to update the initial pressure according to the reference pressure variable in response to a difference between the target density and the initial density being not less than the reference threshold value, to obtain an updated pressure;
[0045] The data acquisition module is also used to use the updated pressure as the initial pressure, the updated temperature as the initial temperature, and the target density as the initial density, and continue to execute the step of determining the target density of the natural gas according to the first relationship data.
[0046] In another possible implementation, the first data relationship includes:
[0047]
[0048] Wherein, p is the initial pressure, ρ is the density of the natural gas, R is the universal gas constant, T is the initial temperature, a, γ, a, b, c and d are preset parameters, A 0 , B 0 , C 0 , D 0 and E 0 is a known parameter determined based on the multiple attribute parameters.
[0049] In another possible implementation, the second data relationship includes:
[0050]
[0051] Among them, μ J-T is the influence coefficient, c p is the constant-pressure molar specific heat capacity of the natural gas, T is the initial temperature, ρ is the density of the natural gas, and R is the universal gas constant.
[0052] In another possible implementation, the natural gas includes multiple components, and the data acquisition module is used to:
[0053] For each property parameter, respectively obtaining property sub-parameters and corresponding mole fractions of the plurality of components;
[0054] According to the mole fractions corresponding to the multiple components, the obtained multiple property sub-parameters are merged to obtain the property parameter.
[0055] In another possible implementation, the data acquisition module is used to:
[0056] Display parameter setting interface;
[0057] The natural gas data input in the parameter setting interface is obtained.
[0058] In another possible implementation, the parameter setting interface includes a static parameter setting area, a fluid parameter setting area and a production parameter setting area, the static parameter setting area is used to set the initial temperature; the fluid parameter setting area is used to set the multiple property parameters; and the production parameter setting area is used to set the initial pressure.
[0059] On the other hand, a computer device is provided, which includes a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the operations performed in the bottom hole temperature acquisition method as described in the above aspects.
[0060] On the other hand, a computer-readable storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the operations performed in the bottom hole temperature acquisition method as described in the above aspects.
[0061] On the other hand, a computer program product or a computer program is provided, wherein the computer program product or the computer program includes a computer program code, wherein the computer program code is stored in a computer-readable storage medium, wherein a processor of a computer device reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the computer device implements the operations performed in the bottom hole temperature acquisition method as described in the above aspects.
[0062] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least: BRIEF DESCRIPTION OF THE DRAWINGS
[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0064] Figure 1 is a flow chart of a method for obtaining bottom hole temperature provided in an embodiment of the present application;
[0065] Figure 2 is a flow chart of another method for obtaining bottom hole temperature provided in an embodiment of the present application;
[0066] Figure 3 is a schematic diagram of a bottom structure of a natural gas well provided in an embodiment of the present application;
[0067] Figure 4 is a flow chart of another method for obtaining bottom hole temperature provided in an embodiment of the present application;
[0068] Figure 5 is a schematic diagram of a simulation software provided in an embodiment of the present application;
[0069] Figure 6 is a schematic diagram of a bottom hole temperature change provided in an embodiment of the present application;
[0070] Figure 7 is a schematic diagram of a gas reservoir temperature distribution provided in an embodiment of the present application;
[0071] Figure 8 It is a structural schematic diagram of a bottom hole temperature acquisition device provided in an embodiment of the present application;
[0072] Fig. 9 It is a structural schematic diagram of another bottom hole temperature acquisition device provided in an embodiment of the present application;
[0073] Fig.10is a schematic diagram of the structure of a terminal provided in an embodiment of the present application;
[0074] Fig.11 It is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0075] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0076] It is understood that the terms "first", "second", etc. used in this application can be used in this article to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of this application, the first relationship data can be called the second relationship data, and the second relationship data can be called the first relationship data.
[0077] The terms "at least one", "a plurality of", "each", "any" and the like used in this application include one, two or more than two, a plurality of includes two or more than two, each refers to each of the corresponding plurality, and any refers to any one of the plurality. For example, a plurality of attribute parameters includes three attribute parameters, and each attribute parameter refers to each of the three attribute parameters, and any refers to any one of the three attribute parameters, which may be the first, the second, or the third.
[0078] In order to better understand the method provided by this application, the keywords involved in this application are explained below:
[0079] Joule-Thomson effect: The Joule-Thomson effect refers to the phenomenon that the temperature of a gas changes after it flows from a high-pressure area to a low-pressure area. This phenomenon is characterized by the Joule-Thomson coefficient. If the Joule-Thomson coefficient of a gas is greater than 0, it means that the temperature of the gas decreases after the pressure decreases. If the Joule-Thomson coefficient of a gas is less than 0, it means that the temperature of the gas increases after the pressure decreases. If the Joule-Thomson coefficient of a gas is equal to 0, it means that the temperature of the gas remains unchanged after the pressure decreases. The curve formed by the points where the Joule-Thomson coefficient is equal to 0 is the Joule-Thomson inversion curve. The two sides of the curve represent the conditions for the gas temperature to increase and decrease, respectively.
[0080] The drilling speed determination method provided in the embodiment of the present application can be applied to a computer device, which is a terminal or a server. The terminal is a portable, pocket-sized, handheld terminal of various types, such as a mobile phone, a computer, a tablet computer, etc. The server is a server, or a server cluster composed of several servers, or a cloud computing service center.
[0081] Figure 1 This is a flow chart of a method for obtaining bottom hole temperature provided in an embodiment of the present application. The execution subject of the embodiment of the present application is a computer device, see Figure 1 , the method comprises the following steps:
[0082] 101. Obtain natural gas data, where the natural gas data includes multiple attribute parameters of natural gas, an initial temperature corresponding to a natural gas well, and an initial pressure corresponding to the natural gas well.
[0083] 102. Determine a target density of natural gas according to first relationship data, where the first relationship data is used to represent a corresponding relationship between the density of natural gas and natural gas data.
[0084] 103. Determine a first influence coefficient corresponding to the natural gas according to the second relationship data, wherein the second relationship data is used to indicate the corresponding relationship between the influence coefficient corresponding to the natural gas and the natural gas data, and the first influence coefficient is used to indicate the degree of influence of the corresponding pressure of the natural gas well on the corresponding temperature.
[0085] 104. Update the initial temperature according to the first influence coefficient and the reference pressure variable to obtain an updated temperature.
[0086] 105. In response to a difference between the target density and the initial density being less than a reference threshold, determining a bottom hole temperature of the natural gas well according to the updated temperature.
[0087] The method provided in the embodiment of the present application not only uses the property parameters of natural gas when obtaining the bottom hole temperature, but also combines the initial temperature and the initial pressure. That is, while considering the influence of the properties of the natural gas itself on the temperature, it also considers the change in temperature of the natural gas in the process of flowing from the gas reservoir to the bottom hole, and updates the temperature according to the influence coefficient, thereby improving the accuracy of the obtained bottom hole temperature.
[0088] In a possible implementation, in response to a difference between the target density and the initial density being less than a reference threshold, determining the bottom hole temperature of the natural gas well according to the updated temperature parameter includes:
[0089] In response to the difference between the target density and the initial density being less than a reference threshold, determining the updated temperature parameter as the bottom hole temperature; or,
[0090] In response to a difference between the target density and the initial density being less than a reference threshold, updating the initial pressure parameter according to the reference pressure variable to obtain an updated pressure parameter;
[0091] Determining a second influence coefficient corresponding to the natural gas according to the second relationship data, the updated temperature parameter, and the updated pressure parameter;
[0092] The updated temperature parameter is updated according to the second influence coefficient and the reference pressure variable to obtain a further updated temperature parameter, and the further updated temperature parameter is determined as the bottom hole temperature.
[0093] In another possible implementation, after the initial temperature is updated according to the target influence coefficient and the reference pressure variable and the updated temperature is obtained, the method further includes:
[0094] In response to a difference between the target density and the initial density being not less than a reference threshold, updating the initial pressure according to a reference pressure variable to obtain an updated pressure;
[0095] The updated pressure is used as the initial pressure, the updated temperature is used as the initial temperature, and the target density is used as the initial density, and the step of determining the target density of the natural gas according to the first relationship data is continued.
[0096] In another possible implementation, the first data relationship includes:
[0097]
[0098] Where p is the initial pressure, ρ is the density of natural gas, R is the universal gas constant, T is the initial temperature, α, γ, a, b, c and d are preset parameters, A 0 , B 0 , C 0 , D 0 and E 0 It is a known parameter determined based on multiple attribute parameters.
[0099] In another possible implementation, the second data relationship includes:
[0100]
[0101] Among them, μ J-T is the influence coefficient, c p is the constant-pressure molar specific heat capacity of natural gas, T is the initial temperature, ρ is the density of natural gas, and R is the universal gas constant.
[0102] In another possible implementation, natural gas includes multiple components, and obtaining natural gas data includes:
[0103] For each property parameter, obtain the property sub-parameters and corresponding mole fractions of multiple components respectively;
[0104] According to the mole fractions corresponding to the various components, the obtained multiple property sub-parameters are fused to obtain the property parameters.
[0105] In another possible implementation, obtaining natural gas data includes:
[0106] Display parameter setting interface;
[0107] Get the natural gas data entered in the parameter setting interface.
[0108] In another possible implementation, the parameter setting interface includes a static parameter setting area, a fluid parameter setting area, and a production parameter setting area. The static parameter setting area is used to set the initial temperature; the fluid parameter setting area is used to set multiple property parameters; and the production parameter setting area is used to set the initial pressure.
[0109] Figure 2 This is a flow chart of another method for obtaining bottom hole temperature provided by an embodiment of the present application. The execution subject of the embodiment of the present application is a computer device, see Figure 2 , the method comprises the following steps:
[0110] 201. Obtain natural gas data.
[0111] In the embodiment of the present application, in order to conform to the actual situation of the natural gas well, it is assumed that the distribution of natural gas in the gas reservoir is uniform, the natural gas is uniform and stable in the process of flowing from the gas reservoir to the bottom of the well, and the expansion of the natural gas is adiabatic and irreversible. On this basis, the bottom hole temperature of the natural gas well is predicted.
[0112] Among them, natural gas data includes multiple attribute parameters of natural gas, including the mole fraction of natural gas, equivalent molar mass, critical temperature, critical density, critical pressure of each component of natural gas and binary interaction coefficient of natural gas.
[0113] In a possible implementation, natural gas includes multiple components, and the attribute parameters of the natural gas are determined according to the attribute sub-parameters of the multiple components. For each attribute parameter of the natural gas, the attribute sub-parameters and corresponding mole fractions of the multiple components of the natural gas are obtained respectively; according to the mole fractions corresponding to the multiple components, the obtained multiple attribute sub-parameters are merged to obtain the attribute parameter.
[0114] For example, natural gas contains n components, and the equivalent molar mass of natural gas is determined by the following formula:
[0115]
[0116] Where M represents the equivalent molar mass of natural gas, n represents the number of components contained in natural gas, and x i represents the mole fraction of the i-th component, M i represents the equivalent molar mass of the i-th component.
[0117] The critical temperature of natural gas is determined using the following formula:
[0118]
[0119] Among them, T c represents the critical temperature of natural gas, n represents the number of components contained in natural gas, x i represents the mole fraction of the i-th component, T ci represents the critical temperature of the ith component.
[0120] The critical pressure of natural gas is determined using the following formula:
[0121]
[0122] Among them, P c represents the critical pressure of natural gas, n represents the number of components contained in natural gas, x i represents the mole fraction of the i-th component, P ci represents the critical pressure of the ith component.
[0123] The natural gas data also includes the initial temperature and initial pressure corresponding to the natural gas well, where the initial temperature refers to the gas reservoir temperature (formation temperature), and the initial pressure refers to the gas reservoir pressure (formation pressure).
[0124] For example, see Figure 3 The bottom hole structure schematic diagram shown in the figure shows the relationship between the bottom hole temperature and the bottom hole pressure and the gas reservoir temperature and the gas reservoir pressure. When the natural gas flows from the gas reservoir into the wellbore of the natural gas well, the temperature and pressure will change. res is the gas reservoir pressure, T res is the gas reservoir temperature, P wf refers to the bottom hole temperature, T wf It refers to the bottom hole temperature.
[0125] 202. Determine a target density of natural gas according to the first relationship data.
[0126] The first relational data is used to represent the corresponding relationship between the density of natural gas and the natural gas data. Optionally, the first relational data is a natural gas state equation, which is shown in the following formula (1):
[0127]
[0128] Where p is the initial pressure, ρ is the density of natural gas, R is the universal gas constant, T is the initial temperature, α, γ, a, b, c and d are preset parameters, A 0 , B 0 , C 0 , D 0 and E 0 It is a known parameter determined based on multiple attribute parameters.
[0129] In a possible implementation, for the above formula (1), while keeping the initial pressure unchanged, the derivative of T is obtained to obtain the following deformed first relationship data:
[0130]
[0131] Among them, C 1 , C 2 , C 3 and C 4 They are respectively the following formulas (3), (4), (5) and (6):
[0132]
[0133]
[0134]
[0135]
[0136] In a possible implementation, since the expression of density in the above formula (1) or formula (2) is an implicit function, it is necessary to use an iterative method to solve the density of natural gas, and the above formula (1) or formula (2) is transformed to obtain the following formula (7):
[0137]
[0138] Assuming the number of iterations is k, the initial value of the iteration is pre-set (0) and ρ (1) , use the following formula (8) as the iterative equation for iterative calculation:
[0139]
[0140] In the above formula (8), when ρ is known (k-1) and ρ (k) In the case of , we can solve for ρ (k+1) .
[0141] 203. Determine a first influence coefficient corresponding to the natural gas according to the second relationship data.
[0142] The second relationship data is used to represent the corresponding relationship between the influence coefficient corresponding to the natural gas and the natural gas data, and the first influence coefficient is used to represent the influence degree of the pressure corresponding to the natural gas well on the corresponding temperature. Optionally, the influence coefficient is a Joule-Thomson coefficient.
[0143] In a possible implementation, the second relationship data is the following formula (9):
[0144]
[0145] Among them, μ J-T is the influence coefficient (Joule-Thomson coefficient), c p is the constant-pressure molar specific heat capacity of natural gas, T is the initial temperature, ρ is the density of natural gas, and R is the universal gas constant.
[0146] Optionally, according to the first relationship data shown in the above formula (2), the second relationship data is transformed to obtain the second relationship data shown in the following formula (10):
[0147]
[0148] Optionally, the constant pressure molar specific heat capacity of natural gas is:
[0149] c p =1243+3.14T+7.931×10 -4 T 2 -6.881×10 -7 T 3 ;
[0150] Where T is the initial temperature.
[0151] 204. Update the initial temperature according to the first influence coefficient and the reference pressure variable to obtain an updated temperature.
[0152] In the embodiment of the present application, the influence of the Joule-Thomson effect on the bottom hole temperature is considered. Therefore, in the process of determining the temperature, the initial temperature is updated according to the first influence coefficient and the reference pressure variable to obtain the updated temperature. Whether the updated temperature can be used as the bottom hole temperature needs to be determined according to whether the obtained density meets the conditions. If the obtained target density meets the conditions, step 205 is executed. If the target density does not meet the conditions, step 206 is executed.
[0153] In one possible implementation, the following formula (11) is used to update the initial temperature:
[0154] T′=T-ΔP·μ J-T (11)
[0155] Where T′ is the updated temperature, T is the initial temperature, ΔP is the reference pressure variable, μ J-T is the first influence coefficient. Wherein, ΔP is any value, for example, ΔP is 1, 2 or other values.
[0156] 205. In response to a difference between the target density and the initial density being less than a reference threshold, determine a bottom hole temperature of the natural gas well according to the updated temperature.
[0157] In the embodiment of the present application, when the difference between the target density and the initial density is less than the reference threshold, the target density is considered to meet the condition, wherein the target density is the density obtained in the current iteration process, the initial density is the density obtained in the previous iteration process of the current iteration process, or if the target density is the density calculated for the first time, the initial density is the pre-set density.
[0158] In one possible implementation, the difference between the target density and the initial density needs to satisfy the following conditions:
[0159] |ρ (k+1) -ρ (k) |<10 -5
[0160] Among them, k+1 represents the current iteration process, k represents the previous iteration process, and the reference threshold is 10 -5 The reference threshold may also be other values. If a higher accuracy is required, a smaller reference threshold may be set. If the accuracy does not need to be too high, a larger reference threshold may be set.
[0161] For example, pre-set the initial density of the iteration to ρ (0) =0,
[0162] In a possible implementation, when the obtained target density meets a condition, the obtained updated temperature is determined as the bottom hole temperature of the natural gas well.
[0163] In another possible implementation, in response to the difference between the target density and the initial density being less than a reference threshold, the initial pressure parameter is updated according to the reference pressure variable to obtain an updated pressure parameter; the second influence coefficient corresponding to the natural gas is determined according to the second relationship data, the updated temperature parameter and the updated pressure parameter; the updated temperature parameter is updated according to the second influence coefficient and the reference pressure variable to obtain a further updated temperature parameter, and the further updated temperature parameter is determined as the bottom hole temperature. The second influence coefficient is similar to the first influence coefficient.
[0164] That is to say, after obtaining the updated temperature and the updated pressure, it is possible to continue to calculate the updated temperature again based on the updated temperature and the updated pressure, so as to obtain the corresponding temperature under different pressures, that is, to obtain the temperature distribution of the natural gas well.
[0165] Optionally, the initial pressure is updated using the following formula (12):
[0166] P′=P-ΔP (12)
[0167] Among them, P′ is the updated pressure, P is the initial pressure, and ΔP is the reference pressure variable.
[0168] 206. In response to a difference between the target density and the initial density being not less than a reference threshold, updating the initial pressure according to a reference pressure variable to obtain an updated pressure.
[0169] 207 . Use the updated pressure as the initial pressure, the updated temperature as the initial temperature, and the target density as the initial density, and continue to execute step 202 .
[0170] In the embodiment of the present application, when the difference between the target density and the initial density is not less than the reference threshold, it is considered that the target density does not meet the condition, and it is necessary to continue to iterate until the target density meets the condition before the obtained temperature can be used as the bottom hole temperature. At this time, the updated temperature and the updated pressure are used as the initial temperature and the initial pressure, respectively, and the obtained target density is used as the initial density, and step 202 is performed again until the obtained target density meets the condition.
[0171] One point that needs to be explained is that the embodiment of the present application is only described by taking a single update process as an example. In another embodiment, after obtaining the updated temperature and the updated pressure, the above-mentioned process of steps 202 and 207 can be continued to update the temperature and pressure, thereby obtaining the temperature at different pressures, that is, obtaining the bottom hole temperature distribution.
[0172] Another point that needs to be explained is that the embodiment of the present application is only described using the above formula as an example. In another embodiment, the above formula representing the first relationship data and the second relationship data can also be in other forms, and the embodiment of the present application does not limit this.
[0173] The method provided in the embodiment of the present application not only uses the property parameters of natural gas when obtaining the bottom hole temperature, but also combines the initial temperature and the initial pressure. That is, while considering the influence of the properties of the natural gas itself on the temperature, it also considers the change in temperature of the natural gas in the process of flowing from the gas reservoir to the bottom hole, and updates the temperature according to the influence coefficient, thereby improving the accuracy of the obtained bottom hole temperature.
[0174] In addition, accurate measurement of bottom hole temperature provides a scientific basis for the selection of downhole tools, working fluids, and pipe strings for ultra-deep wells, and promotes the improvement of ultra-deep well mining equipment design, which is conducive to the development of ultra-deep gas reservoirs. Ultra-deep wells refer to natural gas wells with a depth of more than 7,000 meters.
[0175] In addition, in one possible implementation, see Figure 4 The bottom hole temperature acquisition process is shown in the flowchart of the method for acquiring the bottom hole temperature. The bottom hole temperature acquisition process refers to the following steps:
[0176] 401. Obtain initial temperature and initial pressure.
[0177] 402. Determine multiple attribute parameters of the natural gas according to the attribute sub-parameters of the multiple components of the natural gas.
[0178] 403. Obtain initial density.
[0179] 404. Calculate the target density of the natural gas according to the first relationship data.
[0180] 405. Obtain an influence coefficient corresponding to the natural gas according to the second relationship data.
[0181] 406. Update the initial temperature according to the influence coefficient and the reference pressure variable to obtain an updated temperature.
[0182] 407. Update the initial pressure according to the influence coefficient to obtain an updated pressure.
[0183] 408. Determine whether the difference between the target density and the initial density is less than a reference threshold. If the difference is less than the reference threshold, execute step 406. If the difference is not less than the reference threshold, execute step 404 again.
[0184] 409. Determine the updated temperature as the bottom hole temperature.
[0185] In addition, in a possible implementation, simulation software is installed in the computer device, and the simulation software includes a data storage module, an input and output module, an algorithm module and a graphic module.
[0186] The data storage module is used to store natural gas data, that is, the user inputs the natural gas data in the parameter setting interface, and the computer device obtains the natural gas data input in the parameter setting interface; the input and output module is used to read and output the natural gas data from the memory; the algorithm module is used to process the natural gas data using the bottom hole temperature acquisition process shown in the above steps 202 to 207 to obtain the bottom hole temperature. The graphic module is used to process the obtained data and display it to the user in the form of an icon.
[0187] In a possible implementation, natural gas data is obtained through a parameter setting interface, which includes a static parameter setting area, a fluid parameter setting area, and a production parameter setting area. The static parameter setting area is used to set the initial temperature, the fluid parameter setting area is used to set the initial temperature, the fluid parameter setting area is used to set multiple attribute parameters, and the production parameter setting area is used to set the initial pressure.
[0188] For example, see Figure 5 The schematic diagram of the simulation software shown in FIG. 1 includes a data storage module, an input / output module, a graphics module, and an algorithm module. The data storage module stores static data, fluid data, and production data. The input / output module includes a natural gas database and a gas reservoir database. The graphics module includes a temperature prediction graph and a gas reservoir distribution graph. The algorithm module includes an established model and a set algorithm. The data storage module interacts with the input / output module, the input / output module interacts with the algorithm module, and the input / output module interacts with the graphics module, that is, the input / output module can send the obtained output to the graphics module, and the graphics module generates the corresponding graphics.
[0189] For example, the natural gas data shown in Tables 1 and 2 below are used to obtain the bottom hole temperature. The attribute parameters of the natural gas are shown in Table 1 below, and the gas reservoir data of the natural gas are shown in Table 2 below:
[0190] Table 1
[0191] name Numeric unit type <![CDATA[CH 4 Mole fraction]]> 0.91 / F <![CDATA[C 2 H 6 Mole fraction]]> 0.09 / F <![CDATA[CH 4 Molar mass]]> 16.042 g / mol F <![CDATA[C 2 H 6 Molar mass]]> 30.069 g / mol F <![CDATA[CH 4 Critical temperature]]> -82.595 ℃ F <![CDATA[C 2 H 6 Critical temperature]]> 32.172 ℃ F <![CDATA[CH 4 Critical density]]> 162.658 kg / mol F <![CDATA[C 2 H 6 Critical density]]> 206.179 kg / mol F <![CDATA[CH 4 Critical Pressure]]> 4.5992 MPa F <![CDATA[C 2 H 6 Critical Pressure]]> 4.8722 MPa F Binary interaction coefficient 0.01 / F Bottom hole pressure 48 MPa P
[0192] Table 2
[0193] name Numeric unit type Gas reservoir temperature 155 ℃ S Gas reservoir pressure 98 MPa S
[0194] The natural gas data in Tables 1 and 2 above are input into the simulation software to obtain the bottom hole temperature. Figure 6 The schematic diagram of the bottom hole temperature change is shown in FIG. Figure 5 The Joule-Thomson coefficient corresponding to the left side of the Joule-Thomson effect reversal curve is less than 0, and the Joule-Thomson coefficient corresponding to the left side of the Joule-Thomson effect reversal curve is greater than 0, that is, as the bottom hole pressure decreases, the natural gas first releases heat and then absorbs heat. Figure 6 It can be seen that for the three different natural gas wells, as the bottom hole pressure decreases, the temperature corresponding to the bottom hole pressure increases first and then decreases. Among them, the three different natural gas wells have different input parameters, that is, the specific conditions of the natural gas wells are different, so the degree of change of the bottom hole temperature is also different.
[0195] For example, see Figure 7 Schematic diagram of the temperature distribution shown. Figure 6 It can be seen that the closer the temperature and pressure of the natural gas in the same natural gas well are to the Joule-Thomson effect inversion curve, the higher the corresponding bottom hole temperature.
[0196] In addition, in the related art, the geothermal gradient method is used to obtain the bottom hole temperature. The geothermal gradient method determines the bottom hole temperature based on the vertical depth of the gas well and the geothermal gradient data. In actual application scenarios, the average value of the geothermal gradient in a certain area is selected to calculate the bottom hole temperature. However, the natural gas distribution area is mostly an abnormal geothermal gradient zone, and this method does not take into account the Joule-Thomson effect in the process of natural gas flowing from the reservoir to the bottom of the well. Therefore, the geothermal gradient method is only applicable to the calculation of the bottom hole temperature of shallow wells. For ultra-deep wells, the bottom hole temperature calculated by this method is quite different from the actual bottom hole temperature, and the accuracy is low. In the embodiment of the present application, the influence of the Joule-Thomson effect on the bottom hole temperature is taken into account, so the bottom hole temperature obtained is more accurate.
[0197] In another related technology, a ground inverse algorithm is used to obtain the bottom hole temperature. The ground inverse algorithm is based on data such as the wellhead temperature, pressure and flow rate of the gas producing well, and uses thermodynamic equations and material balance equations to inversely calculate the bottom hole temperature. In actual application, this method has a complex solution process and requires the input of a large number of known parameters. When the gas well production changes, the prediction calculation of the bottom hole temperature is more complicated. The method provided in the embodiment of the application requires the attribute parameters of natural gas, gas reservoir temperature and gas reservoir pressure, and requires fewer parameters to be input, the calculation process is simpler, and the influence of the Joule-Thomson effect is taken into account, so the bottom hole temperature obtained is more accurate.
[0198] In another related technology, a coupled prediction model of test temperature and pressure distribution is used to obtain the bottom hole temperature. This prediction model is based on the laws of conservation of momentum and energy and the basic principles of mass transfer and heat transfer, and comprehensively considers the factors affecting temperature and pressure. In this prediction model, it is considered that the heat transfer in the wellbore is steady-state heat transfer, while the heat transfer in the formation is unsteady-state heat transfer, and the influence of wellbore heat loss on temperature is considered. The fourth-order Runge-Kutta method is used to couple and iterate the prediction model. The sensitivity analysis of the wellbore temperature and pressure under different production, different gas relative density and different production time conditions is carried out based on the bottom hole, and the prediction results of the coupling model and the linear model are compared and analyzed. The prediction results of this prediction model show that: with the increase of production, the wellbore pressure decreases and the temperature increases; with the increase of gas density, the wellbore pressure decreases and the temperature increases; with the increase of production time, the wellbore pressure remains unchanged and the temperature increases; the temperature in the wellbore changes nonlinearly along the depth of the well. However, the prediction model has too many input parameters, the calculation procedure is complicated, and the influence of the bottom hole anti-throttling effect is not considered. The method provided in the embodiment of the present application only requires the property parameters of natural gas, gas reservoir temperature and gas reservoir pressure, and requires fewer input parameters. The calculation process is simpler and the influence of the Joule-Thomson effect is taken into account, so the bottom hole temperature obtained is more accurate.
[0199] In another related technology, in view of the fact that conventional fluid physical parameter calculation methods are difficult to accurately apply in high-temperature and high-pressure gas reservoirs, traditional steady-state temperature and pressure models are difficult to correctly predict the wellbore pressure and temperature distribution, and the selection of multiphase pipe flow pressure calculation models under different water-gas ratios is relatively difficult, a calculation model of gas well deviation factor and viscosity in high-temperature and high-pressure gas reservoirs is adopted, and a wellbore-formation non-steady-state heat transfer model and a fluid thermodynamic model are used to establish a non-steady-state temperature model during the opening and closing of wells. The prediction results of this model show that the non-steady-state temperature model can more accurately predict the temperature distribution of high-temperature gas wells than the steady-state temperature model; the non-steady-state heat transfer model considering the wellbore temperature during the closing process can correct the abnormal pressure recovery curve that occurs during the closing process, and make the well test interpretation results closer to the measured values. However, this method requires additional correction, and a large amount of field measured data needs to be obtained during the correction, which is difficult to be widely used. The method provided in the embodiment of the present application does not require a large amount of measured data, requires less workload, and has a wider range of applications.
[0200] Figure 8 Schematic diagram of a bottom hole temperature acquisition device provided in an embodiment of the present application. Figure 8 , the device comprises:
[0201] The data acquisition module 801 is used to acquire natural gas data, which includes multiple attribute parameters of natural gas, initial temperature and initial pressure corresponding to the natural gas well;
[0202] The density acquisition module 802 is used to determine the target density of natural gas according to the first relationship data, where the first relationship data is used to represent the corresponding relationship between the density of natural gas and the natural gas data;
[0203] The influence coefficient acquisition module 803 is used to determine the first influence coefficient corresponding to the natural gas according to the second relationship data, the second relationship data is used to indicate the corresponding relationship between the influence coefficient corresponding to the natural gas and the natural gas data, and the first influence coefficient is used to indicate the influence degree of the corresponding pressure of the natural gas well on the corresponding temperature;
[0204] The temperature updating module 804 is used to update the initial temperature according to the first influence coefficient and the reference pressure variable to obtain an updated temperature;
[0205] The bottom hole temperature acquisition module 805 is used to determine the bottom hole temperature of the natural gas well according to the updated temperature in response to the difference between the target density and the initial density being less than a reference threshold.
[0206] The device provided in the embodiment of the present application, when obtaining the bottom hole temperature, not only uses the property parameters of natural gas, but also combines the initial temperature and initial pressure. That is, while considering the influence of the properties of the natural gas itself on the temperature, it also considers the change in temperature of the natural gas in the process of flowing from the gas reservoir to the bottom hole, and updates the temperature according to the influence coefficient, thereby improving the accuracy of the obtained bottom hole temperature.
[0207] In a possible implementation, the bottom hole temperature acquisition module 805 is used to:
[0208] In response to the difference between the target density and the initial density being less than a reference threshold, determining the updated temperature parameter as the bottom hole temperature; or,
[0209] In response to a difference between the target density and the initial density being less than a reference threshold, updating the initial pressure parameter according to the reference pressure variable to obtain an updated pressure parameter;
[0210] Determining a second influence coefficient corresponding to the natural gas according to the second relationship data, the updated temperature parameter, and the updated pressure parameter;
[0211] The updated temperature parameter is updated according to the second influence coefficient and the reference pressure variable to obtain a further updated temperature parameter, and the further updated temperature parameter is determined as the bottom hole temperature.
[0212] In another possible implementation, see Fig. 9 , the device further comprises:
[0213] A pressure updating module 806 is configured to update the initial pressure according to a reference pressure variable to obtain an updated pressure in response to a difference between the target density and the initial density being not less than a reference threshold;
[0214] The data acquisition module 801 is further used to use the updated pressure as the initial pressure, the updated temperature as the initial temperature, and the target density as the initial density, and continue to execute the step of determining the target density of the natural gas according to the first relationship data.
[0215] In another possible implementation, the first data relationship includes:
[0216]
[0217] Where p is the initial pressure, ρ is the density of natural gas, R is the universal gas constant, T is the initial temperature, α, γ, a, b, c and d are preset parameters, A 0 , B 0 , C 0 , D 0 and E 0 It is a known parameter determined based on multiple attribute parameters.
[0218] In another possible implementation, the second data relationship includes:
[0219]
[0220] Among them, μ J-T is the influence coefficient, c p is the constant-pressure molar specific heat capacity of natural gas, T is the initial temperature, ρ is the density of natural gas, and R is the universal gas constant.
[0221] In another possible implementation, natural gas includes multiple components, and the data acquisition module 801 is used to:
[0222] For each property parameter, obtain the property sub-parameters and corresponding mole fractions of multiple components respectively;
[0223] According to the mole fractions corresponding to the various components, the obtained multiple property sub-parameters are fused to obtain the property parameters.
[0224] In another possible implementation, the data acquisition module 801 is used to:
[0225] Display parameter setting interface;
[0226] Get the natural gas data entered in the parameter setting interface.
[0227] In another possible implementation, the parameter setting interface includes a static parameter setting area, a fluid parameter setting area, and a production parameter setting area. The static parameter setting area is used to set the initial temperature; the fluid parameter setting area is used to set multiple property parameters; and the production parameter setting area is used to set the initial pressure.
[0228] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0229] It should be noted that: the bottom hole temperature acquisition device provided in the above embodiment only uses the division of the above functional modules as an example to illustrate when acquiring the bottom hole temperature. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the bottom hole temperature acquisition device provided in the above embodiment and the bottom hole temperature acquisition method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0230] An embodiment of the present application also provides a computer device, which includes a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the operations performed in the bottom hole temperature acquisition method of the above embodiment.
[0231] Optionally, the computer device is provided as a terminal. Fig.10 1 is a schematic diagram of the structure of a terminal 1000 provided in an embodiment of the present application. The terminal 1000 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The terminal 1000 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0232] The terminal 1000 includes: a processor 1001 and a memory 1002 .
[0233] The processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1001 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1001 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1001 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1001 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0234] The memory 1002 may include one or more computer-readable storage media, which may be non-transitory. The memory 1002 may also include a high-speed random access memory and a non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1002 is used to store at least one computer program, which is used to be executed by the processor 1001 to implement the bottom hole temperature acquisition method provided in the method embodiment of the present application.
[0235] In some embodiments, the terminal 1000 may also optionally include: a peripheral device interface 1003 and at least one peripheral device. The processor 1001, the memory 1002 and the peripheral device interface 1003 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1003 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1004, a display screen 1005, a camera assembly 1006, an audio circuit 1007, a positioning assembly 1008 and a power supply 1009.
[0236] The peripheral device interface 1003 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1001 and the memory 1002. In some embodiments, the processor 1001, the memory 1002, and the peripheral device interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002, and the peripheral device interface 1003 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0237] The radio frequency circuit 1004 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1004 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1004 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1004 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 1004 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1004 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0238] The display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1005 is a touch display screen, the display screen 1005 also has the ability to collect touch signals on the surface or above the surface of the display screen 1005. The touch signal can be input to the processor 1001 as a control signal for processing. At this time, the display screen 1005 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1005 can be one, arranged on the front panel of the terminal 1000; in other embodiments, the display screen 1005 can be at least two, respectively arranged on different surfaces of the terminal 1000 or in a folding design; in other embodiments, the display screen 1005 can be a flexible display screen, arranged on a curved surface or a folding surface of the terminal 1000. Even, the display screen 1005 can also be arranged as a non-rectangular irregular figure, that is, a special-shaped screen. The display screen 1005 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0239] The camera assembly 1006 is used to capture images or videos. Optionally, the camera assembly 1006 includes a front camera and a rear camera. The front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1006 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0240] The audio circuit 1007 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1001 for processing, or input them into the radio frequency circuit 1004 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1000. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1001 or the radio frequency circuit 1004 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1007 may also include a headphone jack.
[0241] The positioning component 1008 is used to locate the current geographical location of the terminal 1000 to implement navigation or LBS (Location Based Service). The positioning component 1008 can be a positioning component based on the US GPS (Global Positioning System), China's Beidou system, Russia's Grenas positioning system, or the European Union's Galileo positioning system.
[0242] The power supply 1009 is used to power various components in the terminal 1000. The power supply 1009 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1009 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0243] In some embodiments, the terminal 1000 further includes one or more sensors 1010 , including but not limited to: an acceleration sensor 1011 , a gyroscope sensor 1012 , a pressure sensor 1013 , a fingerprint sensor 1014 , an optical sensor 1015 , and a proximity sensor 1016 .
[0244] The acceleration sensor 1011 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1000. For example, the acceleration sensor 1011 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1001 can control the display screen 1005 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1011. The acceleration sensor 1011 can also be used to collect motion data of games or users.
[0245] The gyro sensor 1012 can detect the body direction and rotation angle of the terminal 1000, and the gyro sensor 1012 can cooperate with the acceleration sensor 1011 to collect the user's 3D actions on the terminal 1000. The processor 1001 can implement the following functions based on the data collected by the gyro sensor 1012: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0246] The pressure sensor 1013 can be set on the side frame of the terminal 1000 and / or the lower layer of the display screen 1005. When the pressure sensor 1013 is set on the side frame of the terminal 1000, it can detect the user's holding signal of the terminal 1000, and the processor 1001 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1013. When the pressure sensor 1013 is set on the lower layer of the display screen 1005, the processor 1001 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 1005. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0247] The fingerprint sensor 1014 is used to collect the user's fingerprint, and the processor 1001 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 1014, or the fingerprint sensor 1014 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 1001 authorizes the user to perform relevant sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 1014 can be set on the front, back, or side of the terminal 1000. When a physical button or a manufacturer logo is set on the terminal 1000, the fingerprint sensor 1014 can be integrated with the physical button or the manufacturer logo.
[0248] The optical sensor 1015 is used to collect the ambient light intensity. In one embodiment, the processor 1001 can control the display brightness of the display screen 1005 according to the ambient light intensity collected by the optical sensor 1015. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the display screen 1005 is reduced. In another embodiment, the processor 1001 can also dynamically adjust the shooting parameters of the camera assembly 1006 according to the ambient light intensity collected by the optical sensor 1015.
[0249] The proximity sensor 1016, also called a distance sensor, is disposed on the front panel of the terminal 1000. The proximity sensor 1016 is used to collect the distance between the user and the front of the terminal 1000. In one embodiment, when the proximity sensor 1016 detects that the distance between the user and the front of the terminal 1000 is gradually decreasing, the processor 1001 controls the display screen 1005 to switch from the screen-on state to the screen-off state; when the proximity sensor 1016 detects that the distance between the user and the front of the terminal 1000 is gradually increasing, the processor 1001 controls the display screen 1005 to switch from the screen-off state to the screen-on state.
[0250] Those skilled in the art will understand that Fig.10 The structure shown in the figure does not constitute a limitation on the terminal 1000, and the terminal 1000 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0251] Optionally, the computer device is provided as a server. Fig.11 This is a schematic diagram of the structure of a server provided in an embodiment of the present application. The server 1100 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1101 and one or more memories 1102, wherein the memory 1102 stores at least one computer program, and the at least one computer program is loaded and executed by the processor 1101 to implement the methods provided in the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the server may also include other components for implementing device functions, which will not be described in detail here.
[0252] An embodiment of the present application also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the operations performed in the bottom hole temperature acquisition method of the above embodiment.
[0253] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer program code, and the computer program code is stored in a computer-readable storage medium. The processor of the computer device reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the computer device implements the operations performed in the bottom hole temperature acquisition method of the above embodiment.
[0254] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0255] The above are only optional embodiments of the embodiments of the present application and are not intended to limit the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the present application.
Claims
1. A method for obtaining bottom hole temperature, characterized in that: The method comprises: Acquire natural gas data, wherein the natural gas data includes a plurality of attribute parameters of natural gas, an initial temperature corresponding to a natural gas well, and a corresponding initial pressure; determining a target density of the natural gas according to first relationship data, wherein the first relationship data is used to represent a corresponding relationship between the density of the natural gas and the natural gas data; Determine a first influence coefficient corresponding to the natural gas according to second relationship data, wherein the second relationship data is used to indicate a corresponding relationship between the influence coefficient corresponding to the natural gas and the natural gas data, and the first influence coefficient is used to indicate an influence degree of the pressure corresponding to the natural gas well on the corresponding temperature; updating the initial temperature according to the first influence coefficient and the reference pressure variable to obtain an updated temperature; In response to a difference between the target density and the initial density being less than a reference threshold, determining a bottom hole temperature of the natural gas well according to the updated temperature; The first relationship data includes: Wherein, p is the initial pressure, ρ is the density of the natural gas, R is the universal gas constant, T is the initial temperature, α, γ, a, b, c and d are preset parameters, and A0, B0, C0, D0 and E0 are known parameters determined based on the multiple attribute parameters; The second relationship data includes: Among them, μ J-T is the influence coefficient, c p is the constant-pressure molar specific heat capacity of the natural gas, T is the initial temperature, ρ is the density of the natural gas, and R is the universal gas constant.
2. The method according to claim 1, characterized in that In response to the difference between the target density and the initial density being less than a reference threshold, determining the bottom hole temperature of the natural gas well according to the updated temperature parameter, comprises: In response to the difference between the target density and the initial density being less than the reference threshold, determining the updated temperature parameter as the bottom hole temperature; or, In response to a difference between the target density and the initial density being less than the reference threshold, updating the initial pressure parameter according to the reference pressure variable to obtain an updated pressure parameter; determining a second influence coefficient corresponding to the natural gas according to the second relationship data, the updated temperature parameter and the updated pressure parameter; The updated temperature parameter is updated according to the second influence coefficient and the reference pressure variable to obtain a re-updated temperature parameter, and the re-updated temperature parameter is determined as the bottom hole temperature.
3. The method according to claim 1, characterized in that After updating the initial temperature according to the first influence coefficient and the reference pressure variable to obtain the updated temperature, the method further includes: In response to a difference between the target density and the initial density being not less than the reference threshold, updating the initial pressure according to the reference pressure variable to obtain an updated pressure; The updated pressure is used as the initial pressure, the updated temperature is used as the initial temperature, and the target density is used as the initial density, and the step of determining the target density of the natural gas according to the first relationship data is continued.
4. The method according to claim 1, characterized in that The natural gas includes multiple components, and the obtaining of the natural gas data includes: For each property parameter, respectively obtaining property sub-parameters and corresponding mole fractions of the plurality of components; According to the mole fractions corresponding to the multiple components, the obtained multiple property sub-parameters are merged to obtain the property parameter.
5. The method according to claim 1, characterized in that: The obtaining of natural gas data includes: Display parameter setting interface; The natural gas data input in the parameter setting interface is obtained.
6. The method according to claim 5, characterized in that The parameter setting interface includes a static parameter setting area, a fluid parameter setting area and a production parameter setting area. The static parameter setting area is used to set the initial temperature; the fluid parameter setting area is used to set the multiple property parameters; and the production parameter setting area is used to set the initial pressure.
7. A bottom hole temperature acquisition device, characterized in that: The device comprises: A data acquisition module, used to acquire natural gas data, wherein the natural gas data includes a plurality of attribute parameters of natural gas, an initial temperature and an initial pressure corresponding to a natural gas well; a density acquisition module, used to determine the target density of the natural gas according to first relationship data, wherein the first relationship data is used to represent the corresponding relationship between the density of the natural gas and the natural gas data; An influence coefficient acquisition module, used to determine a first influence coefficient corresponding to the natural gas according to second relationship data, wherein the second relationship data is used to indicate a corresponding relationship between the influence coefficient corresponding to the natural gas and the natural gas data, and the first influence coefficient is used to indicate an influence degree of the corresponding pressure of the natural gas well on the corresponding temperature; A temperature updating module, used for updating the initial temperature according to the first influence coefficient and the reference pressure variable to obtain an updated temperature; a bottom hole temperature acquisition module, configured to determine the bottom hole temperature of the natural gas well according to the updated temperature in response to the difference between the target density and the initial density being less than a reference threshold; The first relationship data includes: Wherein, p is the initial pressure, ρ is the density of the natural gas, R is the universal gas constant, T is the initial temperature, α, γ, a, b, c and d are preset parameters, and A0, B0, C0, D0 and E0 are known parameters determined based on the multiple attribute parameters; The second relationship data includes: Among them, μ J-T is the influence coefficient, c p is the constant-pressure molar specific heat capacity of the natural gas, T is the initial temperature, ρ is the density of the natural gas, and R is the universal gas constant.
8. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the operations performed in the bottom hole temperature acquisition method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the operations performed in the bottom hole temperature acquisition method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method and system for determining temperature distribution of high-pressure gas well shaft
CN104453861A
Method and device for analyzing annulus pressure monitoring data of gas wellhead casing pipe
CN108131130A