A fast prediction method for viscous fingering based on microscopic seepage simulation and machine learning

By combining microscopic seepage simulation and machine learning technology, using the lattice Boltzmann method and U-Net network, we solve the problems of slow microscopic seepage simulation speed and limited parameter value range, and achieve rapid prediction of the saturation field of porous media. and viscous fingering type, which improves displacement efficiency and stability.

CN115184218BInactive Publication Date: 2024-10-11CHINA UNIV OF PETROLEUM (EAST CHINA)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210809532.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-11
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The microscopic seepage simulation method in the existing technology is slow, has a limited parameter value range, and may not converge. It is difficult to effectively study the microscopic seepage laws in porous media and affects the displacement efficiency.

Method used

A fast prediction method of viscous fingering based on microscopic seepage simulation and machine learning is adopted. The microscopic seepage process is simulated through the lattice Boltzmann method. It is trained with the U-Net network to generate a viscous fingering map and predict the conditions of different porous media with different capillary numbers. and saturation fields and viscosity fingering types under viscosity ratios.

Benefits of technology

It achieves rapid prediction of the saturation field and viscosity fingering type of porous media, with fast calculation speed, wide parameter value range, strong stability, and avoids the occurrence of non-convergence phenomena.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115184218B_ABST
    Figure CN115184218B_ABST
Patent Text Reader

Abstract

The present invention relates to a viscous fingering fast prediction method based on microscopic seepage simulation and machine learning, and its main steps include: inputting different two-dimensional porous media pictures, simulating the microscopic seepage process of non-wetting phase displacing wetting phase, obtaining the saturation field when the non-wetting phase breaks through under different capillary numbers and viscosity ratios, dividing different viscous fingering type areas according to the variation curve of non-wetting phase saturation with the logarithm of viscosity ratio or the logarithm of capillary number and drawing a viscous fingering phase diagram, processing the two-dimensional porous media picture and the saturation field when the non-wetting phase breaks through, obtaining training images and label images, inputting U-Net network for training, and using the network to predict the saturation field and viscous fingering type of new porous media pictures under different capillary numbers and viscosity ratios. This method can predict the saturation field and viscous fingering type of the same type of porous media under different capillary numbers and viscosity ratios based on the viscous fingering chart of typical porous media, thereby improving the calculation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of microscopic seepage and machine learning technology, and in particular to a viscous fingering rapid prediction method based on microscopic seepage simulation and machine learning. Background Art

[0002] Unstable immiscible displacement in porous media is widely present in nature and production life. The viscous fingering phenomenon in unstable immiscible displacement will reduce the displacement efficiency. Studying the microscopic seepage law is of great significance to better understand the macroscopic displacement process. At present, the methods for studying two-phase microscopic seepage mainly include experimental methods and simulation methods. Among them, the study of microscopic seepage law based on experimental methods requires expensive experimental equipment and a lot of time, and the smoothness of the microscopic etching model has a great influence on the experimental results; the study of microscopic seepage law based on simulation methods requires a lot of computing resources and time costs, and when the parameter value is too large, non-convergence will occur, which limits the range of parameter values. Therefore, in order to study the microscopic seepage law in porous media, it is urgent to propose a viscous fingering fast prediction method based on microscopic seepage simulation and machine learning. Summary of the invention

[0003] In order to solve the problems of slow simulation speed, limited parameter value range and possible non-convergence in microscopic seepage simulation, the present invention provides a fast prediction method for viscous fingering based on microscopic seepage simulation and machine learning. This method can quickly predict the saturation field and viscous fingering type of different porous media at non-wettability breakthrough under different capillary numbers and viscosity ratios.

[0004] The specific steps of the technical solution of the present invention are as follows:

[0005] (1) Different two-dimensional porous media images are input, and the lattice Boltzmann method is used to simulate the microscopic seepage process of the non-wetting phase displacing the wetting phase. At the initial moment, all the pores in the porous medium are occupied by the wetting phase, and the saturation field when the non-wetting phase breaks through is obtained under different capillary numbers Ca and different viscosity ratios M.

