Calculation method for diffusion mass transfer of CO2 in the presence of oil and water

By dividing the diffusion stages of CO2 in the oil and water phases, mathematical models and experimental methods were established to obtain the diffusion coefficient of CO2, which solved the calculation problem of CO2 injection rate and injection amount in CO2 energy-enhanced fracturing, and improved the expansion and recovery of crude oil. Yield.

CN113552024BActive Publication Date: 2024-09-24CHINA PETROLEUM & CHEMICAL CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110707061.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-24
Publication Date
2024-09-24
Estimated Expiration
2041-06-24

AI Technical Summary

Technical Problem

The existing technology fails to effectively solve the diffusion and mass transfer problem of CO2 in the presence of oil and water. Especially in the CO2 energy-enhanced fracturing technology in tight oil reservoirs, the injection rate and amount of CO2 cannot be accurately calculated, which affects the Expansion rate and recovery of crude oil.

Method used

By dividing the diffusion stages of CO2 in the oil and water phases, a mathematical model is established, a diffusion coefficient relationship is established according to the law of conservation of matter, and mathematical simulations and experiments are performed to obtain the effective diffusion coefficient of CO2 in the oil phase and water phase, which is used to determine CO2 injection rate and evaluation of energizing effect.

Benefits of technology

It achieves accurate diffusion and mass transfer calculations of CO2 in the presence of oil and water, improves the effect of CO2 energy-enhanced fracturing, enhances the expansion and recovery of crude oil, and provides reliable parameter guidance for on-site program design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113552024B
    Figure CN113552024B
Patent Text Reader

Abstract

The present invention provides a calculation method for diffusion and mass transfer of CO2 in the presence of oil and water, comprising: step 1, dividing the diffusion stages of CO2 in the oil-water two-phase; step 2, establishing a mathematical model of different diffusion stages of CO2 in the oil-water two-phase; step 3, establishing a diffusion coefficient relationship of CO2 in the oil-water two-phase according to the law of conservation of matter; step 4, performing mathematical simulation to obtain CO2 concentration distribution and pressure drop curve; step 5, establishing a pressure drop model of a microscopic diffusion process; step 6, performing a CO2 diffusion experiment in the oil-water phase system; step 7, calculating the effective diffusion coefficient D of CO2 in the oil phase o and the effective diffusion coefficient of the aqueous phase D w The effective diffusion coefficient of carbon dioxide in saturated crude oil cores obtained by this calculation method can more accurately reflect the actual diffusion process, and can more realistically simulate the underground diffusion situation, providing guidance for on-site scheme design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of oilfield development, and in particular to a calculation method for diffusion and mass transfer of CO2 in the presence of oil and water. Background Art

[0002] Tight oil reservoirs have poor physical properties, complex pore structures, widely distributed nano-scale pores, strong heterogeneity, poor fluid availability, and low natural production capacity. Improving recovery is the primary problem facing tight oil development. However, conventional hydraulic fracturing is difficult to achieve economical and effective development. Studies have shown that CO2 energy-enhanced fracturing can achieve better viscosity reduction, expansion and miscibility while achieving fracturing to transform reservoir physical properties, thereby effectively replenishing energy and improving tight oil recovery.

[0003] There are still few domestic studies on CO2 energy-enhanced fracturing technology in tight oil reservoirs. CO2 energy-enhanced fracturing technology in tight oil reservoirs has a good effect on improving reservoir characteristics, such as wettability and energy replenishment, while achieving reservoir transformation. Studies have shown that after CO2 energy-enhanced fracturing, the wettability of water-wet reservoirs is improved from hydrophilic to strongly hydrophilic, which is conducive to the flow of crude oil in porous media and the start-up of residual oil, and can reduce displacement pressure, improve injection efficiency, improve displacement effect, and increase recovery. In addition, due to the extraction effect of CO2 on light components of crude oil, the volume of crude oil expands greatly after CO2 injection, the expansion coefficient and volume coefficient increase significantly, the bubble point pressure of crude oil increases, and CO2 dissolves in crude oil, which will greatly reduce the viscosity and density of tight crude oil.

[0004] After CO2 enters the formation, it interacts with crude oil. Limited by the physical properties of low porosity and low permeability of the reservoir, CO2 reacts with the formation crude oil through diffusion and mass transfer after being injected into the formation. However, most of the current diffusion research ignores the research on CO2 in the water phase and mainly discusses the diffusion in the oil phase. In fact, water in the reservoir usually exists in the pore throats with crude oil in the form of bound water. The presence of water phase will have a great impact on diffusion and scheme design, such as affecting the injection rate and injection volume design of CO2 and the expansion rate of crude oil. Therefore, the diffusion of water phase in the formation fluid cannot be ignored and has a significant impact.

[0005] In the Chinese patent application with application number: CN201410777991.4, a method for measuring the diffusion coefficient and equilibrium concentration of CO2 during the diffusion process from the water phase to the oil phase is involved. The water phase at the bottom of the U-shaped tube is saturated with CO2 to form saturated carbonated water. CO2 is injected into the a end of the U-shaped tube and crude oil is injected into the b end. Since the CO2 in the water phase diffuses into the oil phase, the CO2 in the carbonated water is no longer saturated, so that the gas phase CO2 is dissolved in the carbonated water. By measuring the pressure change caused by the diffusion of CO2 into the saturated carbonated water, the diffusion coefficient of CO2 when diffusing from the water phase to the oil phase and the equilibrium concentration of CO2 in the crude oil after equilibrium can be calculated by combining the pressure drop formula.

[0006] In the Chinese patent application with application number: CN201410777991.4, a method for measuring the diffusion coefficient and equilibrium concentration of CO2 during the diffusion process from the water phase to the oil phase is involved. The water phase at the bottom of the U-shaped tube is saturated with CO2 to form saturated carbonated water. CO2 is injected into the a end of the U-shaped tube and crude oil is injected into the b end. Since the CO2 in the water phase diffuses into the oil phase, the CO2 in the carbonated water is no longer saturated, so that the gas phase CO2 is dissolved in the carbonated water. By measuring the pressure change caused by the diffusion of CO2 into the saturated carbonated water, the diffusion coefficient of CO2 when diffusing from the water phase to the oil phase and the equilibrium concentration of CO2 in the crude oil after equilibrium can be calculated by combining the pressure drop formula.

[0007] In the Chinese patent application with application number: CN201710267211.5, a method for measuring the diffusion process and diffusion coefficient of CO2 between oil and water phases is involved. The method combines the single liquid phase pressure drop method with the two liquid phase extended concentration distribution model. According to the diffusion coefficient of CO2 in the single liquid phase measured by the pressure drop method, the concentration distribution of CO2 in the two liquid phases can be directly obtained through the extended concentration distribution model, and then the diffusion coefficient of CO2 between the oil and water phases can be obtained.

[0008] The above existing technologies are significantly different from the present invention and fail to solve the technical problem we want to solve. Therefore, we have invented a new calculation method for the diffusion and mass transfer of CO2 in the presence of oil and water. Summary of the invention

[0009] The purpose of the present invention is to provide a calculation method for the diffusion and mass transfer of CO2 in the presence of oil and water, which can be used to determine the timing of well soaking in CO2 energized fracturing and evaluate the effect of energization.

[0010] The object of the present invention can be achieved by the following technical measures: a calculation method for the diffusion mass transfer of CO2 in the presence of oil and water, the calculation method for the diffusion mass transfer of CO2 in the presence of oil and water includes:

[0011] Step 1, dividing the diffusion stages of CO2 in oil and water phases;

[0012] Step 2, establish a mathematical model of different diffusion stages of CO2 diffusion in oil and water phases;

[0013] Step 3, according to the law of conservation of matter, establish the diffusion coefficient relationship of CO2 in oil and water phases;

[0014] Step 4, performing mathematical simulation to obtain CO2 concentration distribution and pressure drop curve;

[0015] Step 5, establishing a pressure drop model for the microscopic diffusion process;

[0016] Step 6, conducting a CO2 diffusion experiment in an oil-water phase system;

[0017] Step 7, the pressure drop curve obtained by the experiment is fitted with the simulation curve, with a high degree of fit, and then the relevant experimental parameters are substituted into the numerical simulation model to obtain the effective diffusion coefficient D of CO2 in the oil phase. o and the effective diffusion coefficient of the aqueous phase D w .

[0018] The purpose of the present invention can also be achieved by the following technical measures:

[0019] In step 1, after CO2 is injected from the bottom of the well, it first diffuses in the oil phase occupying the center of the pore throat, so this diffusion stage is defined as the first diffusion stage; after the diffusion front reaches the boundary between oil and bound water, CO2 diffuses into the water phase through the oil phase. At this time, CO2 diffuses in both the oil phase and the water phase, so this diffusion stage is defined as the second diffusion stage; in the first diffusion stage, CO2 diffuses only in the oil phase, and in the second diffusion stage, CO2 diffuses in both the oil phase and the water phase.

[0020] In step 2, after the diffusion stages are divided, the mathematical models of the different diffusion stages of CO2 in the oil-water two-phase are established under the condition of considering the expansion of crude oil, and the mathematical model of CO2 diffusion in the oil phase in the first diffusion stage is obtained as follows:

[0021]

