A method for predicting gas-liquid interface depth of gas injection brine discharge and related equipment

By obtaining the gas density and wellhead pressure in the injection well, and combining them with the brine column pressure, the gas-liquid interface depth is calculated using the gas column pressure function and pressure balance method. This solves the problem of monitoring difficulties in existing technologies and achieves efficient and accurate prediction of the gas-liquid interface depth.

CN119777810BActive Publication Date: 2026-05-19INST OF ROCK & SOIL MECHANICS CHINESE ACAD OF SCI
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INST OF ROCK & SOIL MECHANICS CHINESE ACAD OF SCI
Filing Date
2025-01-22
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

Existing technologies are insufficient to accurately monitor the gas-liquid interface depth during the gas injection and brine discharge process in salt caverns, which poses a threat to the structural integrity of the salt caverns. Furthermore, existing instrumentation methods are labor-intensive and resource-intensive, and have not been widely adopted.

Method used

By obtaining the gas density function, wellhead pressure, and brine column pressure in the injection well, the gas-liquid interface depth is calculated using the gas column pressure function and pressure balance method. Combined with differentiation, integration, and solution algorithms, efficient prediction of the gas-liquid interface depth is achieved.

Benefits of technology

It enables real-time monitoring of the gas-liquid interface depth, saving manpower and material resources and improving monitoring efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119777810B_ABST
    Figure CN119777810B_ABST
Patent Text Reader

Abstract

The application discloses a method for predicting gas-liquid interface depth of gas injection and halogen removal and related equipment, and relates to the technical field of salt cavern gas injection and halogen removal. The method comprises the following steps: acquiring a gas density function of a gas injection well, a first wellhead pressure of the gas injection well, and a brine column pressure. The gas density function represents the corresponding relationship between the gas column pressure of the gas injection well and the formation temperature. The brine column pressure represents the corresponding relationship between the brine pressure gradient and the second wellhead pressure of the halogen removal well. Based on the gas density function and the first wellhead pressure, a gas column pressure function is determined. The gas column pressure function is used to represent the corresponding relationship among the gas density of the gas injection well, the first wellhead pressure and the gas-liquid interface depth. Based on the pressure balance method, the gas column pressure function and the brine column pressure, a gas-liquid interface depth function in the gas injection well is determined. The first wellhead pressure, the wellhead temperature, the brine pressure gradient and the second wellhead pressure are input into the gas-liquid interface depth function, so as to obtain the gas-liquid interface depth.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of salt cavern aeration and brine discharge technology, and in particular to a method and related equipment for predicting the depth of the gas-liquid interface during aeration and brine discharge. Background Technology

[0002] Currently, salt caverns are widely considered ideal for storing natural gas, hydrogen, and compressed air due to their excellent sealing performance, structural stability, and adaptability to high-pressure conditions. A key step in the gas storage process is to inject high-pressure gas to drain the brine produced during the creation of the salt cavern cavity. During this process, the position of the gas-liquid interface is a critical parameter reflecting the progress and stability of the operation. Since a significant rise in the gas-liquid interface can threaten the structural integrity of the salt cavern, accurate monitoring of the gas-liquid interface depth is crucial for assessing the safety of the salt cavern.

[0003] However, monitoring the gas-liquid interface has always been a major challenge in engineering practice. Although some studies have proposed solutions to improve measuring instruments, such as using acoustic velocity measurement to monitor the gas-liquid interface depth, these technologies have not been widely adopted in practical applications due to their enormous consumption of human and material resources. Therefore, it is necessary to propose a method for predicting the depth of the gas-liquid interface during gas injection and brine discharge, in order to at least solve some of the aforementioned problems. Summary of the Invention

[0004] The summary section introduces a series of simplified concepts, which will be further explained in detail in the detailed description section. This summary section is not intended to limit the key and essential technical features of the claimed technical solution, nor is it intended to determine the scope of protection of the claimed technical solution.