[0006] (2) For a certain porous medium image, the non-wetting phase saturation S is calculated based on the saturation field when the non-wetting phase breaks through under different capillary numbers Ca and different viscosity ratios M. n , under a certain capillary number Ca, the non-wetting phase saturation S is plotted n The variation curve of viscosity ratio log M, according to the saturation S of non-wetting phase n The size of the non-wetting phase is divided into the viscous fingering zone, transition zone and stable displacement zone, or the viscous fingering zone, transition zone and capillary fingering zone. When plotted at a certain viscosity ratio M, the non-wetting phase saturation S n The variation curve of capillary number log Ca, based on the non-wetting phase saturation S nThe size of the displacement zone can be divided into capillary fingering zone, transition zone and viscous fingering zone, or capillary fingering zone, transition zone and smooth displacement zone.

[0007] (3) Based on the zoning results under different capillary numbers Ca and viscosity ratios M, the double logarithmic diagram of the capillary number Ca and viscosity ratio M is divided into the viscous fingering zone, the capillary fingering zone, the smooth displacement zone and the transition zone, and a viscous fingering phase diagram is obtained for each porous medium image.

[0008] (4) Perform input processing based on the two-dimensional porous medium image to obtain a training image.

[0009] (5) Based on the saturation field when the non-wetting phase breaks through and its corresponding viscous fingering type, output processing is performed to obtain a label image.

[0010] (6) The training images obtained in step (4) and step (5) are matched one by one with the label images of the porous medium image at the capillary number Ca and the viscosity ratio M, and the matched images are input into the U-Net network for training.

[0011] (7) The new porous medium image is processed using the method of step (4) and input into the network to predict the saturation field and viscous fingering type when the non-wetting phase breaks through under different capillary numbers Ca and different viscosity ratios M.

[0012] The calculation formulas for the capillary number Ca and the viscosity ratio M in step (1) are as follows:

[0013]

[0014] where μ n is the displacement velocity of the non-wetting phase, η n is the non-wetting phase viscosity, σ is the surface tension, θ is the wetting angle, η w is the wetted phase viscosity.

[0015] The non-wetting phase saturation S in step (2) n The calculation formula is as follows:

[0016]

[0017] Where V n is the area occupied by the non-wetting phase in the saturation field diagram, V w It is the size of the area occupied by the wetting phase in the saturation field diagram.

[0018] The method for determining the viscous finger-in zone, the capillary finger-in zone, the stable displacement zone and the transition zone in step (3) is as follows:

[0019] The horizontal axis of the viscous fingering phase diagram is the logarithm of the viscosity ratio logM, and the vertical axis is the logarithm of the capillary number log Ca. The left side of the phase diagram is the viscous fingering zone, the lower side is the capillary fingering zone, and the upper right corner is the smooth displacement zone. The interface between the viscous fingering zone and the smooth displacement zone is parallel to the log Ca axis, the interface between the capillary fingering zone and the smooth displacement zone is parallel to the logM axis, and the interface between the viscous fingering zone and the capillary fingering zone is parallel to log Ca=logM. There is a transition zone between any two zones.

[0020] The training image processing method in step (4) is as follows:

[0021] The pixel value of the pore part in the two-dimensional porous medium image is set to 1, and the pixel value of the solid skeleton part is set to 0 to obtain a single-channel grayscale image. Two two-dimensional matrices with the same number of pixels as the porous medium image are established. The values ​​in the matrices are the logarithm of the capillary number log Ca and the logarithm of the viscosity ratio log M, respectively. The single-channel grayscale image and the two two-dimensional matrices are superimposed in turn to obtain a training image.

[0022] The label image processing method in step (5) is as follows:

[0023] The pixel value of the solid skeleton part in the saturation field map when the displacement phase breaks through is set to 0, the pixel value of the displacement phase part is set to 1, and the pixel value of the displaced phase part is set to 2 to obtain a single-channel grayscale image, and four two-dimensional matrices with the same number of pixels as the porous medium image are established. Each matrix corresponds to four types of viscous fingering, namely capillary fingering, smooth displacement, viscous fingering and transition zone. All the values ​​in the two-dimensional matrix of the viscous fingering type corresponding to the saturation field are assigned to 1, and all the values ​​in the remaining two-dimensional matrices are assigned to 0. The single-channel grayscale image and the four two-dimensional matrices are superimposed in turn to obtain a label image.

[0024] The U-Net network in step (6) comprises 4 encoding layers and 4 decoding layers; each layer in the encoding layer is mainly composed of two 3×3 convolutional layers and a 2×2 pooling layer; after each convolution operation, it is activated by a Relu rectified linear unit activation function, and finally a pooling operation is performed; each layer of the decoding layer corresponds to the encoding network level, and each layer is mainly composed of two 3×3 convolutional layers and a 2×2 upsampling layer. Before each convolution operation, a jump connection operation is required, that is, the features from the encoding layer and the features from the decoding layer are spliced ​​and fused using a feature layer splicing method; finally, a saturation field and a matrix representing four types of viscous fingering are obtained through a 1×1 convolutional layer. During training, the loss function of the network is the cross entropy between the network output and the label image.

[0025] The prediction process in step (7) is as follows:

[0026] By inputting the image processed by the method in step (4) into the network, the saturation field and four matrices representing different viscous fingering types can be obtained. The four matrices are summed respectively, and the viscous fingering type corresponding to the matrix with the largest value is the viscous fingering type of the porous medium under the capillary number Ca and viscosity ratio M.

[0027] The present invention has the following beneficial effects and advantages:

[0028] The present invention establishes a machine learning prediction method for microscopic seepage process. It can predict the saturation field and viscous fingering type of the same type of porous media under different capillary numbers and viscosity ratios based only on the viscous fingering chart of typical porous media. It has the characteristics of fast calculation speed, strong stability and a wide range of parameter values. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a flow chart of the present invention.

[0030] Figure 2 These are the curves of non-wetting phase saturation changing with capillary number and the curve of non-wetting phase saturation changing with viscosity ratio.

[0031] Figure 3 Schematic diagram of viscous fingering, capillary fingering and smooth displacement.

[0032] Figure 4 It is the viscosity finger phase diagram.

[0033] Figure 5 For training images.

[0034] Figure 6 is the label image.

[0035] Figure 7 This is the U-Net network structure diagram.

[0036] Figure 8 The network prediction graph. DETAILED DESCRIPTION

[0037] The present invention will be further described with reference to the accompanying drawings and embodiments:

[0038] This embodiment provides a method for rapid prediction of viscous fingering based on microscopic seepage simulation and machine learning. Figure 1 As shown, the following steps are included:

[0039] (1) Different two-dimensional porous media images are input, and the lattice Boltzmann method is used to simulate the microscopic seepage process of the non-wetting phase displacing the wetting phase. At the initial moment, all the pores in the porous medium are occupied by the wetting phase, and the saturation field when the non-wetting phase breaks through is obtained under different capillary numbers Ca and different viscosity ratios M.

[0040] The calculation formula of capillary number Ca and viscosity ratio M is as follows:

[0041]

[0042] where μ n is the displacement velocity of the non-wetting phase, η n is the non-wetting phase viscosity, σ is the surface tension, θ is the wetting angle, η w is the wetted phase viscosity.

[0043] (2) For a certain porous medium image, the non-wetting phase saturation S is calculated based on the saturation field when the non-wetting phase breaks through under different capillary numbers Ca and different viscosity ratios M. n , non-wetting phase saturation S n The calculation formula is as follows:

[0044]

[0045] Where V n is the area occupied by the non-wetting phase in the saturation field diagram, V w It is the size of the area occupied by the wetting phase in the saturation field diagram.