[0022] where c o is the concentration of CO2 in the oil phase, mol / m 3 ;D o is the diffusion coefficient of CO2 in the oil phase, m 2 / s; t0 is the time when the CO2 diffusion front reaches the oil-water interface, t; L o1 (t) is the oil-gas interface position function considering the crude oil expansion effect during the first diffusion stage, m; c eq is the equilibrium concentration of CO2 at the oil-gas interface, mol / m 3 ; z is the position.

[0023] In step 2, the mathematical models of CO2 diffusion in the oil and water phases in the second diffusion stage are:

[0024]

[0025] where c o is the concentration of CO2 in the oil phase, mol / m 3 ;c w is the concentration of CO2 in the water phase, mol / m 3 ;D o is the diffusion coefficient of CO2 in the oil phase, m 2 / s;D w is the diffusion coefficient of CO2 in water phase, m 2 / s; t0 is the time when the CO2 diffusion front reaches the oil-water interface, t; c eq is the equilibrium concentration of CO2 at the oil-gas interface, mol / m 3 ; z is the position; L o2 (t) - oil-gas interface position function in the second diffusion stage; T - time variable in the second diffusion stage; f(z) is the concentration distribution function of CO2 in the oil phase at the end of the first diffusion stage (t = t0); k pc is the oil-water diffusion concentration distribution coefficient; c z is the concentration of CO2 diffused to a certain location in the oil phase, mol / m 3 .

[0026] In step 3, according to the law of conservation of matter, the diffusion coefficient of CO2 in oil and water phases is established as follows:

[0027]

[0028] where c o is the concentration of CO2 in the oil phase, mol / m 3 ;c w is the concentration of CO2 in the water phase, mol / m 3 ;D o is the diffusion coefficient of CO2 in the oil phase, m 2 / s;D w is the diffusion coefficient of CO2 in water phase, m 2 / s; z is the diffusion of CO2 to a certain position in the oil phase.

[0029] So far, a mathematical model of CO2 diffusion in the oil-water two-phase system in the diffusion stage has been established.

[0030] In step 4, the mathematical model established above is solved using a moving grid numerical simulation method to perform mathematical simulation to obtain the CO2 concentration distribution and the pressure drop curve.

[0031] In step 5, the PR gas state equation is used to characterize the pressure change of CO2 in the oil-water two-phase diffusion, and the pressure drop model of the microscopic diffusion process is obtained as follows:

[0032]

[0033] in:

[0034]

[0035] Where P is pressure, MPa; P o is the initial experimental pressure, MPa, R is Avogadro's constant; ΔV is the volume change of the system during the CO2 diffusion process; T is the temperature, C°; α is the α function determined by the lowering temperature Tr and the eccentricity factor ω; ρ CO2 is the density of CO2, kg / m 3 ;M CO2 is the molar mass of CO2, kg / mol; where c o is the concentration of CO2 in the oil phase, mol / m 3 ; z is the position; L o (t) - oil-gas interface position function in the first diffusion stage; b is a constant.

[0036] In step 6, formation water and crude oil samples are taken, and a CO2 diffusion experiment in an oil-water phase system under formation conditions is conducted in the laboratory.

[0037] In step 7, the pressure drop curve obtained by the experiment is fitted using the above model, and the effective diffusion coefficient D of CO2 in the oil phase is obtained by combining the experimental and geological parameters. o and the effective diffusion coefficient of the aqueous phase D w , the specific calculation process is as follows:

[0038] The pressure drop curve obtained by the experiment is fitted with the simulation curve, which has a high degree of fitting. Then the relevant experimental parameters are substituted into the numerical simulation model to obtain the effective diffusion coefficient D of CO2 in the oil phase. o and the effective diffusion coefficient of the aqueous phase D w The fitting result curve is as follows Figure 8 , substitute the experimental parameters into the model to obtain D o , D w The process is as Figure 7 .

[0039] The calculation method for the diffusion and mass transfer of CO2 in the presence of oil and water in the present invention takes into account the expansion of crude oil volume caused by the dissolution of carbon dioxide in crude oil and the influence of porous media on the diffusion process. The obtained effective diffusion coefficient of carbon dioxide in saturated crude oil core can more accurately reflect the actual diffusion process, and can more realistically simulate the underground diffusion situation, providing guidance for field scheme design; the presence of water phase will have a greater impact on diffusion and scheme design. The present invention takes into account the calculation method for the diffusion and mass transfer of CO2 in the presence of oil and water, which can be used to determine the injection rate and injection amount of CO2; the calculated parameters mainly include determining the diffusion coefficient of CO2 in the oil phase and the water phase, the expansion of crude oil caused by the diffusion of CO2, the amount of injected CO2, etc. It can be used to determine the timing of well soaking in CO2 energy fracturing, evaluate the effect of energy enhancement, etc. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A schematic diagram of a microscopic physical model of CO2 diffusion in a tight reservoir containing oil and water phases in a specific embodiment of the present invention;

[0041] Figure 2 A schematic diagram of using a moving grid numerical simulation method to track the change of the oil-gas interface over time in a specific embodiment of the present invention;

[0042] Figure 3 A schematic diagram of an experimental device for a CO2 diffusion experiment in an oil-water system designed in a specific embodiment of the present invention;

[0043] Figure 4 It is a schematic diagram of a pressure drop curve under the condition of an oil-water ratio of 1:1 in a specific embodiment 1 of the present invention;

[0044] Figure 5 A schematic diagram of the experimental process of a CO2 diffusion experiment in an oil-water system designed in a specific embodiment of the present invention;

[0045] Figure 6 A flow chart of a specific embodiment of the method for calculating the diffusion mass transfer of CO2 in the presence of oil and water according to the present invention;

[0046] Figure 7 In a specific embodiment of the present invention, the experimental parameters are substituted into the model to obtain D o , D w Process diagram;

[0047] Figure 8 is the effective diffusion coefficient D of CO2 in the oil phase in a specific embodiment of the present invention o and the effective diffusion coefficient of the aqueous phase D w The fitting result curve diagram of

[0048] Fig. 9 is a pressure drop curve diagram of a diffusion device in a specific embodiment 2 of the present invention;

[0049] Fig.10 It is a pressure drop curve diagram of the diffusion device in a specific embodiment 3 of the present invention. DETAILED DESCRIPTION

[0050] In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings.

[0051] like Figure 6 Show, Figure 6 A flow chart of a calculation method for the diffusion mass transfer of CO2 in the presence of oil and water according to the present invention.

[0052] Step 101, when CO2 diffuses in the oil-water phase, the boundary conditions and initial conditions of diffusion in the oil phase and the water phase will change, so the diffusion stages of CO2 in the oil-water phase should be divided; after CO2 is injected from the bottom of the well, it first diffuses in the oil phase occupying the center of the pore throat, so this diffusion stage is defined as the first diffusion stage. After the diffusion front reaches the boundary between oil and bound water, CO2 diffuses from the oil phase to the water phase. At this time, CO2 diffuses in both the oil phase and the water phase, so this diffusion stage is defined as the second diffusion stage. In the first diffusion stage, CO2 diffuses only in the oil phase, and in the second diffusion stage, CO2 diffuses in both the oil phase and the water phase. The initial conditions and boundary conditions of the first diffusion stage and the second diffusion stage have changed significantly, which will have a significant impact on the diffusion results and need to be discussed separately.

[0053] Step 102, after the diffusion stages are divided, a mathematical model of different diffusion stages of CO2 diffusion in oil-water two phases is established under the condition of considering the expansion of crude oil, and the mathematical model of CO2 diffusion in the oil phase in the first diffusion stage is obtained as follows:

[0054]

[0055] where c o is the concentration of CO2 in the oil phase, mol / m 3 ;D o is the diffusion coefficient of CO2 in the oil phase, m 2 / s; t0 is the time when the CO2 diffusion front reaches the oil-water interface, t; L o1 (t) is the oil-gas interface position function considering the crude oil expansion effect during the first diffusion stage, m; c eq is the equilibrium concentration of CO2 at the oil-gas interface, mol / m 3 ; z is the position.

[0056] In step 102, the mathematical models of CO2 diffusion in the oil and water phases in the second diffusion stage are:

[0057]

[0058]

[0059] Internal boundary conditions:

[0060] External boundary conditions:

[0061] where c o is the concentration of CO2 in the oil phase, mol / m 3 ;c w is the concentration of CO2 in the water phase, mol / m 3 ;D o is the diffusion coefficient of CO2 in the oil phase, m 2 / s;D w is the diffusion coefficient of CO2 in water phase, m 2 / s; t0 is the time when the CO2 diffusion front reaches the oil-water interface, t; c eq is the equilibrium concentration of CO2 at the oil-gas interface, mol / m 3 ; z is the position; L o2 (t) - oil-gas interface position function in the second diffusion stage; T - time variable in the second diffusion stage; f(z) is the concentration distribution function of CO2 in the oil phase at the end of the first diffusion stage (t = t0); k pc is the oil-water diffusion concentration distribution coefficient; c z is the concentration of CO2 diffused to a certain location in the oil phase, mol / m 3 .

[0062] Step 103, according to the law of conservation of matter, establish the diffusion coefficient relationship of CO2 in oil and water phases as follows:

