A method and system for optimizing the geometry of a rock voronoi meso-model

By identifying and cleaning up geometric defects in the Voronoi rock microstructure model, a reconstructed model was built while maintaining a consistent grain number. This solved the model instability problem caused by geometric defects, improved the geometric quality of the model and the inheritance of mineral groupings, and supported subsequent rock modeling.

CN123139526APending Publication Date: 2026-11-20SHENZHEN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611183023.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-05
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing Voronoi rock microstructure models have geometric defects during construction and preprocessing, such as near points, short sides, and near collinear vertices, which lead to a decrease in the geometric quality of the model, affect the stability of subsequent mesh generation and numerical calculations, and may change the consistency of grain sets and mineral groupings.

Method used

A geometric topology graph is constructed by extracting vertex coordinates, edge connections, and grain region information. Local geometric defects are identified and cleaned up to generate a reconstructed model. This ensures the consistency of grain number and establishes a mapping relationship between the initial seed and the reconstructed model, inheriting mineral grouping attributes.

Benefits of technology

The model's geometric quality was improved, providing a more stable geometric foundation, avoiding grain merging and disappearance, maintaining the total number of grains, and ensuring the consistency of mineral grouping, thus providing a reliable foundation for subsequent rock GBM modeling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123139526A_ABST
    Figure CN123139526A_ABST
Patent Text Reader

Abstract

The application provides a rock Voronoi mesoscopic model geometry optimization method and system, and belongs to the field of model optimization. The method comprises the following steps: extracting vertex coordinate information, edge connection information and grain region information of a rock Voronoi mesoscopic model, and constructing a geometric topology relationship graph; identifying local geometric defects in the geometric topology relationship graph; performing geometric cleaning on the local geometric defects, and extracting boundary information of the cleaned geometric topology relationship graph; performing boundary regularization on the boundary information to generate an effective boundary line segment set, reconstructing the rock Voronoi mesoscopic model based on the effective boundary line segment set to obtain a reconstructed model; performing grain number consistency checking on the reconstructed model, and after the checking passes, constructing a mapping relationship between an initial seed and a grain region of the reconstructed model; according to the mapping relationship, inheriting a mineral grouping attribute in the rock Voronoi mesoscopic model to the grain region of the reconstructed model to obtain an optimized rock Voronoi mesoscopic model. The application can effectively improve the model geometry quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of model optimization, and more specifically to a method and system for geometric optimization of a rock Voronoi microstructure model. Background Technology

[0002] The Voronoi method can effectively characterize the mineral grain features in the microstructure of rocks and has been widely used in the construction of rock microstructure models and related numerical analyses. Existing techniques have proposed several methods for rock microstructure generation, geometric processing, malformed element avoidance, and subsequent numerical modeling, providing a foundation for the representation and numerical simulation of rock microstructures. However, during the construction and preprocessing of Voronoi rock microstructure models, geometric defects such as near points, short edges, and nearly collinear vertices often exist in the model. These geometric defects reduce the geometric quality of the model and can easily lead to problems such as malformed elements, difficulties in geometric identification, or decreased computational stability during subsequent mesh generation, interface element insertion, and numerical calculation.

[0003] For the aforementioned geometric defects, directly using conventional geometric cleanup methods such as point merging, edge folding, or vertex deletion can simplify the geometric structure to some extent, but it can also easily alter local topological relationships, leading to grain merging, grain disappearance, or changes in the total number of grains. Especially in rock GBM modeling, there is usually a correspondence between the initial seed, grain regions, and mineral properties. Once this correspondence is disrupted, it will further affect the consistency of subsequent grain set reconstruction, mineral grouping, and model assignment. Summary of the Invention

[0004] The purpose of this invention is to provide a method and system for geometric optimization of a rock Voronoi microstructure model, so as to at least solve the problem that existing optimization methods are prone to changing local topological relationships, which in turn affects the consistency of subsequent grain set reconstruction, mineral grouping and model assignment.

[0005] To achieve the above objectives, a first aspect of the present invention provides a method for geometric optimization of a rock Voronoi microstructure model, the method comprising:

[0006] Extract vertex coordinates, edge connectivity, and grain region information from the rock Voronoi microstructure containing the initial seed, and construct a geometric topology graph based on the vertex coordinates, edge connectivity, and grain region information;

[0007] Local geometric defects in the geometric topology diagram are identified based on preset defect judgment rules;

[0008] Geometric cleanup is performed on local geometric defects based on preset cleanup constraint rules, and the boundary information of the cleaned geometric topology graph is extracted.

[0009] Boundary regularization is performed on the boundary information to generate a set of effective boundary segments. Based on the set of effective boundary segments, the rock Voronoi microstructure model is reconstructed to obtain the reconstructed model.

[0010] Perform a grain number consistency check on the reconstructed model. After the check passes, construct the mapping relationship between the initial seed and the grain regions of the reconstructed model.

[0011] Based on the mapping relationship, the mineral grouping attributes in the rock Voronoi microstructure model are inherited to the grain region of the reconstructed model, resulting in the optimized rock Voronoi microstructure model.