[0005] In a first aspect, embodiments of this application provide a method for predicting the depth of the gas-liquid interface during gas injection and discharge, the method comprising:

[0006] The gas density function in the injection well, the first wellhead pressure of the injection well, and the brine column pressure are obtained. The gas density function is used to characterize the relationship between the gas column pressure of the injection well and the formation temperature, and the brine column pressure is used to characterize the relationship between the brine pressure gradient and the second wellhead pressure of the brine discharge well.

[0007] Based on the gas density function and the first wellhead pressure, a gas column pressure function is determined. The gas column pressure function is used to characterize the correspondence between the gas density of the gas injection well, the first wellhead pressure, and the gas-liquid interface depth.

[0008] Based on the pressure balance method, the gas column pressure function and the brine column pressure, the gas-liquid interface depth function in the injection well is determined.

[0009] The first wellhead pressure, the wellhead temperature, the brine pressure gradient, and the second wellhead pressure are input into the gas-liquid interface depth function to obtain the gas-liquid interface depth.

[0010] In one embodiment of the present invention, determining the gas column pressure function based on the gas density function and the first wellhead pressure includes:

[0011] Based on the gas density function and the first wellhead pressure, the initial gas column pressure function is determined;

[0012] Based on differentiation, integration, and solution algorithms, the initial air column pressure function is transformed to obtain the air column pressure function.

[0013] In one embodiment of the present invention, the determination of the initial gas column pressure function based on the gas density function and the first wellhead pressure is calculated using the following formula:

[0014]

[0015] Where g is the gravitational acceleration, P(0) is the first wellhead pressure of the gas injection well, h is the gas-liquid interface depth, and ρ(h) is the gas density at a gas-liquid interface depth of h.

[0016] In one embodiment of the present invention, the initial air column pressure function is transformed based on a differentiation algorithm, an integration algorithm, and a solution algorithm to obtain the air column pressure function, including:

[0017] The first air column pressure function is obtained by differentiating the initial air column pressure function, and the first air column pressure function is calculated using the following formula:

[0018] P ′ (h)=ρ(h)g;

[0019] Where ρ(h) is the gas density at a gas-liquid interface depth of h, and g is the gravitational acceleration;

[0020] Integrating the first air column pressure function yields the second air column pressure function, which is calculated using the following formula:

[0021]

[0022] Among them, T w Here, K is the wellhead temperature, K is a constant, and h is the gas-liquid interface depth.

[0023] The third air column pressure function is obtained by solving the second air column pressure function, which is calculated using the following formula:

[0024]

[0025] Where C is the integration constant, T w K represents the wellhead temperature, where K is a constant.

[0026] The air column pressure function is determined based on the third air column pressure function.

[0027] In one embodiment of the present invention, the determination of the gas column pressure function based on the gas density function and the first wellhead pressure is calculated using the following formula:

[0028]

[0029] Where P(0) is the first wellhead pressure of the gas injection well, and T w K represents the wellhead temperature, and K is a constant.

[0030] In one embodiment of the present invention, the brine column pressure is obtained in the following manner:

[0031] Obtain the brine pressure gradient and the second wellhead pressure of the brine discharge well;

[0032] The second parameter is obtained by multiplying the brine pressure gradient by the gas-liquid interface depth.

[0033] The brine column pressure is obtained by summing the second parameter and the second wellhead pressure.

[0034] In one embodiment of the present invention, the determination of the gas-liquid interface depth function within the injection well based on the pressure balance method, the gas column pressure function, and the brine column pressure is calculated using the following formula:

[0035]

[0036] Among them, T w The wellhead temperature is K, which is a constant, and γ is γ. b P′ represents the pressure gradient of the brine. w The pressure at the second wellhead of the brine discharge well is h, which is the depth of the gas-liquid interface.

[0037] Secondly, this application proposes a prediction system for the depth of the gas-liquid interface between gas injection and brine discharge, the system comprising: a data acquisition module, a first calculation module, and a second calculation module;