[0063]

[0064] where c o is the concentration of CO2 in the oil phase, mol / m 3 ;c w is the concentration of CO2 in the water phase, mol / m 3 ;D o is the diffusion coefficient of CO2 in the oil phase, m 2 / s;D w is the diffusion coefficient of CO2 in water phase, m 2 / s; z is the diffusion of CO2 to a certain position in the oil phase.

[0065] So far, a mathematical model for the diffusion of CO2 in an oil-water two-phase system has been established in the diffusion stage;

[0066] Step 104, using a moving grid numerical simulation method to solve the mathematical model established above, so as to perform mathematical simulation to obtain a CO2 concentration distribution and a pressure drop curve;

[0067] Step 105, using the PR gas state equation to characterize the pressure change of CO2 in the oil-water two-phase diffusion, the pressure drop model of the microscopic diffusion process is obtained as follows:

[0068]

[0069] in:

[0070]

[0071] Where P is pressure, MPa; P o is the initial experimental pressure, MPa, R is Avogadro's constant; ΔV is the volume change of the system during the CO2 diffusion process; T is the temperature, C°; α is the α function determined by the lowering temperature Tr and the eccentricity factor ω; ρ CO2 is the density of CO2, kg / m 3 ;M CO2 is the molar mass of CO2, kg / mol; where c o is the concentration of CO2 in the oil phase, mol / m 3 ; z is the position; L o (t) - oil-gas interface position function in the first diffusion stage; b is a constant.

[0072] Step 106, taking formation water and crude oil samples, and conducting a CO2 diffusion experiment in an oil-water phase system under formation conditions (temperature and pressure) in the laboratory. The design structure diagram of the experimental device is as follows: Figure 3 As shown;

[0073] Step 107, using the above model to fit the pressure drop curve obtained from the experiment, combining the experimental and geological parameters, respectively derive the effective diffusion coefficient D of CO2 in the oil phase. o and the effective diffusion coefficient of the aqueous phase D w .

[0074] The following are several specific embodiments of the present invention.

[0075] Embodiment 1:

[0076] 1. Construction of microscopic physical model

[0077] Under tight oil reservoir conditions, rocks are generally hydrophilic, formation water usually occupies the surface of matrix particles in annular form and exists in the form of bound water, and crude oil usually occupies the center of the pore throat in the form of droplets and usually exists in the form of movable oil. During CO2 energy fracturing, after CO2 is injected, it transfers mass from the bottom of the well to the far well area. Limited by the geological characteristics of low porosity and low permeability of the reservoir itself, CO2 spreads by diffusion mass transfer after injection. From a microscopic analysis, during the CO2 diffusion process, CO2 first diffuses into the oil phase occupying the central position of the pore throat, and then diffuses into the bound water through the oil phase. Therefore, after CO2 is injected from the bottom of the well, it first diffuses in the pure oil phase, and then continues to diffuse into the water phase after the diffusion front reaches the boundary between the oil phase and the comfortable water. At this time, CO2 diffuses in both the oil phase and the water phase. By physically modeling this process, the following physical model is obtained to characterize the diffusion process.

[0078] from Figure 1 It can be seen from the physical model that after CO2 is injected from the bottom of the well, it first diffuses in the oil phase occupying the center of the pore throat, so this diffusion stage is defined as the first diffusion stage. After the diffusion front reaches the boundary between oil and bound water, CO2 diffuses from the oil phase to the water phase. At this time, CO2 diffuses in both the oil phase and the water phase, so this diffusion stage is defined as the second diffusion stage. In the first diffusion stage, CO2 diffuses only in the oil phase, and in the second diffusion stage, CO2 diffuses in both the oil phase and the water phase. The initial conditions and boundary conditions of the first and second diffusion stages have changed significantly, which will have a significant impact on the diffusion results and need to be discussed separately.

[0079] 2. Establishment of mathematical model

[0080] In order to simplify the modeling process of CO2 diffusion in oil-water two-phase, the following simplified conditions are proposed:

[0081] (1) The temperature of the system remains constant during the diffusion process;

[0082] (2) There is no mass transfer resistance between CO2 and the oil phase at the interface, that is, it is assumed that CO2 is always in a diffusion equilibrium condition at the oil-gas interface, and it is assumed that the concentration of CO2 at the interface under this equilibrium condition is the equilibrium concentration c eq ;

[0083] (3) The diffusion coefficient of CO2 in the oil phase is D o , the diffusion coefficient in water is D w , and D o and D w It is a constant value during the diffusion process;

[0084] (4) Ignore the convective mass transfer in the system. Due to the concentration difference between the oil phase and the water phase, and the oil phase is above the water phase, the oil and water phases will not convect under the action of the concentration difference at the initial moment. As the diffusion proceeds, CO2 dissolves in the oil phase and the water phase, thereby reducing the density of the oil phase and the water phase. However, the solubility of CO2 in the oil phase is much greater than that in the water phase. Therefore, the density of the water phase will always be greater than the density of the oil phase.

[0085] (5) No mass transfer and diffusion occurs between the oil phase and the water phase;

[0086] (6) Consider the expansion of the oil phase due to diffusion, while ignoring the expansion of the water phase;

[0087] (7) Assume that the water phase is incompressible. When the oil phase expands under the action of diffusion, the volume of the oil phase increases. Assuming that the water phase is incompressible, the expansion of crude oil will cause the oil-gas interface to move toward the CO2 gas cap. The expansion of crude oil can be indicated by characterizing the movement of the CO2-crude oil interface.

[0088] The first diffusion stage is defined as the process in which CO2 diffuses only in the oil phase before the CO2 diffusion front reaches the oil-gas interface. The characterization of the diffusion process of CO2 in crude oil in the first diffusion stage can be derived from Fick's law. In addition, the coordinate position of the oil-gas interface at the initial moment is z t During the diffusion process, the position of the oil-gas interface changes with time. In order to characterize the change process of the oil-gas interface position, the position of the oil-gas interface in the first diffusion stage is written as L o1 (t), therefore, the diffusion of CO2 in the oil phase in the first diffusion stage can be expressed by the following formula:

[0089]

[0090] where c o is the concentration of CO2 in the oil phase, mol / m 3 ;D o is the diffusion coefficient of CO2 in the oil phase, m 2 / s; t0 is the time when the CO2 diffusion front reaches the oil-water interface, t; L o1 (t) is the oil-gas interface position function considering the crude oil expansion effect during the first diffusion stage, m.

[0091] In order to solve equation (1), two boundary conditions and one initial condition are required. At the initial moment of the first diffusion stage, there is no CO2 in the oil phase, so the initial condition of the gas is 0:

[0092] c o (z,0)=0,0 <z<L o (t) (2)

[0093] At the oil-gas interface, as stated in the assumptions, the concentration of CO2 at the interface is an equilibrium concentration. This boundary condition can be expressed as:

[0094] c o (L o (t),t)=c eq ,0 <t<t0 (3)

[0095] The bottom is a closed boundary, and no CO2 diffuses through the bottom interface, so the boundary condition here is a zero diffusion flux boundary condition:

[0096]

[0097] It is worth noting that the setting of the outer boundary condition, i.e., formula (4) regards the diffusion of CO2 in the oil phase in the first diffusion stage as the diffusion of CO2 in the entire system in order to make the boundary condition more consistent with the physical process. Before the CO2 diffusion front reaches the oil-water interface, the concentration of CO2 at the oil-water interface is 0. However, setting the concentration of CO2 at the oil-water interface to 0 will result in CO2 never being able to diffuse to the interface. Therefore, the outer boundary condition is set to the diffusion in the entire liquid phase system, and only the diffusion in the oil phase is studied.

[0098] When the CO2 diffusion front reaches the oil-water interface, CO2 diffuses in both the oil phase and the water phase. The diffusion control equation of CO2 in the oil phase in the second diffusion stage can be derived from Fick's law. However, the time constraint interval and space constraint interval of the diffusion process are changed at this time, which can be obtained from the following equation:

[0099]

[0100] Where L o2 (t) is the oil-gas interface position function considering the crude oil expansion effect during the second diffusion stage, m. T is the time variable of the second diffusion stage, T = t-t0, s.

[0101] During the second diffusion stage, the initial condition of CO2 in the oil phase changes from 0 concentration to the concentration at the end of the first diffusion stage (i.e., at t = t0), that is:

[0102] c o (z,T=0)=f(z),z0 <z<L o (t) (6)

[0103] Where f(z) is the concentration distribution function of CO2 in the oil phase at the end of the first diffusion stage (i.e., at time t = t0), which can be obtained by equations (1)-(4), mol / m 3 .

[0104] In the second diffusion stage, it is assumed that the concentration of CO2 in the oil phase at the oil-water interface is a variable c that increases with time. z , expressed as an equation:

[0105] c o (z0,T)=c z ,T>0 (7)

[0106] The concentration of CO2 at the oil-gas interface during the second diffusion stage is the same as that in the first diffusion stage, that is, the concentration of CO2 at the oil-gas interface is always equal to the equilibrium concentration c eq :

[0107] c o (L o2 (t),T)=c eq ,T=t-t0>0 (8)

[0108] In the first diffusion stage and the second diffusion stage, the oil-gas interface movement rate can be expressed by the following formula:

[0109]

[0110] where ρ CO2 is the density of CO2, kg / m 3 ;M CO2 is the molar mass of CO2, kg / mol; It is the rate of change of CO2 molecules diffusing into the oil phase through the oil-gas interface.

[0111] In the second diffusion stage, the diffusion front has reached the oil-water interface, and CO2 begins to diffuse in the water phase. The governing equation for the diffusion of CO2 in the water phase can be derived from Fick's law:

[0112]

[0113] Where D w is the diffusion coefficient of CO2 in water phase, m 2 / s;c w (z,t) is the concentration distribution function of CO2 in the water phase, mol / m 3 ;

[0114] At the initial moment of the second diffusion stage, there is no CO2 in the water phase, so the initial condition can be expressed as:

[0115] c w (z,T)| T=0 =0 (11)

[0116] The relationship between the concentration of CO2 in the water phase at the oil-water interface and the concentration of CO2 in the oil phase at the oil-water interface is:

[0117]

[0118] where k pc k is the oil-water partition coefficient, which is defined as the ratio of the concentration of CO2 in the water phase at the oil-water interface to the concentration of CO2 in the oil phase at the oil-water interface. The oil-water partition coefficient is due to the difference in the solubility of CO2 in the oil phase and the water phase, and the greater the solubility difference, the greater the k. pc The larger the value, the greater the pc In the presence of, the concentration of CO2 will show a concentration jump at the oil-water interface.

[0119] Finally, at the bottom of the container (i.e. x = 0), no CO2 diffuses through the bottom of the container, i.e. the CO2 flux there is 0:

[0120]

[0121] At the oil-water interface, there is a law of conservation of matter. The diffusion flux of CO2 leaving the oil phase through the oil-water interface should be equal to the diffusion flux of CO2 entering the water phase through the oil-water interface. This law of conservation of matter can be expressed as follows:

[0122]

[0123] So far, a diffusion model of CO2 in water phase and oil phase at different diffusion stages of the CO2 diffusion process in the oil-water liquid system has been established. Solving the above model can yield the concentration distribution of CO2 in the oil phase and water phase and the expansion of the oil phase.

[0124] 3. Solution method and establishment of numerical model

[0125] The diffusion model established above includes the problem of moving interface, which cannot be solved by analytical solution, so it can only be solved by numerical solution. Therefore, the moving grid numerical simulation method is used to solve the above model. In the moving grid numerical simulation method, when the spatial grid is differentiated, the number of spatial grids remains unchanged, but in the process of solving each time grid, the step size of the spatial grid changes with time to track the position movement of the oil and gas interface. The schematic diagram of using the moving grid numerical simulation method to track the change of the oil and gas interface over time is as follows Figure 2 This method is used to study the concentration distribution of CO2 in the oil phase and the water phase and the expansion effect of crude oil in the first and second diffusion stages.

[0126] In the first diffusion stage, the diffusion equation of CO2 in the oil phase uses the central difference format to perform grid difference on the spatial function, and the first-order ordinary differential equation about the diffusion time can be obtained:

[0127]

[0128] The boundary condition at the bottom of the PVT diffusion chamber in the first diffusion stage (Equation (3)) can be obtained using the three-point forward difference format:

[0129]

[0130] The discretization of the boundary conditions of the oil-gas interface is obtained:

[0131] c N+1 (t) = c eq =constant (17)

[0132] The initial conditions can be expressed as:

[0133] c(t=0)=0 (18)

[0134] The oil-gas interface movement equation (Equation (9)) can be obtained as follows using the central difference format:

[0135]

[0136] The grid step size can be defined as a function of time as follows:

[0137]

[0138] As shown in formula (20), as the crude oil continues to expand during the diffusion process, the oil-gas interface position L o1 (t) continues to increase, while the number of grids N remains unchanged, so the grid step size increases with time. After differentially meshing the diffusion differential equations, boundary conditions and initial conditions of CO2 in the oil phase in the first diffusion stage, the Runge-Kutta method is used to solve the above equations to obtain the concentration distribution of CO2 in the oil phase and the expansion rate of the oil phase in the first diffusion stage, and the time t0 when the CO2 diffusion front reaches the oil-water interface and the concentration distribution f(z) of CO2 in the oil phase at t0 are obtained, and they are substituted into the calculation of the second diffusion stage.

[0139] In the second diffusion stage, CO2 diffuses in both the oil phase and the water phase. CO2 has concentration distribution in both the oil phase and the water phase. Therefore, it is necessary to solve the diffusion process in the oil phase and the water phase at the same time. Similarly, the difference format of the diffusion equation of CO2 in the oil phase can be written as:

[0140]

[0141] The CO2 at the oil-gas interface is always equal to the equilibrium concentration c eq , its difference format can be written as:

[0142] c N+1 (T) = c eq =constant (22)

[0143] The initial condition of CO2 concentration in the oil phase in the second diffusion stage can be written as:

[0144] c(z,T=0)=c(z,t=t0)=c i (t0),i=1:N+1 (23)

[0145] where c i (t0) refers to the CO2 concentration value of the i-th grid node at time t0, mol / m 3 .

[0146] The difference format of the CO2 concentration at the oil-water interface can be expressed as follows:

[0147]

[0148] Similarly, the difference format of the migration rate of the oil-gas interface in the second diffusion stage can be expressed as:

[0149]

[0150] Finally, as mentioned above, the Runge-Kutta method is used to solve the equations for the diffusion of CO2 in the oil phase in the second diffusion stage, and the concentration distribution of CO2 in the oil phase and the movement of the oil-gas interface caused by expansion in the second diffusion stage are obtained. At the same time, the accuracy of the numerical solution can be achieved by increasing the number of grids and the number of grids N.

[0151] 4. Establishment of pressure drop model

[0152] After CO2 is injected into the formation, the wellbore begins to be shutoff. During the shutoff process, the CO2 at the bottom of the well will gradually diffuse into the oil and water, causing the CO2 pressure in the near-well area to gradually decrease. From a microscopic analysis, it can be characterized by the PR gas state equation of CO2 in the gas cap zone.

[0153]

[0154] a=a c α(T r ,ω) (26a)

[0155]

[0156]

[0157] Among them, P and P c are pressure and critical pressure, R is Avogadro's constant, V is volume, T and T c are temperature and critical temperature respectively, and α(Tr,ω) is the α function determined by the reduced temperature Tr and the eccentricity factor ω.

[0158] It can be seen from formula (26) that the pressure of CO2 gas is closely related to its volume, and the change of its volume can be characterized by the rate of interface movement. That is, formula (9) of the first diffusion stage and the second diffusion stage are combined with formula (26) to obtain the pressure drop model of the microscopic diffusion process:

[0159]

[0160] in:

[0161]

[0162] 5. Parameter solution steps

[0163] (1) Take formation water and crude oil samples and conduct a CO2 diffusion experiment in the oil-water phase system under formation conditions (temperature and pressure) in the laboratory. The design structure diagram of the experimental device is as follows Figure 3 As shown;

[0164] (2) The above model was used to fit the pressure drop curve obtained from the experiment, and the effective diffusion coefficient D of CO2 in the oil phase was obtained by combining the experimental and geological parameters. o and the effective diffusion coefficient of the aqueous phase D w ;

[0165] 6. Experimental steps, such as Figure 5 Shown

[0166] (1) System tightness check: Before the experiment, close all valves, open valves 2, 3, and 9, inject CO2 into the diffusion chamber, then close valves 2, 3, and 9, turn on the computer pressure data acquisition system to record the pressure of the diffusion chamber, and monitor the pressure change of the diffusion chamber within 2 hours. If the pressure does not change, the system is tight and subsequent experiments can be carried out;

[0167] (2) Water phase injection: Open valves 5, 6, and 7, and use a horizontal flow pump to inject the water in the upper part of the water injection intermediate container into the lower part of the diffusion chamber. The injection volume is monitored by the horizontal flow pump. After the specified volume of water phase is injected, close valves 5, 6, and 7;

[0168] (3) Oil phase injection: Open valves 5, 4, and 8, and use a horizontal flow pump to inject the oil in the upper part of the oil injection intermediate container into the middle part of the diffusion chamber. The injection volume is monitored by the horizontal flow pump. After the specified volume of oil phase is injected, close valves 5, 4, and 8;

[0169] (4) Experimental temperature adjustment: Open valves 1 and 2 to introduce CO2 into the CO2 high-pressure gas tank, close valves 1 and 2, and turn on the constant temperature system to make the temperature of the CO2 gas and the oil phase and water phase in the diffusion chamber reach the experimental temperature;

[0170] (5) CO2 pressurization: Open valve 3, introduce CO2 in the high-pressure gas tank into the diffusion chamber, and use the high-pressure gas tank to pressurize the CO2 to the experimental pressure;

[0171] (6) Experiment start: Close valve 3, CO2 diffuses into the oil-water phase, turn on the computer pressure data acquisition system, and start recording the experimental pressure with a sampling interval of 5 s;

[0172] (7) End of the experiment: After collecting the pressure data, turn off the computer pressure data acquisition system, vent the CO2 gas in the diffusion chamber, remove the diffusion chamber, and clean out the oil phase and water phase.