[0012] Preferably, the local geometric defects include near-point defects, short-side defects, and near-collinear vertex defects; the defect determination rules include:

[0013] The short-side defect determination rule is as follows: traverse the set of edges in the geometric topology graph, calculate the length between the two endpoints of each edge, and determine whether the edge length is less than a preset length threshold. If so, mark the edge as a short-side defect. The short-side defect is used to characterize the situation where the length of the boundary line segment of the geometric topology graph with existing topological connection relationship is too short.

[0014] The near-point defect determination rule is as follows: traverse the vertex set in the geometric topology graph, perform a spatial proximity search on the vertex set based on the vertex coordinates, and obtain candidate vertex pairs whose distance between vertices is less than a preset spacing threshold; wherein, the two vertices in the candidate vertex pair are not directly connected by the same topological edge; mark the candidate vertex pair, or the candidate vertex cluster formed by connecting multiple candidate vertex pairs, as a near-point defect; the near-point defect is used to characterize the situation where the spatial position between vertices is too close, resulting in local geometric distortion;

[0015] The near-collinear vertex defect determination rule is as follows: extract the vertex with a connectivity degree of 2 in the geometric topology graph, obtain the two adjacent vertices directly connected to the vertex, calculate the near-collinearity index between the two edges formed by the vertex and its two adjacent vertices, and determine whether the near-collinearity index is less than the preset collinearity criterion threshold. If so, mark the vertex with a connectivity degree of 2 as a near-collinear vertex defect.

[0016] Preferably, the cleanup constraint rules include:

[0017] The short-edge defect cleanup rule is as follows: perform edge folding processing on the edge corresponding to the short-edge defect, merge the two vertices of the edge into the same connected structure or merge them into the folding point, delete the original short edge, and update the edge connection relationship related to the two vertices.

[0018] The near point defect cleanup rule is as follows: perform vertex merging processing on the candidate vertex pairs or candidate vertex clusters corresponding to the near point defects, merge the candidate vertex pairs or candidate vertex clusters into a new vertex, and update the original edge connection relationship based on the new vertex;

[0019] The near-collinear vertex defect cleanup rule is as follows: delete the vertex corresponding to the near-collinear vertex defect, and reconstruct the edge between the two vertices adjacent to that vertex.

[0020] Preferably, a grain number consistency check is performed on the reconstructed model, including:

[0021] Obtain the total number of grains in the Voronoi microstructure model of the rock and the total number of grains in the reconstructed model;

[0022] Determine whether the total number of grains in the Voronoi microstructure model of the rock is the same as the total number of grains in the reconstructed model. If they are the same, the grain number consistency check is deemed to have passed.

[0023] If they are not the same, the threshold parameters of the defect judgment rule are adjusted, and the local geometric defect identification, geometric cleaning, boundary information extraction, boundary regularization, and model reconstruction are re-executed based on the adjusted threshold parameters to obtain an updated reconstructed model; the grain number consistency check is performed again on the updated reconstructed model until the total number of grains in the rock Voronoi microstructure model is the same as the total number of grains in the updated reconstructed model; wherein, the threshold parameters include a length threshold, a spacing threshold, and a collinearity index threshold.

[0024] Preferably, the threshold parameters of the defect determination rules are adjusted, including:

[0025] Within the preset length threshold search range, multiple length sub-thresholds are generated according to a preset step size;

[0026] For each length sub-threshold, the corresponding spacing threshold is determined according to the preset linkage limiting rule, and the collinearity index threshold is set to a preset fixed value, thereby forming the corresponding threshold parameter combination;

[0027] For each combination of threshold parameters, the local geometric defect identification, geometric cleaning, boundary information extraction, boundary regularization, and model reconstruction are re-executed in sequence, and the grain number consistency is checked on the obtained reconstructed model.

[0028] Preferably, the method further includes:

[0029] For each combination of threshold parameters, local geometric defect identification, geometric cleaning, boundary information extraction, boundary regularization, and model reconstruction are performed respectively, and the reconstructed models that pass the grain number consistency check are counted.

[0030] The number of short sides in each of the reconstructed models is counted, wherein sides in the reconstructed model whose length is less than a preset statistical threshold are determined as short sides;

[0031] One or more reconstructed models that have reached the minimum number of short sides are grouped into a candidate model set;

[0032] Extract the minimum side length of each candidate model in the candidate model set, and determine the candidate model with the largest minimum side length as the final reconstructed model.

[0033] Preferably, the mapping relationship between the initial seed and the grain regions of the reconstructed model includes:

[0034] Extract the distinct vertices on the boundaries of each grain region in the reconstructed model, calculate the average value of the coordinates of the distinct vertices, and use the obtained average coordinate value as the representative point of the corresponding grain region;

[0035] Calculate the Euclidean distance between each initial seed and the representative point of each grain region, and construct the distance matrix;

[0036] With the goal of minimizing the sum of Euclidean distances of all matching pairs, and under the constraint that each initial seed corresponds to only one grain region and each grain region corresponds to only one initial seed, matching is performed on each initial seed and each grain region to obtain the mapping relationship between the initial seed and the grain region of the reconstructed model.