[0038] The data acquisition module is configured to acquire the gas density function in the injection well, the first wellhead pressure of the injection well, and the brine column pressure. The gas density function is used to characterize the relationship between the gas column pressure of the injection well and the formation temperature, and the brine column pressure is used to characterize the relationship between the brine pressure gradient and the second wellhead pressure of the brine discharge well.

[0039] The first calculation module is configured to: determine a gas column pressure function based on the gas density function and the first wellhead pressure, wherein the gas column pressure function is used to characterize the correspondence between the gas density of the injection well, the first wellhead pressure, and the gas-liquid interface depth; the second calculation module is configured to: determine a gas-liquid interface depth function in the injection well based on the pressure balance method, the gas column pressure, and the brine column pressure; and input the first wellhead pressure, the wellhead temperature, the brine pressure gradient, and the second wellhead pressure into the gas-liquid interface depth function to obtain gas-liquid interface depth data.

[0040] Thirdly, an electronic device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program stored in the memory to implement the steps of a method for predicting the depth of the gas-liquid interface of the gas injection and discharge brine as described in any of the first aspects above.

[0041] Fourthly, this application also proposes a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, it implements the steps of a method for predicting the depth of the gas-liquid interface of the gas injection and discharge brine as described in any of the first aspects.

[0042] In summary, the method for predicting the gas-liquid interface depth of the injection and discharge brine well, as described in this application, can calculate the gas-liquid interface depth data using known parameters such as the gas density in the injection well, the first wellhead pressure of the injection well, the pressure gradient of the brine, and the second wellhead pressure of the discharge well. This calculation method is efficient and fast, enabling real-time monitoring and significantly saving human and material resources.

[0043] The method for predicting the gas-liquid interface depth of the gas injection and discharge brine proposed in this application, along with other advantages, objectives, and features of this application, will be partly apparent from the following description and partly understood by those skilled in the art through research and practice of this application. Attached Figure Description

[0044] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit this specification. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0045] Figure 1 A flowchart illustrating a method for predicting the depth of the gas-liquid interface during gas injection and discharge, provided in an embodiment of this application;

[0046] Figure 2 A schematic diagram of a prediction system for the gas-liquid interface depth of gas injection and brine discharge provided in an embodiment of this application;

[0047] Figure 3 This is a schematic diagram of an electronic device for predicting the depth of the gas-liquid interface during gas injection and discharge, provided as an embodiment of this application. Detailed Implementation

[0048] To better understand the technical solutions provided in the embodiments of this specification, the technical solutions of the embodiments of this specification will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the embodiments of this specification and the specific features in the embodiments are detailed descriptions of the technical solutions of the embodiments of this specification, rather than limitations on the technical solutions of this specification. In the absence of conflict, the embodiments of this specification and the technical features in the embodiments can be combined with each other.

[0049] In this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, without necessarily requiring or implying any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element. The term "two or more" includes two or more cases.

[0050] Please see Figure 1 This is a flowchart illustrating a method for predicting the depth of the gas-liquid interface during brine injection and discharge, as provided in an embodiment of this application. Specifically, it may include:

[0051] S110. Obtain the gas density function in the injection well, the first wellhead pressure of the injection well, and the brine column pressure. The gas density function is used to characterize the relationship between the gas column pressure of the injection well and the formation temperature. The brine column pressure is used to characterize the relationship between the brine pressure gradient and the second wellhead pressure of the brine discharge well.

[0052] For example, the gas density function, the first wellhead pressure, and the brine column pressure of the injection well are obtained. The gas density function characterizes the relationship between the gas column pressure and the formation temperature. Specifically, different depths have different temperatures and pressures, and the gas density is affected by both. According to the ideal gas law, the gas density at different depths is shown in equation (1).

[0053]