[0173] In this embodiment, the pressure drop curve of the diffusion device is obtained by taking the experimental temperature of 20°C, the oil-water ratio of 1:1, the pressure of 4.06MPa, and the oil phase viscosity of 53.5mP·s as an example. Figure 4 As shown:

[0174] The pressure drop curve was fitted using the method described in the above invention, and the diffusion coefficients of CO2 in the oil phase and the water phase were obtained as follows: 2.12×10 -9 m 2 / s and 0.435×10 -9 m 2 / s.

[0175] Embodiment 2:

[0176] 1. Construction of microscopic physical model

[0177] The physical model of CO2 diffusion in oil-water phase is as follows Figure 1 The bottom position of the diffusion chamber is z = z t , the oil-water interface is z=z0, the oil-gas interface is z=0, the oil phase height is z0, and the water phase height is z t -z0. Compared with the existing research models on the diffusion of CO2 in crude oil, this model has the following advantages:

[0178] (1) The model expands the diffusion liquid phase from single-phase crude oil to two-phase oil and water, enriching the practical significance of diffusion research;

[0179] (2) The model provides a more complete parameter design basis for CO2 injection EOR projects;

[0180] (3) This model can be used to study the diffusion of gas in porous media with certain wettability, such as the diffusion process of CO2 in a water-wet oil-bearing core, where the oil phase contacts CO2 and the water phase contacts the rock surface;

[0181] (4) The model takes into account the impact of differences in liquid phase composition on the diffusion process.

[0182] from Figure 1 It can be seen that when CO2 diffuses in the oil-water phase, before the CO2 diffusion front reaches the oil-water interface, CO2 diffuses only in the oil phase and does not diffuse in the water phase. Subsequently, after the CO2 diffusion front reaches the oil-gas interface, CO2 begins to diffuse into the water phase through the oil-water interface, and CO2 diffuses in both the water phase and the oil phase. Therefore, the diffusion stages are divided according to the position of the CO2 diffusion front. The stage in which CO2 diffuses only in the oil phase before the CO2 diffusion front reaches the oil-water interface is defined as the first diffusion stage. The stage in which CO2 diffuses in both the oil phase and the water phase after the CO2 diffusion front reaches the oil-water interface is defined as the second diffusion stage.

[0183] 2. Construction of mathematical model

[0184] A mathematical model of CO2 diffusion in oil-water phases is established, which takes into account the expansion of the oil phase caused by CO2 diffusion. The CO2 gas cap diffuses from the oil phase to the water phase, causing the expansion of the oil and water phases. However, the solubility of CO2 in the oil phase is much greater than that in the water phase, so the expansion of the water phase can be ignored and only the expansion of the oil phase can be considered. When crude oil expands, the oil-gas interface will move toward the gas cap, so the movement of the oil-gas interface is used to characterize the expansion of crude oil. This interface movement can be studied using the moving grid numerical simulation method.

[0185] In the first diffusion stage, CO2 diffuses only in the oil phase. This can be expressed by Fick's law. During the diffusion process, the position of the oil-gas interface changes with time. In order to characterize this change process, the position of the oil-gas interface in the first diffusion stage is expressed as L o1 (t), therefore, the diffusion of CO2 in the oil phase in the first diffusion stage is expressed as:

[0186]

[0187] Where: c o -CO2 concentration in the oil phase, mol / m 3 ;

[0188] D o -Diffusion coefficient of CO2 in oil phase, m 2 / s;

[0189] t0-time when the CO2 diffusion front reaches the oil-water interface, s;

[0190] L o1 (t) - oil-gas interface position function in the first diffusion stage, m.

[0191] At the beginning of the first diffusion stage, there is no CO2 in the oil phase. Therefore, the initial conditions are:

[0192] c o(z,0)=0,0 <z<L o (t) (30)

[0193] At the oil-gas interface, the concentration of CO2 is the equilibrium concentration, which can be expressed as:

[0194] c o (L o (t),t)=c eq ,0 <t<t0 (31)

[0195] The bottom of the diffusion chamber is a closed boundary, and the CO2 diffusion flux is 0:

[0196]

[0197] In the second diffusion stage, the time constraint and space constraint interval of CO2 diffusion in the oil phase change, which can be expressed by the following formula:

[0198] Where: L o2 (t) - Oil-gas interface position function in the second diffusion stage, m.

[0199] T-time variable of the second diffusion stage, T=t-t0,s.

[0200] The initial condition of CO2 in the oil phase in the second diffusion stage changes from 0 to the concentration at the end of the first diffusion stage (t = t0), that is:

[0201] c o (z,T=0)=f(z),z0 <z<L o (t) (34)

[0202] Where: f(z) - the concentration distribution function of CO2 in the oil phase at the end of the first diffusion stage (t = t0), which can be calculated by equations (29)-(32), mol / m 3 .

[0203] In the second diffusion stage, the concentration of CO2 in the oil phase at the oil-water interface increases with time, which can be expressed as:

[0204] c o (z0,T)=c z ,T>0 (35)

[0205] The concentration of CO2 at the oil-gas interface is always equal to the equilibrium concentration c eq :

[0206] c o (L o2 (t),T)=c eq ,T=t-t0>0 (36)

[0207] In the first diffusion stage and the second diffusion stage, the oil-gas interface movement rate can be expressed by the following formula:

[0208]

[0209] Where: CO2 -density of CO2, kg / m 3 ;

[0210] M CO2 - molar mass of CO2, kg / mol;

[0211] The rate of change at which molecules diffuse across the oil-air interface into the oil phase.

[0212] In the second diffusion stage, the diffusion front reaches the oil-water interface and CO2 begins to diffuse in the water phase.

[0213]

[0214] Where: D w -Diffusion coefficient of CO2 in water phase, m 2 / s;

[0215] c w (z,t) is the concentration distribution function of CO2 in the water phase, mol / m 3 ;

[0216] At the initial moment of the second diffusion stage, there is no CO2 in the water phase, and the initial conditions can be expressed as:

[0217] c w (z,T)| T=0 =0 (39)

[0218] The relationship between the concentration of CO2 in the water phase at the oil-water interface and the concentration of CO2 in the oil phase at the oil-water interface is:

[0219]

[0220] Finally, at the bottom of the container (i.e. z = z t ), no CO2 diffuses through, and the CO2 diffusion flux at this point is 0:

[0221]

[0222] At the oil-water interface, according to the law of conservation of matter, the diffusion flux of CO2 leaving the oil phase through the oil-water interface should be equal to the diffusion flux of CO2 entering the water phase through the oil-water interface, which can be expressed as follows:

[0223]

[0224] So far, a mathematical model of CO2 diffusion in the oil-water two-phase system in the diffusion stage has been established, which includes the oil-gas interface movement equation caused by the expansion of the oil phase.

[0225] 3. Solution method and establishment of numerical model

[0226] The diffusion model established above includes a moving interface and cannot be solved by analytical solution, but only by numerical solution. Therefore, the moving grid numerical simulation method is used to solve the above model. In the moving grid numerical simulation method, when the spatial grid is differentiated, the number of spatial grids remains unchanged, but in each time grid solution process, the step size of the spatial grid changes with time to represent the movement of the oil-gas interface position.

[0227] In the first diffusion stage, the diffusion equation of CO2 in the oil phase uses the central difference format to perform grid difference on the spatial function, and the first-order ordinary differential equation about the diffusion time can be obtained:

[0228]

[0229] The boundary conditions at the bottom of the diffusion chamber in the first diffusion stage can be obtained using the three-point forward difference format:

[0230]

[0231] The discretization of the boundary conditions of the oil-gas interface is obtained:

[0232] c N+1 (t) = c eq =constant (45)

[0233] The initial conditions can be expressed as:

[0234] c(t=0)=0 (46)

[0235] The oil-gas interface movement equation (Equation (37)) can be obtained as follows using the central difference format:

[0236]

[0237] The grid step size can be defined as a function of time as follows:

[0238]

[0239] As shown in formula (48), as the crude oil expands during the diffusion process, the oil-gas interface position L o1(t) increases, while the number of grids N remains unchanged, so the grid step size becomes larger. After differentially meshing the diffusion differential equations, boundary conditions and initial conditions of CO2 in the oil phase in the first diffusion stage, the above equations are solved using the Matlab programming method to obtain the concentration distribution of CO2 in the oil phase and the expansion rate of the oil phase in the first diffusion stage, and the time t0 when the CO2 diffusion front reaches the oil-water interface and the concentration distribution f(z) of CO2 in the oil phase at t0 are obtained, and they are substituted into the calculation of the second diffusion stage.

[0240] In the second diffusion stage, the difference format of the diffusion equation of CO2 in the oil phase can be written as:

[0241]

[0242] The CO2 at the oil-gas interface is always equal to the equilibrium concentration c eq , its difference format is:

[0243] c N+1 (T) = c eq =constant (50)

[0244] The initial condition of CO2 concentration in the oil phase in the second diffusion stage can be written as:

[0245] c(z,T=0)=c(z,t=t0)=c i (t0),i=1:N+1 (51)

[0246] Where: c i (t0)-CO2 concentration value of the ith grid node at time t0, mol / m 3 .

[0247] The difference format of CO2 concentration at the oil-water interface can be expressed as:

[0248]

[0249] The difference format of the movement rate of the oil-gas interface in the second diffusion stage is:

[0250]

[0251] Matlab programming method is used to solve the equations of CO2 diffusion in the oil phase in the second diffusion stage, and the concentration distribution of CO2 in the oil phase and the movement of the oil-gas interface caused by expansion in the second diffusion stage are obtained. The accuracy of the numerical solution can be achieved by increasing the number of grids and the number of grids N.

[0252] 4. Establishment of pressure drop model

[0253] After CO2 is injected into the formation, the wellbore begins to be shutoff. During the shutoff process, the CO2 at the bottom of the well will gradually diffuse into the oil and water, causing the CO2 pressure in the near-well area to gradually decrease. From a microscopic analysis, it can be characterized by the PR gas state equation of CO2 in the gas cap zone.

[0254]

[0255] a=a c α(T r ,ω) (54a)

[0256]

[0257]

[0258] Among them, P and P c are pressure and critical pressure, R is Avogadro's constant, V is volume, T and T c are temperature and critical temperature respectively, and α(Tr,ω) is the α function determined by the reduced temperature Tr and the eccentricity factor ω.

[0259] It can be seen from equation (54) that the pressure of CO2 gas is closely related to its volume, and the change in its volume can be characterized by the rate of interface movement. That is, equation (37) of the first diffusion stage and the second diffusion stage are combined with equation (54) to obtain the pressure drop model of the microscopic diffusion process:

[0260]

[0261] in:

[0262]

[0263] 5. Parameter solution steps

[0264] (1) Take formation water and crude oil samples and conduct a CO2 diffusion experiment in the oil-water phase system under formation conditions (temperature and pressure) in the laboratory. The design structure diagram of the experimental device is as follows Figure 3 As shown;

[0265] (2) The above model is used to fit the pressure drop curve obtained from the experiment, and the effective diffusion coefficient D of CO2 in the oil phase is obtained by combining the experimental and geological parameters. o and the effective diffusion coefficient of the aqueous phase D w ; The specific calculation process is as follows:

[0266] The pressure drop curve obtained by the experiment is fitted with the simulation curve, which has a high degree of fitting. Then the relevant experimental parameters are substituted into the numerical simulation model to obtain the effective diffusion coefficient D of CO2 in the oil phase. o and the effective diffusion coefficient of the aqueous phase Dw The fitting result curve is as follows Figure 7 , substitute the experimental parameters into the model to obtain D o , D w The process is as Figure 8 .

[0267] 6. Experimental steps, such as Figure 5 Shown

[0268] (1) System tightness check: Before the experiment, close all valves, open valves 2, 3, and 9, inject CO2 into the diffusion chamber, then close valves 2, 3, and 9, turn on the computer pressure data acquisition system to record the pressure of the diffusion chamber, and monitor the pressure change of the diffusion chamber within 2 hours. If the pressure does not change, the system is tight and subsequent experiments can be carried out;

[0269] (2) Water phase injection: Open valves 5, 6, and 7, and use a horizontal flow pump to inject the water in the upper part of the water injection intermediate container into the lower part of the diffusion chamber. The injection volume is monitored by the horizontal flow pump. After the specified volume of water phase is injected, close valves 5, 6, and 7;

[0270] (3) Oil phase injection: Open valves 5, 4, and 8, and use a horizontal flow pump to inject the oil in the upper part of the oil injection intermediate container into the middle part of the diffusion chamber. The injection volume is monitored by the horizontal flow pump. After the specified volume of oil phase is injected, close valves 5, 4, and 8;

[0271] (4) Experimental temperature adjustment: Open valves 1 and 2 to introduce CO2 into the CO2 high-pressure gas tank, close valves 1 and 2, and turn on the constant temperature system to make the temperature of the CO2 gas and the oil phase and water phase in the diffusion chamber reach the experimental temperature;

[0272] (5) CO2 pressurization: Open valve 3, introduce CO2 in the high-pressure gas tank into the diffusion chamber, and use the high-pressure gas tank to pressurize the CO2 to the experimental pressure;

[0273] (6) Experiment start: Close valve 3, CO2 diffuses into the oil-water phase, turn on the computer pressure data acquisition system, and start recording the experimental pressure with a sampling interval of 5 s;

[0274] (7) End of the experiment: After collecting the pressure data, turn off the computer pressure data acquisition system, vent the CO2 gas in the diffusion chamber, remove the diffusion chamber, and clean out the oil phase and water phase.

[0275] In this embodiment, the pressure drop curve of the diffusion device is obtained by taking the experimental temperature of 50°C, the oil-water ratio of 1:1, the pressure of 4.06MPa, and the oil phase viscosity of 53.5mP·s as an example. Fig. 9 As shown:

[0276] The pressure drop curve was fitted using the method described above, and the diffusion coefficients of CO2 in the oil phase and the water phase were obtained as follows: 9.81×10 -9 m 2 / s and 0.588×10 -9 m 2 / s.

[0277] Embodiment 3:

[0278] 1. Construction of microscopic physical model

[0279] Under tight oil reservoir conditions, rocks are generally hydrophilic, formation water usually occupies the surface of matrix particles in annular form and exists in the form of bound water, and crude oil usually occupies the center of the pore throat in the form of droplets and usually exists in the form of movable oil. During CO2 energy fracturing, after CO2 is injected, it transfers mass from the bottom of the well to the far well area. Limited by the geological characteristics of low porosity and low permeability of the reservoir itself, CO2 spreads by diffusion mass transfer after injection. From a microscopic analysis, during the CO2 diffusion process, CO2 first diffuses into the oil phase occupying the central position of the pore throat, and then diffuses into the bound water through the oil phase. Therefore, after CO2 is injected from the bottom of the well, it first diffuses in the pure oil phase, and then continues to diffuse into the water phase after the diffusion front reaches the boundary between the oil phase and the comfortable water. At this time, CO2 diffuses in both the oil phase and the water phase. By physically modeling this process, the following physical model is obtained to characterize the diffusion process.

[0280] from Figure 1 It can be seen from the physical model that after CO2 is injected from the bottom of the well, it first diffuses in the oil phase occupying the center of the pore throat, so this diffusion stage is defined as the first diffusion stage. After the diffusion front reaches the boundary between oil and bound water, CO2 diffuses from the oil phase to the water phase. At this time, CO2 diffuses in both the oil phase and the water phase, so this diffusion stage is defined as the second diffusion stage. In the first diffusion stage, CO2 diffuses only in the oil phase, and in the second diffusion stage, CO2 diffuses in both the oil phase and the water phase. The initial conditions and boundary conditions of the first and second diffusion stages have changed significantly, which will have a significant impact on the diffusion results and need to be discussed separately.

[0281] 2. Establishment of mathematical model

[0282] In order to simplify the modeling process of CO2 diffusion in oil and water phases, the following simplified conditions are proposed:

[0283] (1) The temperature of the system remains constant during the diffusion process;

[0284] (2) There is no mass transfer resistance between CO2 and the oil phase at the interface, that is, it is assumed that CO2 is always in a diffusion equilibrium condition at the oil-gas interface, and it is assumed that the concentration of CO2 at the interface under this equilibrium condition is the equilibrium concentration c eq ;

[0285] (3) The diffusion coefficient of CO2 in the oil phase is D o , the diffusion coefficient in water is D w , and D o and D w It is a constant value during the diffusion process;

[0286] (4) Ignore the convective mass transfer in the system. Due to the concentration difference between the oil phase and the water phase, and the oil phase is above the water phase, the oil and water phases will not convect under the action of the concentration difference at the initial moment. As the diffusion proceeds, CO2 dissolves in the oil phase and the water phase, thereby reducing the density of the oil phase and the water phase. However, the solubility of CO2 in the oil phase is much greater than that in the water phase. Therefore, the density of the water phase will always be greater than the density of the oil phase.

[0287] (5) No mass transfer and diffusion occurs between the oil phase and the water phase;

[0288] (6) Consider the expansion of the oil phase due to diffusion, while ignoring the expansion of the water phase;

[0289] (7) Assume that the water phase is incompressible. When the oil phase expands under the action of diffusion, the volume of the oil phase increases. Assuming that the water phase is incompressible, the expansion of crude oil will cause the oil-gas interface to move toward the CO2 gas cap. The expansion of crude oil can be indicated by characterizing the movement of the CO2-crude oil interface.

[0290] The first diffusion stage is defined as the process in which CO2 diffuses only in the oil phase before the CO2 diffusion front reaches the oil-gas interface. The characterization of the diffusion process of CO2 in crude oil in the first diffusion stage can be derived from Fick's law. In addition, the coordinate position of the oil-gas interface at the initial moment is z t During the diffusion process, the position of the oil-gas interface changes with time. In order to characterize the change process of the oil-gas interface position, the position of the oil-gas interface in the first diffusion stage is written as L o1 (t), therefore, the diffusion of CO2 in the oil phase in the first diffusion stage can be expressed by the following formula:

[0291]

[0292] where c o is the concentration of CO2 in the oil phase, mol / m 3 ;D o is the diffusion coefficient of CO2 in the oil phase, m 2 / s; t0 is the time when the CO2 diffusion front reaches the oil-water interface, t; L o1 (t) is the oil-gas interface position function considering the crude oil expansion effect during the first diffusion stage, m.