[0037] Preferably, the boundary normalization includes one or more of the following: boundary snapping, coordinate normalization, duplicate edge deletion, and zero-length edge deletion;

[0038] Specifically, the boundary adsorption is used to adsorb nodes close to the sample boundary to the sample boundary; the coordinate normalization is used to normalize the node coordinates; the duplicate edge deletion is used to delete duplicate boundary line segments; and the zero-length edge deletion is used to delete boundary line segments with two overlapping endpoints.

[0039] Secondly, the present invention provides a geometry optimization system for a rock Voronoi microstructure model, used to implement the above-mentioned geometry optimization method for a rock Voronoi microstructure model, the system comprising:

[0040] The topology construction module is used to extract vertex coordinate information, edge connection information, and grain region information of the rock Voronoi microstructure containing the initial seed, and to construct a geometric topology graph based on the vertex coordinate information, edge connection information, and grain region information.

[0041] The defect identification module is used to identify local geometric defects in the geometric topology diagram based on preset defect judgment rules;

[0042] The defect cleaning module is used to perform geometric cleaning on local geometric defects based on preset cleaning constraint rules, and extract the boundary information of the cleaned geometric topology graph;

[0043] The model reconstruction module is used to perform boundary regularization on the boundary information, generate a set of effective boundary segments, and reconstruct the rock Voronoi micro-model based on the set of effective boundary segments to obtain the reconstructed model.

[0044] The model verification module is used to perform a grain number consistency check on the reconstructed model. After the check is passed, the mapping relationship between the initial seed and the grain region of the reconstructed model is constructed.

[0045] The attribute inheritance module is used to inherit the mineral grouping attributes in the rock Voronoi microstructure model to the grain region of the reconstructed model according to the mapping relationship, so as to obtain the optimized rock Voronoi microstructure model.

[0046] Thirdly, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described method for geometric optimization of the rock Voronoi microstructure model.

[0047] The beneficial effects of this invention are:

[0048] 1. This invention can quickly identify local geometric defects through defect judgment rules, and then perform targeted processing on local geometric defects in the Voronoi micro-model through cleanup constraint rules, which can effectively improve the geometric quality of the model and provide a more stable geometric basis for subsequent mesh generation and numerical analysis.

[0049] 2. This invention introduces a grain number consistency check during the model reconstruction process, ensuring that the total number of grains remains unchanged before and after cleaning in the optimized model, thereby avoiding the problems of grain merging, grain disappearance, and grain number changes that are prone to occur in conventional geometric cleaning.

[0050] 3. After completing the model reconstruction, this invention further establishes the mapping relationship between the initial seed and the reconstructed grain region, and inherits the mineral properties or mineral grouping information in the original model, thereby ensuring that the optimized Voronoi microstructure model can continue to be used for subsequent grain set construction, mineral grouping, material assignment and rock GBM modeling. Attached Figure Description

[0051] The accompanying drawings are provided to further illustrate embodiments of the present invention and form part of the specification. They are used together with the following detailed description to explain the embodiments of the present invention, but do not constitute a limitation thereof. In the drawings:

[0052] Figure 1This is a flowchart of the geometry optimization method for the Voronoi microstructure model of rocks provided by the present invention;

[0053] Figure 2 This is a schematic diagram of the Voronoi microstructure model of the rock selected in this invention;

[0054] Figure 3 This is a schematic diagram of the defect cleaning operation, boundary regularization, and model reconstruction operation provided by the present invention;

[0055] Figure 4 This is a block diagram of the geometry optimization system for the Voronoi microstructure model of rocks provided by the present invention. Detailed Implementation

[0056] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in conjunction with the accompanying drawings and descriptions of the embodiments or the prior art. Obviously, the following description of the structure of the accompanying drawings is only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. It should be noted that the description of these embodiments is for the purpose of helping to understand the present invention, but does not constitute a limitation of the present invention.

[0057] Example 1

[0058] like Figure 1 As shown, this embodiment provides a method for geometric optimization of a rock Voronoi microstructure model, the method comprising:

[0059] Step S1: Extract vertex coordinate information, edge connection information, and grain region information of the rock Voronoi microstructure containing the initial seed, and construct a geometric topology graph based on the vertex coordinate information, edge connection information, and grain region information.

[0060] In this embodiment, a schematic diagram of the original Voronoi microstructure model of the rock containing the initial seed (hereinafter referred to as the original model) is shown below. Figure 2 As shown. The original model is built within a rectangular sample area of ​​5mm × 10mm, and 600 initial seeds corresponding to each grain region are set. Each initial seed is located inside the corresponding grain region and is used to characterize the initial spatial position of the grain.

[0061] by Figure 2Using the original model as input, vertex coordinates, edge connectivity, and grain region information are extracted to establish a geometric topology graph consisting of vertex sets, edge sets, and grain region sets. Simultaneously, the total number of grains in the original model is used as a consistency benchmark for subsequent model reconstruction. Since the original model in this embodiment contains 600 grain regions, the subsequent reconstruction results should maintain a total grain count of 600.

