Shale multi-phase digital core generation method based on GPU and multiple constraints

By employing a GPU-based, multi-constraint approach, a three-dimensional local coordinate mesh of shale was constructed on the GPU using rock physics and geochemistry data. This generated brittle minerals, pyrite, and microfracture facies, solving the problem of insufficient control over multi-phase coexistence and anisotropic morphology in existing shale digital core reconstruction techniques. This enabled efficient and accurate reconstruction of the internal pore structure of shale.

CN123136757APending Publication Date: 2026-11-20CHINA UNIV OF PETROLEUM (EAST CHINA)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611427197.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-15
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing digital core reconstruction methods suffer from several problems when constructing complex multi-component shale digital cores. These problems include insufficient geometric representation of multiphase coexistence relationships, lack of precision in anisotropic morphological control, blind spots in precise control of multiphase volume fraction, and insufficient computing power for large-scale three-dimensional iterative reconstruction. As a result, these methods are insufficient to meet the requirements for fine characterization of shale reservoirs.

Method used

A GPU-based, multi-constraint approach was adopted to determine the target volume fraction of each solid phase component in shale using rock physics and geochemistry experimental data. By constructing a three-dimensional local coordinate grid on the GPU, brittle mineral phase, pyrite phase, and microfracture phase were generated. Combined with the superellipsoidal governing equation and the QSGS algorithm optimized by anisotropic probability tensor, the precise allocation and spatial dependence control of each solid phase component inside the shale were achieved.

Benefits of technology

The generated 3D digital core of shale combines geological rationality with computational efficiency, accurately reproducing the internal pore structure and solid phase distribution of shale, providing technical means for the refined exploration of shale reservoirs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123136757A_ABST
    Figure CN123136757A_ABST
Patent Text Reader

Abstract

The application discloses a shale multi-phase digital core generation method based on GPU and multiple constraints, and relates to the technical field of geophysical logging.The petrophysical and geochemical experimental data of a shale reservoir are acquired first, the mass fraction of each solid phase component of the shale and the whole rock porosity are determined, each solid phase true density is converted into a target volume fraction, the remaining volume fraction is distributed to clay minerals, a three-dimensional local coordinate grid is concurrently constructed at the GPU end, brittle mineral particles are generated according to the super-ellipsoid control equation, the brittle mineral phase is constructed, the optimized QSGS is used to take the brittle mineral phase as an avoidance mask, the organic matter phase is generated in the non-skeleton area, the organic matter phase boundary is calculated to construct a distance field, the associated distance threshold is combined to obtain a pyrite associated growth mask and generate the pyrite phase, and the morphological boundary inflation is performed on the brittle mineral and the organic matter phase respectively to construct double masks, the intergranular pore phase and the micro-fracture phase are generated, and the shale multi-phase three-dimensional digital core is quickly and accurately constructed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of geophysical logging technology, specifically to a method for generating multiphase digital cores of shale based on GPU and multiple constraints. Background Technology

[0002] Shale, as a typical unconventional oil and gas reservoir, possesses extremely strong heterogeneity and a complex multiphase composition structure. Accurate characterization of the microscopic topological network of brittle minerals, organic matter, pyrite, and micro / nanopores in shale is crucial for studying reservoir fluid seepage patterns and macroscopic physical response characteristics.

[0003] Currently, three-dimensional digital core technology is the core method for microscopic characterization of the pores inside rocks. Although physical scanning methods such as FIB-SEM scanning and micro / nano CT scanning can obtain realistic rock structures, they are limited by high equipment costs, long processing times, and extremely small field of view, making it difficult to obtain specific parameters inside rocks in batches. Therefore, digital core numerical reconstruction methods (e.g., Markov chain method, simulated annealing method, and standard QSGS algorithm) have gradually become a research hotspot in the field of digital core technology.

[0004] However, existing digital core reconstruction methods still face technical bottlenecks when constructing digital cores of complex multi-component shale: First, the geometric representation ability of multiphase symbiotic relationships is insufficient; In shale cores, brittle minerals form a rigid framework, while organic matter is usually distributed in thin bedding. Pyrite and other minerals often develop as berry-like structures attached to the edges of organic matter. This complex symbiotic relationship requires digital core numerical reconstruction methods to have precise geometric avoidance and spatial attachment control capabilities.

[0005] Second, the precision of anisotropic morphology control is lacking; Due to sedimentation and subsequent compaction, the mineral particles and organic matter in shale exhibit significant anisotropy. In contrast, the standard four-parameter random growth method (Quartet Structure Generation Set, or QSGS method) often adopts an isotropic growth probability distribution during the growth and evolution process, resulting in phases that tend to be spherical or irregular clumps.