[0293] In order to solve equation (57), two boundary conditions and one initial condition are required. At the initial moment of the first diffusion stage, there is no CO2 in the oil phase, so the initial condition of the gas is 0:

[0294] c o (z,0)=0,0 <z<L o (t) (58)

[0295] At the oil-gas interface, as stated in the assumptions, the concentration of CO2 at the interface is an equilibrium concentration. This boundary condition can be expressed as:

[0296] c o (L o (t),t)=c eq ,0 <t<t0 (59)

[0297] The bottom is a closed boundary, and no CO2 diffuses through the bottom interface, so the boundary condition here is a zero diffusion flux boundary condition:

[0298]

[0299] It is worth noting that the setting of the outer boundary condition, that is, Equation (60) regards the diffusion of CO2 in the oil phase in the first diffusion stage as the diffusion of CO2 in the entire system in order to make the boundary condition more consistent with the physical process. Before the CO2 diffusion front reaches the oil-water interface, the concentration of CO2 at the oil-water interface is 0. However, setting the concentration of CO2 at the oil-water interface to 0 will result in CO2 never being able to diffuse to the interface. Therefore, the outer boundary condition is set to the diffusion in the entire liquid phase system, and only the diffusion in the oil phase is studied.

[0300] When the CO2 diffusion front reaches the oil-water interface, CO2 diffuses in both the oil phase and the water phase. The diffusion control equation of CO2 in the oil phase in the second diffusion stage can be derived from Fick's law. However, the time constraint interval and space constraint interval of the diffusion process are changed at this time, which can be obtained from the following equation:

[0301]

[0302] Where L o2 (t) is the oil-gas interface position function considering the crude oil expansion effect during the second diffusion stage, m. T is the time variable of the second diffusion stage, T = t-t0, s.

[0303] During the second diffusion stage, the initial condition of CO2 in the oil phase changes from 0 concentration to the concentration at the end of the first diffusion stage (i.e., at t = t0), that is:

[0304] c o (z,T=0)=f(z),z0 <z<L o(t) (62)

[0305] where f(z) is the concentration distribution function of CO2 in the oil phase at the end of the first diffusion stage (i.e., at time t = t0), which can be obtained by equations (57)-(60), mol / m 3 .

[0306] In the second diffusion stage, it is assumed that the concentration of CO2 in the oil phase at the oil-water interface is a variable c that increases with time. z , expressed as an equation:

[0307] c o (z0,T)=c z ,T>0 (63)

[0308] The concentration of CO2 at the oil-gas interface during the second diffusion stage is the same as that in the first diffusion stage, that is, the concentration of CO2 at the oil-gas interface is always equal to the equilibrium concentration c eq :

[0309] c o (L o2 (t),T)=c eq ,T=t-t0>0 (64)

[0310] In the first diffusion stage and the second diffusion stage, the oil-gas interface movement rate can be expressed by the following formula:

[0311]

[0312] where ρ CO2 is the density of CO2, kg / m 3 ;M CO2 is the molar mass of CO2, kg / mol; It is the rate of change of CO2 molecules diffusing into the oil phase through the oil-gas interface.

[0313] In the second diffusion stage, the diffusion front has reached the oil-water interface, and CO2 begins to diffuse in the water phase. The governing equation for the diffusion of CO2 in the water phase can be derived from Fick's law:

[0314]

[0315] Where D w is the diffusion coefficient of CO2 in water phase, m 2 / s;c w (z,t) is the concentration distribution function of CO2 in the water phase, mol / m 3 ;

[0316] At the initial moment of the second diffusion stage, there is no CO2 in the water phase, so the initial condition can be expressed as:

[0317] c w (z,T)| T=0 =0 (67)

[0318] The relationship between the concentration of CO2 in the water phase at the oil-water interface and the concentration of CO2 in the oil phase at the oil-water interface is:

[0319] c w (z,T)|z=z0=k pc c o (z,T)|z=z0=k pc c z ,T>0 (68)

[0320] where k pc k is the oil-water partition coefficient, which is defined as the ratio of the concentration of CO2 in the water phase at the oil-water interface to the concentration of CO2 in the oil phase at the oil-water interface. The oil-water partition coefficient is due to the difference in the solubility of CO2 in the oil phase and the water phase, and the greater the solubility difference, the greater the k. pc The larger the value, the greater the pc In the presence of, the concentration of CO2 will show a concentration jump at the oil-water interface.

[0321] Finally, at the bottom of the container (i.e. x = 0), no CO2 diffuses through the bottom of the container, i.e. the CO2 flux there is 0:

[0322]

[0323] At the oil-water interface, there is a law of conservation of matter. The diffusion flux of CO2 leaving the oil phase through the oil-water interface should be equal to the diffusion flux of CO2 entering the water phase through the oil-water interface. This law of conservation of matter can be expressed as follows:

[0324]

[0325] So far, a diffusion model of CO2 in water phase and oil phase at different diffusion stages of the CO2 diffusion process in the oil-water liquid system has been established. Solving the above model can yield the concentration distribution of CO2 in the oil phase and water phase and the expansion of the oil phase.

[0326] 3. Solution method and establishment of numerical model

[0327] The diffusion model established above includes the problem of moving interface, which cannot be solved by analytical solution, so it can only be solved by numerical solution. Therefore, the moving grid numerical simulation method is used to solve the above model. In the moving grid numerical simulation method, when the spatial grid is differentiated, the number of spatial grids remains unchanged, but in the process of solving each time grid, the step size of the spatial grid changes with time to track the position movement of the oil and gas interface. The schematic diagram of using the moving grid numerical simulation method to track the change of the oil and gas interface over time is as follows Figure 2 This method is used to study the concentration distribution of CO2 in the oil phase and the water phase and the expansion effect of crude oil in the first and second diffusion stages.

[0328] In the first diffusion stage, the diffusion equation of CO2 in the oil phase uses the central difference format to perform grid difference on the spatial function, and the first-order ordinary differential equation about the diffusion time can be obtained:

[0329]

[0330] The boundary condition at the bottom of the PVT diffusion chamber in the first diffusion stage (Eq. (59)) can be obtained using the three-point forward difference format:

[0331]

[0332] The discretization of the boundary conditions of the oil-gas interface is obtained:

[0333] c N+1 (t) = c eq =constant (73)

[0334] The initial conditions can be expressed as:

[0335] c(t=0)=0 (74)

[0336] The oil-gas interface movement equation (Eq. (65)) can be obtained as follows using the central difference format:

[0337]

[0338] The grid step size can be defined as a function of time as follows:

[0339]

[0340] As shown in Equation (76), as the crude oil continues to expand during the diffusion process, the oil-gas interface position L o1(t) continues to increase, while the number of grids N remains unchanged, so the grid step size increases with time. After differentially meshing the diffusion differential equations, boundary conditions and initial conditions of CO2 in the oil phase in the first diffusion stage, the Runge-Kutta method is used to solve the above equations to obtain the concentration distribution of CO2 in the oil phase and the expansion rate of the oil phase in the first diffusion stage, and the time t0 when the CO2 diffusion front reaches the oil-water interface and the concentration distribution f(z) of CO2 in the oil phase at t0 are obtained, and they are substituted into the calculation of the second diffusion stage.

[0341] In the second diffusion stage, CO2 diffuses in both the oil phase and the water phase. CO2 has concentration distribution in both the oil phase and the water phase. Therefore, it is necessary to solve the diffusion process in the oil phase and the water phase at the same time. Similarly, the difference format of the diffusion equation of CO2 in the oil phase can be written as:

[0342]

[0343] The CO2 at the oil-gas interface is always equal to the equilibrium concentration c eq , its difference format can be written as:

[0344] c N+1 (T) = c eq =constant (78)

[0345] The initial condition of CO2 concentration in the oil phase in the second diffusion stage can be written as:

[0346] c(z,T=0)=c(z,t=t0)=c i (t0),i=1:N+1 (79)

[0347] where c i (t0) refers to the CO2 concentration value of the i-th grid node at time t0, mol / m 3 .

[0348] The difference format of the CO2 concentration at the oil-water interface can be expressed as follows:

[0349]

[0350] Similarly, the difference format of the migration rate of the oil-gas interface in the second diffusion stage can be expressed as:

[0351]

[0352] Finally, as mentioned above, the Runge-Kutta method is used to solve the equations for the diffusion of CO2 in the oil phase in the second diffusion stage, and the concentration distribution of CO2 in the oil phase and the movement of the oil-gas interface caused by expansion in the second diffusion stage are obtained. At the same time, the accuracy of the numerical solution can be achieved by increasing the number of grids and the number of grids N.

[0353] 4. Establishment of pressure drop model

[0354] After CO2 is injected into the formation, the wellbore begins to be shutoff. During the shutoff process, the CO2 at the bottom of the well will gradually diffuse into the oil and water, causing the CO2 pressure in the near-well area to gradually decrease. From a microscopic analysis, it can be characterized by the PR gas state equation of CO2 in the gas cap zone.

[0355]

[0356] a=a c α(T r ,ω) (82a)

[0357]

[0358]