[0054] Where ρ(h) is the gas density at depth h, in kg / m³. 3 P(h) is the gas column pressure at depth h, in Pa; T(h) is the formation temperature at depth h, in K; ρ0 is the gas density under standard conditions, in m; P0 is 101325 Pa (i.e., 1 atm); T0 is 273.15 K (i.e., 0℃); h is the depth, in m.

[0055] The temperatures of formations at different depths are:

[0056] T(h)=T w +0.03h (2);

[0057] Among them, T w The temperature at the wellhead is measured in Kelvin (K).

[0058] The first wellhead pressure of a gas injection well is the pressure value at the wellhead, reflecting the pressure conditions within the well and is crucial for assessing its operational status and safety. The brine column pressure characterizes the relationship between the brine pressure gradient and the second wellhead pressure of the brine discharge well. By understanding the relationship between the brine pressure gradient and the second wellhead pressure, the pressure of brine at different depths can be determined, thereby assessing the operational status of the brine discharge well and the safety of brine discharge.

[0059] S120. Based on the gas density function and the first wellhead pressure, determine the gas column pressure function, which is used to characterize the correspondence between the gas density of the gas injection well, the first wellhead pressure and the gas-liquid interface depth.

[0060] For example, a gas column pressure function is determined based on a gas density function and a first wellhead pressure. This gas column pressure function characterizes the relationship between the gas density of the injection well, the first wellhead pressure, and the gas-liquid interface depth. The gas column pressure function is used to determine the pressure generated by the gas column in the injection well at different gas-liquid interface depths.

[0061] S130. Based on the pressure balance method, the gas column pressure function, and the brine column pressure, determine the gas-liquid interface depth function in the injection well.

[0062] For example, the pressure balance method is a method based on physical principles. Its core idea is that in a specific system, the pressure in different parts should be equal when in equilibrium. Since the gas column pressure and the brine column pressure are equal at the gas-liquid interface, the gas-liquid interface depth function can be determined using the gas column pressure function and the brine column pressure based on the pressure balance method.

[0063] S140. Input the first wellhead pressure, the wellhead temperature, the brine pressure gradient, and the second wellhead pressure into the gas-liquid interface depth function to obtain the gas-liquid interface depth.

[0064] For example, by substituting the specific values ​​of the first wellhead pressure, wellhead temperature, brine pressure gradient, and second wellhead pressure into the gas-liquid interface depth function, the specific value of the gas-liquid interface depth h can be obtained.

[0065] In summary, the method for predicting the gas-liquid interface depth of the injection and discharge brine wells proposed in this application can calculate the gas-liquid interface depth data using known parameters such as the gas density in the injection well, the first wellhead pressure of the injection well, the pressure gradient of the brine, and the second wellhead pressure of the discharge well. This calculation method is efficient and fast, enabling real-time monitoring and greatly saving human and material resources.

[0066] In some examples, determining the gas column pressure function based on the gas density function and the first wellhead pressure includes:

[0067] Based on the gas density function and the first wellhead pressure, the initial gas column pressure function is determined;

[0068] Based on differentiation, integration, and solution algorithms, the initial air column pressure function is transformed to obtain the air column pressure function.

[0069] For example, based on the gas density function and the first wellhead pressure, the initial gas column pressure function is determined. By sequentially applying the differentiation algorithm, integration algorithm and solution algorithm to process the initial gas column pressure function, a more accurate and complete gas column pressure function is finally obtained. This function can more accurately represent the correspondence between the gas density, the first wellhead pressure and the gas-liquid interface depth of the gas injection well.

[0070] In some examples, the determination of the initial gas column pressure function based on the gas density function and the first wellhead pressure is calculated using the following formula:

[0071]

[0072] Where g is the gravitational acceleration, P(0) is the first wellhead pressure of the gas injection well, h is the gas-liquid interface depth, and ρ(h) is the gas density at a gas-liquid interface depth of h.