[0006] Third, there are blind spots in the precise control of multiphase volume fraction; Existing digital core numerical reconstruction methods often use approximate threshold truncation when approximating the target volume fraction, resulting in insufficient accuracy of the phase volume fraction.

[0007] Fourth, large-scale 3D iterative reconstruction faces insufficient computing power; With the improvement of voxels and the synergistic generation of multiple components, traditional digital core numerical reconstruction methods are extremely time-consuming and cannot meet the engineering requirements for generating sample libraries.

[0008] Therefore, there is an urgent need to propose a method for generating multiphase digital cores of shale based on GPU and multiple constraints, which takes into account geological rationality, morphological realism and computational efficiency, and can quickly and efficiently reconstruct digital cores of shale. Summary of the Invention

[0009] This invention aims to solve the above-mentioned problems and proposes a method for generating multiphase digital cores of shale based on GPU and multiple constraints. First, the target volume fraction of each solid phase component in shale is determined based on the petrophysical and geochemical experimental data of the shale reservoir. With clay minerals as the background phase, the brittle mineral phase, pyrite phase, intergranular porous phase, and microfracture phase are generated sequentially in the three-dimensional local coordinate grid of the shale three-dimensional digital core using the GPU. This achieves zero-noise and accurate allocation of each solid phase component inside the shale, taking into account both geological rationality and computational efficiency, and provides a basis for accurately reconstructing the internal pore structure of shale.

[0010] The present invention adopts the following technical solution: A GPU-based method for generating multiphase digital cores of shale based on multiple constraints includes the following steps: Step 1: Select shale reservoir as target reservoir, obtain rock physical and geochemical experimental data of target reservoir, determine the mass fraction of each solid phase component and whole rock porosity of shale in target reservoir, combine with the true density of each solid phase component of shale to calculate the target volume fraction of each solid phase component of shale, and allocate the remaining volume fraction of whole rock to clay minerals to determine the target volume fraction of each solid phase component of shale required for three-dimensional digital core reconstruction of shale; Step 2: Concurrently construct a three-dimensional local coordinate mesh on the GPU, construct brittle mineral grains based on the hyperellipsoidal governing equation, and generate the brittle mineral phases of the three-dimensional digital core of shale. Step 3: Based on the optimized four-parameter random growth method, the brittle mineral phase of the generated shale 3D digital core is used as an avoidance mask to limit the generation of organic matter only in the non-skeleton area of ​​the shale 3D digital core, thereby generating the organic matter phase of the shale 3D digital core. Step 4: Based on the boundary of the generated organic phase, calculate the three-dimensional Euclidean distance between the remaining space voxels in the three-dimensional local coordinate grid and the boundary of the organic phase to form a distance field. Combined with the preset effective associated distance threshold, determine the associated growth mask of pyrite and generate the pyrite phase of the shale three-dimensional digital core. Step 5: Based on the generated brittle mineral phase and pyrite phase, obtain a rigid mineral assemblage mask. After performing morphological boundary expansion processing on the rigid mineral assemblage mask to extract the incremental boundary region, subtract the region occupied by the organic phase to form an intergranular pore growth mask. The intergranular pore phase is generated within the intergranular pore growth mask to obtain the mineral edge intergranular pores. Then, based on the generated organic phase, after performing morphological boundary expansion processing on the organic phase to extract the incremental boundary region, subtract the rigid mineral assemblage mask and the already generated intergranular pore phase to form a microcrack growth mask. The microcrack phase is generated within the microcrack growth mask to obtain the organic edge microcrack pores. Step 6: Obtain the 3D digital core of shale in the 3D local coordinate grid to complete the construction of the shale multiphase digital core.

[0011] Preferably, in step 1, the solid phase components of the shale include brittle minerals, organic matter, pyrite, and clay minerals; The rock physical and geochemical experimental data of the target reservoir include X-ray diffraction whole-rock analysis experimental data, rock pyrolysis data or elemental analysis data, and overburden porosity and permeability data or helium injection experimental data. Among them, X-ray diffraction whole-rock analysis experimental data is used to obtain the mass fraction of brittle minerals, clay minerals and associated pyrite, rock pyrolysis data or elemental analysis data is used to obtain the organic matter mass fraction, and overburden porosity and permeability data or helium injection experimental data is used to obtain the true porosity of the core. Based on the mass fraction of each solid component in the shale and the true density value of each solid component, the weight percentage of each solid component is converted into a volume percentage to obtain the target volume fraction of each solid component in the shale.

[0012] Preferably, the target volume fraction conversion formula is: ; In the formula, These are the serial numbers of the solid phase components in the shale; For the first Target volume fraction of each solid phase component; Total porosity; This represents the total volume of all solid components in the shale. The first in shale One solid phase component; The first in shale Density.

