A method and device for generating a discrete crack network
By dividing the fracture network into blocks and using a recursive algorithm to determine clusters, the problem of high complexity in discrete fracture network inspection in the existing technology is solved, and fast and accurate fracture network model establishment and efficient cluster inspection are achieved.
Patent Information
- Application Number
- CN202111214856.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-19
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-10-19
AI Technical Summary
Existing discrete fracture network inspection algorithms are highly complex and difficult to quickly and accurately establish complex fracture system models, especially when there are a large number of fractures, and are inefficient.
By dividing the generated random crack network area into blocks, cyclically generating random cracks and recording their clusters, a recursive algorithm is used to determine the crack clusters, reducing complexity and improving efficiency.
It achieves the rapid and accurate establishment of discrete fracture network models, reduces complexity, and shows good anti-interference effects in two-dimensional and three-dimensional situations, significantly improving inspection efficiency.
Smart Images

Figure CN113963112B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to exploration, development and utilization technologies of structural geology, geothermal energy, oil and natural gas, and in particular to a method and device for generating a discrete fracture network. Background Art
[0002] my country's current energy structure is still dominated by coal. In 2020, coal accounted for as much as 56%, oil and natural gas accounted for 20% and 8% respectively. In the international environment of energy conservation and emission reduction, my country will further reduce the proportion of coal consumption, while increasing investment and development in oil and natural gas, especially natural gas. At present, my country's external dependence on oil is close to 70%, and its external dependence on natural gas is more than 40%. Therefore, the exploration and development of oil and gas resources is related to national energy security. With the long-term development of conventional oil and gas fields, they generally enter the high water content stage, and it is difficult to make a breakthrough in oil and gas production. The development of unconventional oil and gas reservoirs, such as tight oil and gas reservoirs and shale oil and gas reservoirs, is becoming increasingly important.
[0003] Fractures play a decisive role in the development of unconventional oil and gas reservoirs. Taking shale oil and gas reservoirs as an example, the permeability of shale reservoir matrix is extremely low, and the conventional mining method has extremely low production. At present, the more mature method is to drill long horizontal wells and perform multi-stage hydraulic fracturing. The fracturing fractures interact with natural fractures to form a complex fracture network, providing a high-permeability channel for underground fluid seepage. Therefore, natural fractures are particularly important in forming reservoir transformation volume. However, the geometric shape and specific distribution of underground fractures cannot be accurately obtained under existing technical conditions. Discrete fracture network is currently the only method that can establish a large-scale fracture system. Discrete fracture network refers to the use of simple geometric figures to represent complex fractures, such as straight line segments represent two-dimensional fractures, and ellipses or polygons represent three-dimensional fractures. The specific morphology of the fractures, such as roughness and tortuosity, is ignored, but the topological structure of the fracture network is retained. The discrete fracture network model established in this way can be used to study the influence of the fracture system on underground fluid seepage.
[0004] The connectivity of the discrete fracture network is the key to determining the permeability of the fracture network. Therefore, checking the clusters in the fracture network is a key step in judging the connectivity of the fractures. The algorithm commonly used to check clusters is the Hoshen–Kopelman algorithm, which has a high complexity of O(N 2 lnN), which is inefficient for cluster inspection of discrete crack networks with a large number of cracks. Summary of the invention
[0005] The embodiments of the present application provide a method and device for generating a discrete fracture network, which can quickly and accurately establish a discrete fracture network model, and the established discrete fracture network model has low complexity and good anti-interference effect.
[0006] The present application embodiment provides a method for generating a discrete crack network, which may include:
[0007] The area where the random fracture network is generated is divided into blocks to form a plurality of blocks;
[0008] The following steps are executed in a loop until a preset stop condition is met: generating random cracks, recording the cracks according to the blocks, and determining corresponding crack clusters.
[0009] In an exemplary embodiment of the present application, the generating random cracks may include: generating random cracks according to a preset statistical distribution;
[0010] The statistical distribution generally includes: the length of the crack conforms to the power law distribution, the direction of the crack conforms to the Fisher distribution, and the position of the crack conforms to the Poisson distribution.
[0011] In an exemplary embodiment of the present application, after forming a plurality of blocks and before recording the cracks according to the blocks, the method may further include: marking each block and allocating a first array for recording crack numbers in the block to each block;
[0012] Each crack has a crack number, and the crack number increases from 1 in the order in which the cracks are generated; recording the cracks according to the blocks may include:
[0013] When the length of the generated crack is smaller than the size of the region, a temporary integer second array is set to record the serial number of the block to which the crack belongs; and each block to which the crack belongs records the crack number corresponding to the crack in the first array corresponding to the block; wherein all blocks within the rectangular or square region involved in the trajectory of the crack are determined as the blocks to which the crack belongs;
[0014] When the length of the generated crack is greater than the size of the region, the crack number corresponding to the crack is counted into a preset long crack record array.
[0015] In an exemplary embodiment of the present application, the determining of corresponding fracture clusters may include:
[0016] When the generated crack is the first crack, the first crack constitutes a first crack cluster, and the first crack is used as a root crack of the first crack cluster;
[0017] When the generated crack is not the first crack, detecting whether the crack intersects with at least one already generated crack;
[0018] When the crack intersects with a generated crack, the crack is added to the crack cluster to which the intersecting generated crack belongs; when the crack intersects with multiple generated cracks, it is detected whether the multiple intersecting generated cracks belong to the same crack cluster; when the multiple intersecting generated cracks all belong to the same crack cluster, the crack is added to the same crack cluster to which the multiple intersecting generated cracks belong; when the multiple intersecting generated cracks do not belong to the same crack cluster, all the crack clusters to which the multiple intersecting generated cracks belong are unified into one crack cluster, and the crack is added to the unified crack cluster;
[0019] When the fracture does not intersect with any generated fracture, a new fracture cluster is formed by the fracture, and the fracture is used as the root fracture of the new fracture cluster.
[0020] In an exemplary embodiment of the present application, each crack may also have a root node number;
[0021] After determining the corresponding fracture cluster, the method may further include: determining the root node number of the fracture;
[0022] Determining the root node number of the crack may include:
[0023] The first crack generated in a crack cluster is determined as the root crack of the crack cluster;
[0024] For a root crack in a crack cluster, the opposite number of the number of cracks in the crack cluster is used as the root node number of the root crack;
[0025] For other fractures in a fracture cluster except the root fracture, the fracture number of the root fracture in the fracture cluster is used as the root node number of the other fractures.
[0026] In an exemplary embodiment of the present application, each crack also has a cluster number; the cluster number is the number of the crack cluster to which the crack belongs, that is, the crack number of the root crack in the crack cluster to which the crack belongs;
[0027] To determine the fracture cluster corresponding to any fracture, the method may further include: searching for the cluster number of any fracture by a recursive algorithm.
[0028] In an exemplary embodiment of the present application, the searching for the cluster number of any crack by a recursive algorithm may include: for any crack, performing the following operations:
[0029] 61. Check the root node number of the current crack; when the root node number of the current crack is less than 0, proceed to step 62; when the root node number of the current crack is the crack number of another crack, proceed to step 63;
[0030] 62. Determine that the crack whose root node number is less than 0 is a root crack, and use the crack number of the root crack as the cluster number of the current crack; stop searching for the cluster number;
[0031] 63. Take the other crack as the current crack and return to step 61.
[0032] In an exemplary embodiment of the present application, the method may further include: when a new fracture is added to any fracture cluster, updating the root node number of the root fracture in the fracture cluster;
[0033] When any multiple fracture clusters are unified into the same fracture cluster, the root fracture in the unified fracture cluster is determined, and the root node number and the cluster number of each fracture in the unified fracture cluster are updated.
[0034] In an exemplary embodiment of the present application, updating the root node number of the root fracture in the fracture cluster may include:
[0035] Modify the root node number of the root crack in the crack cluster to the opposite number of all the cracks currently contained in the crack cluster;
[0036] The step of determining the root crack in the unified crack cluster and updating the root node number and cluster number of each crack in the unified crack cluster may include:
[0037] The root crack of the fracture cluster with the largest number of fractures among the plurality of fracture clusters before unification is used as the root crack of the fracture cluster after unification;
[0038] The root node number of the root crack in the unified crack cluster is updated to the inverse number of the total number of all cracks contained in the unified crack cluster; the root node numbers of other cracks in the unified crack cluster except the root crack are updated to the crack number of the root crack;
[0039] The cluster number of the root fracture in the unified fracture cluster is kept unchanged, and the cluster numbers of the other fractures are updated to the fracture number of the root fracture.
[0040] In an exemplary embodiment of the present application, the stop condition may include: reaching a given number of cracks, or the formed crack cluster runs through the region where the random crack network is generated.
[0041] An embodiment of the present application also provides a device for generating a discrete fracture network, which may include a processor and a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed by the processor, the generation of the above-mentioned discrete fracture network is achieved.
[0042] Compared with the related art, the embodiment of the present application may include: dividing the area where the random crack network is generated into blocks to form multiple blocks; looping the following steps until a preset stop condition is met: generating random cracks, recording the cracks according to the blocks, and determining the corresponding crack clusters. Through this embodiment, a discrete crack network model is established quickly and accurately, and the established discrete crack network model has low complexity and good anti-interference effect.
[0043] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by implementing the present application. Other advantages of the present application can be realized and obtained by the schemes described in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings are used to provide an understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.
[0045] Figure 1 This is a flow chart of a method for generating a discrete fracture network according to an embodiment of the present application;
[0046] Figure 2 A schematic diagram of a method for generating a discrete fracture network according to an embodiment of the present application;
[0047] Figure 3 A schematic diagram of a crack network for generating a discrete crack in an embodiment of the present application;
[0048] Figure 4 A schematic diagram of a fracture network for generating two discrete fractures according to an embodiment of the present application;
[0049] Figure 5 A schematic diagram of a fracture network for generating nine discrete fractures according to an embodiment of the present application;
[0050] Figure 6 A schematic diagram of a crack network reaching a stop condition according to an embodiment of the present application;
[0051] Figure 7 A schematic diagram of a three-dimensional discrete fracture network according to an embodiment of the present application;
[0052] Figure 8 This is a block diagram of the composition of a device for generating a discrete fracture network according to an embodiment of the present application. DETAILED DESCRIPTION
[0053] The present application describes multiple embodiments, but the description is exemplary rather than restrictive, and it is obvious to those skilled in the art that there may be more embodiments and implementations within the scope of the embodiments described in the present application. Although many possible feature combinations are shown in the drawings and discussed in the specific embodiments, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with any other feature or element in any other embodiment, or may replace any other feature or element in any other embodiment.
[0054] The present application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features and elements disclosed in the present application may also be combined with any conventional features or elements to form a unique invention scheme defined by the claims. Any features or elements of any embodiment may also be combined with features or elements from other invention schemes to form another unique invention scheme defined by the claims. Therefore, it should be understood that any feature shown and / or discussed in the present application may be implemented individually or in any appropriate combination. Therefore, except for the limitations made according to the attached claims and their equivalents, the embodiments are not subject to other restrictions. In addition, various modifications and changes may be made within the scope of protection of the attached claims.
[0055] In addition, when describing representative embodiments, the specification may have presented the method and / or process as a specific sequence of steps. However, to the extent that the method or process does not rely on the specific order of the steps described herein, the method or process should not be limited to the steps of the specific order described. As will be understood by those of ordinary skill in the art, other sequences of steps are also possible. Therefore, the specific sequence of the steps set forth in the specification should not be interpreted as a limitation to the claims. In addition, the claims for the method and / or process should not be limited to the steps of performing them in the order written, and those skilled in the art can easily understand that these sequences can be changed and still remain within the spirit and scope of the embodiments of the present application.
[0056] The present application embodiment provides a method for generating a discrete crack network, such as Figure 1 , Figure 2 As shown, steps S101-S102 may be included:
[0057] S101, dividing the area where the random fracture network is generated into blocks to form a plurality of blocks;
[0058] S102, looping through the following steps until a preset stop condition is met: generating random cracks, recording the cracks according to the blocks, and determining corresponding crack clusters.
[0059] In an exemplary embodiment of the present application, an improved discrete fracture network generation method is proposed, which can quickly generate a discrete fracture network, and can check fracture clusters in the discrete fracture network, can quickly and accurately mark all fracture clusters in the discrete fracture network, and the inspection results can be used to analyze fracture connectivity. The cluster inspection method has a complexity close to O(N) and is applicable to two-dimensional and three-dimensional fracture networks.
[0060] In an exemplary embodiment of the present application, the region where the random fracture network is generated may be first divided into blocks to form a plurality of blocks. The region may be a square region or a rectangular region, which is convenient for dividing the region into blocks.
[0061] In an exemplary embodiment of the present application, after forming a plurality of blocks and before recording the cracks according to the blocks, the method may further include: marking each block and allocating a first array for recording the crack numbers in the block to each block.
[0062] In an exemplary embodiment of the present application, each block may be numbered in a row-first or column-first manner, and each block is allocated an integer array (such as the first array described above) to record the crack numbers in the block.
[0063] In an exemplary embodiment of the present application, Figure 3 As shown, the area can be a square area, which can be divided into 25 small squares, each of which can be used as a block. The method of the embodiment of the application is also applicable to irregular areas, and the divided small areas can also be irregular shapes, which does not affect the implementation of the method of the embodiment of the application.
[0064] In an exemplary embodiment of the present application, the generating random cracks may include: generating random cracks according to a preset statistical distribution;
[0065] The statistical distribution generally includes: the length of the crack conforms to the power law distribution, the direction of the crack conforms to the Fisher distribution, and the position of the crack conforms to the Poisson distribution. Other statistical distributions are also acceptable.
[0066] In an exemplary embodiment of the present application, each crack has a crack number, and the crack number increases from 1 in the order in which the cracks are generated; recording the cracks according to the blocks may include:
[0067] When the length of the generated crack is smaller than the size of the region, a temporary integer second array is set to record the serial number of the block to which the crack belongs; and each block to which the crack belongs records the crack number corresponding to the crack in the first array corresponding to the block; wherein all blocks within the rectangular or square region involved in the trajectory of the crack are determined as the blocks to which the crack belongs;
[0068] When the length of the generated crack is greater than the size of the region, the crack number corresponding to the crack is counted into a preset long crack record array.
[0069] In an exemplary embodiment of the present application, a random crack can be generated. If the length of the crack is less than or equal to the length of the region, the crack can be treated as a short crack, and the block to which the crack belongs is recorded and stored in a temporary array (such as the second array mentioned above); and the crack number of the crack is recorded in the corresponding block array (such as the first array mentioned above); if the length of the crack is greater than the length of the region, the crack can be treated as a long crack, and the block to which it belongs is not searched, and the crack number of the crack is counted in the long crack record array.
[0070] In an exemplary embodiment of the present application, each crack may have a crack number, a root node number and a cluster number, and all root node numbers and cluster numbers may be stored in corresponding arrays.
[0071] In an exemplary embodiment of the present application, the crack numbers are incremented from 1 in the order of generation. For a root crack in a crack cluster, the root node number is the opposite of the number of cracks in the crack cluster, and can be used to record the total number of cracks in the crack cluster; for other cracks in the crack cluster, the root node number is the crack number of the root crack in the crack cluster. The cluster number is the number of the crack cluster to which the crack belongs, and is the crack number of the root crack in the crack cluster to which the crack belongs. The initial root node numbers of all cracks are -1, which means that they constitute a crack cluster alone, and the number of cracks in the crack cluster is 1.
[0072] In an exemplary embodiment of the present application, Figure 3As shown, for example, the length of crack 1 is less than the length of the region, so all blocks to which the crack belongs are recorded, which may include blocks 2, 3, 7, 8, 12, 13, 17, and 18 (gray blocks). In order to facilitate programming processing, all blocks in the rectangular or square area involved in the trajectory of each crack are set as the blocks to which the crack belongs (for example, the blocks involved in the geometric figure composed of two right triangles with the straight lines connecting the two ends of the trajectory of the crack as the hypotenuse), without examining whether each block has a crack trajectory, such as blocks 17 and 8 do not have crack trajectories in them. 1 is the crack number of crack 1, indicating that crack 1 is the first random crack generated. At this time, the root node number of the crack is -1, indicating that it forms a crack cluster alone, the cluster number of the crack cluster is 1, and the number of cracks in the crack cluster is 1. Crack 1 is the root crack of the crack cluster.
[0073] In an exemplary embodiment of the present application, the determining of corresponding fracture clusters may include:
[0074] When the generated crack is the first crack, the first crack constitutes a first crack cluster, and the first crack is used as a root crack of the first crack cluster;
[0075] When the generated crack is not the first crack, detecting whether the crack intersects with at least one already generated crack;
[0076] When the crack intersects with a generated crack, the crack is added to the crack cluster to which the intersecting generated crack belongs; when the crack intersects with multiple generated cracks, it is detected whether the multiple intersecting generated cracks belong to the same crack cluster; when the multiple intersecting generated cracks all belong to the same crack cluster, the crack is added to the same crack cluster to which the multiple intersecting generated cracks belong; when the multiple intersecting generated cracks do not belong to the same crack cluster, all the crack clusters to which the multiple intersecting generated cracks belong are unified into one crack cluster, and the crack is added to the unified crack cluster;
[0077] When the fracture does not intersect with any generated fracture, a new fracture cluster is formed by the fracture, and the fracture is used as the root fracture of the new fracture cluster.
[0078] In an exemplary embodiment of the present application, after determining the corresponding fracture cluster, the method may further include: determining the root node number of the fracture;
[0079] Determining the root node number of the crack may include:
[0080] The first crack generated in a crack cluster is determined as the root crack of the crack cluster;
[0081] When the randomly generated crack is a root crack in a crack cluster, the opposite number of the number of cracks (total number) in the crack cluster is used as the root node number of the root crack;
[0082] When the randomly generated crack is a crack other than the root crack in a crack cluster, the crack number of the root crack in the crack cluster is used as the root node number of the crack (ie, the crack other than the root crack).
[0083] In an exemplary embodiment of the present application, in order to determine a fracture cluster corresponding to any fracture, the method may further include: searching for a cluster number of any fracture by a recursive algorithm.
[0084] In an exemplary embodiment of the present application, the searching for the cluster number of any crack by a recursive algorithm includes: for any crack, performing the following operations:
[0085] A. Check the root node number of the current crack; when the root node number of the current crack is less than 0, proceed to step B; when the root node number of the current crack is the crack number of another crack, proceed to step C;
[0086] B. determining that the crack whose root node number is less than 0 is a root crack, and using the crack number of the root crack as the cluster number of the current crack; and stopping the search for the cluster number;
[0087] C. Use the other crack as the current crack and return to step A.
[0088] In an exemplary embodiment of the present application, the method may further include: when a new fracture is added to any fracture cluster, updating the root node number of the root fracture in the fracture cluster;
[0089] When any multiple crack clusters are unified into one crack cluster, the root crack in the unified crack cluster is determined, and the root node number and cluster number of each crack in the unified crack cluster are updated.
[0090] In an exemplary embodiment of the present application, updating the root node number of the root fracture in the fracture cluster may include:
[0091] Modify the root node number of the root crack in the crack cluster to the opposite number of all the cracks currently contained in the crack cluster;
[0092] The step of determining the root crack in the unified crack cluster and updating the root node number and cluster number of each crack in the unified crack cluster may include:
[0093] The root crack of the fracture cluster with the largest number of fractures among the plurality of fracture clusters before unification is used as the root crack of the fracture cluster after unification;
[0094] The root node number of the root crack in the unified crack cluster is updated to the inverse number of the total number of all cracks contained in the unified crack cluster; the root node numbers of other cracks in the unified crack cluster except the root crack are updated to the crack number of the root crack;
[0095] The cluster number of the root fracture in the unified fracture cluster is kept unchanged, and the cluster numbers of the other fractures are updated to the fracture number of the root fracture.
[0096] In an exemplary embodiment of the present application, the above scheme will be described in detail below.
[0097] In an exemplary embodiment of the present application, after a crack is randomly generated, the crack cluster can be determined according to the intersection relationship between the crack and the already generated cracks, and the root node number and cluster number of the crack can be determined according to the intersection relationship. Specifically, the intersection relationship between the crack and the already generated cracks can be determined according to whether the crack is a short crack or a long crack.
[0098] In an exemplary embodiment of the present application, when the crack is a short crack, the intersection relationship between the short cracks that share at least one block with the short crack and all long cracks can be checked, that is, the intersection relationship between the short cracks recorded in the first array corresponding to all blocks recorded in the second array and all long cracks recorded in the long crack array and the current crack can be checked; when the crack is a long crack, the intersection relationship between the long crack and all other cracks except the long crack can be checked; and the numbers of all intersecting cracks can be recorded.
[0099] In an exemplary embodiment of the present application, determining the root node number and the cluster number of the crack according to the intersection relationship, and updating the root node number and the cluster number of the crack of the crack cluster where the intersecting generated crack is located may include:
[0100] When the crack (i.e., the current crack) intersects with a generated crack, the cluster number of the intersecting generated crack (i.e., the intersecting crack) is determined, and the cluster number of the crack is set to the cluster number of the intersecting generated crack; the root node number of the crack is set to the crack number of the root crack of the cluster to which the intersecting generated crack belongs; and the root node number of the root crack of the crack cluster to which the intersecting generated crack belongs is reduced by one;
[0101] When the crack (i.e., the current crack) intersects with multiple generated cracks, the cluster numbers corresponding to all the generated cracks that intersect are found, and the repeated cluster numbers among these cluster numbers are deleted; and for each remaining non-repeating cluster number, check whether the cluster numbers of all the currently generated cracks are repeated with the cluster number. If the cluster numbers of all the currently generated cracks are repeated with the cluster number, the root node number and cluster number corresponding to the repeated crack are set to the cluster number of the crack cluster with the largest number of cracks in the corresponding cluster of the generated cracks that intersect (i.e., the cluster number of the crack cluster with the smallest root node number value among all the remaining non-repeating clusters), and the cluster number of the crack (i.e., the current crack) is changed to the cluster number of the crack cluster with the largest number of cracks in the corresponding cluster of the generated cracks that intersect. In addition, the root node number values of all the root cracks of all the crack clusters corresponding to the generated cracks that intersect are added, and the added value is reduced by one, recorded as the root node number of the root crack of the new crack cluster, and the root node number of the current crack is set to the crack number of the root crack. The root crack of the new crack cluster is the root crack of the crack cluster with the largest number of cracks among all the remaining non-repeating clusters. If there is only one non-repeating cluster number, it means that the generated cracks intersecting with the current crack all belong to one crack cluster, and the root crack is still the original root crack of the crack cluster; if there are multiple non-repeating cluster numbers, it means that the generated cracks intersecting with the current crack belong to multiple different crack clusters, and after the multiple different crack clusters are unified into a new crack cluster, the root crack of the new crack cluster is the root crack of the crack cluster with the largest number of cracks among the multiple different crack clusters.
[0102] In an exemplary embodiment of the present application, Figure 4 As shown, a new crack 2 is added, the crack number is 2, the initial root node number is -1, and the cluster number is 2. The block to which the crack belongs is represented by a wavy block. At this time, a cluster check is performed on crack 2. First, find a short crack that shares at least one block with crack 2. Crack 1 and crack 2 share blocks 7, 8, 12, 13, 17, and 18, so check the intersection relationship between crack 1 and crack 2. Crack 2 intersects with crack 1, and find the root node number of crack 1, which is -1, indicating that crack 1 is the root crack of cluster 1, and its cluster number and crack number are both 1. Change the root node number of crack 2 from -1 to the crack number of crack 1, and reduce the root node number of crack 1 by one, from -1 to -2, indicating that the number of cracks in the cluster is 2 at this time. The cluster number of crack 2 is changed to the crack number of crack 1, which is 1.
[0103] In an exemplary embodiment of the present application, Figure 5As shown, crack 9 intersects with three cracks, and the corresponding cluster numbers of the three cracks are found, of which two cracks are clustered with 1 and one crack is clustered with 2. After removing the duplicate cluster numbers, there are only two cluster numbers, 1 and 2. Check all the cracks that have been generated, which are 8 cracks in the figure. If the cluster numbers of all the cracks that have been generated are 1 or 2, they are all changed to 1, that is, in this embodiment, the cluster numbers corresponding to all the cracks in crack cluster 2 are changed to 1, and their root node numbers are also changed to 1 at the same time. In addition, the root crack of crack cluster 1, that is, the root node number value of crack 1 is changed to the original value plus the root node value of the root crack of crack cluster 2, and then subtracted by one, to obtain -9. The root node number of crack 9 is changed to 1 (root crack, that is, the crack number of crack 1), and the cluster number is changed to 1. At this time, there is only one crack cluster in the crack network, and there are 9 cracks in this crack cluster.
[0104] In an exemplary embodiment of the present application, the stop condition may include: reaching a given number of cracks, or the formed crack cluster runs through the region where the random crack network is generated.
[0105] In an exemplary embodiment of the present application, according to the aforementioned embodiment, the number of cracks can be continuously increased until a preset stop condition is met.
[0106] In an exemplary embodiment of the present application, Figure 6 As shown, there are three fracture clusters in the fracture network, among which the largest fracture cluster 3 connects the four sides of the region (that is, the formed fracture cluster runs through the region where the random fracture network is generated). This condition can be set as the stopping condition to stop generating new fractures.
[0107] Figure 7 It is demonstrated that a three-dimensional discrete fracture network is generated using the method of the present application, wherein the fracture clusters that run through the area are dark in color and other local fracture clusters are light in color.
[0108] In an exemplary embodiment of the present application, 150,000 cracks were generated and crack clusters were determined using the embodiment of the present application, which took only 47 seconds (two-dimensional cracks) and 30 seconds (three-dimensional cracks), greatly reducing the generation time of discrete crack networks and improving work efficiency.
[0109] The present application also provides a device 1 for generating a discrete crack network, such as Figure 8 As shown, it may include a processor 11 and a computer-readable storage medium 12, wherein the computer-readable storage medium 12 stores instructions, and when the instructions are executed by the processor 11, the generation of the above-mentioned discrete fracture network is realized.
[0110] In the exemplary embodiments of the present application, any of the aforementioned methods for generating discrete fracture networks are applicable to the device embodiments and will not be described in detail herein.
[0111] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
Claims
1. A method for generating a discrete fracture network, characterized in that: include: The area where the random fracture network is generated is divided into blocks to form a plurality of blocks; The following steps are executed in a loop until a preset stop condition is met: generating random cracks, recording the cracks according to the blocks, and determining corresponding crack clusters; The determining of the corresponding fracture clusters comprises: When the generated crack is the first crack, the first crack constitutes a first crack cluster, and the first crack is used as a root crack of the first crack cluster; When the generated crack is not the first crack, detecting whether the crack intersects with at least one already generated crack; When the crack intersects with a generated crack, the crack is added to the crack cluster to which the intersecting generated crack belongs; when the crack intersects with multiple generated cracks, it is detected whether the multiple intersecting generated cracks belong to the same crack cluster; when the multiple intersecting generated cracks all belong to the same crack cluster, the crack is added to the same crack cluster to which the multiple intersecting generated cracks belong; when the multiple intersecting generated cracks do not belong to the same crack cluster, all the crack clusters to which the multiple intersecting generated cracks belong are unified into one crack cluster, and the crack is added to the unified crack cluster; When the fracture does not intersect with any generated fracture, a new fracture cluster is formed by the fracture, and the fracture is used as the root fracture of the new fracture cluster.
2. The method for generating a discrete fracture network according to claim 1, characterized in that: The generating random cracks comprises: generating random cracks according to a preset statistical distribution; The statistical distribution includes: the length of the crack conforms to the power law distribution, the direction of the crack conforms to the Fisher distribution, and the position of the crack conforms to the Poisson distribution.
3. The method for generating a discrete fracture network according to claim 1, characterized in that: After forming a plurality of blocks, and before recording the cracks according to the blocks, the method further comprises: marking each block, and allocating a first array for recording crack numbers in the block to each block; Each crack has a crack number, and the crack number increases from 1 in the order in which the cracks are generated; recording the cracks according to the blocks includes: When the length of the generated crack is less than or equal to the size of the area, a temporary integer second array is set to record the serial number of the block to which the crack belongs; and each block to which the crack belongs records the crack number corresponding to the crack in the first array corresponding to the block; wherein all blocks in the rectangular or square area involved in the trajectory of the crack are determined as the blocks to which the crack belongs; When the length of the generated crack is greater than the size of the region, the crack number corresponding to the crack is counted into a preset long crack record array.
4. The method for generating a discrete fracture network according to claim 1, characterized in that: Each crack also has a root node number; After determining the corresponding fracture cluster, the method further includes: determining the root node number of the fracture; The step of determining the root node number of the crack comprises: The first crack generated in a crack cluster is determined as the root crack of the crack cluster; For a root crack in a crack cluster, the opposite number of the number of cracks in the crack cluster is used as the root node number of the root crack; For other fractures in a fracture cluster except the root fracture, the fracture number of the root fracture in the fracture cluster is used as the root node number of the other fractures.
5. The method for generating a discrete fracture network according to claim 4, characterized in that: Each crack also has a cluster number; the cluster number is the number of the crack cluster to which the crack belongs, and is the crack number of the root crack in the crack cluster to which the crack belongs; To determine the fracture cluster corresponding to any fracture, the method further comprises: finding the cluster number of any fracture by a recursive algorithm; The step of searching the cluster number of any crack by a recursive algorithm includes: for any crack, performing the following operations: Step 61, checking the root node number of the current crack; when the root node number of the current crack is less than 0, proceeding to step 62; when the root node number of the current crack is the crack number of another crack, proceeding to step 63; Step 62: determine that the crack with the root node number less than 0 is a root crack, use the crack number of the root crack as the cluster number of the current crack, and stop searching for the cluster number; Step 63 , taking the other crack as the current crack, and returning to step 61 .
6. The method for generating a discrete fracture network according to claim 1, characterized in that: The method further comprises: when a new fracture is added to any fracture cluster, updating the root node number of the root fracture in the fracture cluster; When any multiple crack clusters are unified into one crack cluster, the root crack in the unified crack cluster is determined, and the root node number and cluster number of each crack in the unified crack cluster are updated.
7. The method for generating a discrete fracture network according to claim 6, characterized in that: The updating of the root node number of the root crack in the crack cluster includes: Modify the root node number of the root crack in the crack cluster to the opposite number of all the cracks currently contained in the crack cluster; The step of determining the root crack in the unified crack cluster and updating the root node number and cluster number of each crack in the unified crack cluster includes: The root crack of the fracture cluster with the largest number of fractures among the plurality of fracture clusters before unification is used as the root crack of the fracture cluster after unification; The root node number of the root crack in the unified crack cluster is updated to the inverse number of the total number of all cracks contained in the unified crack cluster; the root node numbers of other cracks in the unified crack cluster except the root crack are updated to the crack number of the root crack; The cluster number of the root fracture in the unified fracture cluster is kept unchanged, and the cluster numbers of the other fractures are updated to the fracture number of the root fracture.
8. The method for generating a discrete fracture network according to any one of claims 1 to 3, characterized in that: The stopping conditions include: reaching a given number of fractures, or the formed fracture clusters running through the region where the random fracture network is generated.
9. A device for generating a discrete crack network, characterized in that: The method comprises a processor and a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed by the processor, the generation of the discrete fracture network according to any one of claims 1 to 8 is realized.