[0062] The initial seed set is as follows:

[0063]

[0064] in, Represents the coordinates of the i-th initial seed;

[0065] The vertex set V of the original model is denoted as:

[0066]

[0067] The edge set E of the original model is denoted as:

[0068]

[0069] The set of grain regions G before cleaning is denoted as:

[0070]

[0071] Where N is the total number of initial seeds, n v This represents the number of vertices in the original model. The total number of grains in the original model before cleaning. In the Voronoi mesoscopic model, each initial seed corresponds to one grain region, therefore the total number of initial seeds N is equal to the total number of grains before cleaning. Consistent.

[0072] Step S2: Identify local geometric defects in the geometric topology diagram based on preset defect judgment rules.

[0073] In this embodiment of the invention, the local geometric defects include near-point defects, short-side defects, and near-collinear vertex defects. Therefore, the defect determination rules include: short-side defect determination rules, near-point defect determination rules, and near-collinear vertex defect determination rules.

[0074] The specific rule for determining short-side defects is as follows: calculate the length of each side in the geometric topology graph, determine whether the side length is less than a preset length threshold, and if so, mark the side as a short-side defect.

[0075] The formula for calculating the side length of each side in the geometric topology diagram of this embodiment is as follows:

[0076]

[0077] In the formula, For edge e mn The side length; For edge e mn A node (i.e., a vertex in the vertex set) with coordinates (x m , y m ); For edge e mn Another node in the array, with coordinates (x... n ,y n ).

[0078] when When determining edge e mn For short-side defects, where ε s The length threshold is set to 0.012 mm.

[0079] Specifically, the near-point defect determination rule is as follows: A spatial proximity search is performed on the set of vertices in the geometric topology graph. For any two vertices p that are not directly connected by the same topological edge... u and p v Calculate the spatial distance between two vertices and determine whether the spatial distance is less than a preset spacing threshold; if so, then set vertex p... u and p v As candidate vertex pairs, for two endpoints in a candidate vertex pair that already form an edge in the edge set and satisfy the short-edge defect determination rule, they are preferentially marked as short-edge defects; for candidate vertex pairs that are not treated as short-edge defects, or candidate vertex clusters formed by connecting multiple candidate vertex pairs, they are marked as near-point defects.

[0080] The formula for calculating the distance between the node and its neighboring nodes in this embodiment is as follows:

[0081]

[0082] In the formula, For node p u With neighboring node p v The spacing between them, node p u The coordinates are (x u , y u ), node p j The coordinates are (x v , y v ).

[0083] when At that time, determine node p v With neighboring node p u For near-point defects, where εm The spacing threshold is set to 0.005 mm initially.

[0084] The specific rules for determining near-collinear vertex defects are as follows: extract nodes with a connectivity degree of 2 from the geometric topology graph, determine whether the included angle between the two edges corresponding to the node reaches the preset collinearity index threshold, and if so, mark the vertex with a connectivity degree of 2 as a near-collinear vertex defect.

[0085] In this context, a node with a connectivity of 2 represents a node connected to two edges, serving as the common node of these two edges. Let this node be named p. i Then the other two nodes on the two edges are p. j and p k Define a vector:

[0086]

[0087]

[0088] Then, the near-collinearity indicator for:

[0089]

[0090] when And node p i When the connectivity is 2, determine node p. i This is a near-collinear vertex defect, where, This is the collinearity threshold, with an initial value of 0.001.

[0091] Step S3: Perform geometric cleanup on local geometric defects based on preset cleanup constraint rules, and extract the boundary information of the cleaned geometric topology graph.

[0092] In this embodiment, the cleanup constraint rules include: short-side defect cleanup rules, near-point defect cleanup rules, and near-collinear vertex defect cleanup rules.

[0093] The specific rules for cleaning up short-side defects are as follows: For the edge corresponding to the short-side defect, perform edge folding processing, merging the two vertices of the edge into the same connected structure or merging them to the folding point, and deleting the original short edge; after completing the short-side folding, update the connection relationships of adjacent edges related to the two vertices, such as... Figure 3 As shown.

[0094] The near-point defect cleanup rule specifically involves performing vertex merging on candidate vertex pairs or candidate vertex clusters corresponding to near-point defects. For a candidate vertex pair, two vertices can be merged into a new vertex; for a candidate vertex cluster formed by connecting multiple candidate vertex pairs, each vertex in the candidate vertex cluster can be merged into a new vertex. The coordinates of the merged new vertex can be taken as the midpoint of the coordinates of the two vertices in the candidate vertex pair, or as the average of the coordinates of each vertex in the candidate vertex cluster. The calculation formula for the merged new node is as follows:

[0095]

[0096] In the formula, C r Let p be a node cluster, and p be a node in the node cluster. This is the new node.

[0097] After cleaning up near-point defects, the original edge connection relationships are updated based on the new node coordinates.