[0013] Preferably, in step 2, a three-dimensional local coordinate mesh is concurrently constructed on the GPU, the brittle mineral grain parameter set is initialized, and the morphological parameters of the brittle mineral grains are determined, including the base radius, triaxial stretching ratio, morphological index, and random rotation matrix. The brittle mineral grain parameter set is input to the GPU, and brittle mineral grains are randomly generated within the global matrix of the shale three-dimensional digital core using the GPU. The local bounding box boundary is delineated using the center coordinates of the brittle mineral grains as the origin and the base radius of the brittle mineral grains. A three-dimensional local coordinate mesh is concurrently constructed on the GPU, and the three-dimensional local coordinate mesh is then... Tensor multiplication is performed between the local coordinate vector in the grid and the random rotation matrix to obtain the coordinates after the rotation of the 3D local coordinate grid, resulting in the rotated brittle mineral grains. The brittle mineral grains are considered as hyperellipsoids, and the type of all voxels within the local bounding box is determined using the hyperellipsoid governing equation. If the current voxel satisfies the hyperellipsoid governing equation, it is determined that the current voxel is a valid voxel of the generated brittle mineral grain. Otherwise, under the condition of no avoidance mask, the current voxel is iteratively accumulated to the preset brittle mineral volume fraction and then the accumulation ends, generating the brittle mineral phase of the 3D digital core of shale.

[0014] Preferably, the expression for the governing equations of the hyperellipsoid is: ; In the formula, , , These represent the stretching ratios of the hyperellipsoid in the X, Y, and Z axes of the three-dimensional local coordinate grid, respectively. , , These are the new coordinates of the original local coordinate vectors within the local bounding box of the 3D local coordinate grid after random spatial rotation transformation; The morphological index of the hyperellipsoid; This represents the basic radius of the brittle mineral grain.

[0015] Preferably, in step 3, the brittle mineral phases of the generated shale 3D digital core are used as an avoidance mask to obtain an avoidance mask matrix. The avoidance mask matrix and the random rotation matrix of the brittle mineral grains are then compared element-wise in parallel in the GPU memory. After completing the concurrent initialization of global seed points, the state matrix of the current shale 3D digital core is shifted in parallel along each coordinate axis using a 3D tensor cyclic shift operation to obtain the neighborhood distribution state of all voxels. After generating a global random number matrix, the global random number matrix is ​​compared element-wise in parallel with the instantaneous dynamic growth probability matrix. Yes, candidate voxels that meet the preset growth conditions are selected, and then the state matrix of the current shale 3D digital core is concurrently updated through matrix addition and parallel binarization. The organic matter volume fraction in the current shale 3D digital core is directly calculated in the video memory using the GPU parallel reduction algorithm and compared with the target organic matter volume fraction. If the calculated organic matter volume fraction has reached the target organic matter volume fraction, the organic matter reconstruction is stopped; otherwise, the 3D tensor cyclic shift operation continues until the organic matter volume fraction reaches the target organic matter volume fraction.

[0016] Preferably, in the organic matter phase reconstruction process of the shale three-dimensional digital core, the anisotropic direction probability tensor is used to control the phase morphology of the organic matter phase growth process. Growth weight tensors are established in each evolution direction of the three-dimensional local coordinate grid. According to the development characteristics of organic matter in the shale core, the probability weight setting value of the shale three-dimensional digital core in the XY horizontal plane is enhanced and its probability weight setting value in the Z-axis vertical direction is suppressed, so that the organic matter phase exhibits a bedding morphology in the three-dimensional local coordinate grid.

[0017] Preferably, the formula for calculating the instantaneous dynamic growth probability is: ; In the formula, As the direction of evolution; To optimize the number of iterations, This represents the instantaneous dynamic growth probability. As an acceleration factor; It is the attenuation factor; This is the preset base growth probability value; In the three-dimensional local coordinate mesh, the first Anisotropy probability weighting coefficients for each evolution direction; The volume fraction of the generated organic phase; For the first The organic matter volume fraction in the current shale 3D digital core during the next iteration of optimization.

[0018] Preferably, in step 4, the boundary of the organic phase generated in step 3 is extracted, the three-dimensional Euclidean distance between the remaining space voxels in the three-dimensional local coordinate grid and the boundary of the organic phase is calculated, and after forming a distance field, according to the preset effective associated distance threshold, the area where the three-dimensional Euclidean distance is less than the preset effective associated distance threshold and is not occupied by the brittle mineral phase and the organic phase is designated as the associated growth mask of pyrite, and the pyrite phase is generated near the organic phase domain; The pyrite-associated growth mask is equipped with a pyrite formation probability function to control pyrite formation, and the calculation formula is as follows: ; In the formula, The three-dimensional Euclidean distance between the voxel and the organic phase boundary; Generate a probability function for pyrite; The maximum generation probability; The attenuation coefficient; The effective associated distance threshold.