[0073] For example, considering gas compressibility and formation temperature changes, the gas column pressure at different depths is calculated. Based on the gas density function obtained above and the wellhead pressure of the injection well, the initial gas column pressure function is determined, as shown in equation (3).

[0074] In some examples, the initial air column pressure function is transformed based on differentiation, integration, and solution algorithms to obtain the air column pressure function, including:

[0075] The first air column pressure function is obtained by differentiating the initial air column pressure function, and the first air column pressure function is calculated using the following formula:

[0076] P ′ (h)=ρ(h)g (4);

[0077] Where ρ(h) is the gas density at a gas-liquid interface depth of h, and g is the gravitational acceleration;

[0078] Integrating the first air column pressure function yields the second air column pressure function, which is calculated using the following formula:

[0079]

[0080] Among them, T w Here, K is the wellhead temperature, K is a constant, and h is the gas-liquid interface depth.

[0081] The third air column pressure function is obtained by solving the second air column pressure function, which is calculated using the following formula:

[0082]

[0083] Where C is the integration constant, T w K represents the wellhead temperature, where K is a constant.

[0084] The air column pressure function is determined based on the third air column pressure function.

[0085] For example, differentiating both sides of equation (3) yields equation (4), and substituting equation (1) into equation (4) gives:

[0086]

[0087] Where ρ0 is the gas density under standard conditions, in m, P0 is 101325 Pa (i.e., 1 atm), T0 is 273.15 K (i.e., 0℃), g is the gravitational acceleration, P(h) is the gas column pressure at depth h, in Pa; and T(h) is the formation temperature at depth h, in K.

[0088] make (K is a constant), and substituting equation (2) into equation (7) yields:

[0089]

[0090] Where K is a constant, P(h) is the air column pressure at depth h, in Pa, and T w Here, h represents the wellhead temperature, and h represents the gas-liquid interface depth.

[0091] After transforming equation (8), we get:

[0092]

[0093] Where K is a constant, P(h) is the air column pressure at depth h, in Pa, and T w Here, h represents the wellhead temperature, and h represents the gas-liquid interface depth.

[0094] Integrating equation (9) yields equation (5), solving equation (5) yields equation (6), and logarithmically exponentializing equation (6) yields:

[0095]

[0096] Where, C1 = e C T is an arbitrary constant. w Here, K is the wellhead temperature, K is a constant, and h is the gas-liquid interface depth.

[0097] Substituting the boundary condition P(h) = P(0) when h = 0, we get:

[0098]

[0099] Where, C1 = e C T is an arbitrary constant. w K represents the wellhead temperature, and K is a constant.

[0100] Comparing equation (10) with equation (11), we get:

[0101]

[0102] Where, C1 = e C T is an arbitrary constant. w K represents the wellhead temperature, and K is a constant.

[0103] In some examples, the determination of the gas column pressure function based on the gas density function and the first wellhead pressure is calculated using the following formula:

[0104]

[0105] Where P(0) is the first wellhead pressure of the gas injection well, and T w K represents the wellhead temperature, and K is a constant.

[0106] For example, equation (12) is transformed to obtain equation (13), thereby theoretically proving that the pressure of the air column exhibits a power function form with depth.

[0107] In some examples, the brine column pressure is obtained in the following manner:

[0108] Obtain the brine pressure gradient and the second wellhead pressure of the brine discharge well;

[0109] The second parameter is obtained by multiplying the brine pressure gradient by the gas-liquid interface depth.

[0110] The brine column pressure is obtained by summing the second parameter and the second wellhead pressure.

[0111] For example, the brine pressure gradient and the second wellhead pressure of the brine discharge well are obtained. The brine pressure gradient represents the rate of change of brine pressure as the depth of the discharge well increases. For instance, if the brine pressure gradient is a certain number of Pascals per meter, it means that for every additional meter of depth, the brine pressure will increase by this gradient value. The second wellhead pressure of the brine discharge well is the pressure value at the wellhead of the discharge well.

