A multi-scale rapid simulated annealing modeling method based on two-dimensional core structure
Through the multi-scale rapid simulated annealing modeling method based on the two-dimensional core structure, using layering and synthesis steps, the problems of long core physical experiment period and large error in the traditional method are solved, and fast and accurate three-dimensional core structure modeling is achieved. Computational efficiency is significantly improved.
Patent Information
- Application Number
- CN202110265930.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-11
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-03-11
AI Technical Summary
Traditional core physical experiments have long cycles, high costs, and large errors under extreme conditions. The traditional simulated annealing method takes a long time to establish a digital core structure and has many isolated points, making it difficult to quickly and accurately construct a three-dimensional core structure.
A multi-scale rapid simulated annealing modeling method based on the two-dimensional core structure is adopted. Through layering and synthesis steps, the Metropolis criterion and morphological erosion operations are used to gradually reconstruct and synthesize structures of different scales to improve modeling efficiency.
It realizes the rapid construction of the three-dimensional structure of the digital core, reduces the calculation time, improves the modeling effect, and can more accurately simulate the physical properties of the core under extreme conditions.
Smart Images

Figure CN113034637B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of three-dimensional core modeling and geological modeling, and in particular to a multi-scale rapid simulated annealing modeling method based on a two-dimensional core structure. Background Art
[0002] Core physics experiments are the basis of petroleum geological exploration. Traditional core physics experiments can only provide qualitative interpretations of core physical properties. In addition, core physics experiments have long cycles, high costs, and large errors under extreme conditions (such as low porosity and low permeability). In recent years, digital core analysis technology has achieved rapid development, providing an effective means for studying the macroscopic physical properties of oil and gas reservoirs. The digitized three-dimensional microstructure of the core is the basis for studying the physical properties of the core and revealing the flow and distribution laws of oil, gas and water in the core microstructure. How to digitize the three-dimensional structure of the core and serve the petroleum geological department. The simulated annealing algorithm is an important method for constructing the three-dimensional structure of the digital core. When constructing the three-dimensional structure of the digital core, the algorithm can consider any number of objective functions to measure the characteristics of the two-dimensional image and the three-dimensional structure. When constructing the three-dimensional structure of the core, the error of the objective functions of the two is used as the energy constraint to calculate the similarity between the two-dimensional image and the reconstructed three-dimensional structure, thereby reproducing the complex geological core structure characteristics. The traditional simulated annealing method has the disadvantages of being time-consuming and having many isolated points when establishing the digital core structure. Summary of the invention
[0003] The purpose of the present invention is to provide a multi-scale rapid simulated annealing modeling method based on a two-dimensional core structure, including layering and synthesis, and the specific steps are:
[0004] S1, firstly, the read-in two-dimensional image is layered at different scales S, S-1, ..., 0 to obtain a series of reconstructed reference images;
[0005] S2, reconstruction starts from the coarsest scale S, generates a random image as the initial state according to the number of phases and the percentage of phases contained in the scale S image, selects a two-point probability function as the energy function, and sets the initial conditions;
[0006] S3, randomly select two points of different phases and exchange them to generate a new state;
[0007] S4, calculate the objective function difference △E corresponding to the new state and the old state, and determine whether the new state is accepted. The basis for judging acceptance is the Metropolis criterion;
[0008] S5, determine whether the end condition is met at this scale, if not, proceed to the next iteration, if the end condition is met, determine whether the scale is 0, if it is 0, the entire reconstruction is completed, if not 0, the S scale reconstruction is completed, and a morphological corrosion operation is performed on the reconstruction result;
[0009] S6, synthesize the scale S-1 image with the scale S reconstructed image, and randomly change the corroded structural state in the synthesized scale S-1 structure according to the percentage of the pore phase and the rock phase in the scale S-1 reference image, so that the percentage of the rock phase and the pore phase in the synthesized scale S-1 structure is the same as the percentage of the pore phase and the rock phase in the scale S-1 reference image, and use this structure as the initial structure at the scale S-1, reset the initial conditions, and use the image of the scale S-1 in the original image as the reference image, and repeat steps S3-S6;
[0010] S7. Apply the simulated annealing method to reconstruct the structure of scale S-1, and repeat the above S5-S6 process until the reconstruction of scale 0 is completed. The reconstruction of the multi-scale rapid simulated annealing modeling method based on the two-dimensional core structure is completed.
[0011] Furthermore, the stratification process is mainly to obtain a series of original reference images, and the synthesis process is to synthesize the structure of the next scale according to certain rules for the structures reconstructed at different scales, and use the synthesized structure as the initial structure of the reconstructed structure at the next scale.
[0012] Furthermore, the simulated annealing method is used to reconstruct the coarsest scale S, and then a morphological corrosion operation is performed on the pore phase and rock phase of the coarsest scale S reconstruction result, and the eroded structure position is calibrated with a pixel value of 128.
[0013] Furthermore, the corroded structure participates in the reconstruction of the next scale as a free state, and the uncorroded structure no longer participates in the selection of pixel points in the simulated annealing algorithm as a stable state.
[0014] Furthermore, the eroded structure is synthesized into a fine-scale S-1 structure according to a synthesis rule, and based on the percentage of the pore phase and the rock phase in the scale S-1 reference image.
[0015] Furthermore, the corroded structural state in the synthetic scale S-1 structure is randomly changed so that the percentage of rock phase and porous phase in the synthetic scale S-1 structure is the same as the percentage of porous phase and rock phase in the scale S-1 reference image, and the structure is used as the initial structure at scale S-1.
[0016] Compared with the prior art, the beneficial effect of the present invention is that the digital core structure constructed by the present invention, except for scale 0, performs an erosion operation on the reconstruction result at each scale, and makes a correction for the reconstruction at the next scale, thereby improving the modeling effect. Since only a small number of pixels are involved in the reconstruction of simulated annealing at each scale, the algorithm of the present invention can quickly realize the digital core structure modeling. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a schematic diagram of the process of the multi-scale rapid simulated annealing modeling method based on the two-dimensional core structure in the present invention;
[0018] Figure 2 It is a schematic diagram of the layering rules and synthesis rules of the present invention;
[0019] Figure 3 It is the original scale image of the two-dimensional reconstruction reference image of the present invention;
[0020] Figure 4 This is a result diagram of the two-dimensional reconstruction of the reference image scale 1 of the present invention;
[0021] Figure 5 This is a result diagram of the two-dimensional reconstruction of the reference image scale 2 of the present invention;
[0022] Figure 6 This is a result diagram of the two-dimensional reconstruction of the reference image scale 3 of the present invention;
[0023] Figure 7 This is a result diagram of two-dimensional simulated annealing reconstruction of the present invention;
[0024] Figure 8 This is the result of the reconstruction at scale 3 of the present invention;
[0025] Fig. 9 This is the structural diagram after corrosion of scale 3 of the present invention;
[0026] Fig.10 This is the result image of the reconstruction at scale 2 of the present invention;
[0027] Fig.11 This is the structural diagram after corrosion of scale 2 of the present invention;
[0028] Fig.12 This is the reconstruction result diagram of scale 1 of the present invention;
[0029] Fig.13 This is the structural diagram after corrosion of scale 1 of the present invention;
[0030] Fig.14 This is the reconstruction result image of scale 0 of the present invention;
[0031] Fig.15 The original scale image of the reference image reconstructed by two-dimensional annealing of the present invention;
[0032] Fig.16 This is a result diagram of scale 1 of the reference image reconstructed by two-dimensional annealing according to the present invention;
[0033] Fig.17 This is a scale 2 result diagram of the reference image reconstructed by two-dimensional annealing according to the present invention;
[0034] Fig.18This is a result diagram of scale 3 of the reference image reconstructed by two-dimensional annealing according to the present invention;
[0035] Fig.19 This is a two-dimensional annealing reconstruction result diagram of the present invention;
[0036] Fig. 20 This is a result diagram of scale 3 of the reference image reconstructed by two-dimensional annealing according to the present invention;
[0037] Fig.21 The structure diagram after 3-scale corrosion of the reference image reconstructed by two-dimensional annealing of the present invention;
[0038] Fig. 22 This is a scale 2 result diagram of the reference image reconstructed by two-dimensional annealing according to the present invention;
[0039] Fig.23 The structure diagram after the 2D annealing reconstruction reference image scale 2 corrosion of the present invention;
[0040] Fig.24 This is a result diagram of scale 1 of the reference image reconstructed by two-dimensional annealing according to the present invention;
[0041] Fig.25 This is a structural diagram of the reference image scale 1 after corrosion by two-dimensional annealing reconstruction of the present invention;
[0042] Fig.26 This is the scale 0 result image of the two-dimensional annealing reconstruction reference image of the present invention;
[0043] Fig. 27 The original scale image of the reference image for the three-dimensional annealing reconstruction of the present invention;
[0044] Fig.28 This is a result diagram of scale 1 of the reference image of the three-dimensional annealing reconstruction of the present invention;
[0045] Fig.29 This is a scale 2 result diagram of the three-dimensional annealing reconstruction reference image of the present invention;
[0046] Fig.30 This is a three-dimensional annealing reconstruction result diagram of the present invention;
[0047] Fig.31 This is a scale 2 result diagram of the three-dimensional annealing reconstruction reference image of the present invention;
[0048] Fig.32 The structure diagram after the 2-scale corrosion of the reference image of the three-dimensional annealing reconstruction of the present invention;
[0049] Fig.33 This is a result diagram of scale 1 of the reference image of the three-dimensional annealing reconstruction of the present invention;
[0050] Fig.34 This is a structural diagram after erosion of the reference image scale 1 of the three-dimensional annealing reconstruction of the present invention;
[0051] Fig.35 This is the scale 0 result diagram of the three-dimensional annealing reconstruction reference image of the present invention. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] A multi-scale rapid simulated annealing modeling method based on a two-dimensional core structure includes layering and synthesis, and the specific steps are as follows:
[0054] S1, firstly, the read-in two-dimensional image is layered at different scales S, S-1, ..., 0 to obtain a series of reconstructed reference images;
[0055] Layering: x (s) represents an image with a scale of S. When S becomes smaller, it indicates that the image structure becomes finer. Let it be image x (s) The pixel value at position i, for example:
[0056] In an image of scale S, {i1,i2,i3,i4} is the index position i in its sub-scale S+1. Through the image of scale S, the image of scale S+1 is obtained.
[0057] S2, reconstruction starts from the coarsest scale S, generates a random image as the initial state according to the number of phases and the percentage of phases contained in the scale S image, selects a two-point probability function as the energy function, and sets the initial conditions;
[0058] The present invention uses a two-point probability function as an energy function, and its calculation formula is:
[0059]
[0060] Among them, E(x (s) ) is the energy function of scale S, P 11 (x (s) ) is the probability function of two points in the horizontal and vertical directions of the pore phase in the reference image of scale S, is the two-point probability function of the horizontal and vertical directions of the pore phase in the scale S reconstruction image, P 11(对角) (x (s) ) is the probability function of two points in the pore phase at 45 degrees and 135 degrees in the scale S reference image, The probability function of two points in the forty-five degree direction and one hundred and thirty-five degree direction of the pore phase in the scale S reconstructed image;
[0061] S3, randomly select two points of different phases and exchange them to generate a new state;
[0062] S4, calculate the objective function difference △E corresponding to the new state and the old state, and determine whether the new state is accepted. The basis for judging acceptance is the Metropolis criterion;
[0063]
[0064] Where ΔE is the difference between the energy E′ of the new state and the energy E of the old state, and T is the temperature. The initial value and change rate of T are determined by the cooling schedule.
[0065] S5. Determine whether the end condition is met at this scale. If not, proceed to the next iteration. If the end condition is met, determine whether the scale is 0. If it is 0, the entire reconstruction is completed. If not, the S-scale reconstruction is completed, and a morphological corrosion operation is performed on the reconstruction result. The corroded structure position is calibrated with a pixel value of 128.
[0066] S6, synthesize the scale S-1 image with the scale S reconstructed image, and randomly change the corroded structural state in the synthesized scale S-1 structure according to the percentage of the pore phase and the rock phase in the scale S-1 reference image, so that the percentage of the rock phase and the pore phase in the synthesized scale S-1 structure is the same as the percentage of the pore phase and the rock phase in the scale S-1 reference image, and use the structure as the initial structure at the scale S-1, reset the initial conditions, and use the image of the scale S-1 in the original image as the reference image, and repeat steps S3-S6;
[0067] S7. Apply the simulated annealing method to reconstruct the structure of scale S-1, and repeat the above S5-S6 process until the reconstruction of scale 0 is completed. The reconstruction of the multi-scale rapid simulated annealing modeling method based on the two-dimensional core structure is completed.
[0068] Synthesis: The rules for synthesizing the scale S-1 structure from the scale S reconstructed image are as follows:
[0069] if So
[0070] During the synthesis process, when the pixel value in the coarse-scale image is 0 or 255, after being synthesized to the next scale, the pixels at these positions no longer participate in the selection of pixels in the simulated annealing algorithm. The pixels at these positions are called stable phase points. After synthesizing the fine scale, the pixel values at the synthesized positions corresponding to the pixel value 128 are randomly changed to 0 or 255, and the pixel values at these positions participate in the reconstruction of the fine scale as free states.
[0071] Furthermore, the stratification process is mainly to obtain a series of original reference images, and the synthesis process is to synthesize the structure of the next scale according to certain rules for the structures reconstructed at different scales, and use the synthesized structure as the initial structure of the reconstructed structure at the next scale.
[0072] Furthermore, the reconstruction is performed using a simulated annealing method starting from the coarsest scale S, and then a morphological corrosion operation is performed on the pore phase and rock phase of the coarsest scale S reconstruction result.
[0073] Furthermore, the corroded structure participates in the reconstruction of the next scale as a free state, and the uncorroded structure no longer participates in the selection of pixel points in the simulated annealing algorithm as a stable state.
[0074] Furthermore, the eroded structure is synthesized into a fine-scale S-1 structure according to a synthesis rule, and based on the percentage of the pore phase and the rock phase in the scale S-1 reference image.
[0075] Furthermore, the corroded structural state in the synthetic scale S-1 structure is randomly changed so that the percentage of rock phase and porous phase in the synthetic scale S-1 structure is the same as the percentage of porous phase and rock phase in the scale S-1 reference image, and the structure is used as the initial structure at scale S-1.
[0076] Embodiment 1:
[0077] Figure 3-26 This is a two-dimensional experimental case diagram of the simulated annealing algorithm and the present invention. The white part is the pore phase. Figure 3 and Fig.15 The original image (scale 0 reference image) used in the 2D reconstruction experiment has a size of 256*256. Figure 4 , 5 , 6 and Fig.16 , 17 , 18 are the reference images of scales 1, 2, and 3, and their sizes are 128*128, 64*64, and 32*32 respectively. Figure 7 and Fig.19 is the simulated annealing reconstruction result, Figure 8 , 9 , 10, 11, 12, 13, 14 and Fig. 20 , 21, 22, 23, 24, 25, 26 are respectively Figure 6 , 5 , 4, 3 and Fig.18 , 17 , 16, and 15 are the reconstruction results of multi-scale simulated annealing of the reference image. In the multi-scale simulated annealing reconstruction process, all pixels of the coarsest scale and the corroded structure part (the position of the corroded structure is marked with a pixel value of 128) participate in the selection of pixels in the simulated annealing reconstruction. The pixels participating in the multi-scale simulated annealing reconstruction only account for a small part of all pixels, so the algorithm of the present invention can quickly complete the reconstruction. Table 1 shows the time taken by the simulated annealing algorithm and the two-dimensional reconstruction experiment designed by the present invention. It can be seen from the table that the time taken by the present invention is about a quarter of that of the simulated annealing algorithm.
[0078] Embodiment 2:
[0079] Figure 27-35 A three-dimensional experimental case diagram designed for the simulated annealing algorithm and the present invention. Fig. 27 is the original image of the 3D reconstruction experiment (scale 0 reference image), with a size of 160*160. Fig.28 , 29 They are the reference images of scale 1 and 2, with sizes of 80*80 and 40*40 respectively, and the white one is the pore phase; Fig.30 is the simulated annealing reconstruction result, Fig.31 , 32 , 33, 34, 35 are Fig.29 , 28 27 are the reconstruction results of multi-scale rapid simulated annealing of the reference image. The black part is the pore phase. Table 2 shows the reconstruction time of the three-dimensional experimental case. The calculation time of the simulated annealing algorithm is 3925 seconds, and the calculation time of the algorithm of the present invention is 1461 seconds. The calculation efficiency of the algorithm of the present invention is roughly improved by 3 times compared with the simulated annealing algorithm. Both two-dimensional and three-dimensional experiments have proved that the design of the present invention can quickly reconstruct the core structure.
[0080] Table 1
[0081]
[0082] Table 2
[0083] algorithm Calculation time Simulated annealing algorithm 1461 Algorithm of the present invention 3925
[0084] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A multi-scale rapid simulated annealing modeling method based on two-dimensional core structure, including layering and synthesis, characterized in that: The steps include: S1. First, the read two-dimensional image is layered into different scales S, S-1, ..., 0 to obtain a series of reconstructed reference images. The layering process is mainly to obtain a series of original reference images. The synthesis process is to synthesize the structures reconstructed at different scales into the structures of the next scale according to certain rules, and use the synthesized structure as the initial structure of the reconstructed structure of the next scale; In an image of scale S, {i1,i2,i3,i4} is the index position i in its sub-scale S+1. Through the image of scale S, the image of scale S+1 is obtained. S2, reconstruction starts from the coarsest scale S, generates a random image as the initial state according to the number of phases and the percentage of phases contained in the scale S image, selects a two-point probability function as the energy function, and sets the initial conditions; Using the two-point probability function as the energy function, the calculation formula is: Among them, E(x (s) ) is the energy function of scale S, P 11 (x (s) ) is the probability function of two points in the horizontal and vertical directions of the pore phase in the reference image of scale S, is the two-point probability function of the horizontal and vertical directions of the pore phase in the scale S reconstruction image, P 11(对角) (x (s) ) is the probability function of two points in the pore phase at 45 degrees and 135 degrees in the scale S reference image, The probability function of two points in the forty-five degree direction and one hundred and thirty-five degree direction of the pore phase in the scale S reconstructed image; S3, randomly select two points of different phases and exchange them to generate a new state; S4, calculate the objective function difference △E corresponding to the new state and the old state, and determine whether the new state is accepted. The acceptance basis is the Metropolis criterion; S5. Determine whether the end condition is met at this scale. If not, proceed to the next iteration. If the end condition is met, determine whether the scale is 0. If it is 0, the entire reconstruction is completed. If not, the S-scale reconstruction is completed, and a morphological corrosion operation is performed on the reconstruction result. The corroded structure position is calibrated with a pixel value of 128. S6, synthesize the scale S-1 image with the scale S reconstructed image, and randomly change the corroded structural state in the synthesized scale S-1 structure according to the percentage of the pore phase and the rock phase in the scale S-1 reference image, so that the percentage of the rock phase and the pore phase in the synthesized scale S-1 structure is the same as the percentage of the pore phase and the rock phase in the scale S-1 reference image, and use this structure as the initial structure at the scale S-1, reset the initial conditions, and use the image of the scale S-1 in the original image as the reference image, and repeat steps S3-S6; S7. Apply the simulated annealing method to reconstruct the structure of scale S-1, and repeat the above S5-S6 process until the reconstruction of scale 0 is completed. The reconstruction of the multi-scale rapid simulated annealing modeling method based on the two-dimensional core structure is completed.
2. The multi-scale rapid simulated annealing modeling method based on two-dimensional core structure according to claim 1, characterized in that: The simulated annealing method is used to reconstruct the coarsest scale S, and then the pore phase and rock phase of the coarsest scale S reconstruction result are morphologically eroded. The eroded structure position is calibrated with a pixel value of 128.
3. The multi-scale rapid simulated annealing modeling method based on two-dimensional core structure according to claim 1, characterized in that: The corroded structure participates in the reconstruction of the next scale as a free state, and the uncorroded structure no longer participates in the selection of pixels in the simulated annealing algorithm as a stable state.