[0019] The present invention has the following beneficial effects: This invention proposes a GPU-based method for generating multiphase digital cores of shale using multiple constraints. The method converts the mass fractions of various solid phase components in shale from rock physics and geochemistry experimental data into target volume fractions. Using clay minerals as the background phase, a three-dimensional local coordinate mesh is constructed on the GPU. Brittle mineral phases are constructed based on the hyperellipsoidal governing equations, generating a rigid matrix framework which serves as an avoidance mask. The layered organic phase is then reconstructed using the QSGS algorithm with anisotropic probability tensor optimization. Combined with the acquisition of the decay probability mapping of the organic phase boundary distance field, dependent berry-like pyrite is generated. By extracting incremental boundary regions, a dual-porosity phase composed of intergranular pores and microfractures is constructed. With an adaptive addition and deletion mechanism of the interface neighborhood, zero-noise precise allocation of the volume fractions of all components in the 3D digital core of shale is achieved. This method possesses fine geometric avoidance and spatial attachment control capabilities. The generated 3D digital core of shale balances geological rationality, morphological realism, and computational efficiency, realistically restoring the pore structure and solid phase distribution within the shale interior. This provides a technical means for the rapid generation of multiphase digital cores of shale. Attached Figure Description

[0020] Figure 1 This is a flowchart of a method for generating multiphase digital cores of shale based on GPU and multiple constraints, according to the present invention.

[0021] Figure 2 This is a flowchart illustrating the process of determining the target volume fraction of each solid phase component in shale required for the three-dimensional digital core reconstruction of shale in this invention.

[0022] Figure 3This is a schematic diagram of the shale multiphase digital core constructed according to the present invention; in the figure, (a) is the front view of the shale multiphase digital core, (b) is the xy plan view of the shale multiphase digital core, (c) is the yz plan view of the shale multiphase digital core, and (d) is the xz plan view of the shale multiphase digital core. In the figure, the red component is organic matter, the green component is pores, the yellow component is pyrite, the dark blue component is brittle minerals, and the light blue component is clay matrix background. Detailed Implementation

[0023] The specific embodiments of the present invention will be further described below with reference to the accompanying drawings.

[0024] This invention proposes a method for generating multiphase digital cores of shale based on GPU and multiple constraints, such as... Figure 1 As shown, it includes the following steps: Step 1: Select shale reservoirs as target reservoirs, acquire rock physical and geochemical experimental data of the target reservoirs, and perform data preprocessing and matrix initialization on the rock physical and geochemical experimental data, such as... Figure 2 As shown, the specific process is as follows: Obtain rock physical and geochemical experimental data of the target reservoir. The rock physical and geochemical experimental data includes X-ray diffraction whole-rock analysis experimental data, rock pyrolysis data or elemental analysis data, and overburden porosity and permeability data or helium injection experimental data. Among them, X-ray diffraction whole-rock analysis experimental data is used to obtain the mass fraction of brittle minerals, clay minerals and associated pyrite, rock pyrolysis data or elemental analysis data is used to obtain the organic matter mass fraction, and overburden porosity and permeability data or helium injection experimental data is used to obtain the true porosity of the core.

[0025] The mass fraction of each solid phase component and the whole-rock porosity of the shale in the target reservoir are determined. The solid phase components of the shale include brittle minerals, organic matter, pyrite and clay. The target volume fraction of each solid phase component in the shale is determined by converting the theoretically calculated or actually measured density of each solid phase component using the target volume fraction conversion formula.

[0026] Specifically, the formula for converting the target volume fraction is as follows: ; In the formula, These are the serial numbers of the solid phase components in the shale; For the first Target volume fraction of each solid phase component; Total porosity; This represents the total volume of all solid components in the shale. The first in shale One solid phase component; The first in shale Density.

[0027] The remaining volume fraction of the whole rock is then allocated to clay minerals to determine the target volume fraction of each solid phase component of shale required for shale 3D digital core reconstruction. This yields the absolute volume quota parameters required for generating shale 3D digital cores, namely the target volume fraction of brittle minerals, the target volume fraction of organic matter, the target volume fraction of pyrite, and the target volume fraction of pores.

[0028] Finally, the remaining volume fraction of the whole rock is allocated to the clay minerals to obtain the target volume fraction of the clay minerals. The three-dimensional global matrix corresponding to the three-dimensional digital core of the shale is initialized on the GPU. After uniformly assigning values ​​to the three-dimensional global matrix, the clay minerals are used as the default continuous background phase to provide a matrix environment for subsequent multiphase topological stacking.