[0098] The specific rules for cleaning up near-collinear vertex defects are as follows: delete the node corresponding to the near-collinear vertex defect, and reconstruct the edge between the two nodes adjacent to that node. In this embodiment, node simplification processing is performed on near-collinear vertices, deleting intermediate nodes that meet the criteria and have a connectivity of 2, and directly reconnecting the two adjacent nodes to reduce local redundant geometric features and maintain boundary continuity.

[0099] The cleaning process described above is performed in localized areas to avoid unnecessary impact on the grain topology of non-defective regions.

[0100] Step S4: Perform boundary regularization on the boundary information to generate a set of effective boundary segments. Based on the set of effective boundary segments, reconstruct the rock Voronoi microstructure model to obtain the reconstructed model.

[0101] After completing step S3, the cleaned node and edge information is further processed by boundary normalization, including boundary adsorption, coordinate normalization, duplicate edge deletion, and zero-length edge deletion, to form a set of effective boundary segments for model reconstruction. Subsequently, the set of effective boundary segments is assigned to the sample boundary region for partitioned reconstruction, thereby obtaining the reconstructed model.

[0102] Therefore, the boundary normalization includes one or more of the following: boundary snapping, coordinate normalization, duplicate edge deletion, and zero-length edge deletion;

[0103] The boundary adsorption is used to adsorb nodes near the sample boundary to the sample boundary; coordinate normalization is used to normalize the node coordinates; duplicate edge deletion is used to delete duplicate boundary segments; and zero-length edge deletion is used to delete boundary segments with overlapping endpoints. Figure 3 As shown.

[0104] Step S5: Perform a grain number consistency check on the reconstructed model. After the check passes, construct the mapping relationship between the initial seed and the grain region of the reconstructed model.

[0105] During model reconstruction, maintaining the number of grains unchanged is an acceptance condition. After each candidate reconstruction is completed, the total number of grains in the reconstructed model is checked for consistency. If the total number of grains after reconstruction is inconsistent with the total number of grains in the original model, the geometric cleanup parameters are readjusted and steps S2 to S4 are executed again. Only when the total number of grains after reconstruction is consistent with the original model is the result retained as an acceptable optimized model.

[0106] Specifically, a grain number consistency check is performed on the reconstructed model, including: obtaining the total number of grains in the rock Voronoi microstructure model and the total number of grains in the reconstructed model; determining whether the total number of grains in the rock Voronoi microstructure model and the total number of grains in the reconstructed model are the same; if so, the consistency check passes; if not, the threshold parameters of the defect judgment rule are adjusted, and based on the adjusted threshold parameters, local geometric defect identification, geometric cleaning, boundary information extraction, boundary regularization, and model reconstruction are re-executed to obtain an updated reconstructed model; the grain number consistency check is performed again on the updated reconstructed model until the total number of grains in the rock Voronoi microstructure model is the same as the total number of grains in the updated reconstructed model; wherein, the threshold parameters include a length threshold, a spacing threshold, and a collinearity index threshold.

[0107] In this embodiment, the threshold parameters of the defect judgment rule are adjusted, including: generating multiple length sub-thresholds within a preset length threshold search range according to a preset step size; for each length sub-threshold, determining the corresponding spacing threshold according to a preset linkage limiting rule, and setting the collinearity index threshold to a preset fixed value to form a corresponding threshold parameter combination; for each threshold parameter combination, re-executing local geometric defect identification, geometric cleaning, boundary information extraction, boundary regularization, and model reconstruction in sequence, and performing a grain number consistency check on the obtained reconstructed model.

[0108] In this embodiment, the length threshold is determined using a candidate search method. The lower limit of the length threshold search is 0.012 mm, the upper limit is 0.020 mm, and the search step size is 0.002 mm, thus generating multiple length sub-thresholds sequentially. The spacing threshold is not searched independently with equal step sizes, but instead employs a limiting strategy linked to the length threshold. Specifically, the base value of the spacing threshold is 0.005 mm, and the upper limit is 0.006 mm. Under each length sub-threshold, if half of the length sub-threshold is greater than the base value, the spacing threshold is the smaller of 0.006 mm and half of the length sub-threshold; otherwise, the spacing threshold is 0.005 mm. Within the candidate search range of this embodiment, the actual spacing threshold is 0.006 mm. This limiting strategy is used to avoid excessively large near-point merging thresholds that could lead to grain merging, grain disappearance, or misalignment of mapping relationships. The collinearity index threshold is a dimensionless parameter, and in this embodiment, it is fixed at 0.001 without step size search.

[0109] For each length sub-threshold, the corresponding spacing threshold is determined according to the above-mentioned linkage limiting strategy, and combined with the fixed collinearity index threshold to form a set of candidate cleaning parameters, that is, a set of threshold parameter combinations; each set of candidate cleaning parameters re-executes local geometric defect identification, geometric cleaning, boundary information extraction, boundary regularization and model reconstruction.

[0110] After performing several rounds of local geometric defect identification, geometric cleaning, boundary information extraction, boundary regularization, and model reconstruction, the number of groups whose total number of grains satisfying the Voronoi microstructure model of rock is the same as the total number of grains in the reconstructed model is counted.

