A method for calculating temperature field of hydrogen storage well section

By dividing the well section microbody in high-pressure hydrogen storage and calculating the bottom parameters of the well using the fourth-order Longguta method, the problem of rising hydrogen temperature during high-pressure hydrogen storage is solved, and the accuracy of underground hydrogen storage is achieved Analysis and safety guarantee improve hydrogen storage efficiency.

CN118036304BActive Publication Date: 2024-11-15SOUTHWEST PETROLEUM UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410201385.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-23
Publication Date
2024-11-15
Estimated Expiration
2044-02-23

AI Technical Summary

Technical Problem

During the high-pressure hydrogen storage process, the increase in the temperature of hydrogen leads to potential dangers, affecting the safety and efficiency of underground hydrogen storage projects. It is necessary to analyze the heat composition and temperature field in the formation hydrogen storage process, and optimize the hydrogen storage process to reduce risks.

Method used

A hydrogen storage well section temperature field calculation method is adopted, by dividing the well section microbody, establishing a differential equation system of bottom well parameters, and iteratively calculate using the fourth-order Longgekuta method to obtain the distribution of the wellbore temperature field , ensure the accuracy and safety of the calculation results.

Benefits of technology

This method can accurately analyze the heat composition and temperature changes in underground hydrogen storage, provide theoretical basis, ensure the safety of hydrogen storage, improve the efficiency of hydrogen storage, and facilitate real-time adjustment of engineering parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118036304B_ABST
    Figure CN118036304B_ABST
Patent Text Reader

Abstract

The invention provides a method for calculating the temperature field of a hydrogen storage well section, which belongs to the technical field of underground hydrogen storage. The method comprises the following steps: according to the well body structure and the bottom hole parameters, an iteration step is set, the well section micro-element is divided, the bottom hole parameters include the density, gas flow rate, pressure and hydrogen temperature in the oil pipe at the bottom hole, differential equations corresponding to the bottom hole parameters are established, a differential equation group of the bottom hole parameters is constructed, a fourth-order Runge-Kutta method is used to calculate the differential equation group, and the bottom hole parameter change based on the well section micro-element is obtained. According to the set iteration step, the bottom hole parameter corresponding to any well section micro-element is iteratively calculated, thereby obtaining the bottom hole parameter at any position in the temperature field, and further obtaining the corresponding wellbore temperature; the method can be used to accurately judge the temperature change of the gas and each part in the wellbore, thereby providing a theoretical basis for ensuring the safety of underground hydrogen storage, and facilitating the real-time adjustment of engineering parameters to improve the hydrogen storage efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of underground hydrogen storage, and in particular to a method for calculating a temperature field of a hydrogen storage well section. Background Art

[0002] The storage of hydrogen has always been a difficult problem to overcome. Currently known hydrogen storage technologies include metal oxides, cryogenic liquids, and high-pressure hydrogen storage. Among the three, the most popular and most developed hydrogen storage technology is high-pressure hydrogen storage. In the process of using high pressure to store hydrogen, hydrogen needs to be compressed into the formation wellbore using a compressor. During the hydrogen compression and storage process, the hydrogen usually increases in temperature due to compression, and the internal energy change of the rapidly flowing hydrogen generates heat. The generation of heat causes the temperature to rise. When the temperature is too high, it is potentially dangerous for the storage of hydrogen in the wellbore, affecting the subsequent development of the project. Therefore, in response to this problem, combined with the actual formation conditions, it is necessary to analyze the heat composition in the formation hydrogen storage process, establish a wellbore temperature field calculation method, optimize the formation hydrogen storage process, and reduce engineering risks. Summary of the invention

[0003] In view of this, the present invention proposes a method for calculating the temperature field of a hydrogen storage well section, which considers and analyzes the main heat composition in the hydrogen storage process in the formation hydrogen storage, introduces a programming equation solving method according to the specific heat changes and heat exchange of each part, and divides the well section into microelement calculations.

[0004] The technical solution adopted by the present invention to solve the above problem is a method for calculating the temperature field of a hydrogen storage well section, comprising the following steps:

[0005] Step S1: according to the wellbore structure and bottom hole parameters, the iteration step length is set to divide the well section into micro-elements. The bottom hole parameters include the density, gas flow rate, pressure, and hydrogen temperature in the oil pipe at the bottom hole;