[0029] Step 2: Concurrently construct a three-dimensional local coordinate mesh on the GPU, construct brittle mineral particles based on the hyperellipsoidal governing equation, and generate the brittle mineral phases of the shale three-dimensional digital core.

[0030] To accurately characterize the non-spherical and rounded features of brittle mineral particles such as quartz and feldspar within shale under compaction, this embodiment employs a three-dimensional hyperellipsoidal model for parameterized construction of these particles. First, a three-dimensional local coordinate mesh is concurrently constructed on the GPU. Random and uniform sampling is performed within a preset range of parameter values ​​for each brittle mineral particle to initialize the parameter set and determine the morphological parameters of the particles. Specifically, the morphological parameters of the brittle mineral particles include the base radius, triaxial stretching ratio, morphological index, and a 3×3 random rotation matrix generated by three random Euler angles. The base radius, triaxial stretching ratio, morphological index, and random rotation matrix are all scalar parameters. Using these scalar parameters effectively avoids thread splitting on the GPU, improving the initialization efficiency of the brittle mineral particle parameter set.

[0031] The parameter set of brittle mineral particles is input to the GPU. The high concurrency of the GPU is used to determine and accumulate spatial voxels. Brittle mineral particles are randomly generated within the global matrix of the shale 3D digital core. The brittle mineral particles are regarded as hyperellipsoids. The local bounding box boundary is defined with the center coordinates of the brittle mineral particles as the origin and the basic radius of the brittle mineral particles. A 3D local coordinate grid is constructed concurrently on the GPU. The local coordinate vectors in the 3D local coordinate grid are multiplied by the random rotation matrix to obtain the coordinates of the 3D local coordinate grid after rotation. The rotated brittle mineral particles are obtained. The brittle mineral particles are regarded as hyperellipsoids. The type of all voxels within the local bounding box is determined by the hyperellipsoid governing equation.

[0032] Specifically, the expression for the governing equations of the hyperellipsoid is as follows: ; In the formula, , , These represent the stretching ratios of the hyperellipsoid in the X, Y, and Z axes of the three-dimensional local coordinate grid, respectively. , , These are the new coordinates of the original local coordinate vectors within the local bounding box of the 3D local coordinate grid after random spatial rotation transformation; The morphological index of the hyperellipsoid; This represents the basic radius of the brittle mineral grain.

[0033] If the current voxel satisfies the superellipsoidal governing equation, then the current voxel is determined to be an effective voxel of the generated brittle mineral particles. Otherwise, under the condition of no avoidance mask, the current voxel is iteratively accumulated to the preset brittle mineral volume fraction and then the accumulation ends, generating the brittle mineral phase of the shale 3D digital core, thus completing the construction of the rigid matrix skeleton in the shale 3D digital core.

[0034] Step 3: Based on the optimized four-parameter random growth method (full name Improved Quartet Structure Generation Set, abbreviated as optimized QSGS), the brittle mineral phases of the generated shale 3D digital core are used as an avoidance mask to limit the generation of organic matter only in the non-skeleton region of the shale 3D digital core, thus generating the organic matter phase of the shale 3D digital core.

[0035] In this embodiment, the brittle mineral phases of the generated shale 3D digital core are used as an avoidance mask to obtain the mask matrix. The mask matrix and the random rotation matrix of the brittle mineral grains are then compared element-wise in parallel in the GPU memory. After the global seed points are initialized concurrently in one go, the state matrix of the current shale 3D digital core is shifted in parallel along each coordinate axis using a 3D tensor cyclic shift operation. This obtains the neighborhood distribution state of all voxels in one go and generates a global random number matrix. The global random number matrix is ​​then compared element-wise in parallel with the instantaneous dynamic growth probability matrix. Candidate voxels that meet the preset growth conditions are selected, and the state matrix of the current shale 3D digital core is concurrently updated through matrix addition and parallel binarization. The organic matter volume fraction in the current shale 3D digital core is directly calculated in the GPU memory using a GPU parallel reduction algorithm and compared with the target organic matter volume fraction. If the calculated organic matter volume fraction has reached the target organic matter volume fraction, the organic matter reconstruction stops; otherwise, the 3D tensor cyclic shift operation continues until the organic matter volume fraction reaches the target organic matter volume fraction.

[0036] Specifically, in the organic matter phase reconstruction process of the shale three-dimensional digital core, the anisotropic directional probability tensor is used to control the phase morphology of the organic matter phase growth process. For the 27 evolution directions in the three-dimensional local coordinate grid (including the center point of brittle mineral grains, 6 adjacent faces, 12 edge neighbors, and 8 corner neighbors), growth weight tensors with significant spatial directional preferences are established in each evolution direction of the three-dimensional local coordinate grid. According to the development characteristics of organic matter in shale cores, the probability weight setting value of the shale three-dimensional digital core in the extremely high XY horizontal plane of the extension direction is enhanced, and its probability weight setting value in the vertical direction of the Z axis is suppressed. Through tensor constraints, the organic matter phase exhibits a bedding morphology in the three-dimensional local coordinate grid.