[0112] Multiplying the brine pressure gradient by the gas-liquid interface depth yields the second parameter, which is an intermediate value calculated using both the brine pressure gradient and the gas-liquid interface depth. This is because the brine pressure gradient reflects the pressure change per unit depth, while the gas-liquid interface depth represents a specific depth location. Multiplying the two together provides a relative change in brine pressure within the depth range from the wellhead to the gas-liquid interface, i.e., the second parameter.

[0113] The brine column pressure is calculated by summing the second parameter and the second wellhead pressure. This brine pressure at any depth in the discharge well is equal to the wellhead pressure plus the pressure change from the wellhead to that depth. In this scenario, the wellhead pressure of the discharge well is the second wellhead pressure, and the pressure change from the wellhead to the gas-liquid interface is the previously calculated second parameter. By summing these parameters, the brine column pressure at the gas-liquid interface can be obtained, reflecting the pressure exerted by the brine at that location in the discharge well.

[0114] The pressure balance between the gas column pressure and the brine liquid column pressure at the gas-liquid interface yields the following:

[0115] P(h=γ) b h+P w ′ w (14);

[0116] Where, γ b P represents the pressure gradient of the brine. w ′ w The pressure at the wellhead of the brine discharge well is expressed in Pa, and h is the depth of the gas-liquid interface.

[0117] In some examples, the determination of the gas-liquid interface depth function within the injection well based on the pressure balance method, the gas column pressure function, and the brine column pressure is calculated using the following formula:

[0118]

[0119] Among them, T w The wellhead temperature is K, which is a constant, and γ is γ. b P represents the pressure gradient of the brine. w ′ w The pressure at the second wellhead of the brine discharge well is h, which is the depth of the gas-liquid interface.

[0120] For example, by combining equations (13) and (14), equation (15) is obtained. By substituting the specific values ​​of the corresponding parameters, such as the first wellhead pressure, wellhead temperature, brine pressure gradient, and second wellhead pressure, into equation (15), the specific value of the gas-liquid interface depth h can be obtained. Compared with using professional instruments to measure the position of the gas-liquid interface on-site, this application can calculate the position of the gas-liquid interface using known physical parameters (gravitational acceleration, brine pressure gradient, and gas density under standard conditions) and basic monitoring data during the gas injection and brine discharge process (first wellhead pressure, second wellhead pressure, and surface temperature, etc.). The calculation method of this application is efficient and fast, and can achieve real-time monitoring, which greatly saves manpower and material resources. Moreover, this scheme considers the influence of gas compressibility and formation temperature changes on gas column pressure in the calculation of gas column pressure (equations (3)-(13)). These factors have a significant impact on the determination of the gas-liquid interface depth during the gas injection and brine discharge process.

[0121] like Figure 2 As shown, this application proposes a prediction system for the gas-liquid interface depth of gas injection and discharge. The system includes: a data acquisition module 21, a first calculation module 22, and a second calculation module 23.

[0122] The data acquisition module 21 is configured to acquire the gas density function in the injection well, the first wellhead pressure of the injection well, and the brine column pressure. The gas density function is used to characterize the relationship between the gas column pressure of the injection well and the formation temperature, and the brine column pressure is used to characterize the relationship between the brine pressure gradient and the second wellhead pressure of the brine discharge well.

[0123] The first calculation module 22 is configured to: determine a gas column pressure function based on the gas density function and the first wellhead pressure, wherein the gas column pressure function is used to characterize the correspondence between the gas density of the gas injection well, the first wellhead pressure and the gas-liquid interface depth;

[0124] The second calculation module 23 is configured to: determine the gas-liquid interface depth function in the injection well based on the pressure balance method, the gas column pressure, and the brine column pressure; input the first wellhead pressure, the wellhead temperature, the brine pressure gradient, and the second wellhead pressure into the gas-liquid interface depth function to obtain gas-liquid interface depth data.