[0111] When the number of groups exceeds one, the number of short sides in each reconstructed model is counted. A short side is any side of the reconstructed model whose length is less than a preset statistical threshold. The side is marked as a short side. One or more reconstructed models with the minimum number of short sides are combined into a candidate model set. The minimum side length of each candidate model in the candidate model set is extracted, and the candidate model with the largest minimum side length is determined as the final reconstructed model.

[0112] In this embodiment, the total number of grains in the original model is assumed to be... The total number of grains in the reconstructed model is The grain number consistency constraint is then:

[0113]

[0114] when At that time, adjust the length threshold, spacing threshold, and collinearity threshold, and re-execute defect identification, constraint cleanup, and model reconstruction.

[0115] When multiple candidate reconstruction results satisfy the grain number consistency constraint exist, the candidate result with fewer short sides and a larger minimum side length is selected as the final optimization model:

[0116] Among them, the candidate result set satisfy:

[0117]

[0118] Suppose that the length of candidate results R is less than a preset statistical threshold l. t The number of short sides is n short (R), the preset statistical threshold value is 0.03 mm, and the minimum side length is l. min (R). Then first in the set Select the candidate result set with the fewest short sides. :

[0119]

[0120] Then from the candidate result set The candidate with the largest minimum side length is selected as the final reconstruction model R. * :

[0121]

[0122] In this embodiment, the final accepted parameters are: spacing threshold 0.006 mm, length threshold 0.014 mm, and collinearity tolerance threshold 0.001.

[0123] Under these parameters, the total number of grains remains 600 before and after reconstruction, with no grain merging or disappearance. The number of edges decreases from 1801 to 1745; the number of short edges with a length less than 0.03 mm decreases from 115 to 58, a reduction of 49.57%; and the minimum edge length increases from 0.000108039769065482 mm to 0.0142731895874747 mm, an improvement of approximately 132.11 times. This demonstrates that this embodiment improves the local geometric quality of the model while maintaining the same total number of grains.

[0124] Step S6: Based on the mapping relationship, the mineral grouping attributes in the rock Voronoi microstructure model are inherited to the grain region of the reconstructed model to obtain the optimized rock Voronoi microstructure model.

[0125] In this embodiment, the steps for constructing the mapping relationship are as follows: extract the unique vertex on the boundary of each grain region of the reconstructed model as the representative point of the grain region; calculate the distance between the initial seed and the representative point of the grain region to obtain the distance matrix; according to the distance matrix, under the constraint conditions, perform matching between the initial seed and the reconstructed grain region to obtain the mapping relationship between the initial seed and the grain region of the reconstructed model; wherein, the constraint conditions are: each initial seed corresponds to only one grain region, and each grain region corresponds to only one initial seed.

[0126] Specifically, let the reconstructed k-th grain region be... m on the boundary k There is a unique vertex whose coordinates are q. k1 ,q k2 , ⋯ , Then the representative point c of this grain region k for:

[0127]

[0128] Let the initial seed s be... i With the reconstructed grain region Distance between ,but

[0129]

[0130] By all Construct a distance matrix And based on the distance matrix, a unique match is completed between the initial seed and the reconstructed grain region under the one-to-one correspondence constraint.

[0131] In this embodiment, under the condition of maintaining a consistent number of grains, both the number of reconstructed grain regions and the number of initial seeds are 600. The correspondence between the initial seeds and the reconstructed grain regions is determined according to a one-to-one matching constraint, thus forming 600 mapping relationships. Further, the statistical results of the matching distance between the initial seeds and the reconstructed grain regions (the spatial Euclidean distance distribution between the initial seed point and its corresponding representative point of the reconstructed grain) are as follows: minimum value 0.001307, average value 0.036645, median 0.031279, 95th quantile 0.079461, and maximum value 0.124240. These results indicate that, under the constraint of maintaining a consistent number of grains, a clear one-to-one correspondence can be established between the initial seeds and the reconstructed grain regions, and the matching results have good spatial correspondence rationality.

[0132] After completing the grain matching, the mineral grouping attributes in the original model are further inherited to the reconstructed grain region according to the aforementioned one-to-one matching relationship. To ensure that the content of the embodiment is consistent with the currently verified results, this embodiment uses mineral grouping as the inheritance object and does not display attribute fields such as orientation angle and confidence level that have not been directly verified in the current data.

[0133] The inherited mineral groupings include three categories: quartz, feldspar, and clay. There are 408 quartz grains, 120 feldspar grains, and 72 clay grains, with 0 unclassified grains. This indicates that the optimized reconstructed grain region not only restores the original grain identifiers but also continues to inherit the mineral grouping attributes from the original model.

[0134] This invention achieves improved geometric quality of the Voronoi microstructure while maintaining the total number of grains and a consistent correspondence between the initial seed, reconstructed grain regions, and mineral groupings, providing a foundation for subsequent grain set establishment, mineral assignment, and interface modeling in rock GBM modeling.