[0037] Meanwhile, to balance the efficiency of early-stage evolution with the smoothness of late-stage approach, this embodiment employs instantaneous dynamic growth to generate the organic phase. This effectively avoids the large number of invalid iterations caused by constant growth probability evolution. In the early stages of organic phase generation, a large number of phases are generated under the influence of the acceleration factor. However, as the volume fraction of the generated organic phase gradually approaches the preset target volume fraction, the decay factor... The instantaneous dynamic growth probability decays under the influence of this effect, thus effectively ensuring the smooth convergence of the organic phase edge.

[0038] Specifically, the formula for calculating the instantaneous dynamic growth probability is as follows: ; In the formula, As the direction of evolution; To optimize the number of iterations, This represents the instantaneous dynamic growth probability. As an acceleration factor; It is the attenuation factor; This is the preset base growth probability value; In the three-dimensional local coordinate mesh, the first Anisotropy probability weighting coefficients for each evolution direction; The volume fraction of the generated organic phase; For the first The organic matter volume fraction in the current shale 3D digital core during the next iteration of optimization.

[0039] This embodiment introduces a volume fraction for precise matrix matching by fine-tuning the interface domain. The currently generated organic matter volume fraction is compared with the target organic matter volume fraction calculated in step 1. The three-dimensional tensor cyclic shift operation performs addition and deletion operations based on boundary exposure until the generated organic matter volume fraction reaches the preset target organic matter volume fraction, that is, the preset target quota is achieved. While achieving absolute matching of organic matter volume, it eliminates isolated voxel noise caused by global random modification.

[0040] Step 4: Based on the boundary of the generated organic phase, calculate the three-dimensional Euclidean distance between the remaining space voxels in the three-dimensional local coordinate grid and the boundary of the organic phase to form a distance field. Combined with the preset effective associated distance threshold, determine the associated growth mask of pyrite and generate the pyrite phase of the shale three-dimensional digital core.

[0041] In this embodiment, the boundary of the organic phase generated in step 3 is extracted, and the distance field is formed by calculating the three-dimensional Euclidean distance between the remaining space voxels in the three-dimensional local coordinate grid and the boundary of the organic phase. According to the preset effective associated distance threshold, the area where the three-dimensional Euclidean distance is less than the preset effective associated distance threshold and is not occupied by the brittle mineral phase and the organic phase is defined as the associated growth mask of pyrite, and the pyrite phase is generated near the organic phase domain.

[0042] Specifically, the pyrite-associated growth mask is equipped with a pyrite formation probability function to control pyrite formation, and the calculation formula is as follows: ; In the formula, The three-dimensional Euclidean distance between the voxel and the organic phase boundary; Generate a probability function for pyrite; The maximum generation probability; The attenuation coefficient; The effective associated distance threshold.

[0043] This embodiment utilizes the effective companion distance threshold. By controlling the probability of pyrite formation, it is ensured that pyrite only forms in the vicinity of organic matter, and the berry-like morphology inside pyrite is reconstructed in conjunction with isotropic tensors.

[0044] Step 5: Based on the generated brittle mineral phase and pyrite phase, perform Boolean operation on the brittle framework generated in Step 2 and the associated pyrite generated in Step 4 to merge them into a unified rigid mineral assemblage mask. Perform morphological boundary expansion processing on the rigid mineral assemblage mask, extract the incremental boundary region, and then subtract the region occupied by the organic phase through Boolean NOT AND logical AND operation to form an intergranular pore growth mask. The intergranular pore phase is generated within the intergranular pore growth mask to obtain the mineral edge intergranular pores.

[0045] Based on the organic phase generated in step 3, the incremental boundary region is extracted after the morphological boundary expansion process of the organic phase. The rigid mineral assemblage mask and the generated intergranular pore phase are then subtracted to form a microcrack growth mask. In order to simulate the flat geometric shape of microcracks cracking along a specific bedding plane, anisotropic growth probability is introduced. Using the preset anisotropic growth probability, under the joint constraint of the microcrack growth mask and the anisotropic growth probability, the microcrack phase is generated within the microcrack growth mask, and the microcrack pores at the edge of the organic matter are obtained, which effectively preserves the sharp morphological characteristics of the microcrack phase in the shale three-dimensional digital core.

[0046] Step 6: Obtain the 3D digital core of the shale in the 3D local coordinate grid, such as... Figure 3 As shown, the construction of multiphase digital cores of shale was completed, and multiphase digital cores of shale under multiple constraints were obtained.