[0006] Step S2: establishing differential equations corresponding to the bottom hole parameters, and constructing a group of differential equations for the bottom hole parameters;

[0007] Step S3: using the fourth-order Runge-Kutta method to calculate the differential equations, and obtaining the bottom hole parameter changes based on the well section microelement;

[0008] Step S4: According to the set iteration step, the bottom hole parameters corresponding to any well section microelement are iteratively calculated, so as to obtain the bottom hole parameters at any position in the temperature field, and further obtain the corresponding wellbore temperature.

[0009] The specific effects of the present invention are:

[0010] The present invention regards the stratum as a circular uniform formation model with constant pressure boundary, which is in line with the production characteristics of gas wells. The heat composition in the process of underground hydrogen storage is analyzed, and the differential equations corresponding to the bottom hole parameters are established by dividing the well section into microelements, and the bottom hole parameter differential equation group is constructed. The fourth-order Runge Kutta method is used to calculate the differential equation group, and the bottom hole parameter changes based on the well section microelement are obtained. The Runge Kutta method is used for iteration to improve the accuracy of the results. It can also be used to accurately judge the temperature changes of the gas and various parts in the wellbore, thereby ensuring the safety of underground hydrogen storage and providing a theoretical basis, and it is also convenient to adjust the engineering parameters in real time to improve the hydrogen storage efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below.

[0012] Figure 1 A top view of the wellbore model in the present invention;

[0013] Figure 2 Schematic diagram of the wellbore cross section and radial heat transfer in the present invention;

[0014] Figure 3 It is a schematic diagram of the well section microelement in the present invention;

[0015] Figure 4 This is a diagram showing the calculation results of the depth and the temperature of hydrogen in the oil pipe in the present invention;

[0016] Figure 5 This is a flow chart for calculating the temperature field in the present invention. DETAILED DESCRIPTION

[0017] In order to facilitate those skilled in the art to better understand the present invention, the present invention is further described in detail below in conjunction with embodiments and drawings, but the embodiments of the present invention are not limited thereto.

[0018] Example:

[0019] Step S1: according to the wellbore structure and bottom hole parameters, the iteration step length is set to divide the well section into micro-elements. The bottom hole parameters include the density, gas flow rate, pressure, and hydrogen temperature in the oil pipe at the bottom hole;

[0020] Among them, when using formation hydrogen storage, hydrogen is compressed into the formation by a compressor. The storage of hydrogen will cause the temperature field in the entire gas well to change. During the hydrogen storage process, the heat transfer mode related to the gas well temperature field mainly includes two parts:

[0021] 1) Heat transferred from hydrogen in the oil pipe to the outer edge of the cement ring;

[0022] 2) Heat exchange between the wellbore wall and the formation.

[0023] In order to explain the complex heat transfer process in more detail, it is necessary to first idealize the porous formation into parallel cylindrical pore channels, in which the stored hydrogen flows. Regarding the heat transfer in the formation, only the heat exchange with the wellbore wall is considered, simplifying the heat distribution involved in the calculation.

[0024] Based on this, the following assumptions are made:

[0025] 1) The tubing and casing are concentric, and both the tubing and casing are in a vertical state;

[0026] 2) The heat transfer process of hydrogen from the oil pipe to the outer edge of the cement ring is steady-state heat transfer, and the heat transfer between the formations is unsteady-state heat transfer;

[0027] 3) The lithology of the stratum where the wellbore for storing hydrogen is located is set to be homogeneous and isotropic, and its physical parameters such as permeability, porosity, specific heat capacity, thermal conductivity, etc. do not change with well depth and temperature;

[0028] 4) The micro-heat generated by the friction during compression of the compressor is not taken into account;

[0029] 5) The entire heat transfer process mainly considers the heat generated by gas movement, as well as the specific process of radial heat transfer, that is, the heat exchange between the wellbore wall and the formation;

[0030] 6) There is heat exchange between the wellbore and the formation, and the exchange method is heat conduction.

[0031] According to the heat transfer mode, the geological area around the gas wellbore and the wellbore are regarded as a homogeneous stratum with a circular boundary, and a geophysical model of the gas wellbore is established, such as Figure 1 shown.

[0032] And the energy differential equation of the whole system is obtained as formula (5):