[0135] This embodiment can quickly identify local geometric defects through defect judgment rules, and then perform targeted processing on local geometric defects in the Voronoi microscale model through cleanup constraint rules, which can effectively improve the geometric quality of the model and provide a more stable geometric basis for subsequent mesh generation and numerical analysis. This embodiment introduces a grain number consistency check during the model reconstruction process to ensure that the total number of grains remains unchanged before and after cleanup in the optimized model, thereby avoiding the problems of grain merging, grain disappearance and grain number change that are prone to occur in conventional geometric cleanup.

[0136] Example 2

[0137] Figure 4 This is a block diagram of a rock Voronoi microstructure model geometry optimization system provided in one embodiment of the present invention. Figure 4 As shown, this embodiment provides a geometry optimization system for a rock Voronoi microstructure model, used to implement the geometry optimization method for a rock Voronoi microstructure model in Embodiment 1. The system includes:

[0138] The topology construction module is used to extract vertex coordinate information, edge connection information, and grain region information of the rock Voronoi microstructure containing the initial seed, and to construct a geometric topology graph based on the vertex coordinate information, edge connection information, and grain region information.

[0139] The defect identification module is used to identify local geometric defects in the geometric topology diagram based on preset defect judgment rules;

[0140] The defect cleaning module is used to perform geometric cleaning on local geometric defects based on preset cleaning constraint rules, and extract the boundary information of the cleaned geometric topology graph;

[0141] The model reconstruction module is used to perform boundary regularization on the boundary information, generate a set of effective boundary segments, and reconstruct the rock Voronoi micro-model based on the set of effective boundary segments to obtain the reconstructed model.

[0142] The model verification module is used to perform a grain number consistency check on the reconstructed model. After the check is passed, the mapping relationship between the initial seed and the grain region of the reconstructed model is constructed.

[0143] The attribute inheritance module is used to inherit the mineral grouping attributes in the rock Voronoi microstructure model to the grain region of the reconstructed model according to the mapping relationship, so as to obtain the optimized rock Voronoi microstructure model.

[0144] This embodiment also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the rock Voronoi microstructure model geometry optimization method in Embodiment 1.

[0145] This embodiment also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the rock Voronoi microstructure geometry optimization method in Embodiment 1.

[0146] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0147] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will 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 apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1A system that specifies functions in one or more boxes.

[0148] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A method for geometric optimization of a rock Voronoi microstructure model, characterized in that, The method includes: Extract vertex coordinates, edge connectivity, and grain region information from the rock Voronoi microstructure containing the initial seed, and construct a geometric topology graph based on the vertex coordinates, edge connectivity, and grain region information; Local geometric defects in the geometric topology diagram are identified based on preset defect judgment rules; Geometric cleanup is performed on local geometric defects based on preset cleanup constraint rules, and the boundary information of the cleaned geometric topology graph is extracted. Boundary regularization is performed on the boundary information to generate a set of effective boundary segments. Based on the set of effective boundary segments, the rock Voronoi microstructure model is reconstructed to obtain the reconstructed model. Perform a grain number consistency check on the reconstructed model. After the check passes, construct the mapping relationship between the initial seed and the grain regions of the reconstructed model. Based on the mapping relationship, the mineral grouping attributes in the rock Voronoi microstructure model are inherited to the grain region of the reconstructed model, resulting in the optimized rock Voronoi microstructure model.

2. The method for geometric optimization of the Voronoi microstructure model of rock according to claim 1, characterized in that, The local geometric defects include near-point defects, short-side defects, and near-collinear vertex defects; the defect determination rules include: The short-side defect determination rule is as follows: traverse the set of edges in the geometric topology graph, calculate the length between the two endpoints of each edge, and determine whether the edge length is less than a preset length threshold. If so, mark the edge as a short-side defect. The short-side defect is used to characterize the situation where the length of the boundary line segment of the geometric topology graph with existing topological connection relationship is too short. The near-point defect determination rule is as follows: traverse the vertex set in the geometric topology graph, perform a spatial proximity search on the vertex set based on the vertex coordinates, and obtain candidate vertex pairs whose distance between vertices is less than a preset spacing threshold; wherein, the two vertices in the candidate vertex pair are not directly connected by the same topological edge; mark the candidate vertex pair, or the candidate vertex cluster formed by connecting multiple candidate vertex pairs, as a near-point defect; wherein, the near-point defect is used to characterize the situation where the spatial position between vertices is too close, resulting in local geometric distortion; The near-collinear vertex defect determination rule is as follows: extract the vertex with a connectivity degree of 2 in the geometric topology graph, obtain the two adjacent vertices directly connected to the vertex, calculate the near-collinearity index between the two edges formed by the vertex and its two adjacent vertices, and determine whether the near-collinearity index is less than the preset collinearity criterion threshold. If so, mark the vertex with a connectivity degree of 2 as a near-collinear vertex defect.