[0125] The effects of applying the aforementioned method in the above system can be found in the description of the aforementioned method embodiments, and will not be repeated here.

[0126] like Figure 3 As shown, this application embodiment also provides an electronic device 300, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor. When the processor 320 executes the computer program 311, it implements the steps of any of the above-mentioned methods for predicting the depth of the gas-liquid interface of the gas injection and discharge brine.

[0127] Since the electronic device described in this embodiment is the device used to implement the gas-liquid interface depth prediction device for gas injection and discharge in this application embodiment, those skilled in the art can understand the specific implementation method and various variations of the electronic device in this embodiment based on the method described in this application embodiment. Therefore, how the electronic device implements the method in this application embodiment will not be described in detail here. Any device used by those skilled in the art to implement the method in this application embodiment is within the scope of protection of this application.

[0128] In practical implementation, when the computer program 311 is executed by the processor, it can achieve the following: Figure 1 Any of the corresponding implementation methods in the embodiments.

[0129] It should be noted that the descriptions of each embodiment in the above embodiments have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0130] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-readable program code.

[0131] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0132] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0133] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0134] This application also provides a computer program product, which includes computer software instructions that, when executed on a processing device, cause the processing device to execute the LDPC decoding method of a solid-state drive controller.

[0135] A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0136] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0137] In the several embodiments provided in this application, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or indirect coupling or communication connection between devices or units, and may be electrical, mechanical, or other forms.

[0138] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0139] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0140] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0141] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

[0142] Although preferred embodiments have been described in this specification, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this specification.

[0143] Obviously, those skilled in the art can make various modifications and variations to this specification without departing from its spirit and scope. Therefore, if such modifications and variations fall within the scope of the claims and their equivalents, this specification is also intended to include such modifications and variations.

Claims

1. A method for predicting the depth of the gas-liquid interface during gas injection and brine discharge, characterized in that, The method includes: The gas density function in the injection well, the first wellhead pressure of the injection well, and the brine column pressure are obtained. The gas density function is used to characterize the relationship between the gas column pressure of the injection well and the formation temperature, and the brine column pressure is used to characterize the relationship between the brine pressure gradient and the second wellhead pressure of the brine discharge well. Based on the gas density function and the first wellhead pressure, a gas column pressure function is determined. The gas column pressure function is used to characterize the correspondence between the gas density of the gas injection well, the first wellhead pressure, and the gas-liquid interface depth. Based on the pressure balance method, the gas column pressure function and the brine column pressure, the gas-liquid interface depth function in the injection well is determined. The first wellhead pressure, the wellhead temperature, the brine pressure gradient, and the second wellhead pressure are input into the gas-liquid interface depth function to obtain the gas-liquid interface depth. The step of determining the gas column pressure function based on the gas density function and the first wellhead pressure includes: Based on the gas density function and the first wellhead pressure, the initial gas column pressure function is determined; Based on differentiation, integration, and solution algorithms, the initial air column pressure function is transformed to obtain the air column pressure function; The gas-liquid interface depth function within the injection well, determined based on the pressure balance method, the gas column pressure function, and the brine column pressure, is calculated using the following formula: ; in, K represents the wellhead temperature, where K is a constant. The pressure gradient of the brine, The pressure at the second wellhead of the brine discharge well. It is the depth of the gas-liquid interface; According to the ideal gas law, the gas density at different depths is shown in the following equation; ; in, Let h be the gas density at a depth of h; The pressure of the air column at a depth of h; Let h be the formation temperature at a depth of h; The gas density under standard conditions; The Pa is 101325. It is 273.15 K; For depth.

2. The method for predicting the depth of the gas-liquid interface during gas injection and discharge according to claim 1, characterized in that, The initial gas column pressure function, determined based on the gas density function and the first wellhead pressure, is calculated using the following formula: ; in, It is the acceleration due to gravity. ρ is the first wellhead pressure of the gas injection well, and h is the gas-liquid interface depth. Let be the gas density at a gas-liquid interface depth of h.