[0046] At a certain capillary number Ca, plot the non-wetting phase saturation S n The variation curve of viscosity ratio log M, according to the saturation S of non-wetting phase n The size of the non-wetting phase is divided into the viscous fingering zone, transition zone and stable displacement zone, or the viscous fingering zone, transition zone and capillary fingering zone. When plotted at a certain viscosity ratio M, the non-wetting phase saturation S n The variation curve of capillary number log Ca, based on the non-wetting phase saturation S n The size of the non-wetting phase saturation S is divided into capillary fingering zone, transition zone and viscous fingering zone, or capillary fingering zone, transition zone and stable displacement zone. In this embodiment, the non-wetting phase saturation S is obtained based on a porous medium image. n The change curve and partition results are as follows Figure 2 The schematic diagrams of viscous fingering, capillary fingering and smooth displacement are shown in Figure 3 shown.

[0047] (3) Based on the zoning results under different capillary numbers Ca and viscosity ratios M, the double logarithmic diagram of capillary number Ca and viscosity ratio M is divided into viscous fingering zone, capillary fingering zone, smooth displacement zone and transition zone, and the viscous fingering phase diagram is obtained.

[0048] The horizontal axis of the viscous fingering phase diagram is the logarithm of the viscosity ratio logM, and the vertical axis is the logarithm of the capillary number logCa. The left side of the phase diagram is the viscous fingering area, the lower side is the capillary fingering area, and the upper right corner is the stable displacement area. The interface between the viscous fingering area and the stable displacement area is parallel to the logCa axis, the interface between the capillary fingering area and the stable displacement area is parallel to the logM axis, and the interface between the viscous fingering area and the capillary fingering area is parallel to logCa=logM. There is a transition zone between any two areas. In this embodiment, the viscous fingering phase diagram is obtained based on a certain porous medium picture as shown in Figure 4 shown.

[0049] (4) Based on the two-dimensional porous medium image, input processing is performed, the pixel value of the pore part in the two-dimensional porous medium image is set to 1, and the pixel value of the solid skeleton part is set to 0, to obtain a single-channel grayscale image, and two two-dimensional matrices with the same number of pixels as the porous medium image are established. The values ​​in the matrices are respectively the capillary number logarithm log Ca and the viscosity ratio logarithm log M. The single-channel grayscale image and the two two-dimensional matrices are superimposed in sequence to obtain a training image. In this embodiment, the training image of a porous medium with the capillary number log Ca = -1 and the viscosity ratio log M = 0 is as follows: Figure 5 shown.

[0050] (5) Based on the saturation field when the non-wetting phase breaks through and the corresponding viscous fingering type, output processing is performed. The pixel value of the solid skeleton part in the saturation field image when the displacement phase breaks through is set to 0, the pixel value of the displacement phase part is set to 1, and the pixel value of the displaced phase part is set to 2 to obtain a single-channel grayscale image, and four two-dimensional matrices with the same number of pixels as the porous medium image are established. Each matrix corresponds to four viscous fingering types: capillary fingering, smooth displacement, viscous fingering and transition zone. All the values ​​in the two-dimensional matrix of the viscous fingering type corresponding to the saturation field are assigned to 1, and all the values ​​in the remaining two-dimensional matrices are assigned to 0. The single-channel grayscale image and the four two-dimensional matrices are superimposed in turn to obtain a label image. In this embodiment, the lattice Boltzmann method is used to obtain the capillary number log of a certain porous medium. The saturation field of the non-wetting phase when Ca=-1 and the viscosity ratio logarithm logM=-2, the corresponding viscous fingering type is obtained based on the viscous fingering phase diagram as viscous fingering, and the label image obtained after processing the saturation field and viscous fingering type when the non-wetting phase breaks through is as follows Figure 6 shown.

[0051] (6) One-to-one correspondence is made between the training images obtained in step (4) and step (5) and the label images of the porous medium image at the capillary number Ca and the viscosity ratio M, and the correspondence images are input into the U-Net network for training;

