A multiphase flow simulation method for reservoir gas flooding based on LBM comprehensive asphaltene deposition

By constructing a multi-relaxation multi-phase multi-component lattice Boltzmann model, combined with high-temperature and high-pressure microfluidic experiments, the coupling problem of asphaltene deposition and multi-phase flow in the existing technology has been solved, and accurate prediction of the reservoir gas flooding process has been achieved. Simulation and efficient development support.

CN118520819BActive Publication Date: 2024-09-13CHINA UNIV OF PETROLEUM (EAST CHINA)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410970252.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-09-13
Estimated Expiration
2044-07-19

AI Technical Summary

Technical Problem

Existing microscopic flow simulation technology fails to realize the coupling between asphaltene deposition, multi-phase multi-component flow and interphase mass transfer, and cannot accurately simulate the impact of asphaltene deposition and liquid-solid interface behavior in reservoir gas flooding on the reservoir. The influence of fluid migration laws.

Method used

A multi-phase flow simulation method of reservoir gas flooding based on LBM is used to comprehensively asphaltene deposition. By constructing a multi-relaxation multi-phase multi-component lattice Boltzmann model (MRT-MCMP-LBM), combined with high temperature and high pressure reservoir gas flooding micro Fluid control experiment to study asphaltene deposition behavior under different influencing factors.

Benefits of technology

It achieves accurate simulation of asphaltene deposition, interphase mass transfer and heterogeneous wettability during gas flooding in oil reservoirs, provides theoretical and technical support for efficient development of unconventional oil reservoirs, and reduces experimental costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118520819B
    Figure CN118520819B
Patent Text Reader

Abstract

The present invention belongs to the technical field of micro-mining of unconventional oil reservoirs, and specifically relates to a method for simulating multiphase flow of gas-driven oil reservoirs based on LBM comprehensive asphaltene deposition. A method for simulating multiphase flow of gas-driven oil reservoirs based on LBM comprehensive asphaltene deposition is characterized by comprising the following steps: (1) characterizing the structure of porous media in unconventional oil reservoirs; (2) establishing a MRT-MCMP-LBM basic model for characterizing multiphase and multicomponent flow in porous media in oil reservoirs; (3) characterizing diffusion coefficients; and (4) characterizing asphaltene deposition. The simulation method establishes a multi-relaxed multiphase and multicomponent lattice Boltzmann model (MRT-MCMP-LBM) that simultaneously considers asphaltene deposition, interphase mass transfer, and heterogeneous wettability. The simulation method is verified by high-temperature and high-pressure oil reservoir gas-driven microfluidic experiments, and the asphaltene deposition behavior under different influencing factors is studied, providing theoretical and technical support for the efficient development of unconventional oil reservoirs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of micro-exploitation of unconventional oil reservoirs, and specifically relates to a multiphase flow simulation method for oil reservoir gas drive based on LBM comprehensive asphaltene deposition. Background Art

[0002] Unconventional oil reservoirs include deep oil reservoirs and tight / shale oil reservoirs. The oil and gas phases in the reservoirs of such oil reservoirs are complex, with asphaltene, light oil and natural gas coexisting. During the gas drive process, when the injected gas enters the reservoir fluid, the initial balance of the colloid-asphaltene-crude oil system is broken, resulting in a large amount of flocculation and deposition of asphaltene. Asphaltene deposition will change the wettability of the rock and block the pore channels, thereby reducing the porosity and permeability of the reservoir, which has a great impact on the development effect.

[0003] The pore throat structures of different reservoirs vary greatly, and the pore throat structures affect the precipitation and deposition of asphaltene after gas injection. In addition, there is a strong interaction between the injected gas and crude oil, including physical and chemical reactions such as diffusion, convection, dissolution, extraction and phase change, which are greatly affected by the distribution of pore throat structures. Therefore, in order to accurately evaluate the characteristics of asphaltene precipitation and deposition in the reservoir after gas injection and the seepage behavior of the fluid, pore-scale microscopic flow simulation and research are required.

[0004] Currently, commonly used pore-scale microscopic flow simulation methods include the pore network model (PNM) and the lattice Boltzmann method (LBM). Among them, PNM simplifies complex porous media, which will cause large errors. Compared with other traditional CFD calculation methods, LBM has the characteristics of a mesoscopic model between the microscopic molecular dynamics model and the macroscopic continuous model. Therefore, it has the advantages of simple description of fluid interactions, easy setting of complex boundaries, easy parallel calculation, and easy implementation of programs. It is adaptable to complex pore throat structures and has high parallelism. It is an effective method for simulating multi-phase and multi-component flows in porous media. LBM has been widely used as an effective means to describe fluid motion and deal with engineering problems. At present, there are several LBM open source software such as OpenLB and MESO that can handle fluid mechanics calculation problems at different scales in parallel.

[0005] However, the existing microscopic flow simulation technology fails to achieve the coupling between asphaltene deposition and multiphase multicomponent flow and interphase mass transfer. In other words, the current LBM model has not been able to clearly simulate the coupling behavior between asphaltene deposition and multiphase multicomponent flow and interphase mass transfer in gas drive of oil reservoirs, and thus cannot accurately simulate the influence mechanism of liquid-solid interface behavior in porous media on the migration law of reservoir fluids.

[0006] Therefore, there is an urgent need for a pore-scale microscopic flow simulation method that can simultaneously characterize the asphaltene deposition behavior during gas flooding in oil reservoirs. Summary of the invention

[0007] The purpose of the present invention is to provide a reservoir gas drive multiphase flow simulation method based on LBM comprehensive asphaltene deposition to address the problem that the existing microscopic flow simulation method does not consider the precipitation and deposition behavior of asphaltene, which affects the authenticity and accuracy of reservoir gas drive multiphase flow simulation. The simulation method establishes a multi-relaxed multiphase multicomponent lattice Boltzmann model (MRT-MCMP-LBM) that simultaneously considers asphaltene deposition, interphase mass transfer and heterogeneous wettability. The simulation method is verified with high-temperature and high-pressure reservoir gas drive microfluidic experiments, and the asphaltene deposition behavior under different influencing factors is studied, providing theoretical and technical support for the efficient development of unconventional oil reservoirs.

[0008] The technical solution of the present invention is: a multiphase flow simulation method for reservoir gas drive based on LBM comprehensive asphaltene deposition, comprising the following steps:

[0009] (1) Characterization of porous media structure in unconventional oil reservoirs:

[0010] First, the cast thin sections or scanning electron microscope images of unconventional oil reservoirs were processed into black-and-white images representing the porous media structure of the oil reservoirs using image J software;

[0011] Then, the obtained black-and-white picture of the porous medium structure of the oil reservoir is read by imread in Matlab software and the gray value of each pixel is obtained to form a gray value image;

[0012] The obtained grayscale image is converted into a binary image represented by pure black and white represented by 0 and 1 using the threshold transformation method through im2bw, where 0 represents pure black and 1 represents pure white;

[0013] The binary image is scaled by the imresize function to obtain a space node numerical representation array S of the two-dimensional porous medium flow field with a size of lx×ly. The array S contains two values ​​0 and 1.

[0014] The two values ​​0 and 1 in the array are swapped so that 0 is replaced by pure black in the binary image to represent pure white and represents a fluid node; and 1 is replaced by pure white in the binary image to represent pure black and represents a solid node.