[0047] In summary, the method of this invention achieves zero-noise precise allocation of the volume fraction of all components in shale 3D digital cores, possesses fine geometric avoidance and spatial attachment control capabilities, and generates shale 3D digital cores that balance geological rationality, morphological realism, and computational efficiency, realistically restoring the pore structure and solid phase distribution of the shale's internal space, thus laying the foundation for refined exploration and development of shale reservoirs.

[0048] Of course, the above description is not intended to limit the present invention, and the present invention is not limited to the examples given above. Any changes, modifications, additions or substitutions made by those skilled in the art within the scope of the present invention should also fall within the protection scope of the present invention.

Claims

1. A method for generating multiphase digital cores of shale based on GPU and multiple constraints, characterized in that, Includes the following steps: Step 1: Select shale reservoir as target reservoir, obtain rock physical and geochemical experimental data of target reservoir, determine the mass fraction of each solid phase component and whole rock porosity of shale in target reservoir, combine with the true density of each solid phase component of shale to calculate the target volume fraction of each solid phase component of shale, and allocate the remaining volume fraction of whole rock to clay minerals to determine the target volume fraction of each solid phase component of shale required for three-dimensional digital core reconstruction of shale; Step 2: Concurrently construct a three-dimensional local coordinate mesh on the GPU, construct brittle mineral grains based on the hyperellipsoidal governing equation, and generate the brittle mineral phases of the three-dimensional digital core of shale. Step 3: Based on the optimized four-parameter random growth method, the brittle mineral phase of the generated shale 3D digital core is used as an avoidance mask to limit the generation of organic matter only in the non-skeleton area of ​​the shale 3D digital core, thereby generating the organic matter phase of the shale 3D digital core. Step 4: Based on the boundary of the generated organic phase, calculate the three-dimensional Euclidean distance between the remaining space voxels in the three-dimensional local coordinate grid and the boundary of the organic phase to form a distance field. Combined with the preset effective associated distance threshold, determine the associated growth mask of pyrite and generate the pyrite phase of the shale three-dimensional digital core. Step 5: Based on the generated brittle mineral phase and pyrite phase, obtain a rigid mineral assemblage mask. After performing morphological boundary expansion processing on the rigid mineral assemblage mask to extract the incremental boundary region, subtract the region occupied by the organic phase to form an intergranular pore growth mask. The intergranular pore phase is generated within the intergranular pore growth mask to obtain the mineral edge intergranular pores. Then, based on the generated organic phase, after performing morphological boundary expansion processing on the organic phase to extract the incremental boundary region, subtract the rigid mineral assemblage mask and the already generated intergranular pore phase to form a microcrack growth mask. The microcrack phase is generated within the microcrack growth mask to obtain the organic edge microcrack pores. Step 6: Obtain the 3D digital core of shale in the 3D local coordinate grid to complete the construction of the shale multiphase digital core.

2. The method for generating multiphase digital cores of shale based on GPU and multiple constraints according to claim 1, characterized in that, In step 1, the solid phase components of shale include brittle minerals, organic matter, pyrite, and clay minerals. The rock physical and geochemical experimental data of the target reservoir include X-ray diffraction whole-rock analysis experimental data, rock pyrolysis data or elemental analysis data, and overburden porosity and permeability data or helium injection experimental data. Among them, X-ray diffraction whole-rock analysis experimental data is used to obtain the mass fraction of brittle minerals, clay minerals and associated pyrite, rock pyrolysis data or elemental analysis data is used to obtain the organic matter mass fraction, and overburden porosity and permeability data or helium injection experimental data is used to obtain the true porosity of the core. Based on the mass fraction of each solid component in the shale and the true density value of each solid component, the weight percentage of each solid component is converted into a volume percentage to obtain the target volume fraction of each solid component in the shale.

3. The method for generating multiphase digital cores of shale based on GPU and multiple constraints according to claim 2, characterized in that, The formula for converting the target volume fraction is: ; In the formula, These are the serial numbers of the solid phase components in the shale; For the first Target volume fraction of each solid phase component; Total porosity; This represents the total volume of all solid components in the shale. The first in shale One solid phase component; The first in shale Density.