[0052] In this embodiment, the U-Net network structure is as follows: Figure 7As shown in the figure, it includes 4 encoding layers and 4 decoding layers; each layer in the encoding layer is mainly composed of two 3×3 convolution layers and a 2×2 pooling layer; after each convolution operation, it is activated by the Relu rectified linear unit activation function, and finally the pooling operation is performed; each layer of the decoding layer corresponds to the encoding network level, and each layer is mainly composed of two 3×3 convolution layers and a 2×2 upsampling layer. Before each convolution operation, a jump connection operation is required, that is, the features from the encoding layer and the features from the decoding layer are spliced ​​and fused using the feature layer splicing method; finally, a 1×1 convolution layer is passed to obtain the saturation field and the matrix representing the four types of viscous fingering. During training, the loss function of the network is the cross entropy between the network output and the label image.

[0053] (7) The new porous medium image is processed using the method of step (4) and input into the network for prediction, so that the saturation field under different capillary numbers Ca and different viscosity ratios M and four matrices representing different viscous fingering types can be obtained. The four matrices are summed respectively, and the viscous fingering type corresponding to the matrix with the largest value is the corresponding viscous fingering type. In this embodiment, Figure 8 As shown, the new porous medium is input into the network for prediction, and its saturation field diagram is obtained when the logarithm of the capillary number log Ca = -1 and the logarithm of the viscosity ratio log M = 1, and its viscous fingering type is determined to be smooth displacement.

Claims

1. A fast prediction method for viscous fingering based on microscopic seepage simulation and machine learning , It is characterized by the following steps: (1) Different two-dimensional porous media images are input, and the lattice Boltzmann method is used to simulate the microscopic seepage process of the non-wetting phase displacing the wetting phase. At the initial moment, all the pores in the porous medium are occupied by the wetting phase, and the saturation field when the non-wetting phase breaks through is obtained under different capillary numbers Ca and different viscosity ratios M; (2) For a certain porous medium image, the non-wetting phase saturation S is calculated based on the saturation field when the non-wetting phase breaks through under different capillary numbers Ca and different viscosity ratios M. n , under a certain capillary number Ca, the non-wetting phase saturation S is plotted n The variation curve of viscosity ratio log M, according to the saturation S of non-wetting phase n The size of the non-wetting phase is divided into the viscous fingering zone, transition zone and stable displacement zone, or the viscous fingering zone, transition zone and capillary fingering zone. When plotted at a certain viscosity ratio M, the non-wetting phase saturation S n The variation curve of capillary number log Ca, based on the non-wetting phase saturation S n The size of the displacement zone is divided into capillary fingering zone, transition zone and viscous fingering zone, or capillary fingering zone, transition zone and stable displacement zone; (3) Based on the zoning results under different capillary numbers Ca and viscosity ratios M, the double logarithmic diagram of capillary number Ca and viscosity ratio M is divided into viscous fingering zone, capillary fingering zone, stable displacement zone and transition zone, and a viscous fingering phase diagram for each porous medium image is obtained; (4) performing input processing based on the two-dimensional porous medium image to obtain a training image; (5) output processing is performed based on the saturation field when the non-wetting phase breaks through and the corresponding viscous fingering type to obtain a label image; (6) One-to-one correspondence is made between the training images obtained in step (4) and step (5) and the label images of the porous medium image at the capillary number Ca and the viscosity ratio M, and the correspondence images are input into the U-Net network for training; (7) Processing the new porous medium image using the method in step (4) and inputting it into the network to predict the saturation field and viscous fingering type when the non-wetting phase breaks through under different capillary numbers Ca and different viscosity ratios M; The training image processing method in step (4) is as follows: The pixel value of the pore part in the two-dimensional porous medium image is set to 1, and the pixel value of the solid skeleton part is set to 0 to obtain a single-channel grayscale image. Two two-dimensional matrices with the same number of pixels as the porous medium image are established. The values ​​in the matrices are the logarithm of the capillary number log Ca and the logarithm of the viscosity ratio log M. The single-channel grayscale image and the two two-dimensional matrices are superimposed in sequence to obtain a training image. The label image processing method in step (5) is as follows: The pixel value of the solid skeleton part in the saturation field map when the displacement phase breaks through is set to 0, the pixel value of the displacement phase part is set to 1, and the pixel value of the displaced phase part is set to 2 to obtain a single-channel grayscale image, and four two-dimensional matrices with the same number of pixels as the porous medium image are established. Each matrix corresponds to four types of viscous fingering, namely capillary fingering, smooth displacement, viscous fingering and transition zone. All the values ​​in the two-dimensional matrix of the viscous fingering type corresponding to the saturation field are assigned to 1, and all the values ​​in the remaining two-dimensional matrices are assigned to 0. The single-channel grayscale image and the four two-dimensional matrices are superimposed in turn to obtain a label image.

