A method for generating a bi-scale porous medium
By using the Voronoi diagram generation method, the heterogeneity and connectivity issues of pore structures in microfluidic chips were solved, enabling accurate modeling and parameter control of multi-scale pores, and generating a high-precision porous medium model suitable for percolation simulation and photolithography mask manufacturing.
Patent Information
- Application Number
- CN202611422741.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-14
- Publication Date
- 2026-11-24
AI Technical Summary
Existing microfluidic chips are unable to reflect the heterogeneity of real rocks, have defects in pore structure connectivity and controllability, and lack research on multi-scale pores, making it impossible to accurately control porosity and particle size.
The Voronoi diagram generation method is adopted to construct the initial grains by randomly generating seed points, calculate the throat width shrinkage, iteratively adjust the porosity, generate the center of the large pore and fill it with secondary particles, so as to ensure multi-scale modeling and parameter adjustment of the pore structure.
It achieves precise control over porous media, generating complex pore structures that are more consistent with real rocks, improving the geometric accuracy and connectivity of the model, and is suitable for seepage simulation and photolithography mask manufacturing.
Smart Images

Figure CN123159202A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of microfluidic chip design and porous media modeling technology, specifically to a method for generating dual-scale porous media structures based on Voronoi diagrams. Background Technology
[0002] In fields such as oil and gas development, groundwater pollution simulation, and microfluidic chip design, the microstructure of porous media (e.g., porosity, particle size, throat width) has a decisive influence on their macroscopic physical properties (e.g., permeability, capillary force, fluid transport). Microfluidic chip technology is widely used to simulate the porous media characteristics of rocks under laboratory conditions. However, existing microfluidic chip pore structure designs mainly face the following technical challenges: Homogeneous microchips struggle to reflect the heterogeneity of real rocks. Existing microfluidic chips typically employ regularly arranged circular or square strut arrays to construct pore structures, resulting in a highly homogeneous pore distribution. While these chips are easy to fabricate, they cannot simulate the complex heterogeneous pore structures in real rocks caused by sedimentary environments and diagenesis, especially the multi-scale pore characteristics present in unconventional reservoirs such as carbonate rocks and shale.
[0003] Methods based on real images suffer from connectivity and controllability limitations. Some researchers use scanning electron microscope (SEM) or micro-CT images of real rocks, extracting pore contours through image segmentation and fabricating them into chips. While this method can reconstruct the true geometry of the rock, it has the following drawbacks: First, the segmented pore regions are often isolated, lacking interconnected seepage channels, making them unsuitable for experimental measurements of transport properties such as permeability; second, porosity is determined by the original rock sample and cannot be precisely controlled according to experimental requirements.
[0004] The study lacks a clear division of different scales in porous media. Current research mainly focuses on single-scale grains, neglecting the study of multi-scale pores. In reality, porous media typically contain pores of different scales simultaneously, such as large-scale interconnecting pores between particles and micro-scale pores within or near particle boundaries. Furthermore, it is impossible to simulate the impact of micropores on fluid storage and transport processes, nor can the proportion of micropores be independently adjusted.
[0005] In summary, existing technologies struggle to achieve precise control over key geometric parameters of porous media and cannot simultaneously address heterogeneity characterization and connectivity assurance, thus limiting the application of microfluidic chips in rock property simulation. Therefore, there is an urgent need for a method to generate porous media that can precisely control porosity, particle size, and throat size, and supports dual-scale heterogeneous structure modeling. Summary of the Invention
[0006] To address the aforementioned issues, this application provides a method for generating a dual-scale porous medium that can control porosity, particle size, and throat size, and can add secondary particles. It has the advantages of adjustable parameters, flexible structure, and multi-scale modeling capability.
[0007] The first aspect of this invention provides a method for generating a dual-scale porous medium, comprising: The system receives basic data and particle data input by the user. The basic data includes the generation region size, number of random seeds, number of grains, target porosity, throat width range, coefficient of variation of grain shrinkage, and macropore radius range. The particle data includes particle size parameters, clay particle spacing parameters, filling ratio, and number of filling attempts. Within the generation region, seed points are randomly generated based on the number of random seeds, and a Voronoi diagram is constructed. Each Voronoi cell after removing abnormal cells in the Voronoi diagram is taken as an initial grain. Based on the throat width range, the corresponding throat width shrinkage is calculated for every two adjacent initial grains, so that the gap width between adjacent grains falls within the throat width range. Through iterative adjustments, the overall porosity is made to approach the target porosity. The initial number of grains is equal to the number of grains in the basic data. The generated region of the Voronoi diagram after shrinking is clipped, Voronoi vertices outside the generated region are removed, and the topological connectivity between grains is recalculated. Clustering is performed based on the vertices of the grains to generate the center of large holes, and the radius is randomly assigned according to the diameter range of the large holes. At the same time, the radius is adjusted to avoid large hole overlap and ensure geometric compatibility with the grains. The large hole region is subtracted from the grain polygon to update the grain shape. Secondary circular particles with diameters set based on the particle size parameters are randomly filled inside specific large holes based on the clay particle spacing parameters. The particles are required to maintain a minimum spacing and meet the filling ratio, and overlap with the grain boundary is allowed. After the number of filling attempts, the final result is output.
[0008] Furthermore, the random seed point is generated using the Poisson sampling method.
[0009] Furthermore, in the step of calculating the corresponding throat width reduction for every two adjacent initial grains, the criteria for determining the two adjacent initial grains are as follows: For the initial grains in the Voronoi diagram, the adjacency relationship between each grain is determined using the Delaunay triangulation method. Since adjacent grains in the Voronoi diagram correspond to connecting edges in the Delaunay triangulation network, adjacent grain pairs are obtained through Delaunay triangulation. The corresponding throat width indentation is calculated for adjacent grain pairs, and the formula is as follows:
[0010]
[0011] in, and For grains and grains The amount of inward contraction, This is the basic shrinkage amount shared by all grains. For the first The random perturbation coefficients of each grain are generated by a truncated normal distribution. and Represents the mean and standard deviation of the random disturbance coefficients. and This represents the lower and upper limits of the range of values for the random disturbance coefficient. Adjacent grains and grains The width of the throat formed between them and The minimum and maximum values represent the throat width range, and the standard deviation of the random disturbance coefficient is the coefficient of variation of grain shrinkage in the basic data.
[0012] Furthermore, the overall porosity is brought closer to the target porosity through iterative adjustments, in the following manner: Based on the current basic shrinkage amount, the pore structure after grain shrinkage is generated, and the porosity of the current model is calculated. The calculated actual porosity is compared with the target porosity, and the basic shrinkage amount is adjusted according to the comparison result. The specific formula is as follows:
[0013]
[0014] in, For actual model porosity, The total area of the generated pores, To generate the area of the region, The target porosity in the aforementioned basic data, This is the allowable error.
[0015] Furthermore, in the step of clustering the vertices of the grains to generate the center of the large hole and randomly assigning a radius according to the radius range of the large hole, the method of clustering to generate the center of the large hole is to merge points whose distance is less than a preset threshold, and use the cluster center as the center of the large hole. The method for setting the radius of the large holes is as follows: calculate the minimum radius required for the center of each large hole to cover all feature points in its surrounding cluster, and randomly generate the radius by combining the normal distribution. At the same time, iterative adjustment is used to eliminate the problem of overlap or excessive spacing between large holes.
[0016] Furthermore, the method of randomly filling secondary circular particles of a set diameter is as follows: Set the diameter of the secondary particles and the minimum spacing between particles. Randomly generate the center of the circle in the large hole and check the spacing with the already generated particles. If the conditions are met, add more particles until the preset filling ratio or the maximum number of attempts is reached.
[0017] A second aspect of this invention provides a system for generating a dual-scale porous medium, comprising: Data receiving module: used to receive basic data and particle data input by the user. The basic data includes the size of the generated region, the number of random seeds, the number of grains, the target porosity, the throat width range, the coefficient of variation of grain shrinkage, and the range of large pore radius. The particle data includes particle size parameters and clay particle filling parameters. Initial Voronoi diagram generation module: used to randomly generate seed points based on the number of random seeds within the generation area and construct a Voronoi diagram. Each Voronoi cell after removing abnormal cells in the Voronoi diagram is taken as an initial grain. According to the throat width range, the corresponding throat width inward amount is calculated for every two adjacent initial grains, so that the gap width between adjacent grains falls within the throat width range. The overall porosity is brought close to the target porosity through iterative adjustment. The number of initial grains is equal to the number of grains in the basic data. The trimming and updating module is used to trim the generated region of the Voronoi diagram after shrinking, remove Voronoi vertices outside the generated region, and recalculate the topological connectivity between grains. The second-scale creation module is used to cluster the vertices of the grains, generate the center of the large hole, randomly assign a radius according to the diameter range of the large hole, adjust the radius to avoid the large holes overlapping and ensure geometric compatibility with the grains, and subtract the large hole region from the grain polygon to update the grain shape. Secondary particle addition and output module: Secondary circular particles with a diameter set based on the particle size parameters are added inside a specific large hole, and random filling is performed based on the clay particle spacing parameters. The particles are required to maintain a minimum spacing and meet the filling ratio, and overlap with the grain boundaries is allowed. After the number of filling attempts, the final result is output.
[0018] A third aspect of the present invention provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method for generating a dual-scale porous medium.
[0019] A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method for generating a dual-scale porous medium.
[0020] This application proposes a method for generating dual-scale porous media. Specifically, its beneficial effects are as follows: 1. Multi-scale modeling capability: It can simultaneously generate macroscopic grains, mesoscopic macropores, and microscopic secondary particles, increasing the microscopic-scale porosity within the grains, so that the model has both macroscopic channels and microscopic pores; it improves the pore scale distribution range of the model, making the generated structure more consistent with the multi-scale pore coexistence characteristics in real rocks; while maintaining the connectivity of the main pores, it enables independent adjustment of the microscopic pore ratio, improves the model parameter control capability, and more realistically simulates the complex pore structure of actual porous media (such as sandstone and shale), providing a reliable geometric model for multi-scale seepage simulation.
[0021] 2. High geometric accuracy: Based on Voronoi diagrams and precise polygon Boolean operations, the naturalness of grain shape and connectivity of pore spaces are guaranteed. The generated model can be directly used for numerical simulation or photolithography mask manufacturing, and has broad engineering application value. Attached Figure Description
[0022] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is a flowchart of a method for generating a dual-scale porous medium according to an embodiment of this application; Figure 2 This is a schematic diagram of Voronoi grains generated by a dual-scale porous medium generation method proposed in an embodiment of this application; Figure 3 This is a schematic diagram of the grains and throats after shrinkage in a method for generating a dual-scale porous medium according to an embodiment of this application. Figure 4 This is a schematic diagram illustrating the macropore generation and clustering optimization of a dual-scale porous medium generation method proposed in an embodiment of this application; Figure 5 This is a schematic diagram of the first-level final chip substrate of a dual-scale porous medium generation method proposed in an embodiment of this application; Figure 6This is a schematic diagram of the structure after adding secondary particles in a method for generating a dual-scale porous medium according to an embodiment of this application; Figure 7 This is a diagram showing the pore size and throat distribution of a dual-scale porous medium generation method proposed in an embodiment of this application; Figure 8 This is an electronic device proposed in one embodiment of this application. Detailed Implementation
[0024] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0025] Because current homogenized chips are unable to reflect the heterogeneity of real rocks, and methods based on real images have defects in connectivity and controllability and lack different scale divisions of porous media, this application provides a dual-scale porous media generation method to alleviate the problems of lack of real-world reflection, uncontrollable connectivity, and multi-scale division in the prior art.
[0026] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating a method for generating a dual-scale porous medium according to an embodiment of this application. Figure 1 As shown, a method for generating a dual-scale porous medium includes: S1. Receive basic data and particle data input by the user. The basic data includes the size of the generated region, the number of random seeds, the number of grains, the target porosity, the throat width range, the coefficient of variation of grain shrinkage, and the range of large pore radius. The particle data includes particle size parameters, clay particle spacing parameters, filling ratio, and number of filling attempts. S2. Within the generated region, seed points are randomly generated based on the number of random seeds, and a Voronoi diagram is constructed. Each Voronoi cell after removing abnormal cells in the Voronoi diagram is taken as an initial grain. According to the throat width range, the corresponding throat width inward amount is calculated for every two adjacent initial grains, so that the gap width between adjacent grains falls within the throat width range. The overall porosity is then adjusted iteratively to make the porosity approach the target porosity. The number of initial grains is equal to the number of grains in the basic data. S3. Trim the generated region of the Voronoi diagram after shrinking, remove the Voronoi vertices outside the generated region, and recalculate the topological connectivity between grains. S4. Cluster based on the vertices of the grains to generate the center of the large hole, and randomly assign a radius according to the diameter range of the large hole. At the same time, adjust the radius to avoid the large holes overlapping and ensure geometric compatibility with the grains. Subtract the large hole region from the grain polygon and update the grain shape. S5. Secondary circular particles with a diameter set based on the particle size parameters are randomly filled inside a specific large hole, and the particles are required to maintain a minimum spacing and meet the filling ratio, and overlap with the grain boundary is allowed. After the number of filling attempts, the final result is output.
[0027] This invention discloses a method for generating a dual-scale porous medium. Utilizing Voronoi diagrams and iterative adjustment techniques, it ensures that the gap width between adjacent grains conforms to a preset throat width range, while simultaneously approximating the target porosity, thereby achieving a highly customized pore structure. Furthermore, by trimming and recalculating the topological connectivity between grains, the grain structure is optimized, further improving the model's accuracy. During the generation of macropores and secondary particles, this invention ensures the geometric realism and physical plausibility of the model through precise geometric compatibility control and algorithms that avoid overlap.
[0028] For example, this embodiment will be described based on the following parameter settings: the region size is 20000μm×10000μm, the number of random seeds is set to 2001 to ensure the repeatability of the random process, the model initially generates 400 Voronoi grains, the target porosity is 0.30, the throat width range is 40~100μm, the coefficient of variation of grain shrinkage is 0.35, the pore radius range is 100~250μm, and the initial search range of basic shrinkage is set for subsequent pore structure optimization; the clay particle diameter is 100μm, the minimum spacing between particles is 20μm, the filling ratio is 30%, and the maximum number of attempts for each pore is 10000.
[0029] Among them, the basic shrinkage amount is a global adjustment parameter, and its final value will be confirmed based on the iterative optimization process in subsequent steps. The confirmation method is that the porosity of the model calculated using the basic shrinkage amount reaches the target porosity.
[0030] Furthermore, the random seed point is generated using the Poisson sampling method.
[0031] Please refer to Figure 2 A schematic diagram of Voronoi grains generated by a method for generating a dual-scale porous medium according to an embodiment of this application. Figure 2 As shown, the Voronoi grains are formed as follows: Within a rectangular region, 400 initial grains are generated using Poisson sampling, and four corner points are added to ensure the integrity of the boundary grains. A Voronoi diagram is constructed based on the seed points, and degenerate cells are removed to obtain the initial set of grain polygons. The degenerate cells are generated because of geometrically anomalous cells caused by unreasonable spatial distribution of seed points or boundary constraints during the Voronoi structure generation process.
[0032] The degenerate cells include cells with an area smaller than a preset threshold; cells with excessively narrow boundaries and unstable geometric shapes; and cells located in the model boundary region that cannot form a complete closed structure.
[0033] Since the aforementioned cell units can lead to abnormal grain size and affect subsequent grain shrinkage and the formation of interconnected pore structures, they need to be identified and removed.
[0034] Please refer to Figure 3 This application presents an embodiment of a method for generating a dual-scale porous medium, illustrating the shrinkage of the grains and throats. (See attached diagram.) Figure 3 As shown, in the step of calculating the corresponding throat width reduction for every two adjacent initial grains, the criteria for determining the two adjacent initial grains are as follows: For the initial grains in the Voronoi diagram, the adjacency relationship between each grain is determined using the Delaunay triangulation method. Since adjacent grains in the Voronoi diagram correspond to connecting edges in the Delaunay triangulation network, adjacent grain pairs are obtained through Delaunay triangulation. The corresponding throat width indentation is calculated for adjacent grain pairs, and the formula is as follows:
[0035]
[0036] in, and For grains and grains The amount of inward contraction, This is the basic shrinkage amount shared by all grains. For the first The random perturbation coefficients of each grain are generated by a truncated normal distribution. and Represents the mean and standard deviation of the random disturbance coefficients. and This represents the lower and upper limits of the range of values for the random disturbance coefficient. Adjacent grains and grains The width of the throat formed between them and The minimum and maximum values represent the throat width range, and the standard deviation of the random disturbance coefficient is the coefficient of variation of grain shrinkage in the basic data.
[0037] Furthermore, the overall porosity is brought closer to the target porosity through iterative adjustments, in the following manner: Based on the current basic shrinkage amount, the pore structure after grain shrinkage is generated, and the porosity of the current model is calculated. The calculated actual porosity is compared with the target porosity, and the basic shrinkage amount is adjusted according to the comparison result. The specific formula is as follows:
[0038]
[0039] in, For actual model porosity, The total area of the generated pores, To generate the area of the region, The target porosity in the aforementioned basic data, This is the allowable error.
[0040] Please refer to Figure 4 and Figure 5 , Figure 4 This is a schematic diagram illustrating the macropore generation and clustering optimization of a dual-scale porous media generation method proposed in an embodiment of this application. The pore circle diameter in the diagram represents the diameter of the pore circle. Figure 5 This is a schematic diagram of the first-level final chip substrate of a dual-scale porous medium generation method proposed in an embodiment of this application. Figure 4 As shown, in the step of clustering the vertices of the grains to generate the center of the large hole and randomly assigning a radius according to the radius range of the large hole, the method of generating the center of the large hole by clustering is to merge points whose distance is less than a preset threshold, and use the cluster center as the center of the large hole. The method for setting the radius of the large holes is as follows: calculate the minimum radius required for the center of each large hole to cover all feature points in its surrounding cluster, and randomly generate the radius by combining the normal distribution. At the same time, iterative adjustment is used to eliminate the problem of overlap or excessive spacing between large holes.
[0041] For example, the shrunken grains are trimmed to a rectangle of 20000μm × 10000μm. All grain vertices are collected, and neighboring vertices are merged using a clustering distance threshold of 250μm to obtain candidate points for the macropore centers. For each candidate center, the minimum radius required to cover the surrounding grain vertices is calculated, and then combined with a normal distribution (mean 350μm, standard deviation 50μm) to generate the macropore radius, ensuring the diameter is between 200 and 500μm. The radius is adjusted through iterative optimization, eliminating overlap or excessive proximity between macropores based on the requirement that the spacing be less than 1.3 times the macropore radius. The macropore region is subtracted from the grain to obtain the final etched grain polygon, i.e. Figure 5 Ultimately, the actual porosity was 0.329, the average throat width was 73.83 μm, and the average macropore diameter was 350.0 μm, which met the design standards.
[0042] Please refer to Figure 6 and Figure 7 , Figure 6 This is a schematic diagram of the structure after adding secondary particles to a method for generating a dual-scale porous medium according to an embodiment of this application. Figure 7 This image shows the pore size and throat distribution of a method for generating a dual-scale porous medium according to an embodiment of this application. Figure 6 As shown, the method of randomly filling secondary circular particles of a set diameter is as follows: Set the diameter of the secondary particles and the minimum spacing between particles. Randomly generate the center of the circle in the large hole and check the spacing with the already generated particles. If the conditions are met, add more particles until the preset filling ratio or the maximum number of attempts is reached.
[0043] For example, 30% of the large pores were randomly selected as the pores to be filled. For each selected large pore, a random sequential adsorption method was used to generate clay particle centers, with the distance between particles maintained at or greater than the diameter of the secondary particle plus the minimum spacing. Clay particles were allowed to protrude slightly from the pore boundaries to simulate a real filling method. The positions and radii of all generated clay particles were recorded, and the porosity after filling was calculated and compared with the original porosity. A microfluidic mask image containing clay particles was generated, consisting of black grains and black clay particles. The connectivity of the pore system was checked. A DXF format CAD file was exported for easy photomask fabrication. Calculations showed that the porosity decreased from 0.329 to 0.319 after adding clay particles, and the pore system remained connected, verifying the effectiveness of the method.
[0044] This disclosure also provides an electronic device, please refer to... Figure 8 , Figure 8 This is a schematic diagram of an electronic device illustrated in an embodiment of this disclosure. For example... Figure 8As shown, the electronic device 100 includes a memory 110 and a processor 120. The memory 110 and the processor 120 are connected via a bus for communication. The memory 110 stores a computer program that can run on the processor 120 to implement the steps in the method for generating a dual-scale porous medium disclosed in this embodiment.
[0045] The disclosed embodiments also provide a computer-readable storage medium that, when the instructions in the computer-readable storage medium are executed by a processor of a computer device, enables the computer device to perform the steps of a method for generating a dual-scale porous medium as described in the embodiments of the present disclosure.
[0046] In summary, this disclosure proposes a method for generating dual-scale porous media. Specifically, the proposed method follows a progressive process: macroscopic parameter setting, grain framework construction, pore throat control, boundary repair, macropore implantation, and micro-filling. First, basic and particle parameters are configured. Then, grains are generated based on the Voronoi diagram, and the throat width is iteratively adjusted to approximate the target porosity. After topology reconstruction and trimming, macropores are clustered and embedded into the grain framework. Finally, secondary particles are filled into the macropores, outputting a complete model with both macroscopic and microscopic pore structures. This disclosed embodiment combines Voronoi diagrams with iterative control of throat width, enabling precise control of porosity while maintaining the randomness of grain structure. This overcomes the technical bottleneck of traditional methods where porosity and throat size are difficult to balance. By generating macropores through clustering and introducing a radius optimization mechanism, it effectively avoids macropore overlap and geometric conflicts with grains, improving the rationality of macropore distribution and structural stability. By filling the macropores with secondary particles, it achieves a fine characterization of the micropore structure, allowing the generated model to more realistically reflect the complex characteristics of particle accumulation and pore development in natural porous media. This method has a high degree of parameterization and strong applicability, and can be widely applied in the field of digital core construction for porous media such as rocks, soils, and filter materials, providing high-quality structural models for subsequent numerical calculations such as seepage simulation and mechanical analysis.
[0047] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, apparatuses, electronic devices, and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0048] Although preferred embodiments of the present application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present application.
[0049] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0050] Although preferred embodiments of the present application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present application.
[0051] The above provides a detailed description of a method for generating a dual-scale porous medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and its core ideas. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for generating a dual-scale porous medium, characterized in that, include: Step S1: Receive basic data and particle data input by the user. The basic data includes the size of the generated region, the number of random seeds, the number of grains, the target porosity, the throat width range, the coefficient of variation of grain shrinkage, and the range of large pore radius. The particle data includes particle size parameters, clay particle spacing parameters, filling ratio, and the number of filling attempts. Step S2: Randomly generate seed points within the generated area based on the number of random seeds and construct a Voronoi diagram. Each Voronoi cell after removing abnormal cells in the Voronoi diagram is taken as an initial grain. According to the throat width range, calculate the corresponding throat width inward amount for every two adjacent initial grains so that the gap width between adjacent grains falls within the throat width range. Iteratively adjust the overall porosity to approach the target porosity. The number of initial grains is equal to the number of grains in the basic data. Step S3: Trim the generated region of the Voronoi diagram after shrinking, remove the Voronoi vertices outside the generated region, and recalculate the topological connectivity between grains. Step S4: Cluster based on the vertices of the grains to generate the center of the large hole, and randomly assign a radius according to the diameter range of the large hole. At the same time, adjust the radius to avoid the large holes overlapping and ensure geometric compatibility with the grains. Subtract the large hole region from the grain polygon and update the grain shape. Step S5: Inside a specific large hole, secondary circular particles with a diameter set based on the particle size parameters are randomly filled based on the clay particle spacing parameters. The particles are required to maintain a minimum spacing and meet the filling ratio, and overlap with the grain boundaries is allowed. After the number of filling attempts, the final result is output.
2. The method for generating a dual-scale porous medium according to claim 1, characterized in that, The random seed points are generated using the Poisson sampling method.
3. The method for generating a dual-scale porous medium according to claim 1, characterized in that, In the step of calculating the corresponding throat width reduction for every two adjacent initial grains, the criteria for determining the two adjacent initial grains are as follows: For the initial grains in the Voronoi diagram, the adjacency relationship between each grain is determined using the Delaunay triangulation method. Since adjacent grains in the Voronoi diagram correspond to connecting edges in the Delaunay triangulation network, adjacent grain pairs are obtained through Delaunay triangulation. The corresponding throat width indentation is calculated for adjacent grain pairs, and the formula is as follows: in, and For grains and grains The amount of inward contraction, This is the basic shrinkage amount shared by all grains. For the first The random perturbation coefficients of each grain are generated by a truncated normal distribution. and Represents the mean and standard deviation of the random disturbance coefficients. and This represents the lower and upper limits of the range of values for the random disturbance coefficient. Adjacent grains and grains The width of the throat formed between them and The minimum and maximum values represent the throat width range, and the standard deviation of the random disturbance coefficient is the coefficient of variation of grain shrinkage in the basic data.
4. The method for generating a dual-scale porous medium according to claim 1, characterized in that, The overall porosity is brought close to the target porosity through iterative adjustments, as follows: Based on the current basic shrinkage amount, the pore structure after grain shrinkage is generated, and the porosity of the current model is calculated. The calculated actual porosity is compared with the target porosity, and the basic shrinkage amount is adjusted according to the comparison result. The specific formula is as follows: in, For actual model porosity, The total area of the generated pores, To generate the area of the region, The target porosity in the aforementioned basic data, This is the allowable error.
5. The method for generating a dual-scale porous medium according to claim 1, characterized in that, In the step of clustering the vertices of the grains to generate the center of the large hole and randomly assigning a radius according to the radius range of the large hole, the method of generating the center of the large hole by clustering is to merge points whose distance is less than a preset threshold, and use the cluster center as the center of the large hole. The method for setting the radius of the large holes is as follows: calculate the minimum radius required for the center of each large hole to cover all feature points in its surrounding cluster, and randomly generate the radius by combining the normal distribution. At the same time, iterative adjustment is used to eliminate the problem of overlap or excessive spacing between large holes.
6. The method for generating a dual-scale porous medium according to claim 1, characterized in that, The method of randomly filling secondary circular particles of a set diameter is as follows: Set the diameter of the secondary particles and the minimum spacing between particles. Randomly generate the center of the circle in the large hole and check the spacing with the already generated particles. If the conditions are met, add more particles until the preset filling ratio or the maximum number of attempts is reached.
7. A system for generating a dual-scale porous medium, characterized in that, include: Data receiving module: used to receive basic data and particle data input by the user. The basic data includes the size of the generated region, the number of random seeds, the number of grains, the target porosity, the throat width range, the coefficient of variation of grain shrinkage, and the range of large pore radius. The particle data includes particle size parameters, clay particle spacing parameters, filling ratio, and the number of filling attempts. Initial Voronoi diagram generation module: used to randomly generate seed points based on the number of random seeds within the generation area and construct a Voronoi diagram. Each Voronoi cell after removing abnormal cells in the Voronoi diagram is taken as an initial grain. According to the throat width range, the corresponding throat width inward amount is calculated for every two adjacent initial grains, so that the gap width between adjacent grains falls within the throat width range. The overall porosity is brought close to the target porosity through iterative adjustment. The number of initial grains is equal to the number of grains in the basic data. The trimming and updating module is used to trim the generated region of the Voronoi diagram after shrinking, remove Voronoi vertices outside the generated region, and recalculate the topological connectivity between grains. The second-scale creation module is used to cluster the vertices of the grains, generate the center of the large hole, randomly assign a radius according to the diameter range of the large hole, adjust the radius to avoid the large holes overlapping and ensure geometric compatibility with the grains, and subtract the large hole region from the grain polygon to update the grain shape. Secondary particle addition and output module: Secondary circular particles with a diameter set based on the particle size parameters are added inside a specific large hole, and random filling is performed based on the clay particle spacing parameters. The particles are required to maintain a minimum spacing and meet the filling ratio, and overlap with the grain boundaries is allowed. After the number of filling attempts, the final result is output.
8. An electronic device, characterized in that, include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements a method for generating a dual-scale porous medium as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements a method for generating a dual-scale porous medium as described in any one of claims 1-6.