4. The method for generating multiphase digital cores of shale based on GPU and multiple constraints according to claim 1, characterized in that, In step 2, a three-dimensional local coordinate mesh is concurrently constructed on the GPU, the brittle mineral grain parameter set is initialized, and the morphological parameters of the brittle mineral grains are determined, including the base radius, triaxial stretching ratio, morphological index, and random rotation matrix. The brittle mineral grain parameter set is input to the GPU, and brittle mineral grains are randomly generated within the global matrix of the shale three-dimensional digital core using the GPU. The local bounding box boundary is delineated using the center coordinates of the brittle mineral grains as the origin and the base radius of the brittle mineral grains. A three-dimensional local coordinate mesh is concurrently constructed on the GPU. Tensor multiplication is performed between the local coordinate vector in the grid and the random rotation matrix to obtain the coordinates after the rotation of the three-dimensional local coordinate grid, resulting in the rotated brittle mineral particles. The brittle mineral particles are regarded as hyperellipsoids, and the type of all voxels within the local bounding box is determined by the hyperellipsoid governing equation. If the current voxel satisfies the hyperellipsoid governing equation, the current voxel is determined to be a valid voxel of the generated brittle mineral particles. Otherwise, the current voxel is iteratively accumulated to the preset brittle mineral volume fraction under global no-avoidance mask conditions, and the accumulation ends, generating the brittle mineral phase of the shale three-dimensional digital core.

5. The method for generating multiphase digital cores of shale based on GPU and multiple constraints according to claim 4, characterized in that, The expression for the governing equations of the hyperellipsoid is: ; In the formula, , , These represent the stretching ratios of the hyperellipsoid in the X, Y, and Z axes of the three-dimensional local coordinate grid, respectively. , , These are the new coordinates of the original local coordinate vectors within the local bounding box of the 3D local coordinate grid after random spatial rotation transformation; The morphological index of the hyperellipsoid; This represents the basic radius of the brittle mineral grain.

6. The method for generating multiphase digital cores of shale based on GPU and multiple constraints according to claim 1, characterized in that, In step 3, the brittle mineral phases of the generated shale 3D digital core are used as an avoidance mask to obtain the avoidance mask matrix. The avoidance mask matrix and the random rotation matrix of the brittle mineral grains are then compared element-wise in parallel in the GPU memory. After completing the concurrent initialization of global seed points, the state matrix of the current shale 3D digital core is shifted in parallel along each coordinate axis using a 3D tensor cyclic shift operation to obtain the neighborhood distribution state of all voxels. A global random number matrix is ​​then generated and compared element-wise in parallel with the instantaneous dynamic growth probability matrix. Candidate voxels that meet the preset growth conditions are selected, and the state matrix of the current shale 3D digital core is concurrently updated through matrix addition and parallel binarization. The organic matter volume fraction in the current shale 3D digital core is directly calculated in the GPU memory using a GPU parallel reduction algorithm and compared with the target organic matter volume fraction. If the calculated organic matter volume fraction has reached the target organic matter volume fraction, the organic matter reconstruction is stopped; otherwise, the 3D tensor cyclic shift operation continues until the organic matter volume fraction reaches the target organic matter volume fraction.

7. The method for generating multiphase digital cores of shale based on GPU and multiple constraints according to claim 6, characterized in that, In the process of reconstructing the organic matter phase of the shale three-dimensional digital core, the anisotropic direction probability tensor is used to control the phase morphology of the organic matter phase growth process. Growth weight tensors are established in each evolution direction of the three-dimensional local coordinate grid. According to the development characteristics of organic matter in the shale core, the probability weight setting value of the shale three-dimensional digital core in the XY horizontal plane is enhanced and its probability weight setting value in the Z-axis vertical direction is suppressed, so that the organic matter phase exhibits a bedding morphology in the three-dimensional local coordinate grid.

8. The method for generating multiphase digital cores of shale based on GPU and multiple constraints according to claim 6, characterized in that, The formula for calculating the instantaneous dynamic growth probability is: ; In the formula, As the direction of evolution; To optimize the number of iterations, This represents the instantaneous dynamic growth probability. As an acceleration factor; It is the attenuation factor; This is the preset base growth probability value; In the three-dimensional local coordinate mesh, the first Anisotropy probability weighting coefficients for each evolution direction; The volume fraction of the generated organic phase; For the first The organic matter volume fraction in the current shale 3D digital core during the next iteration of optimization.

9. The method for generating multiphase digital cores of shale based on GPU and multiple constraints according to claim 1, characterized in that, In step 4, the boundary of the organic phase generated in step 3 is extracted, the three-dimensional Euclidean distance between the remaining space voxels in the three-dimensional local coordinate grid and the boundary of the organic phase is calculated, and after forming a distance field, according to the preset effective associated distance threshold, the area where the three-dimensional Euclidean distance is less than the preset effective associated distance threshold and is not occupied by the brittle mineral phase and organic phase is defined as the associated growth mask of pyrite, and the pyrite phase is generated near the organic phase domain; The pyrite-associated growth mask is equipped with a pyrite formation probability function to control pyrite formation, and the calculation formula is as follows: ; In the formula, The three-dimensional Euclidean distance between the voxel and the organic phase boundary; Generate a probability function for pyrite; The maximum generation probability; The attenuation coefficient; The effective associated distance threshold.