2. A method for rapid prediction of viscous fingering based on microscopic seepage simulation and machine learning as claimed in claim 1, It is characterized in that The calculation formulas for the capillary number Ca and the viscosity ratio M in step (1) are as follows: where μ n is the displacement velocity of the non-wetting phase, η n is the non-wetting phase viscosity, σ is the surface tension, θ is the wetting angle, η w is the wetted phase viscosity.

3. A method for rapid prediction of viscous fingering based on microscopic seepage simulation and machine learning as claimed in claim 1, It is characterized in that The non-wetting phase saturation S in step (2) is n The calculation formula is as follows: Where V n is the area occupied by the non-wetting phase in the saturation field diagram, V w It is the size of the area occupied by the wetting phase in the saturation field diagram.

4. A method for rapid prediction of viscous fingering based on microscopic seepage simulation and machine learning as claimed in claim 1, It is characterized in that The method for determining the viscous finger-in zone, the capillary finger-in zone, the stable displacement zone and the transition zone in step (3) is as follows: The horizontal axis of the viscous fingering phase diagram is the logarithm of the viscosity ratio logM, and the vertical axis is the logarithm of the capillary number log Ca. The left side of the phase diagram is the viscous fingering zone, the lower side is the capillary fingering zone, and the upper right corner is the smooth displacement zone. The interface between the viscous fingering zone and the smooth displacement zone is parallel to the log Ca axis, the interface between the capillary fingering zone and the smooth displacement zone is parallel to the logM axis, and the interface between the viscous fingering zone and the capillary fingering zone is parallel to log Ca=logM. There is a transition zone between any two regions.

5. A method for rapid prediction of viscous fingering based on microscopic seepage simulation and machine learning as claimed in claim 1, It is characterized in that The U-Net network in step (6) comprises 4 encoding layers and 4 decoding layers; each layer in the encoding layer is mainly composed of two 3×3 convolutional layers and a 2×2 pooling layer; after each convolution operation, it is activated by a Relu rectified linear unit activation function, and finally a pooling operation is performed; each layer of the decoding layer corresponds to the encoding network level, and each layer is mainly composed of two 3×3 convolutional layers and a 2×2 upsampling layer. Before each convolution operation, a jump connection operation is required, that is, the features from the encoding layer and the features from the decoding layer are spliced ​​and fused using a feature layer splicing method; finally, a saturation field and a matrix representing four types of viscous fingering are obtained through a 1×1 convolutional layer. During training, the network loss function is the cross entropy between the network output and the label image.

6. A method for rapid prediction of viscous fingering based on microscopic seepage simulation and machine learning as claimed in claim 1, It is characterized in that The prediction process in step (7) is as follows: By inputting the image processed by the method in step (4) into the network, the saturation field and four matrices representing different viscous fingering types can be obtained. The four matrices are summed respectively, and the viscous fingering type corresponding to the matrix with the largest value is the viscous fingering type of the porous medium under the capillary number Ca and viscosity ratio M.