3. The method for geometric optimization of the Voronoi microstructure model of rock according to claim 2, characterized in that, The cleanup constraint rules include: The short-edge defect cleanup rule is as follows: perform edge folding processing on the edge corresponding to the short-edge defect, merge the two vertices of the edge into the same connected structure or merge them into the folding point, delete the original short edge, and update the edge connection relationship related to the two vertices. The near point defect cleanup rule is as follows: perform vertex merging processing on the candidate vertex pairs or candidate vertex clusters corresponding to the near point defects, merge the candidate vertex pairs or candidate vertex clusters into a new vertex, and update the original edge connection relationship based on the new vertex; The near-collinear vertex defect cleanup rule is as follows: delete the vertex corresponding to the near-collinear vertex defect, and reconstruct the edge between the two vertices adjacent to the defected vertex.

4. The method for geometric optimization of the Voronoi microstructure model of rock according to claim 3, characterized in that, Perform a grain number consistency check on the reconstructed model, including: Obtain the total number of grains in the Voronoi microstructure model of the rock and the total number of grains in the reconstructed model; Determine whether the total number of grains in the Voronoi microstructure model of the rock is the same as the total number of grains in the reconstructed model. If so, the consistency check is passed. If not, the threshold parameters of the defect judgment rule are adjusted, and the local geometric defect identification, geometric cleaning, boundary information extraction, boundary regularization, and model reconstruction are re-executed based on the adjusted threshold parameters to obtain an updated reconstructed model; the grain number consistency check is performed again on the updated reconstructed model until the total number of grains in the rock Voronoi microstructure model is the same as the total number of grains in the updated reconstructed model; wherein, the threshold parameters include a length threshold, a spacing threshold, and a collinearity index threshold.

5. The method for geometric optimization of the Voronoi microstructure model of rock according to claim 4, characterized in that, Adjusting the threshold parameters of the defect determination rule includes: Within the preset length threshold search range, multiple length sub-thresholds are generated according to a preset step size; For each length sub-threshold, the corresponding spacing threshold is determined according to the preset linkage limiting rule, and the collinearity index threshold is set to a preset fixed value to form a corresponding threshold parameter combination; For each combination of threshold parameters, the local geometric defect identification, geometric cleaning, boundary information extraction, boundary regularization, and model reconstruction are re-executed in sequence, and the grain number consistency is checked on the obtained reconstructed model.

6. The method for geometric optimization of the Voronoi microstructure model of rock according to claim 5, characterized in that, The method further includes: The number of short sides in each reconstructed model that passes the consistency check for the number of grains is counted. Among them, the side with a length less than a preset statistical threshold in the reconstructed model is determined as a short side. One or more reconstructed models that have reached the minimum number of short sides are grouped into a candidate model set; Extract the minimum side length of each candidate model in the candidate model set, and determine the candidate model with the largest minimum side length as the final reconstructed model.

7. The method for geometric optimization of the Voronoi microstructure model of rock according to claim 1, characterized in that, The mapping relationship between the initial seed and the grain regions of the reconstructed model is established, including: Extract the distinct vertices on the boundaries of each grain region in the reconstructed model, and calculate the representative point of the corresponding grain region based on the coordinates of the distinct vertices; the average value of the obtained coordinates is used as the representative point of the corresponding grain region. Calculate the distance between each initial seed and the representative point of each grain region to obtain the distance matrix; Based on the distance matrix, under preset matching constraints, each initial seed is matched with each grain region to obtain the mapping relationship between the initial seed and the grain region of the reconstructed model.

8. The method for geometric optimization of the Voronoi microstructure model of rock according to claim 1, characterized in that, The boundary normalization includes one or more of the following: boundary snapping, coordinate normalization, duplicate edge deletion, and zero-length edge deletion; Specifically, the boundary adsorption is used to adsorb nodes close to the sample boundary to the sample boundary; the coordinate normalization is used to normalize the node coordinates; the duplicate edge deletion is used to delete duplicate boundary line segments; and the zero-length edge deletion is used to delete boundary line segments with two overlapping endpoints.

9. A geometry optimization system for a rock Voronoi microstructure model, used to implement the geometry optimization method for a rock Voronoi microstructure model as described in any one of claims 1-8, characterized in that, The system includes: The topology construction module is used to extract vertex coordinate information, edge connection information, and grain region information of the rock Voronoi microstructure containing the initial seed, and to construct a geometric topology graph based on the vertex coordinate information, edge connection information, and grain region information. The defect identification module is used to identify local geometric defects in the geometric topology diagram based on preset defect judgment rules; The defect cleaning module is used to perform geometric cleaning on local geometric defects based on preset cleaning constraint rules, and extract the boundary information of the cleaned geometric topology graph; The model reconstruction module is used to perform boundary regularization on the boundary information, generate a set of effective boundary segments, and reconstruct the rock Voronoi micro-model based on the set of effective boundary segments to obtain the reconstructed model. The model verification module is used to perform a grain number consistency check on the reconstructed model. After the check is passed, the mapping relationship between the initial seed and the grain region of the reconstructed model is constructed. The attribute inheritance module is used to inherit the mineral grouping attributes in the rock Voronoi microstructure model to the grain region of the reconstructed model according to the mapping relationship, so as to obtain the optimized rock Voronoi microstructure model.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by the processor, the program implements the geometry optimization method for the Voronoi microstructure model of rock as described in any one of claims 1-8.