[0033] d(ΔE)=δQ e +dQ in (5)

[0034] In formula (5), E is the total energy of the thermodynamic system, J; Q e is the heat exchange between the system and the environment, J; Q in is the work done when hydrogen is injected, J;

[0035] Combination Figure 1 It can be seen that the heat transfer from the oil pipe to the formation and the heat transfer from the oil pipe to the outer edge of the cement ring are steady-state heat transfer, and the heat transferred is shown in formula (6):

[0036]

[0037] The heat transfer between strata is non-steady-state heat transfer, and the transferred heat is shown in formula (7):

[0038]

[0039] In formula (6) and (7): dQ h is the heat transferred over the length dz of the wellbore per unit time, W;

[0040] r oi is the inner radius of the oil pipe, m;

[0041] U to is the total heat transfer coefficient, W / (m·℃);

[0042] T h is the temperature of hydrogen in the oil pipe, °C;

[0043] T c is the temperature of the outer edge of the cement ring, °C;

[0044] dQ n is the heat transferred over the length dz per unit time in the formation, W;

[0045] k e is the formation thermal conductivity, W / (m·℃);

[0046] T e is the formation temperature, °C;

[0047] f(t d ) is the dimensionless time function introduced, dimensionless;

[0048] dz is the unit length of the wellbore, m

[0049] Among them, the dimensionless time function f(t d ) is specifically shown in formulas (8)-(9):

[0050]

[0051]

[0052] In formulas (8) and (9), α is the thermal diffusion coefficient of the formation, m 2 / s;

[0053] t is the production time, s;

[0054] r h is the radius of the cement ring.

[0055] Overall heat transfer coefficient U to Specifically, as shown in formula (10):

[0056]

[0057] In formula (10): out is the outer radius of the oil pipe, m;

[0058] k tub is the thermal conductivity of the oil pipe, W / (m·℃);

[0059] h rad is the radiation heat transfer coefficient in the annulus, W / (s·m 2 ℃);

[0060] h con is the convection heat transfer coefficient in the annulus, W / (s·m2·℃);

[0061] k cas is the thermal conductivity of the casing, W / (m·℃);

[0062] r co is the outer radius of the casing, m;

[0063] r ci is the inner radius of the casing, m;

[0064] k cem is the thermal conductivity of cement sheath, W / (m·℃);

[0065] r h is the radius of cement ring, m.

[0066] According to the fact that the heat transferred from the oil pipe to the outer edge of the cement ring is equal to the heat transferred from the outer edge of the cement ring to the formation, it can be seen that the temperature of the outer edge of the cement ring is as shown in formula (11):

[0067]

[0068] In formula (11), r oi is the inner radius of the oil pipe, m;

[0069] U to is the total heat transfer coefficient, W / (m·℃);

[0070] T h is the temperature of hydrogen in the oil pipe, °C;

[0071] T c is the temperature of the outer edge of the cement ring, °C;

[0072] k e is the formation thermal conductivity, W / (m·℃);

[0073] T e is the formation temperature, °C;

[0074] f(t d) is the introduced dimensionless time function, dimensionless.

[0075] The inner surface temperature of the casing is shown in formula (12):

[0076]

[0077] In formula (12), r oi is the inner radius of the oil pipe, m;

[0078] r co is the outer radius of the casing, m;

[0079] k cem is the thermal conductivity of cement sheath, W / (m·℃);

[0080] r h is the radius of cement ring, m;

[0081] U to is the total heat transfer coefficient, W / (m·℃);

[0082] T h is the temperature of hydrogen in the oil pipe, °C;

[0083] T c is the temperature of the outer edge of the cement ring, ℃.

[0084] Since the thermal conductivity of the oil pipe is very good, the difference between the gas temperature in the oil pipe and the temperature of the outer surface of the oil pipe is very small, so the temperature of the annulus is as shown in formula (13):

[0085]

[0086] In formula (13), T h is the temperature of hydrogen in the oil pipe, °C;

[0087] T ci is the inner surface temperature of the casing, °C;