[0359] Among them, P and P c are pressure and critical pressure, R is Avogadro's constant, V is volume, T and T c are temperature and critical temperature respectively, and α(Tr,ω) is the α function determined by the reduced temperature Tr and the eccentricity factor ω.

[0360] It can be seen from equation (82) that the pressure of CO2 gas is closely related to its volume, and the change of its volume can be characterized by the rate of interface movement. That is, equation (65) of the first diffusion stage and the second diffusion stage are combined with equation (82) to obtain the pressure drop model of the microscopic diffusion process:

[0361]

[0362] in:

[0363]

[0364] 5. Parameter solution steps

[0365] (1) Take formation water and crude oil samples and conduct a CO2 diffusion experiment in the oil-water phase system under formation conditions (temperature and pressure) in the laboratory. The design structure diagram of the experimental device is as follows Figure 3 As shown;

[0366] (2) The above model is used to fit the pressure drop curve obtained from the experiment, and the effective diffusion coefficient D of CO2 in the oil phase is obtained by combining the experimental and geological parameters. o and the effective diffusion coefficient of the aqueous phase D w ;

[0367] 6. Experimental steps, such as Figure 5 Shown

[0368] (1) System tightness check: Before the experiment, close all valves, open valves 2, 3, and 9, inject CO2 into the diffusion chamber, then close valves 2, 3, and 9, turn on the computer pressure data acquisition system to record the pressure of the diffusion chamber, and monitor the pressure change of the diffusion chamber within 2 hours. If the pressure does not change, the system is tight and subsequent experiments can be carried out;

[0369] (2) Water phase injection: Open valves 5, 6, and 7, and use a horizontal flow pump to inject the water in the upper part of the water injection intermediate container into the lower part of the diffusion chamber. The injection volume is monitored by the horizontal flow pump. After the specified volume of water phase is injected, close valves 5, 6, and 7;

[0370] (3) Oil phase injection: Open valves 5, 4, and 8, and use a horizontal flow pump to inject the oil in the upper part of the oil injection intermediate container into the middle part of the diffusion chamber. The injection volume is monitored by the horizontal flow pump. After the specified volume of oil phase is injected, close valves 5, 4, and 8;

[0371] (4) Experimental temperature adjustment: Open valves 1 and 2 to introduce CO2 into the CO2 high-pressure gas tank, close valves 1 and 2, and turn on the constant temperature system to make the temperature of the CO2 gas and the oil phase and water phase in the diffusion chamber reach the experimental temperature;

[0372] (5) CO2 pressurization: Open valve 3, introduce CO2 in the high-pressure gas tank into the diffusion chamber, and use the high-pressure gas tank to pressurize the CO2 to the experimental pressure;

[0373] (6) Experiment start: Close valve 3, CO2 diffuses into the oil-water phase, turn on the computer pressure data acquisition system, and start recording the experimental pressure with a sampling interval of 5 s;

[0374] (7) End of the experiment: After collecting the pressure data, turn off the computer pressure data acquisition system, vent the CO2 gas in the diffusion chamber, remove the diffusion chamber, and clean out the oil phase and water phase.

[0375] In this embodiment, the pressure drop curve of the diffusion device is obtained by taking the experimental temperature of 20°C, the oil-water ratio of 1:1, the pressure of 4.06MPa, and the oil phase viscosity of 147.3mP·s as an example. Fig.10 As shown:

[0376] The pressure drop curve was fitted using the method described above, and the diffusion coefficients of CO2 in the oil phase and the water phase were obtained as follows: 1.72×10 -9 m 2 / s and 0.420×10 -9 m 2 / s.

[0377] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions recorded in the aforementioned embodiments or replace some of the technical features therein with equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

[0378] Except for the technical features described in the specification, all other technical features are known technologies to those skilled in the art.

Claims

1. The calculation method for the diffusion and mass transfer of CO2 in the presence of oil and water is characterized by: The calculation method for the diffusion mass transfer of CO2 in the presence of oil and water includes: Step 1, dividing the diffusion stages of CO2 in oil and water phases; Step 2, establish a mathematical model of different diffusion stages of CO2 diffusion in oil and water phases; Step 3, according to the law of conservation of matter, establish the diffusion coefficient relationship of CO2 in oil and water phases; Step 4, performing mathematical simulation to obtain CO2 concentration distribution and pressure drop curve; Step 5, establishing a pressure drop model for the microscopic diffusion process; Step 6, conducting a CO2 diffusion experiment in an oil-water phase system; Step 7: Calculate the diffusion coefficient D of CO2 in the oil phase o and the diffusion coefficient of the water phase D w ; In step 3, according to the law of conservation of matter, the diffusion coefficient of CO2 in oil and water phases is established as follows: where c o is the concentration of CO2 in the oil phase, mol / m 3 ;c w is the concentration of CO2 in the water phase, mol / m 3 ;D o is the diffusion coefficient of CO2 in the oil phase, m 2 / s;D w is the diffusion coefficient of CO2 in water phase, m 2 / s; z is the diffusion of CO2 to a certain position in the oil phase; So far, a mathematical model for the diffusion of CO2 in an oil-water two-phase system has been established in the diffusion stage; In step 5, the PR gas state equation is used to characterize the pressure change of CO2 in the oil-water two-phase diffusion, and the pressure drop model of the microscopic diffusion process is obtained as follows: in: Where P is pressure, MPa; P o is the initial experimental pressure, MPa, R is Avogadro's constant; ΔV is the volume change of the system during the CO2 diffusion process; T is the temperature, C°; α is the α function determined by the lowering temperature Tr and the eccentricity factor ω; ρ CO2 is the density of CO2, kg / m 3 ;M CO2 is the molar mass of CO2, kg / mol; where c o is the concentration of CO2 in the oil phase, mol / m 3 ; z is the position; L o (t) - oil-gas interface position function in the first diffusion stage; b is a constant.

2. According to the calculation method for diffusion and mass transfer of CO2 in the presence of oil and water as described in claim 1, in step 1, after CO2 is injected from the bottom of the well, it first diffuses in the oil phase occupying the center of the pore throat, so this diffusion stage is defined as the first diffusion stage; after the diffusion front reaches the boundary between oil and bound water, CO2 diffuses into the water phase through the oil phase, and at this time CO2 diffuses in both the oil phase and the water phase, so this diffusion stage is defined as the second diffusion stage; in the first diffusion stage, CO2 diffuses only in the oil phase, and in the second diffusion stage, CO2 diffuses in both the oil phase and the water phase.

3. According to the calculation method for diffusion and mass transfer of CO2 in the presence of oil and water according to claim 2, in step 2, after the diffusion stages are divided, a mathematical model of different diffusion stages of CO2 in the oil-water two-phase is established under the condition of considering the expansion of crude oil, and the mathematical model of CO2 diffusion in the oil phase in the first diffusion stage is obtained as follows: where c o is the concentration of CO2 in the oil phase, mol / m 3 ;D o is the diffusion coefficient of CO2 in the oil phase, m 2 / s; t0 is the time when the CO2 diffusion front reaches the oil-water interface, seconds; L o1 (t) is the oil-gas interface position function considering the crude oil expansion effect during the first diffusion stage, m; ceq is the equilibrium concentration of CO2 at the oil-gas interface, mol / m 3 ; z is the position.

4. According to the calculation method for diffusion and mass transfer of CO2 in the presence of oil and water according to claim 3, in step 2, the diffusion mathematical models of CO2 in the oil and water phases in the second diffusion stage are respectively: External boundary condition: c o (L o2 (t),T)=c eq ,T=t-t0>0 where c o is the concentration of CO2 in the oil phase, mol / m 3 ;c w is the concentration of CO2 in the water phase, mol / m 3 ;D o is the diffusion coefficient of CO2 in the oil phase, m 2 / s;D w is the diffusion coefficient of CO2 in water phase, m 2 / s; t0 is the time when the CO2 diffusion front reaches the oil-water interface, seconds; c eq is the equilibrium concentration of CO2 at the oil-gas interface, mol / m 3 ; z is the position; L o2 (t) - oil-gas interface position function in the second diffusion stage; T - time variable in the second diffusion stage; f(z) is the concentration distribution function of CO2 in the oil phase at the end of the first diffusion stage (t = t0); k pc is the oil-water diffusion concentration distribution coefficient; c z is the concentration of CO2 diffused to a certain location in the oil phase, mol / m 3 .

5. According to the calculation method for the diffusion and mass transfer of CO2 in the presence of oil and water as described in claim 1, in step 4, the mathematical model established above is solved using a moving grid numerical simulation method to perform mathematical simulation to obtain the CO2 concentration distribution and the pressure drop curve.

6. According to the calculation method for diffusion and mass transfer of CO2 in the presence of oil and water as described in claim 1, in step 6, formation water and crude oil samples are taken, and a diffusion experiment of CO2 in an oil-water phase system under formation conditions is carried out in the laboratory.

7. According to the calculation method for diffusion mass transfer of CO2 in the presence of oil and water as claimed in claim 1, in step 7, the pressure drop curve obtained by the experiment is fitted using the above model, and the diffusion coefficient D of CO2 in the oil phase is obtained by combining the experimental and geological parameters.o and the diffusion coefficient of the water phase D w .