[0015] The above-mentioned porous media structure characterization method can accurately extract the reservoir structure and convert it into numerical values ​​for simulation. It has the advantages of being fast, convenient and accurate. Numerical characterization can also accurately determine the changes in porosity and permeability before and after asphaltene deposition, which is helpful for the study of reservoir damage.

[0016] (2) Establish the MRT-MCMP-LBM basic model to characterize the multiphase and multicomponent flow in porous media of oil reservoirs;

[0017] Firstly, the D2Q9 discrete velocity model is used to obtain the MRT-LBM evolution equation of the collision and migration of a certain fluid in the porous medium of the reservoir based on the particle distribution function, and an MRT-LBM model characterizing the multiphase fluid flow in the porous medium of the reservoir is constructed.

[0018] Then, based on the MRT-LBM model, the Shan-Chen pseudopotential model was added to characterize the interaction forces between fluid particles, the interaction forces between fluid particles and solids, and the bulk forces acting on the fluid, and the MCMP-MRT-LBM model simulating multiphase and multicomponent flow in porous media of oil reservoirs was obtained.

[0019] The lattice Boltzmann method was first evolved from the lattice gas automaton and can also be obtained through the Boltzmann equation. The lattice Boltzmann equation is obtained from the Boltzmann equation through velocity discretization, time discretization and space discretization. The lattice Boltzmann equation contains two steps: collision-migration. According to the number of relaxation times contained in the collision function in the lattice Boltzmann equation, the lattice Boltzmann equation can be divided into two categories: single relaxation (LBGK) model and multi-relaxation (MRT) model. The present invention uses the multi-relaxation MRT basic model with more advantages in parameter selection and stability to construct a multi-phase and multi-component flow lattice Boltzmann model (LBM) for reservoir gas drive considering asphaltene precipitation and deposition.

[0020] The complete MRT lattice Boltzmann model consists of four parts: discrete velocity model (lattice type), transformation matrix, equilibrium distribution function of moment space and evolution equation. The most important of these is the choice of discrete velocity model and transformation matrix. The lattice type determines the number, size and direction of discrete velocities, and thus determines the accuracy and efficiency of the simulation.

[0021] (3) Characterization of diffusion coefficient: According to Fick's law, the fluid density distribution curve under a certain diffusion coefficient is obtained, and the fluid interaction parameter of the fluid particle interaction force in the MCMP-MRT-LBM model obtained in step (2) is calculated. Corrections were made to obtain different injected gas-oil interactions. Laplace verification was performed by simulating the diffusion of injected gas in crude oil through LBM. The obtained LBM density distribution curve results were fitted with Fick's second law results to characterize the diffusion coefficient corresponding to .like Figure 4 As shown, the fluid interaction parameters in LBM are fitted by Fick's second law.

[0022] (4) Characterization of asphaltene deposition:

[0023] ① During the gas flooding process, the main reason for asphaltene deposition is that the attraction between asphaltene molecules and the surrounding adsorbed colloid molecules loses balance, resulting in the rearrangement of the asphaltene structure. Assuming that the asphaltene deposition process is composed of a series of continuous chemical reaction steps, combined with the thermodynamic solid phase model, the reaction model of asphaltene deposition is:

[0024] ;

[0025] Where D is the diffusion coefficient, m 2 ·s -1 ; C is the gas concentration, mol·m -3 ; k d is the deposition rate constant, mol·m -2 ·s -1 MPa -1 ; C e is the equilibrium saturation concentration, mol·m -3 ; n is the normal direction of the interface;

[0026] ② Asphaltene deposition conditions: The deposition rate of asphaltene is related to the concentration of the injected gas and its saturation in the crude oil system. In the LBM simulation of the convection and diffusion of CO2 and crude oil fluid particles, it can be characterized by the density distribution function of the injected gas CO2 and crude oil. When the crude oil density at a certain fluid node is lower than a certain range r oil-max The CO2 molecules significantly change the interaction between the core and asphaltene. At the same time, the local density difference between the injected gas and crude oil exceeds the critical threshold for asphaltene precipitation. r dep , the concentration of colloid molecules covering asphaltene is lower than the critical threshold required for the stability of the crude oil system, and the asphaltene component changes from a dissolved state to a solid deposit.

[0027] In the MCMP-MRT-LBM model obtained in step (3), the asphaltene precipitation condition is expressed by the fluid density distribution function as follows:

[0028] ;

[0029] In the formula, r dep The injected gas-oil grid density difference to meet the asphaltene precipitation threshold;

[0030] Asphaltene deposition rate r dep It is related to the saturation of asphaltene in the crude oil system and can be obtained through microfluidic experimental data and statistical methods. Its expression is:

[0031] ;in, is the asphaltene density distribution function, is the critical threshold of asphaltene deposition;

[0032] r oil-min The minimum lattice density of crude oil to meet the threshold of asphaltene precipitation;

[0033] r oil-max is the maximum lattice density of crude oil that meets the threshold of asphaltene precipitation;

[0034] is the density distribution function of oil;

[0035] is the density distribution function of the injected gas.

[0036] ③ The fluid-solid phase transition process of asphaltene precipitation is characterized by the inverse VOP solid phase renewal method:

[0037] In the conventional VOP solid phase update method, in the initial flow field S, the volume of the fluid node is 0 and the volume of the solid node is 1. When the volume of the solid node is less than or equal to 0 at a certain time step, the solid node becomes a fluid node, that is, the solid node is decomposed into a fluid. In this method, asphaltene precipitation is achieved through a reverse process, that is, the fluid and solid volume values ​​are stored at each node at each time step, the latest solid boundary is tracked in real time, and the volume fraction of the fluid and solid interface is stored at each grid point.

[0038] When the asphaltene deposition conditions are met at the fluid node, the fluid node is transformed into a solid node, and the inverse VOP solid phase update equation is: ;

[0039] In the formula, V is the dimensionless solid phase volume, t is the dimensionless time, A s is the reaction specific surface area, is the molar volume, k d is the deposition rate constant, f e is the equilibrium distribution function, f is the distribution function;

[0040] When the fluid density distribution and asphaltene precipitation state at the node are updated at each time step, the volume of the solid node increases accordingly, and the integrated explicit equation is expressed as: ;

[0041] In the formula, V ( t+d t ) is the dimensionless solid volume after asphaltene precipitation,V ( t ) is the dimensionless solid volume before asphaltene precipitation, A s is the reaction specific surface area, is the molar volume, k d is the deposition rate constant, f e is the equilibrium distribution function, f is the distribution function, d t is the unit time step;

[0042] ④ Asphaltene particles have strong lipophilicity. The heterogeneous wettability of asphaltene is calculated by setting the fluid-solid interaction parameters of the interaction force between fluid particles and solids in the MCMP-MRT-LBM model obtained in step (2). Characterize; fluid-solid interaction parameters of initial water-wet rock particles S=1 (S=1) remains unchanged, and its value range is generally [-1, 0]; the fluid-solid interaction parameter of the newly generated asphaltene particles T=1 (T=1) is continuously updated according to the precipitation position of asphaltene, and its value range is generally [0, 1], specifically expressed as oil wet, that is, (S=1) and (T=1) Set different values;