3. The method for predicting the depth of the gas-liquid interface during gas injection and discharge according to claim 1, characterized in that, Based on differentiation, integration, and solution algorithms, the initial air column pressure function is transformed to obtain the air column pressure function, including: The first air column pressure function is obtained by differentiating the initial air column pressure function, and the first air column pressure function is calculated using the following formula: ; in, Let be the gas density at a gas-liquid interface depth of h. It is the acceleration due to gravity; Integrating the first air column pressure function yields the second air column pressure function, which is calculated using the following formula: ; in, K represents the wellhead temperature, where K is a constant. It is the depth of the gas-liquid interface; The third air column pressure function is obtained by solving the second air column pressure function, which is calculated using the following formula: ; Where C is the integration constant, K represents the wellhead temperature, where K is a constant. The air column pressure function is determined based on the third air column pressure function.

4. The method for predicting the depth of the gas-liquid interface during gas injection and discharge according to claim 1, characterized in that, The gas column pressure function, determined based on the gas density function and the first wellhead pressure, is calculated using the following formula: ; in, The first wellhead pressure of the gas injection well. K represents the wellhead temperature, and K is a constant.

5. The method for predicting the depth of the gas-liquid interface during gas injection and discharge according to claim 1, characterized in that, The pressure of the brine column is obtained in the following manner: Obtain the brine pressure gradient and the second wellhead pressure of the brine discharge well; The second parameter is obtained by multiplying the brine pressure gradient by the gas-liquid interface depth. The brine column pressure is obtained by summing the second parameter and the second wellhead pressure.

6. A prediction system for the depth of the gas-liquid interface during gas injection and brine discharge, characterized in that, The system includes: a data acquisition module, a first calculation module, and a second calculation module; The data acquisition module is configured to: acquire the gas density function in the injection well, the first wellhead pressure of the injection well, and the brine column pressure. The gas density function is used to characterize the relationship between the gas column pressure of the injection well and the formation temperature. The brine column pressure is used to characterize the relationship between the brine pressure gradient and the second wellhead pressure of the brine discharge well. According to the ideal gas law, the gas density at different depths is shown in the following formula. ;in, Let h be the gas density at a depth of h; The pressure of the air column at a depth of h; Let h be the formation temperature at a depth of h; The gas density under standard conditions; The Pa is 101325. It is 273.15 K; For depth; The first calculation module is configured to: determine a gas column pressure function based on the gas density function and the first wellhead pressure, wherein the gas column pressure function is used to characterize the correspondence between the gas density of the gas injection well, the first wellhead pressure, and the gas-liquid interface depth; the determination of the gas column pressure function based on the gas density function and the first wellhead pressure includes: determining an initial gas column pressure function based on the gas density function and the first wellhead pressure; and transforming the initial gas column pressure function using a differentiation algorithm, an integration algorithm, and a solution algorithm to obtain the gas column pressure function. The second calculation module is configured to: determine the gas-liquid interface depth function within the injection well based on the pressure balance method, the gas column pressure, and the brine column pressure; input the first wellhead pressure, the wellhead temperature, the brine pressure gradient, and the second wellhead pressure into the gas-liquid interface depth function to obtain gas-liquid interface depth data; the determination of the gas-liquid interface depth function within the injection well based on the pressure balance method, the gas column pressure function, and the brine column pressure is performed using the following formula: ;in, K represents the wellhead temperature, where K is a constant. The pressure gradient of the brine, The pressure at the second wellhead of the brine discharge well. It refers to the depth of the gas-liquid interface.

7. An electronic device, comprising: The memory and processor are characterized in that the processor is used to execute a computer program stored in the memory to implement the steps of a method for predicting the depth of the gas-liquid interface of gas injection and discharge as described in any one of claims 1-5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the method for predicting the depth of the gas-liquid interface of the brine injection and discharge process as described in any one of claims 1-5.