[0088] It can be seen that the outer edge temperature of the cement ring, the inner surface temperature of the casing and the temperature of the annulus are all related to the hydrogen temperature in the tubing, and the outer edge temperature of the cement ring, the inner surface temperature of the casing, the temperature of the annulus and the hydrogen temperature in the tubing together constitute the wellbore temperature field. By calculating the relationship between the hydrogen temperature in the tubing and the change of the well section microelement, the distribution of the wellbore temperature field can be obtained accordingly.

[0089] Step S2: establishing differential equations corresponding to the bottom hole parameters, and constructing a group of differential equations for the bottom hole parameters;

[0090] like Figure 2 As shown in the figure, hydrogen flows in a one-dimensional stable manner in the oil pipe. Therefore, the flow direction of hydrogen is defined as the positive direction of the coordinate axis. The pipe section with a length of dz is taken as follows: Figure 3 The microelement shown.

[0091] According to the assumption that the fluid flows in one dimension in the oil pipe, the flow parameters only change in the flow direction, and the fluid parameters are uniform at any cross section in the oil pipe. According to the law of conservation of mass, the mass flowing into the unit body per unit time is equal to the mass flowing out of the unit body. The continuity equation in differential form is:

[0092]

[0093] According to the momentum theorem, the pressure gradient is:

[0094]

[0095] In formulas (14) and (15), ρ is the true density of the gas, kg / m 3 ;

[0096] υ is the gas flow rate, m / s;

[0097] A is the cross-sectional area of ​​the oil pipe, m 2 ;

[0098] g is the acceleration due to gravity, m / s 2 ;

[0099] f is the friction coefficient of the tube wall, dimensionless;

[0100] According to the law of conservation of energy shown in formula (16):

[0101]

[0102] In formula (16): h is the specific enthalpy of gas, J / kg;

[0103] q is the heat loss per unit mass of gas, J / kg;

[0104] The heat transfer in the wellbore is steady-state, and the heat transfer between the wellbore and the formation is unsteady-state. The heat transfer in the well section microelement with equal length is equal, so we can get:

[0105]

[0106] The specific enthalpy of the fluid is:

[0107]

[0108] In formulas (17)-(18): ω is the mass flow rate, kg / s;

[0109] C J is the Joule-Thomson coefficient, K / Pa;

[0110] C p is the specific heat of hydrogen at constant pressure;

[0111] Since the diameter of the oil pipe changes very little, the Joule-Thomson coefficient is very small and can even be ignored. Therefore, equation (18) can be organized into equation (19):

[0112]

[0113] According to equations (16)-(19), the temperature gradient is as shown in equation (20):

[0114]

[0115] The relaxation distance L is introduced as:

[0116]

[0117] The differential form of gas density in the depth direction is obtained according to the actual gas state equation as shown in formula (22):

[0118]

[0119] In formula (22): M is the molar mass of the gas, kg / mol;

[0120] R is the gas constant, R = 8.314 J / (mol·K);

[0121] Z is the compression factor, dimensionless;

[0122] T is the thermodynamic temperature, K.

[0123] According to equations (14), (15), (20) and (22), the differential equations of density gradient, gas velocity gradient, pressure gradient and hydrogen temperature gradient in the oil pipe during hydrogen storage are obtained, as shown in equations (1), (2), (3) and (23):

[0124]

[0125]

[0126]

[0127]

[0128] In formulas (1), (2), (3), and (23), C p is the specific heat of hydrogen at constant pressure:

[0129] C p =1243+3.14T+7.931x10 4 T 2 -6.881x10 7 T 3(twenty four)

[0130] Under any temperature and pressure conditions in the oil pipe, the gas density and gas flow rate are:

[0131]

[0132]

[0133] Where: g is the relative density of gas;

[0134] p is the gas pressure, MPa;

[0135] q sg is the gas flow rate under standard conditions, m 3 / d.

[0136] The calculation formula of the friction coefficient f between hydrogen and the inner wall of the oil pipe is shown in formula (27):

[0137]

[0138] In formula (27): σ is the absolute roughness of the tube wall, mm;

[0139] Re is the Reynolds number, dimensionless.

[0140] Combining equations (1) and (23), the final expression of the hydrogen temperature gradient in the oil pipe can be obtained, namely equation (4):

[0141]

[0142] Step S3: using the fourth-order Runge-Kutta method to calculate the differential equations, and obtaining the bottom hole parameter changes based on the well section microelement;