[0043] The solid nodes in the initial flow field S are points with S=1, and the wettability is water-wet; the solid nodes of the generated asphaltene T are points with T=1, and the wettability is oil-wet; the total solid nodes V are points with V=1, and the total number of solid nodes (V=1) = the number of solid nodes in the initial flow field (S=1) + the number of solid nodes of the generated asphaltene (T=1); a half-step rebound boundary is set at the position of the solid point;

[0044] ⑤ Simulation of asphaltene aggregation characteristics: Asphaltene particles have a strong affinity characteristic that tends to aggregate. Assuming that the growth position of asphaltene particles is located around the newly precipitated solid points, their aggregation trend can be determined by related parameters such as density gradient, weight, relative velocity, and Reynolds number.

[0045] When the adjacent node of an asphaltene solid node is a fluid point, there may be several fluid points around the solid point. According to the potential growth trend of the fluid point with the largest density gradient and the growth probability in the discrete velocity direction of the D2Q9 model, the adjacent fluid point is selected to be converted into a solid point to simulate the strong self-affinity characteristics of asphaltene particles that tend to aggregate. Specifically, different growth probabilities in nine directions are set at the solid point for characterization, and the growth cycle time is set through a two-dimensional four-parameter random growth method, so that the asphaltene node grows randomly to the surrounding area at a fixed time to simulate the aggregation characteristics of asphaltene.

[0046] ⑥ The action time of asphaltene generation is simulated by setting the starting time of the reverse VOP solid phase renewal reaction to simulate the oil-gas interaction time after the initial injection.

[0047] The construction of a multi-relaxed multi-phase multi-component LBM model coupling asphaltene deposition, interphase mass transfer and heterogeneous wettability is completed through steps (1)-(4);

[0048] (5) The constructed model is simulated and run to obtain the macroscopic data of the fluid, and the effect diagram of the asphaltene deposition simulation is obtained by visualization through Matlab.

[0049] In the present invention, the specific operation of processing the cast thin section or scanning electron microscope image of the unconventional oil reservoir into a black and white image representing the porous medium structure of the oil reservoir in step (1) of the oil reservoir gas flooding multiphase flow simulation method based on LBM comprehensive asphaltene deposition is as follows:

[0050] The contrast of cast thin sections or SEM images of unconventional oil reservoirs was enhanced by using the Image-Adjust-Brightness / Contrast function of the image J software;

[0051] Then, the contrast-enhanced casting thin sections or SEM images are processed by the Image-Type-8-bit function to obtain 8-bit images;

[0052] Adjust the grayscale value of the obtained 8-bit image to obtain a preliminary black-and-white processed image of a cast thin section or scanning electron microscope of an unconventional oil reservoir;

[0053] The image noise of the preliminary black-and-white processed image was removed by the Process-Noise-Despeckle function; it was further processed by Adobe Photoshop software to extract the rock particle structure and combine to obtain a black-and-white image representing the porous medium structure of the reservoir.

[0054] In the present invention, the specific operation of constructing the MRT-LBM model in step (2) of the reservoir gas flooding multiphase flow simulation method based on LBM comprehensive asphaltene deposition is as follows:

[0055] ① The multi-relaxation MRT model is selected as the basic model, and the D2Q9 discrete velocity model is used, which contains 9 discrete velocities e of particle migration. α :

[0056] ;

[0057] In the formula, e α for αDiscrete speed in direction, i= α , c=1;

[0058] α Indicates the direction of particle movement;

[0059] ② The size of the two-dimensional porous medium flow field array determined in step (1) is lx×ly, which is the length×width of the discrete grid of the lattice Boltzmann model. The fluid particles in the reservoir are further placed on the lattice nodes of the physical discrete space in the two-dimensional Cartesian coordinate system;

[0060] ③ According to the simulation requirements, the distribution functions of multiple fluids are set to characterize the multiphase fluid. The MRT-LBM evolution equation of the collision and migration of a fluid in the discrete phase space described by the density distribution function is as follows:

[0061] ;

[0062] In the formula, f σ,α (x+e α δt , t + d t ) is the particle in space x+e α d t and time t+ d t along α Density distribution function of orientation (after migration);

[0063] f σ,α (x, t ) is the particle's movement in space x and time t α Density distribution function of direction (before migration);

[0064] f σ,β (x, t ) is the density distribution function of the particle in the collision direction in space x and time t;

[0065] is the equilibrium distribution function of the particle in the collision direction in space x and time t;

[0066] d t is the time step; M is the transformation matrix; Λ is the diagonal relaxation matrix; F´ σ,α for α Direction of external force;

[0067] ④ In the conventional LBGK model, the collision-migration process takes place in velocity space, while for the MRT model, the collision process takes place in moment space. The transformation matrix M corresponding to the D2Q9 model is:

[0068] ;

[0069] ⑥The diagonal relaxation matrix Λ is expressed as: ;

[0070] In the formula s 1, s 2, s 4. s 6 is a free parameter with a value of 1.1; s 3= s 5, the value is 1; s 7= s 8=1 / t , t is the relaxation time, which depends on the fluid kinematic viscosity n , ; c s is the grid sound speed, taking the value ;

[0071] The macro equation of the MRT model has more adjustable parameters. By adjusting the above parameters, the model can be optimized, making the MRT model superior to the LBGK model in terms of numerical stability. At the same time, the MRT model can effectively improve the fluid viscosity ratio and reduce the calculation error of the fluid-solid boundary. It is suitable for dealing with fluid motion problems such as large viscosity ratio, interphase mass transfer, and solid phase precipitation.

[0072] ⑦ For discrete density distribution function f σ,β (x, t ) and the equilibrium distribution function (x, t ) is multiplied by the transformation matrix M to project it from the velocity space to the moment space, that is, m σ= f σ,β (x, t ), =M (x, t )M, then the MRT moment space evolution equation becomes:

[0073] ;

[0074] In the formula, m σ is the velocity moment in 9 directions; is the velocity moment after collision; is the equilibrium velocity moment in 9 directions; I is the unit tensor; S σ is the moment space external force; the moment space external force S σ for:

[0075] ;

[0076] In the formula, is the macro velocity of the oil in the x direction, is the total force in the x direction, is the macro velocity of the oil in the y direction, is the total force in the y direction.

[0077] ⑧The particle collision step occurs in the moment space, and the relationship between the density distribution function and the inverse matrix is: ;

[0078] ⑨The migration steps are represented by the density distribution function: ;

[0079] According to the above operations ①-⑨, the construction of the MRT-LBM model for characterizing the multiphase fluid flow in the porous medium of the oil reservoir is completed.

[0080] In the present invention, in the specific construction operation ① of the MRT-LBM model of step (2) of the LBM-based comprehensive asphaltene deposition reservoir gas flooding multiphase flow simulation method, according to the D2Q9 model, the fluid at each grid point has 9 moving directions; α = 0, indicating that the particle is at the origin. α =1, it means the particle moves in the positive direction of the x-axis. α =2, it means the particle moves in the positive direction of the y axis. α =3, it means the particle moves in the negative direction of the x-axis. α =4, it means the particle moves in the negative direction of the y axis. α =5, it means the particle's motion direction is between the positive direction of the x-axis and the positive direction of the y-axis. α =6, it means the particle's motion direction is between the negative direction of the x-axis and the positive direction of the y-axis. α =7, it means the particle's motion direction is between the negative direction of the x-axis and the negative direction of the y-axis. α When =8, it means that the particle's moving direction is between the positive direction of the x-axis and the negative direction of the y-axis.

[0081] In the present invention, the specific operation of constructing the MRT-MCMP-LBM model in step (2) of the reservoir gas flooding multiphase flow simulation method based on LBM comprehensive asphaltene deposition is as follows:

[0082] ①Shan-Chen model uses the equilibrium velocity Adding forces The expressions of the three external forces affecting the flow of fluid particles are: ;

[0083] In the formula, is the force between fluids; is the fluid-solid interaction force; It is the external force of the body;

[0084] ②The non-local interactions between particles of different fluids can be characterized by describing them as the interaction potential between discrete particles.

[0085] ;

[0086] In the formula, is the force parameter between fluids; is the force parameter between particles in a liquid, which is used to realize the cohesion of the liquid phase; σ and σ´ represent oil and gas respectively;

[0087] For false momentum, ,in, r σ For components s The density of ;

[0088] is the weight, ;

[0089] ③ ;

[0090] In the formula, is the fluid-solid interaction parameter, when two fluids ;

[0091] ④ The force between fluids can be used to characterize interfacial tension, and the fluid-solid force can be used to characterize heterogeneous wettability. The bulk force is the external force on the fluid, the center of mass of the force particle, which is used to drive the fluid flow, and its expression is:

[0092] ;

[0093] ⑤ The equilibrium velocity moment is: ;

[0094] In the formula, is the macro velocity of the oil in the x direction, is the macro velocity of the oil in the y direction, ,in ;

[0095] ⑥ The choice of boundary processing format in the lattice Boltzmann method has a significant impact on the accuracy of the simulation, numerical stability and computational efficiency. The boundary conditions of the lattice Boltzmann method need to be set according to the density distribution function.

[0096] According to the physical background flooding simulation of the present invention, based on the macroscopic quantity given at the boundary, the left side of the outer boundary condition is the non-equilibrium extrapolated boundary That is, the velocity at the boundary is known, but the density is unknown. The distribution function on the boundary node is regarded as two parts consisting of equilibrium and non-equilibrium states. A new equilibrium distribution function is constructed according to the specific boundary conditions to approximate the equilibrium part, and the non-equilibrium part of the adjacent fluid node is used to replace the non-equilibrium part.

[0097] The right side is the open exit boundary ; The outlet boundary on the right side of the porous flow is treated using the fully developed boundary condition, assuming that the fluid diffusion flux in the flow normal direction is zero, and the velocity and other distribution functions at the outlet boundary are equal to the velocity and other distribution functions of the adjacent grid points.

[0098] Solid borders use half-step bounce borders , is the direction of rebound velocity. Figure 3 As shown in the figure, assuming that the boundary is located between the grid points x and x', the particle passes through d t / 2 moves to the wall, collides with the wall and rebounds, and then passes d t / 2 returns to the initial starting point, and its expression is that the boundary condition has higher accuracy.

[0099] According to the above operations ①-⑥, the construction of the MRT-MCMP-LBM model for characterizing the flow of multiphase and multicomponent fluids in the porous media of the oil reservoir is completed.

[0100] The beneficial effects of the present invention are as follows: the simulation method described in the present invention is aimed at unconventional reservoirs, and studies the influencing mechanism of asphaltene deposition, interphase mass transfer characteristics and microscopic flow during gas drive including CO2 drive, N2 drive and hydrocarbon gas drive, so as to provide a theoretical basis and technical support for the efficient development of oil reservoirs.

[0101] The present invention provides a multiphase and multicomponent flow simulation method for gas-driven oil reservoirs based on LBM that considers asphaltene precipitation and deposition. The method comprehensively considers the limitations of previous asphaltene deposition simulation methods, and characterizes the asphaltene deposition behavior by modifying the existing VOP solid phase update method, combining the MRT model, pseudopotential model, thermodynamic solid phase model and experimental phenomena. The diffusion coefficient is fitted by Fick's second law, and the influence of the liquid-solid interface behavior in the porous medium on the migration law of the reservoir fluid is accurately simulated, and finally the coupled simulation of multiphase and multicomponent flow, interphase mass transfer and asphaltene deposition is realized, and a multi-relaxed multiphase and multicomponent lattice Boltzmann model that considers interphase mass transfer, asphaltene deposition and heterogeneous wettability is established.

[0102] After verification by microfluidic experiments, the asphaltene deposition behavior, interphase mass transfer characteristics and microscopic flow influencing mechanism during gas drive in unconventional reservoirs can be studied, and a theoretical basis and technical support for efficient development can be provided.

[0103] The present invention comprehensively considers the aggregation characteristics of asphaltene after deposition and the heterogeneous wettability and reservoir damage caused by it, which is more consistent with the actual situation. After fitting with the experiment, it can simulate complex situations that cannot be achieved by the experiment, or study the influence mechanism of a single factor, effectively reducing the experimental cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0104] Figure 1 This is a binary processing diagram of the reservoir structure in the present invention.

[0105] Figure 2 It is the D2Q9 discrete velocity model in the present invention.

[0106] Figure 3 Schematic diagram of half-step bounce boundary.

[0107] Figure 4 This is a fitting diagram of a diffusion coefficient and the interaction parameters between fluids.

[0108] Figure 5 This is a comparison diagram between the simulation of asphaltene deposition in a single tube by the method of the present invention and the microfluidics experiment.

[0109] Figure 6 It is a flow chart for realizing the program of the present invention.

[0110] Figure 7 for Figure 1 The simulation effect of asphaltene deposition during CO2 displacement in porous media is shown.

[0111] Figure 8 This is a graph showing the porosity of porous media changing with time.

[0112] Figure 9 This is a curve chart of the change of oil recovery rate EOR over time.

[0113] Figure 10 This is a curve diagram showing the change of the CO2 displacement front position over time. DETAILED DESCRIPTION

[0114] The technical solution of the present invention is described in detail below in conjunction with the accompanying drawings.

[0115] Example 1

[0116] The present invention will be further described below in conjunction with the accompanying drawings.

[0117] The reservoir gas drive multiphase flow simulation method based on LBM comprehensive asphaltene deposition comprises the following steps:

[0118] (1) Characterization of porous media structure in unconventional oil reservoirs:

[0119] For the casting thin slices with the size of 300μm×220μm (such as Figure 1 The unconventional oil reservoir layer is processed as shown in the left figure: the contrast of the cast thin section of the unconventional oil reservoir is enhanced by the Image-Adjust-Brightness / Contrast function of the image J software; the contrast-enhanced cast thin section is then processed by the Image-Type-8-bit function to obtain an 8-bit image; the grayscale value of the obtained 8-bit image is adjusted to obtain a preliminary black-and-white processed image of the cast thin section or scanning electron microscope of the unconventional oil reservoir layer; the image noise of the preliminary black-and-white processed image is removed by the Process-Noise-Despeckle function; and the rock particle structure is further extracted by Adobe Photoshop software, and a black-and-white image representing the porous medium structure of the oil reservoir layer is obtained by combination.

[0120] The obtained black-and-white image representing the porous media structure of the reservoir is read by imread in Matlab software and the grayscale value of each pixel is obtained to form a grayscale image; the obtained grayscale image is converted into a pure black and white binary image represented by 0 and 1 using the threshold transformation method through im2bw, where 0 represents pure black and 1 represents pure white; the binary image is scaled by the imresize function to obtain a 300×220-sized array S of spatial node numerical representations of the two-dimensional porous media flow field, and the array S contains two values ​​0 and 1; the two values ​​0 and 1 in the array are interchanged, so that 0 is replaced by pure black represented in the binary image to represent pure white and represents a fluid node; 1 is replaced by pure white represented in the binary image to represent pure black and represents a solid node; that is, the number of model grids is 300×220, where 1 grid unit length represents 4μm.

[0121] (2) Establish the MRT-MCMP-LBM basic model to characterize the multiphase and multicomponent flow in porous media of oil reservoirs;

[0122] First, construct the MRT-LBM model. The specific operations are as follows:

[0123] ① The multi-relaxation MRT model is selected as the basic model, and the D2Q9 discrete velocity model is used, which contains 9 discrete velocities e of particle migration. α :

[0124] ;

[0125] In the formula, e α for α Discrete speed in direction, i= α , c=1;

[0126] α Indicates the direction of particle movement;

[0127] ② The size of the two-dimensional porous medium flow field array determined in step (1) is lx×ly, which is the length×width of the discrete grid of the lattice Boltzmann model. The fluid particles in the reservoir are further placed on the lattice nodes of the physical discrete space in the two-dimensional Cartesian coordinate system;

[0128] ③ According to the simulation requirements, the distribution functions of multiple fluids are set to characterize the multiphase fluid. The MRT-LBM evolution equation of the collision and migration of a fluid in the discrete phase space described by the density distribution function is as follows:

[0129] ;

[0130] In the formula, f σ,α (x+e α δt , t + d t ) is the particle in space x+e α d t and time t+ d t along α Density distribution function of orientation (after migration);

[0131] f σ,α (x, t ) is the particle's movement in space x and time t α Density distribution function of direction (before migration);

[0132] fσ,β (x, t ) is the density distribution function of the particle in the collision direction in space x and time t;

[0133] is the equilibrium distribution function of the particle in the collision direction in space x and time t;

[0134] d t is the time step; M is the transformation matrix; Λ is the diagonal relaxation matrix; F´ σ,α for α Direction of external force;

[0135] ④The transformation matrix M corresponding to the D2Q9 model is:

[0136] ;

[0137] ⑥The diagonal relaxation matrix Λ is expressed as: ;

[0138] In the formula s 1, s 2, s 4. s 6 is a free parameter with a value of 1.1; s 3= s 5, the value is 1; s 7= s 8=1 / t , t is the relaxation time, which depends on the fluid kinematic viscosity n , ; c s is the grid sound speed, taking the value ;

[0139] ⑦ For discrete density distribution function f σ,β (x, t ) and the equilibrium distribution function (x, t ) is multiplied by the transformation matrix M to project it from the velocity space to the moment space, that is, m σ= f σ,β (x, t ), =M (x, t )M, then the MRT moment space evolution equation becomes:

[0140] ;

[0141] In the formula, m σ is the velocity moment in 9 directions; is the velocity moment after collision; is the equilibrium velocity moment in 9 directions; I is the unit tensor; S σ is the moment space external force; the moment space external force S σ for:

[0142] ;

[0143] In the formula, is the macro velocity of the oil in the x direction, is the total force in the x direction, is the macro velocity of the oil in the y direction, is the total force in the y direction.

[0144] ⑧The relationship between the density distribution function and the inverse matrix is: ;

[0145] ⑨The migration steps are represented by the density distribution function: ;

[0146] Then, the MRT-MCMP-LBM model is constructed. The specific operations are as follows:

[0147] ① The expressions of the three external forces acting on fluid particles are: ;

[0148] In the formula, is the force between fluids; is the fluid-solid interaction force; It is the external force of the body;

[0149] ② ;

[0150] In the formula, is the force parameter between fluids; is the force parameter between particles in a liquid; σ and σ´ represent oil and gas respectively;

[0151] For false momentum, ,in, r σ For components s The density of ;

[0152] is the weight, ;

[0153] ③ ;

[0154] In the formula, is the fluid-solid interaction parameter, when two fluids ;

[0155] ④ ;

[0156] ⑤ The equilibrium velocity moment is: ;

[0157] In the formula, is the macro velocity of the oil in the x direction, is the macro velocity of the oil in the y direction, ,in ;

[0158] ⑥ The left side of the outer boundary condition is the non-equilibrium extrapolation boundary ;

[0159] The right side is the open exit boundary ;

[0160] Solid borders use half-step bounce borders , is the direction of rebound velocity.

[0161] The lattice Boltzmann method discretizes fluid, space and time respectively, uses discrete particle collision and migration to replace real fluid motion, and uses dimensional analysis to establish the conversion relationship between fluid physical units and lattice units. Set the initial fluid parameters, crude oil density 8.5kg·m -3 , gas density 0.8kg·m -3 , which corresponds to the lattice numbers of 0.85 and 0.8 in the lattice Boltzmann method, and the kinematic viscosity of crude oil is 0.5×10 -6 m -2 ·s -1 , CO2 kinematic viscosity 0.1×10 -6 m -2 ·s -1 , the grid numbers are 0.5 and 0.1 respectively.

[0162] Substituting the above data into step (2), the MRT-MCMP-LBM model of CO2 oil displacement flow in porous media of oil reservoirs can be established.

[0163] (3) Characterization of diffusion coefficient: According to Fick's law, the fluid density distribution curve under a certain diffusion coefficient is obtained, and the fluid interaction parameter of the fluid particle interaction force in the MCMP-MRT-LBM model obtained in step (2) is calculated. Make corrections.

[0164] The oil and gas diffusion coefficient obtained by microscopic experiments is 1.3×10 -7 m 2 ·s -1 , the corresponding lattice quantity in the model of the present invention is 0.13. Figure 4As shown in Figure 1, a CO2 droplet is placed in the oil phase to simulate the diffusion process. As time increases, CO2 and the oil phase diffuse into each other. By adjusting the oil-CO2 interaction force parameters G oc To control the diffusion of oil phase-CO2.

[0165] When the simulation time is 1 / 10 of the time point when CO2 and oil phase are completely miscible, the CO2 density distribution curve at the central axis is as follows: Figure 4 As shown. Oil-CO2 diffusion can also be explained by Fick's second law Expressed as follows: and Indicates the density of CO2 and oil phase; and are the diffusion coefficients of CO2 and oil phase; time and size are expressed in grid units.

[0166] By adjusting the diffusion coefficient , which can perfectly fit the density distribution curve obtained by Fick's second law and LB simulation, and obtain the fluid interaction parameter Goc=0.3 corresponding to the diffusion coefficient of 0.13, as shown in Figure 4 shown.

[0167] Therefore, the diffusion coefficient in Fick's second law and the force parameter between fluids in LB simulation can be linked. As the oil-CO2 interaction force parameter increases, the lattice diffusion coefficient decreases gradually.

[0168] (4) Characterization of asphaltene deposition:

[0169] ① During the gas flooding process, the main reason for asphaltene deposition is that the attraction between asphaltene molecules and the surrounding adsorbed colloid molecules loses balance, resulting in the rearrangement of the asphaltene structure. Assuming that the asphaltene deposition process is composed of a series of continuous chemical reaction steps, combined with the thermodynamic solid phase model, the reaction model of asphaltene deposition is:

[0170] ;

[0171] Where D is the diffusion coefficient, m 2 ·s -1 ; C is the gas concentration, mol·m -3 ;k d is the deposition rate constant, mol·m -2 ·s -1 MPa -1 ; C e is the equilibrium saturation concentration, mol·m -3 ; n is the normal direction of the interface;

[0172] ② Asphaltene deposition conditions: The deposition rate of asphaltene is related to the concentration of the injected gas and its saturation in the crude oil system. In the LBM simulation of the convection and diffusion of CO2 and crude oil fluid particles, it can be characterized by the density distribution function of the injected gas CO2 and crude oil. When the crude oil density at a certain fluid node is lower than a certain range r oil-max The CO2 molecules significantly change the interaction between the core and asphaltene. At the same time, the local density difference between the injected gas and crude oil exceeds the critical threshold for asphaltene precipitation. r dep , the concentration of colloid molecules covering asphaltene is lower than the critical threshold required for the stability of the crude oil system, and the asphaltene component changes from a dissolved state to a solid deposit.

[0173] In the MCMP-MRT-LBM model obtained in step (3), the asphaltene precipitation condition is expressed by the fluid density distribution function as follows:

[0174] ;

[0175] In the formula, r dep The injected gas-oil grid density difference to meet the asphaltene precipitation threshold;

[0176] Asphaltene deposition rate r dep It is related to the saturation of asphaltene in the crude oil system and can be obtained through microfluidic experimental data and statistical methods. Its expression is:

[0177] ;in, is the asphaltene density distribution function, is the critical threshold of asphaltene deposition;

[0178] r oil-min The minimum lattice density of crude oil to meet the threshold of asphaltene precipitation;

[0179] r oil-max is the maximum lattice density of crude oil that meets the threshold of asphaltene precipitation;

[0180] is the density distribution function of oil;

[0181] is the density distribution function of the injected gas.

[0182] ③ The fluid-solid phase transition process of asphaltene precipitation is characterized by the inverse VOP solid phase renewal method:

[0183] In the conventional VOP solid phase update method, in the initial flow field S, the volume of the fluid node is 0 and the volume of the solid node is 1. When the volume of the solid node is less than or equal to 0 at a certain time step, the solid node becomes a fluid node, that is, the solid node is decomposed into a fluid. In this method, asphaltene precipitation is achieved through a reverse process, that is, the fluid and solid volume values ​​are stored at each node at each time step, the latest solid boundary is tracked in real time, and the volume fraction of the fluid and solid interface is stored at each grid point.

[0184] When the asphaltene deposition conditions are met at the fluid node, the fluid node is transformed into a solid node, and the inverse VOP solid phase update equation is: ;

[0185] In the formula, V is the dimensionless solid phase volume, t is the dimensionless time, A s is the reaction specific surface area, is the molar volume, k d is the deposition rate constant, f e is the equilibrium distribution function, f is the distribution function;

[0186] When the fluid density distribution and asphaltene precipitation state at the node are updated at each time step, the volume of the solid node increases accordingly, and the integrated explicit equation is expressed as: ;

[0187] In the formula, V ( t+d t ) is the dimensionless solid volume after asphaltene precipitation, V ( t ) is the dimensionless solid volume before asphaltene precipitation, A s is the reaction specific surface area, is the molar volume, k d is the deposition rate constant, f e is the equilibrium distribution function, f is the distribution function, d t is the unit time step; in the present invention, the value is 1;

[0188] ④ Asphaltene particles have strong lipophilicity. The heterogeneous wettability of asphaltene is calculated by setting the fluid-solid interaction parameters of the interaction force between fluid particles and solids in the MCMP-MRT-LBM model obtained in step (2). Characterize; fluid-solid interaction parameters of initial water-wet rock particles S=1 (S=1) remains unchanged, and its value range is generally [-1, 0]; the fluid-solid interaction parameter of the newly generated asphaltene particles T=1 (T=1) is continuously updated according to the precipitation position of asphaltene, and its value range is generally [0, 1], specifically expressed as oil wet, that is, (S=1) and (T=1) Set different values;

[0189] The solid nodes in the initial flow field S are points with S=1, and the wettability is water-wet; the solid nodes of the generated asphaltene T are points with T=1, and the wettability is oil-wet; the total solid nodes V are points with V=1, and the total number of solid nodes (V=1) = the number of solid nodes in the initial flow field (S=1) + the number of solid nodes of the generated asphaltene (T=1); a half-step rebound boundary is set at the position of the solid point;

[0190] ⑤ Simulation of asphaltene aggregation characteristics: Asphaltene particles have a strong affinity characteristic that tends to aggregate. Assuming that the growth position of asphaltene particles is located around the newly precipitated solid points, their aggregation trend can be determined by related parameters such as density gradient, weight, relative velocity, and Reynolds number.

[0191] When the adjacent node of an asphaltene solid node is a fluid point, there may be several fluid points around the solid point. According to the potential growth trend of the fluid point with the largest density gradient and the growth probability in the discrete velocity direction of the D2Q9 model, the adjacent fluid point is selected to be converted into a solid point to simulate the strong self-affinity characteristics of asphaltene particles that tend to aggregate. Specifically, different growth probabilities in nine directions are set at the solid point for characterization, and the growth cycle time is set through a two-dimensional four-parameter random growth method, so that the asphaltene node grows randomly to the surrounding area at a fixed time to simulate the aggregation characteristics of asphaltene.

[0192] ⑥ The action time of asphaltene generation is simulated by setting the starting time of the reverse VOP solid phase renewal reaction to simulate the oil-gas interaction time after the initial injection.

[0193] Through high temperature and high pressure microscopic visualization PVT test experiments, such as Figure 5The figure shows a microfluidic experiment and simulation comparison of asphaltene deposition process of CO2 near-miscible drive in a single-tube channel. In the blind-end pore structure, CO2 is continuously injected driven by pressure. At the same time, the microscopic experimental process is simulated by the LBM model of the present invention, and the interphase mass transfer behavior and asphaltene deposition characteristics during CO2 near-miscible drive / miscible drive can be verified. Under the action of the pressure gradient, the CO2 displacement front continues to advance. In the initial stage, the amount of asphaltene precipitation is small. When the front enters about 1 / 3 of the pipeline, CO2 and crude oil meet the asphaltene deposition conditions, and asphaltene is deposited in large quantities at the oil-CO2 phase interface. As the displacement proceeds, subsequent asphalt precipitates along the interface and continues to grow around, forming an asphaltene aggregation phenomenon. In addition, asphaltene continuously blocks CO2 during the displacement process, forming several displacement front-shaped deposits, until the final CO2 displacement front is completely blocked by asphaltene, and asphaltene begins to aggregate and deposit in large quantities, forming a reservoir blockage phenomenon. Asphaltene deposition rate obtained by microfluidic experiment r dep =0.48, r oil-min =0.25, r oil-max =0.9.

[0194] Figure 6 The flowchart shown is the implementation steps of the present invention. The macroscopic data of the fluid is obtained by running the program in sequence and visualized by Matlab. Figure 6-7 Asphaltene deposition simulation effect shown.

[0195] Figure 7 for Figure 1 The asphaltene deposition process of CO2 near-miscible flooding in porous media can be simulated to obtain the deposition patterns of asphaltene, including columnar deposition, film deposition, corner deposition and bridge plug deposition. Columnar deposition occurs inside the small pore throats perpendicular to the mainstream; film deposition occurs on the surface of rock particles and is the main source of reservoir damage; corner deposition occurs at corners with low flow velocity; bridge plug deposition occurs at the small throat openings at the pore throat connection.

[0196] By counting the solid nodes in the array S after the solid phase is updated, that is, the ratio of the sum of the asphaltene deposition volume and the total pore volume in the microscopic pore structure to the initial pore volume, the change of reservoir porosity over time can be calculated to characterize the degree of reservoir damage. Figure 8 As shown in the figure, asphaltene deposition requires a certain reaction time. When the reaction is sufficient, asphaltene precipitates, causing the reservoir porosity to decrease. After the running time step T=10000, the reservoir porosity decreases by about 2.8%. Asphaltene deposition can cause reservoir damage and change the wettability of the rock surface, reducing the reservoir permeability and porosity.

[0197] The key parameters of the CO2 flooding process in deep oil reservoirs, microscopic displacement efficiency and displacement front position, were characterized. Among them, the microscopic displacement efficiency EOR refers to the ratio of the cumulative oil production during the CO2 microscopic displacement process to the crude oil within the displacement range, which can be characterized as 1-(the ratio of the total sum of the crude oil mass at each node in the porous medium of the reservoir at a certain moment to the total sum of the crude oil mass at each node at the initial moment) in the model of the present invention. Figure 9 As shown, it is a curve of EOR changing with time. In the model of the present invention, the oil recovery rate increases with the increase of CO2 displacement time.

[0198] The displacement front position is of great significance for judging the timing of gas channeling and evaluating the displacement effect. The judgment method is that when the fluid grid density is less than half of the initial gas density, the first grid point position away from the outlet boundary is the front position.

[0199] like Figure 10 The figure shows the change of the CO2 displacement front position over time. The CO2 displacement front moves faster in the early stage because there is no asphaltene deposition. In the middle stage, when asphaltene begins to deposit, the CO2 flow is hindered and the movement of the front slows down. At the same time, the asphaltene obstruction reduces the CO2 density at the front and does not meet the asphaltene deposition conditions. Therefore, the movement speed of the front increases in the later stage. When CO2 breaks through, the front position remains unchanged.

[0200] In addition, by calculating the permeability change or changing the injection and production parameters, tortuosity, pore size, viscosity ratio, etc., it is possible to explore the asphaltene deposition, interphase mass transfer characteristics and microscopic flow influencing mechanism of CO2 displacement in unconventional oil reservoirs, and provide a theoretical basis and technical support for the efficient development of unconventional oil reservoirs.

Claims

1. A multiphase flow simulation method for reservoir gas flooding based on LBM comprehensive asphaltene deposition, characterized in that: The following steps are involved: (1) Characterization of porous media structure in unconventional oil reservoirs: First, the cast thin sections or scanning electron microscope images of unconventional oil reservoirs were processed into black-and-white images representing the porous media structure of the oil reservoirs using image J software; Then, the obtained black and white picture of the porous medium structure characterization of the oil reservoir is read by imread in Matlab software and the gray value of each pixel is obtained to form a gray value image; The obtained grayscale image is converted into a binary image represented by pure black and white represented by 0 and 1 using the threshold transformation method through im2bw, where 0 represents pure black and 1 represents pure white; The binary image is scaled by the imresize function to obtain a space node numerical representation array S of the two-dimensional porous medium flow field with a size of lx×ly. The array S contains two values ​​0 and 1. The two values ​​0 and 1 in the array are swapped, so that 0 is replaced by pure black in the binary image to represent pure white and represents a fluid node; and 1 is replaced by pure white in the binary image to represent pure black and represents a solid node; (2) Establish the MRT-MCMP-LBM basic model to characterize the multiphase and multicomponent flow in porous media of oil reservoirs; Firstly, the D2Q9 discrete velocity model is used to obtain the MRT-LBM evolution equation of the fluid collision and migration in the discrete phase space based on the particle distribution function of a certain fluid in the porous medium of the reservoir, and the MRT-LBM model characterizing the multiphase fluid flow in the porous medium of the reservoir is constructed; Then, based on the MRT-LBM model, the Shan-Chen pseudopotential model is added to characterize the interaction forces between fluid particles, the interaction forces between fluid particles and solids, and the bulk forces received by the fluid, and the MRT-MCMP-LBM model for simulating multiphase and multicomponent flow in porous media of oil reservoirs is obtained. (3) Characterization of diffusion coefficient: According to Fick's law, the fluid density distribution curve under a certain diffusion coefficient is obtained, and the fluid interaction parameter of the fluid particle interaction force in the MRT-MCMP-LBM model obtained in step (2) is calculated. make corrections; (4) Characterization of asphaltene deposition: ① The reaction model of asphaltene deposition is: ; Where D is the diffusion coefficient, m 2 ·s -1 ; C is the gas concentration, mol·m -3 ;k d is the deposition rate constant, mol·m -2 ·s -1 MPa -1 ; C e is the equilibrium saturation concentration, mol·m -3 ; n is the normal direction of the interface; ② Asphaltene deposition conditions: In the MRT-MCMP-LBM model obtained in step (3), the asphaltene precipitation conditions are expressed by the fluid density distribution function as follows: ; In the formula, ρ dep The density difference of injected gas-oil grid to meet the asphaltene precipitation threshold; Asphaltene deposition rate: ;in, is the asphaltene density distribution function, is the critical threshold of asphaltene deposition; ρ oil-min The minimum lattice density of crude oil to meet the threshold of asphaltene precipitation; ρ oil-max is the maximum lattice density of crude oil that meets the threshold of asphaltene precipitation; is the density distribution function of oil; is the density distribution function of the injected gas; ③ The fluid-solid phase transition process of asphaltene precipitation is characterized by the inverse VOP solid phase update method: when the fluid node meets the asphaltene deposition conditions, the fluid node is transformed into a solid node, and the inverse VOP solid phase update equation is: ; In the formula, V is the dimensionless solid phase volume, t is the dimensionless time, A s is the reaction specific surface area, is the molar volume, k d is the deposition rate constant, f e is the equilibrium distribution function, f is the distribution function; The explicit equation after integration is expressed as: ; In the formula, V ( t+δ t ) is the dimensionless solid volume after asphaltene precipitation, V ( t ) is the dimensionless solid volume before asphaltene precipitation, A s is the reaction specific surface area, is the molar volume, k d is the deposition rate constant, f e is the equilibrium distribution function, f is the distribution function, δ t is the unit time step; ④ The heterogeneous wettability of asphaltene is obtained by setting the fluid-solid interaction parameters of the interaction force between fluid particles and solids in the MRT-MCMP-LBM model obtained in step (2) Characterize; fluid-solid interaction parameters of initial water-wet rock particles S=1 (S=1) remains unchanged, and its value range is [-1, 0]; the fluid-solid interaction parameter of the newly generated asphaltene particles T=1 (T=1) is continuously updated according to the precipitation position of asphaltene, and its value range is [0, 1], which is specifically expressed as oil wet, that is, (S=1) and (T=1) Set different values; The solid node in the initial flow field S is the point of S=1, the solid node of the generated asphaltene T is the point of T=1, the total solid node V is the point of V=1, and the total number of solid nodes (V=1) = the number of solid nodes in the initial flow field (S=1) + the number of solid nodes of the generated asphaltene (T=1); set a half-step rebound boundary at the position of the solid point; ⑤ Simulation of asphaltene aggregation characteristics: When the adjacent node of a certain asphaltene solid node is a fluid point, the adjacent fluid point is selected to be converted into a solid point according to the potential growth trend of the fluid point with the largest density gradient and the growth probability in the discrete velocity direction of the D2Q9 model, so as to simulate the strong self-affinity characteristics of asphaltene particles tending to aggregate; specifically, different growth probabilities in nine directions are set at the solid point for characterization, and the growth cycle time is set through a two-dimensional four-parameter random growth method, so that the asphaltene node grows randomly to the periphery at a fixed time to simulate the aggregation characteristics of asphaltene; ⑥ The action time of asphaltene generation is simulated by setting the starting time of the reverse VOP solid phase renewal reaction to simulate the oil-gas interaction time after the initial injection; The construction of a multi-relaxed multi-phase multi-component LBM model coupling asphaltene deposition, interphase mass transfer and heterogeneous wettability is completed through steps (1)-(4); (5) The constructed model is simulated and run to obtain the macroscopic data of the fluid, and the effect diagram of the asphaltene deposition simulation is obtained by visualization through Matlab.

2. The reservoir gas flooding multiphase flow simulation method based on LBM comprehensive asphaltene deposition according to claim 1 is characterized in that: The specific operation of processing the cast thin section or scanning electron microscope image of the unconventional oil reservoir in step (1) into a black and white image representing the porous medium structure of the oil reservoir is as follows: The contrast of cast thin sections or SEM images of unconventional oil reservoirs was enhanced by using the Image-Adjust-Brightness / Contrast function of the image J software; Then, the contrast-enhanced casting thin sections or SEM images are processed by the Image-Type-8-bit function to obtain 8-bit images; Adjust the grayscale value of the obtained 8-bit image to obtain a preliminary black-and-white processed image of a cast thin section or scanning electron microscope of an unconventional oil reservoir; The image noise of the preliminary black-and-white processed image was removed by the Process-Noise-Despeckle function; it was further processed by Adobe Photoshop software to extract the rock particle structure, and combined to obtain a black-and-white image representing the porous medium structure of the reservoir.

3. The reservoir gas flooding multiphase flow simulation method based on LBM comprehensive asphaltene deposition according to claim 1 is characterized in that: The specific operations for constructing the MRT-LBM model in step (2) are as follows: ① The multi-relaxation MRT model is selected as the basic model, and the D2Q9 discrete velocity model is used, which contains 9 discrete velocities e of particle migration. α : ; In the formula, e α for α Discrete speed in direction, i= α , c=1; α Indicates the direction of particle movement; ② The size of the two-dimensional porous medium flow field array determined in step (1) is lx×ly, which is the length×width of the discrete grid of the lattice Boltzmann model. The fluid particles in the reservoir are further placed on the lattice nodes of the physical discrete space in the two-dimensional Cartesian coordinate system; ③ According to the simulation requirements, the distribution functions of multiple fluids are set to characterize the multiphase fluid. The MRT-LBM evolution equation of the collision and migration of a fluid in the discrete phase space described by the density distribution function is as follows: ; In the formula, f σ,α (x+e α δt , t + δ t ) is the particle in space x+e α δ t and time t+ δ t along α Density distribution function after directional migration; f σ,α (x, t ) is the particle's movement in space x and time t α Density distribution function before directional migration; f σ,β (x, t ) is the density distribution function of the particle in the collision direction in space x and time t; is the equilibrium distribution function of the particle in the collision direction in space x and time t; δ t is the time step; M is the transformation matrix; Λ is the diagonal relaxation matrix; F´ σ,α for α Direction of external force; ④The transformation matrix M corresponding to the D2Q9 model is: ; ⑥The diagonal relaxation matrix Λ is expressed as: ; In the formula s 1, s 2, s 4. s 6 is a free parameter with a value of 1.1; s 3= s 5, the value is 1; s 7= s 8=1 / τ , τ is the relaxation time, which depends on the fluid kinematic viscosity ν , ; c s is the grid sound speed, taking the value ; ⑦ For discrete density distribution function f σ,β (x, t ) and the equilibrium distribution function (x, t ) is multiplied by the transformation matrix M to project it from the velocity space to the moment space, that is, m σ= f σ,β (x, t ), =M (x, t )M, then the MRT moment space evolution equation becomes: ; In the formula, m σ is the velocity moment in 9 directions; is the velocity moment after collision; is the equilibrium velocity moment in 9 directions; I is the unit tensor; S σ is the moment space external force; the moment space external force S σ for: ; In the formula, is the macro velocity of the oil in the x direction, is the total force in the x direction, is the macro velocity of the oil in the y direction, is the total force in the y direction; ⑧The relationship between the density distribution function and the inverse matrix is: ; ⑨The migration steps are represented by the density distribution function: ; According to the above operations ①-⑨, the construction of the MRT-LBM model for characterizing the multiphase fluid flow in the porous medium of the oil reservoir is completed.

4. The reservoir gas flooding multiphase flow simulation method based on LBM comprehensive asphaltene deposition according to claim 3 is characterized in that: In the construction operation ①, according to the D2Q9 model, the fluid at each grid point has 9 moving directions; α = 0, indicating that the particle is at the origin. α =1, it means the particle moves in the positive direction of the x-axis. α =2, it means the particle moves in the positive direction of the y axis. α =3, it means the particle moves in the negative direction of the x-axis. α =4, it means the particle moves in the negative direction of the y axis. α =5, it means the particle's motion direction is between the positive direction of the x-axis and the positive direction of the y-axis. α =6, it means the particle's motion direction is between the negative direction of the x-axis and the positive direction of the y-axis. α =7, it means the particle's motion direction is between the negative direction of the x-axis and the negative direction of the y-axis. α When =8, it means that the particle's moving direction is between the positive direction of the x-axis and the negative direction of the y-axis.

5. The reservoir gas flooding multiphase flow simulation method based on LBM comprehensive asphaltene deposition according to claim 1 is characterized in that: The specific operations for constructing the MRT-MCMP-LBM model in step (2) are as follows: ① The expressions of the three external forces acting on fluid particles are: ; In the formula, is the force between fluids; is the fluid-solid interaction force; It is the external force of the body; ② ; In the formula, is the force parameter between fluids; is the force parameter between particles in a liquid; σ and σ´ represent oil and gas respectively; For false momentum, ,in, ρ σ For components σ The density of ; is the weight, ; ③ ; In the formula, is the fluid-solid interaction parameter, when two fluids ; ④ ; ⑤ The equilibrium velocity moment is: ; In the formula, is the macro velocity of the oil in the x direction, is the macro velocity of the oil in the y direction, ,in ; ⑥ The left side of the outer boundary condition is the non-equilibrium extrapolation boundary ; The right side is the open exit boundary ; Solid borders use half-step bounce borders , is the rebound speed direction; According to the above operations ①-⑥, the construction of the MRT-MCMP-LBM model for characterizing the multiphase fluid flow in the porous medium of the oil reservoir is completed.