[0143] Each time the fourth-order Runge-Kutta method calculates the objective function, it needs to calculate the function value four times and perform Taylor expansion four times. The calculation accuracy is fifth order, which can meet the calculation requirements of engineering applications. The general form of the fourth-order Runge-Kutta method is shown in formula (28):

[0144]

[0145] The density gradient, velocity gradient, pressure gradient, and temperature gradient are denoted as F i (i=1,2,3,4), the initial conditions are recorded as the density, velocity, pressure and temperature at the wellhead or bottom, and the step length is recorded as x, as shown in formula (29):

[0146]

[0147] The fourth-order Runge-Kutta method is used to solve the equation. The calculation process is shown in formula (30):

[0148]

[0149] Step S4: According to the set iteration step, the bottom hole parameters corresponding to any well section microelement are iteratively calculated, so as to obtain the bottom hole parameters at any position in the temperature field, and further obtain the corresponding wellbore temperature.

[0150] According to the above steps, the hydrogen temperature T in the oil pipe is calculated. h , combined with the hydrogen temperature in the oil pipe and the outer edge temperature of the cement ring T in equations (11)-(13) C , casing inner surface temperature T ci , annular space temperature T at The corresponding relationship between the inner surface temperature of the casing T ci It can be further expressed using formula (31):

[0151]

[0152] The annular temperature can be further expressed using formula (32):

[0153]

[0154] Therefore, the hydrogen temperature T h Further calculations are performed to obtain the cement sheath outer edge temperature T at the corresponding position in the well section microelement. C , casing inner surface temperature T ci , annular space temperature T at , thus realizing the calculation of the temperature field at any position in the hydrogen storage well section.

[0155] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the embodiments of the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for calculating the temperature field of a hydrogen storage well section, characterized in that: The following steps are involved: Step S1: according to the wellbore structure and bottom hole parameters, the iteration step length is set to divide the well section into micro-elements. The bottom hole parameters include the density, gas flow rate, pressure, and hydrogen temperature in the oil pipe at the bottom hole; Step S2: establishing differential equations corresponding to the bottom hole parameters, and constructing a group of differential equations for the bottom hole parameters; Step S3: using the fourth-order Runge-Kutta method to calculate the differential equations, and obtaining the bottom hole parameter changes based on the well section microelement; Step S4: iteratively calculate the bottom hole parameters corresponding to any well section microelement according to the set iteration step length, thereby obtaining the bottom hole parameters at any position in the temperature field, and further obtaining the corresponding wellbore temperature; The differential equation corresponding to the density in the bottom hole parameter differential equation group is shown in formula (1): (1) In formula (1), ρ is the true density of the gas, kg / m³; M is the molar mass of the gas, kg / mol; R is the gas constant, 8.134 J / (mol·K); T is the thermodynamic temperature, K; Z is the compression factor; g is the acceleration due to gravity; f is the friction coefficient of the pipe wall; v is the gas flow rate, m / s; L is the relaxation distance; T h is the temperature of hydrogen in the oil pipe, °C; T e is the formation temperature, °C; C p is the specific heat of hydrogen at constant pressure; r oi is the radius of the oil pipe, m; The differential equation corresponding to the gas flow rate in the bottom hole parameter differential equation group is shown in formula (2): (2) In formula (2), v is the gas flow rate, m / s; ρ is the true density of the gas, kg / m³; The differential equation corresponding to the pressure in the bottom hole parameter differential equation group is shown in formula (3): (3) In formula (3), ρ is the true density of the gas, kg / m³; g is the acceleration due to gravity; f is the friction coefficient of the pipe wall; v is the gas flow rate, m / s; r oi is the radius of the oil pipe, m; The differential equation corresponding to the hydrogen temperature in the tubing in the bottom hole parameter differential equation group is shown in formula (4): (4) In formula (4), ρ is the true density of the gas, kg / m³; M is the molar mass of the gas, kg / mol; R is the gas constant, 8.134 J / (mol·K); T is the thermodynamic temperature, K; Z is the compression factor; g is the acceleration due to gravity; f is the friction coefficient of the pipe wall; v is the gas flow rate, m / s; L is the relaxation distance; T h is the temperature of hydrogen in the oil pipe, °C; T e is the formation temperature, °C; C p is the specific heat of hydrogen at constant pressure; r oi is the radius of the oil pipe, m.