A grid representation method and system for three-dimensional geological structure model
Through the InterfaceGrid data model, the deficiencies in the large amount of data and complexity of the grid representation method of 3D geological models in the existing technology are solved, the fine expression and efficient data management of complex geological structures are realized, and the processing of large-scale 3D geological data is supported. Spatial analysis and visualization.
Patent Information
- Application Number
- CN202410510225.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-26
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-04-26
AI Technical Summary
The existing three-dimensional geological model grid representation method affects computing resources and performance when processing large amounts of data, and cannot effectively express complex geological structures, especially due to the non-uniformity, discontinuity and multi-scale characteristics of geological information. The memory usage is large and querying is difficult.
Using the InterfaceGrid data model, the three-dimensional geological attribute field is discretized into grid units, and a spatial relationship binary tree, the first array, and the second array are constructed to record the geological interface fragment information in the grid unit to achieve grid representation and query. Reduce memory usage and calculation amount, and support vector and raster integrated expression of complex geological structures.
It achieves fine expression of complex geological structures, reduces memory space and calculation volume, improves data management and visualization capabilities, and supports spatial analysis of large-scale three-dimensional complex geological data.
Smart Images

Figure CN118097055B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of three-dimensional geological structure expression, and more specifically, to a gridding representation method and system for a three-dimensional geological structure model. Background Art
[0002] Many studies have been conducted on three-dimensional geological models. They are digital representation models of geological structures and boundaries of geological objects in geological space, and have the characteristics of determinism, visibility and modifiability. At present, there are two main methods for constructing and expressing geological models: structural models and attribute models. Among them, structural models focus on the construction of geometric information of geological objects. The main content is to use the relevant original data of expressing geological bodies to establish a model in the computer that describes the geological structure and the relationship between geological objects.
[0003] There are currently two main methods for expressing three-dimensional geological structure models. One is to use triangulated networks to express boundaries to divide underground space; the other is a gridding method that emphasizes discretizing geological space into gridded units, usually conventional hexahedral elements. Among them, triangulated networks (TINs) are the most popular, mainly because TINs have great advantages in depicting complex surfaces and maintaining topological consistency of boundaries between objects, but the large amount of triangle data affects the efficiency of visualization and analysis. Therefore, the gridding expression of complex geological models plays an increasingly important role in scientific research and engineering applications, and is widely used in the assessment and prediction of natural resources, estimation of rock physical properties, and geostatistical research.
[0004] The gridding representation of geological models uses different grid filling units to divide the space. Regular grids divide the space by standard cuboids or parallelepipeds, which have a simple structure and are too memory-intensive under large-scale data requirements; PillarGrid's structure is based on a set of vertical or inclined columns extending from the top to the bottom of the geological model. The unit in the column is a hexahedron defined by 8 adjacent vertices. The vertices are independent of each other and the unit can be deformed. It can express common faults, but it needs to record 8 vertices and has a complex structure. The tetrahedral mesh has strong adaptive expression ability, but it needs to record complex mesh information, including vertex information and connection methods of each mesh. It occupies a large amount of memory and is difficult to query in space. The Stack-Based Representation of Terrains (SBRT) is still a regular grid in the horizontal direction, and records the position of the rock boundary and the corresponding lithology in the vertical direction. The Vertically Projected Triangulated Network (VPTN) performs triangulation in the horizontal direction and cuts out triangular prisms in the vertical direction according to the stratum interface, recording the elevation of the cutting point and the stratum lithology. The memory of SBRT and VPTN is more compact and the structure is simple, but it cannot simulate complex terrain phenomena such as Y-type faults and branch faults.
[0005] With the increasing demand for the integration of multi-source heterogeneous geological data vectors and rasters and the spatial query and analysis of geological data, the irregular triangulated network-based method cannot meet the requirements, and the gridding expression method of geological models has become a current research hotspot. The advancement of data acquisition technology has made the digitization of the earth more and more accurate. The large amount of data generated significantly affects computing resources and performance: the memory size required for storage and visualization, as well as transmission and processing. This greatly affects the expression of the overall model. At the same time, due to the extremely strong spatial heterogeneity, discontinuity, multi-scale and vertically layered multi-attribute field coupling of geological information, current gridding methods such as regular grids, PillarGrid and SBRT models are still unable to achieve the fine expression of complex geological structures. Constructing an integrated spatial data model that uniformly expresses geological structures is one of the basic problems that need to be solved in the field of three-dimensional geological information science. Summary of the invention
[0006] The primary purpose of the present invention is to provide a grid representation method for a three-dimensional geological structure model to solve the technical problem in the prior art that a large amount of data affects computing resources and performance and greatly affects the expression of the overall model; the secondary purpose of the present invention is to provide a grid representation system for a three-dimensional geological structure model.
[0007] The first invention of the present invention provides a gridding representation method for a three-dimensional geological structure model, comprising the following steps:
[0008] Discretize the three-dimensional geological attribute field of the preset area into grid cells;
[0009] According to the geological survey data of the preset area, a spatial relationship binary tree of different geological interface fragments of each grid unit, a first array and a second array are constructed, and according to the geological survey data of the preset area and the spatial relationship binary tree of different geological interface fragments of each grid unit, a third array is constructed, wherein the first array stores the storage positions of the data of different grid units in the second array and the third array and the number of geological interface fragments in the grid unit, the second array stores the elevation data of the geological interface fragments in the grid unit, and the third array stores the attribute information of the geological interface fragments and the right subtree information of the geological interface fragments in the spatial relationship binary tree;
[0010] According to the geological survey data of the preset area, the geological interface fragments are gridded;
[0011] According to the spatial relationship of different geological interface fragments described by the spatial relationship binary tree, the gridded different geological interface fragments are projected into the grid units, each grid unit records the spatial relationship of different geological interface fragments within the grid unit vertically, and the attribute information of any point in the grid unit is queried according to the first array, the second array and the third array.
[0012] In the above technical means, the underground distribution of geological structures and attributes is fully considered to have strong non-uniformity, discontinuity and spatial multi-scale, and shows the correlation between vertical stratification characteristics and multi-attribute field coupling. Based on the InterfaceGrid design theoretical model and data structure, an InterfaceGrid data model that uniformly describes the three-dimensional geological structure is constructed to achieve the integrated expression of vector grids of complex geological structures.
[0013] Furthermore, the grid unit is expressed as a unit column.
[0014] Furthermore, the first array includes:
[0015] The three-dimensional geological attribute field of the preset area is discretized into a scale of Mx×My grid units, then the first array is a three-dimensional array of Mx×My×2, which is linearized in the row optimization order, and at the index (x, y) position, there is:
[0016]
[0017] In the formula, represents the first array of three dimensions, Indicates the storage location of the grid cell at the (x, y) position in the second array and the third array, represents the number of geological interface fragments in the grid cell at the (x,y) position, Represents the first one-dimensional array.
[0018] Furthermore, the order of different geological interface fragments in the same grid unit in the second array corresponds to the pre-order sequence of the spatial relationship binary tree of the grid unit.
[0019] Furthermore, when the second array stores the elevation data of the geological interface segments in the grid cells, the floating point elevation values are discretized within an integer range, including:
[0020]
[0021] In the formula, represents the discretized elevation value, Represents a floating point elevation value. Indicates the elevation value of the bottom layer of the grid cell. Indicates the elevation value of the top layer of the grid cell.
[0022] Furthermore, the geological interface segments are gridded according to the geological survey data of the preset area, including:
[0023] The geological survey data of the preset area includes a set of sampling points on a geological interface segment, and the geological interface segment is meshed and fitted using a thin plate spline interpolation algorithm based on the sampling point set.
[0024] Further, querying the attribute information of any point in the grid unit according to the first array, the second array and the third array includes:
[0025] Determine the grid unit where the query point is located, and obtain the geological interface fragment data of the grid unit where the query point is located through the second array and the third array;
[0026] Let the number of geological interface fragments to be searched in the grid unit where the query point is located be N, index represents the index value of the geological interface fragment currently being processed, with an initial value of 0 and a maximum value of N-1; invalidindex represents an invalid query area, that is, in the preorder sequence of the spatial relationship binary tree of the grid unit, the geological interface fragment data other than invalidIndex belongs to the excluded range; top and bottom respectively record the index position of the geological interface fragment of the query point;
[0027] Perform recursive processing: for the geological interface fragment data currently being processed, compare the spatial position relationship between the query point and the geological interface fragment. If the query point is located above the geological interface fragment currently being processed, update bottom to the index position of the geological interface fragment currently being processed, add 1 to the value of index, and update invalidIndex to the index of the geological interface fragment located below the geological interface fragment data currently being processed; if the query point is not located above the geological interface fragment currently being processed, update top to the index position of the geological interface fragment data currently being processed, and update index to the right subtree index of the geological interface fragment currently being processed;
[0028] The recursion ends when any of the following conditions are met:
[0029] 1) The values of index and invalidIndex are the same;
[0030] 2) index is an invalid value.
[0031] Furthermore, when adding and deleting geological interface fragments, the following steps are performed:
[0032] Construct a linked binary tree according to the preset pre-order sequence and the corresponding right subtree information in the third array;
[0033] updating the linked binary tree according to the information of adding and deleting geological interface fragments;
[0034] According to the geological survey data after adding and deleting geological interface fragments and the updated chain binary tree, the updated first array, second array and third array are constructed.
[0035] A second aspect of the present invention provides a gridding representation system for a three-dimensional geological structure model, comprising:
[0036] A discretization module, wherein the discretization module discretizes the three-dimensional geological attribute field of a preset area into grid units;
[0037] An array construction module, wherein the array construction module constructs a spatial relationship binary tree of different geological interface fragments of each grid unit, a first array and a second array according to the geological survey data of the preset area, and constructs a third array according to the geological survey data of the preset area and the spatial relationship binary tree of different geological interface fragments of each grid unit, wherein the first array stores the storage positions of the data of different grid units in the second array and the third array and the number of geological interface fragments in the grid unit, the second array stores the elevation data of the geological interface fragments in the grid unit, and the third array stores the attribute information of the geological interface fragments and the right subtree information of the geological interface fragments in the spatial relationship binary tree;
[0038] A gridding module, wherein the gridding module grids the geological interface segments according to the geological survey data of the preset area;
[0039] A modeling module, wherein the modeling module projects the gridded different geological interface fragments into the grid cells according to the spatial relationships of the different geological interface fragments described by the spatial relationship binary tree, records the spatial relationships of the different geological interface fragments in each grid cell vertically, and queries the attribute information of any point in the grid cell according to the first array, the second array and the third array.
[0040] Further, querying the attribute information of any point in the grid unit according to the first array, the second array and the third array includes:
[0041] Determine the grid unit where the query point is located, and obtain the geological interface fragment data of the grid unit where the query point is located through the second array and the third array;
[0042] Let the number of geological interface fragments to be searched in the grid unit where the query point is located be N, index represents the index value of the geological interface fragment currently being processed, with an initial value of 0 and a maximum value of N-1; invalidindex represents an invalid query area, that is, in the preorder sequence of the spatial relationship binary tree of the grid unit, the geological interface fragment data other than invalidIndex belongs to the excluded range; top and bottom respectively record the index position of the geological interface fragment of the query point;
[0043] Perform recursive processing: for the geological interface fragment data currently being processed, compare the spatial position relationship between the query point and the geological interface fragment. If the query point is located above the geological interface fragment currently being processed, update bottom to the index position of the geological interface fragment currently being processed, add 1 to the value of index, and update invalidIndex to the index of the geological interface fragment located below the geological interface fragment data currently being processed; if the query point is not located above the geological interface fragment currently being processed, update top to the index position of the geological interface fragment data currently being processed, and update index to the right subtree index of the geological interface fragment currently being processed;
[0044] The recursion ends when any of the following conditions are met:
[0045] 1) The values of index and invalidIndex are the same;
[0046] 2) index is an invalid value.
[0047] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:
[0048] The structural model proposed by the present invention not only has the same capabilities as the currently proposed structural model, but also can theoretically play a powerful supplementary role in the expression of the entire complex geological model. The present invention can reduce the memory space occupied by the model and the amount of calculation by using the data model composed of the first array, the second array and the third array, can more accurately depict three-dimensional complex geology, and is easy to organize and manage large-scale data. Overall, it can provide support for the spatial analysis and visualization of large-scale three-dimensional complex geological data. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A schematic flow chart of a method for gridding a three-dimensional geological structure model provided by an embodiment of the present invention;
[0050] Figure 2 A schematic diagram of the InterfaceGrid data model provided by an embodiment of the present invention;
[0051] Figure 3 A flowchart of constructing the InterfaceGrid data model provided by an embodiment of the present invention;
[0052] Figure 4 A schematic diagram of the comparison between the SBRT model and the InterfaceGrid data model at the same viewing angle provided by an embodiment of the present invention, wherein: Figure 4 Figure 4 (a) and Figure 4 (c) are the rendering effects of the SBRT model. Figure 4 (b) and Figure 4 (d) is the rendering effect diagram of the InterfaceGrid data model body;
[0053] Figure 5 A schematic diagram of a unit structure provided by an embodiment of the present invention, wherein: Figure 5 (a) is a schematic diagram of the unit structure of the PillarGrid model. Figure 5 (b) is a schematic diagram of the unit structure of the InterfaceGrid data model;
[0054] Figure 6 A schematic diagram of a grid representation system for a three-dimensional geological structure model provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0055] The drawings are for illustrative purposes only and should not be construed as limiting the present patent;
[0056] In order to better illustrate the present embodiment, some parts in the drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product;
[0057] It is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.
[0058] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0059] Example
[0060] like Figure 1 The figure shows a flow chart of a gridding representation method of a three-dimensional geological structure model, which includes the following steps:
[0061] Discretize the three-dimensional geological attribute field of the preset area into grid cells;
[0062] According to the geological survey data of the preset area, a spatial relationship binary tree of different geological interface fragments of each grid unit, a first array and a second array are constructed, and according to the geological survey data of the preset area and the spatial relationship binary tree of different geological interface fragments of each grid unit, a third array is constructed, wherein the first array stores the storage positions of the data of different grid units in the second array and the third array and the number of geological interface fragments in the grid unit, the second array stores the elevation data of the geological interface fragments in the grid unit, and the third array stores the attribute information of the geological interface fragments and the right subtree information of the geological interface fragments in the spatial relationship binary tree;
[0063] According to the geological survey data of the preset area, the geological interface fragments are gridded;
[0064] According to the spatial relationship of different geological interface fragments described by the spatial relationship binary tree, the gridded different geological interface fragments are projected into the grid units, each grid unit records the spatial relationship of different geological interface fragments within the grid unit vertically, and the attribute information of any point in the grid unit is queried according to the first array, the second array and the third array.
[0065] The embodiment of the present invention proposes an InterfaceGrid data model. The basic idea of the InterfaceGrid data model structure design is to determine the definition domain according to geological data, build a global model within the definition domain, and express the model unit as a unit column (Pillar). In the horizontal direction, the grid is abstracted as an XYGrid array, and the Pillar is expressed as a combination of the geological interface (Interface) and the spatial relationship (binary tree), such as Figure 2 shown.
[0066] The InterfaceGrid data model needs to express two parts of information. The first part is elevation and attribute data, which can be expressed by a static array; the second part is the relationship information of geological interface fragments, which is intuitively expressed as a linked binary tree. Since the memory overhead of linked storage is large, the embodiment of the present invention uses a static array to express the linked binary tree, and designs an algorithm for mutual conversion between the static array and the linked binary tree to support data update.
[0067] In a further embodiment, the first array (XYGrid array) includes:
[0068] The three-dimensional geological attribute field of the preset area is discretized into a scale of Mx×My grid units, then the first array is a three-dimensional array of Mx×My×2, which is linearized in the row optimization order, and at the index (x, y) position, there is:
[0069]
[0070] In the formula, represents the first array of three dimensions, Indicates the storage location of the grid cell at the (x, y) position in the second array and the third array, Represents the number of geological interface fragments (Interface) in the grid cell at the (x,y) position, Represents the first one-dimensional array.
[0071] In a further embodiment, when the second array (Interfaces array) stores the elevation data of the geological interface fragments in the grid unit, the floating point elevation values are discretized within the integer range, so that each elevation value saves 4 bytes of memory consumption, including:
[0072]
[0073] In the formula, represents the discretized elevation value, Represents a floating point elevation value. Indicates the elevation value of the bottom layer of the grid cell. Indicates the elevation value of the top layer of the grid cell.
[0074] In a further embodiment, the order of different geological interface fragments in the same grid cell in the Interfaces array corresponds to the pre-order sequence of the spatial relationship binary tree of the grid cell.
[0075] In a further embodiment, the memory size of the Interfaces array is determined by the number of Interfaces in all grid cells.
[0076] Specifically, the data of the same geological interface fragment are stored in groups in the Interfaces array and the InterfaceProp array (the third array); in the Interfaces array, the data of a geological interface fragment corresponds to a group of data, including the elevation values of the four vertices of the geological interface fragment; in the InterfaceProp array, the data of a geological interface fragment corresponds to a group of data, including the Interface property code and the right subtree information; the index indicating the storage location in the XYGrid array is the group number.
[0077] This embodiment provides a surface-based boundary representation method in the InterfaceGrid data model, and uses a unified gridding process and organization method under specific spatial relationship constraints to construct, store and manage the topological structure and geometric structure of underground surface objects. Based on the InterfaceGrid theoretical expression, the construction of the model is divided into the following specific steps. The construction flow chart is as follows: Figure 3 As shown:
[0078] (1) Formulate modeling parameters. Calculate the AABB bounding box of the control point data as the definition domain , the horizontal resolution Rxy is set according to the regional geological background and the analysis results of the modeling source data, and the three-dimensional geological attribute field is discretized into grid units Grid, which is called the base grid.
[0079] (2) Spatial relationship definition. Use existing drilling, geological survey, geophysical exploration data and experience to infer the stratigraphic sequence relationship and fault contact relationship, abstract the layer objects into nodes and define the spatial relationship using a binary tree forest.
[0080] (3) Gridding of geological interfaces. The sampling point information of underground geological structures is obtained from geological survey data. The sampling point information can be used to understand the geometric shape of geological structures and geological objects, but the information of other points in the geological structure is unknown. Therefore, it is necessary to fit the gridded surface using the sampling point information obtained from geological survey to predict the unknown point information. In the present invention, the thin plate spline interpolation algorithm is used to fit the geological interface using the control point data. It is known that the control point set of a certain geological interface is , then the thin plate spline interpolation function is:
[0081]
[0082] in, is the coefficient, , Points to be interpolated The first point in the geological interface control The sampling density of the interpolation points is consistent with the horizontal resolution of the InterfaceGrid data model.
[0083] (4) Integrated modeling. The gridded geological interface generated in step (3) is projected onto the geological grid to form an interface. The spatial relationships, including the relationships between strata, between faults, and between strata and faults, are defined by the spatial relationship forest defined in (2). The grid points are embedded into the base grid one by one to generate an interface, and the overall model is established. The overall model is a uniform grid in the horizontal direction, and the geological interfaces in the modeling area are recorded vertically. The stratigraphic relationships and pinch-out relationships between strata, and the contact relationships between strata and faults, as well as between faults, are represented by the binary tree defined in (2).
[0084] In a further embodiment, during the visualization process, it is necessary to quickly and effectively obtain the attribute information of any position or any area in the model space. According to the structural characteristics of the InterfaceGrid data model, a robust and efficient spatial data query method - QueryPoint can be designed.
[0085] QueryPoint is generally a recursive function. First, determine the pillar where the query point is located. Obtain the geological interface data according to the index data, that is, the corresponding data in the Interfaces array and the InterfaceProp array. Assume that the number of geological interfaces (Interface) in the column to be searched is N, index represents the interface index value being processed, the initial value is 0, and the maximum value is N-1; invalidindex records the invalid query area, that is, in the pre-order sequence, the Interface data outside the invalidIndex index position belongs to the excluded range; top and bottom respectively record the geological interface index position of the query point.
[0086] For the geological interface (curInterface) data being processed, use bilinear interpolation to calculate the height value (z) corresponding to the query point position on the Interface. Compare the spatial position relationship between the query point and the interface. If the query point is at a higher position, update bottom to curInterface, and slide index to the right, that is, the value increases by 1. At the same time, since the currently processed Interface is already the bottom, all Interfaces below the spatial position of the Interface will not need to be judged, so update invalidIndex to the geological interface index below curInterface (that is, the right subtree position of curInterface); otherwise, update top to curInterface, and update index to the right subtree index of curInterface.
[0087] There are two recursive termination conditions. If one of them is met, the program terminates: 1. index coincides with the position indicated by invalidIndex; 2. index is an invalid value (the spatial position exceeds the bottom boundary of the model data). Finally, the query point is located in the stratum composed of the two geological interfaces corresponding to top and bottom, and the attribute information of the stratum is the attribute information of the query point. The pseudo code of the algorithm is as follows:
[0088] function QueryPoint(point, index, invalidindex, top, bottom)
[0089] 1. Read Interfaces and InterfaceProp from curInterfaceGrid
[0090] 2. Set pos = GetPosFromGrid(curInterfaces) ,Set index = 0
[0091] 3. Set invalidIndex = GetNumOflnerfaces(curInterfaces)
[0092] 4. Set cuInterface = getlnterfaceFromGrid(pos)
[0093] 5. Set zOnInterface = ComputeZoflnterface(curInterface)
[0094] 6. If pointz>zOnInterface then
[0095] 7.If curInterfaceProp[index×2 +1] is not -1
[0096] 8. Set inalidIndex = curInterfaceProp[index × 2 + 1]
[0097] 9. Set bottom = index
[0098] 10.index++
[0099] 11.If index = invalidindex
[0100] 12. return
[0101] 13. QueryPoint(point, index, invalidindex, top, bottom)
[0102] 14. else
[0103] 15. Set top = index
[0104] 16. Set index = curInterfaceProp[index × 2 + 1]
[0105] 17. If index = -1
[0106] 18. return
[0107] 19. QueryPoint(point,index,invalidindex,top,bottom)
[0108] The cell column space can be regarded as a binary tree space partition, which is a common space partitioning method. The cell column space can be regarded as a binary tree space partition, which is a common space partitioning method. It recursively divides the n-dimensional space into subspaces about the partitioning hyperplane. Interface is the plane used to divide the space in the cell column. Usually, a chain binary tree needs to be established in the binary tree space partition to query, and the time complexity of building a balanced binary tree from data is usually O(nlogn). The significant advantage of the query algorithm proposed in this study is that there is no need to build a binary tree, and two sequence arrays are used for recursive query. The space complexity of the QueryPoint function is mainly caused by the consumption of system stack space caused by recursive calls. Each recursive call pushes the current function stack frame into the system stack, and pops the function stack frame after the recursion ends. Therefore, the maximum depth of the system stack depends on the height h of the balanced binary tree, and the time complexity is O(log(n)), where n is the number of nodes in the balanced binary tree. Table 1 shows a comparative analysis of the complexity of the method of the embodiment of the present invention and the conventional method of building a binary tree query. Table 1 shows a comparative analysis of the complexity of the method of the embodiment of the present invention and the conventional method for constructing a binary tree query.
[0109] Table 1 Query algorithm complexity analysis
[0110]
[0111] In a further embodiment, considering the complex intersection relationship between interfaces, when adding and deleting geological interface data, it is necessary to construct a binary tree from a static array and implement a conventional binary tree data update algorithm. This study designs a binary tree creation algorithm (BuildBiTree) based on the InterfaceGrid data structure.
[0112] The function of BuildBiTree is to construct a linked binary tree using the given pre-order traversal sequence and the right subtree sequence corresponding to each pre-order node. The pre-order traversal sequence is arranged in the order of root node, left subtree, and right subtree, and the right subtree sequence stores the position of the node's right subtree in the pre-order traversal sequence. The function pseudo code is as follows:
[0113] function BuildBiTree(index, node, treeOrder, rightTreeOrder, flag)
[0114] 1. If index>treeOrder.size()-1 or flag[index]
[0115] 2.return
[0116] 3. Create a tree-node interfaceNode of binary tree
[0117] 4. Set interfaceNode ->prop = treeOrder[index]
[0118] 5. If rightTreeOrder[index] is not -1
[0119] 6. BuildBiTree(rightTreeOrder[index],node->downInterfaceNode,treeOrder, rightTreeOrder, flag)
[0120] 7. If flag[index + 1] is false
[0121] 8. BuildBiTree(index+1,node->upInterfaceNode,TreeOrder,rightTreeOrder, flag)
[0122] The complexity of the BuildBiTree function can be analyzed as O(n), where n is the number of nodes in the tree. The function implements the tree construction in a recursive manner. In each recursion, the function creates a new node and records the node attributes. Then, the function recursively constructs the right subtree of the node based on the information in the rightTreeOrder array, and then recursively constructs the left subtree of the node. Since the Flag array is marked in each recursion, it is guaranteed that each node will only be constructed once. Therefore, for a tree of n nodes, the time complexity of the function is O(n). Therefore, the time complexity of the function is linearly related to the number of nodes in the binary tree. Table 2 shows the complexity comparison analysis of the binary tree creation method in this study and the method of constructing a binary tree using pre-order and in-order sequences.
[0123] Table 2 Complexity analysis of tree construction algorithm
[0124]
[0125] According to the integrated integration of geological spatial data vector grids and the demand for data query, analysis and calculation, the use of gridded spatial data expression methods has become the main research trend of geological data integration. In view of the problem that regular grids, corner grids, generalized triangular prisms, etc. cannot express complex geological structures, the embodiment of the present invention considers that the underground distribution of geological structures and attributes has extremely strong non-uniformity, discontinuity and spatial multi-scale, and exhibits the correlation of vertical stratification characteristics and multi-attribute field coupling, and proposes an interface grid data model, which is used to uniformly describe the underground distribution of geological structures and multi-attribute fields to realize the integrated expression of geological model vector grids, thereby realizing geological spatial data query, analysis, visualization and application.
[0126] As a vector-grid integrated model, the interface grid has the characteristics and advantages of both the grid model and the vector model. On the one hand, the interface grid has a simple structure, and the spatial coordinates are implicit in the grid index. The query algorithm designed by the embodiment of the present invention realizes binary search in the vertical direction, with high query efficiency, which is conducive to spatial analysis calculations and online visualization; on the other hand, it greatly reduces the spatial error caused by the grid size, has high modeling accuracy, and is conducive to large-scale fine modeling. The test verification of this study shows that compared with the SBRT model, the visualization result of the interface grid model has no jagged edges, can more realistically describe the geological boundary conditions, and improves the accuracy and reliability of the three-dimensional geological structure model.
[0127] The embodiment of the present invention uses Citcoms global spherical grid division to successfully construct the interface grid model data of the nine lithosphere layers from the earth's surface to the Moho surface and realize visualization. Experiments show that the interface grid model can realize the grid description of the global layer structure. At the same time, the interface grid model has a smaller data volume than PillarGrid and is more suitable for network-based big data geoscience application services.
[0128] In the specific model comparison test, the ability to express three-dimensional geological structures is an important evaluation criterion for the visualization effect of data models. The SBRT model is widely used in the field of online visualization due to its advantages in data volume and spatial query. This study uses the test data three-dimensional grid model to compare and verify the volume rendering effect of the SBRT model and the interface grid model. It has a total of 6 rock layers, and the rock properties are layered in the three-dimensional grid, and there is a rock layer pinch-out phenomenon. The grid scale is divided into , the grid spacing is The test environment is CPU: Intel Core i7, graphics card: NVidiaGeofore MX150, using Google Chrome, the volume rendering effect is as follows Figure 4 shown.
[0129] Figure 4 It can be seen that the SBRT model, as a longitudinal compression of a regular grid, inherits the characteristics of a regular grid. When rendering the volume, obvious jagged or step problems will occur at the boundaries of the rock layers, which will affect the visualization effect and cannot accurately describe the geological conditions. The interface grid model adds rock layer connection constraints on the basis of the SBRT model. There is no jagged phenomenon at the lithology boundary, which is more in line with the real data effect and improves the accuracy of the geological model.
[0130] In terms of rendering efficiency, the rendering efficiency of the SBRT model is 40 frames per second, and the rendering efficiency of the interface mesh data model is 25 frames per second. Since the data volume of the interface mesh model is larger than that of the SBRT model, the display frame rate of the interface mesh model volume rendering is lower than that of the SBRT model. With the upgrade of GPU hardware, the computer video memory has increased significantly, so a certain frame rate reduction caused by memory is acceptable.
[0131] Global spherical meshing test:
[0132] The sphere of the test data LITHO1.0 model is a regular icosahedral spherical triangulated network, which describes the nine sublayers of the lithosphere in the radial direction of each triangular unit (water, ice, upper sediments, middle sediments, lower sediments, upper crust, middle crust, lower crust and lithospheric mantle). In response to the needs of integrating multi-source heterogeneous geological spatial information of the global lithosphere model and integrating geological big data, the embodiment of the present invention uses the nine sublayer data from the LITHO1.0 model and the Citcoms grid of the same resolution to establish a PillarGrid model and an interface grid model to verify the interface grid model. Both PillarGrid and interface grid are columnar grids based on a set of vertical or inclined columns extending from the top to the bottom of the geological model. A unit of PillarGrid is defined by its eight adjacent vertices. Compared with the interface grid, it repeatedly records the common vertices of adjacent units in the vertical direction. The comparison of units with two different structures is as follows. Figure 5 The number of units and memory space occupied by the two models are shown in Table 3.
[0133] The number of cells in the interface grid model is about 8% more than that in the PillarGrid model. This is because the cells of the interface grid are quadrilateral faces, while the cells of the PillarGrid model are hexahedrons, which is determined by the difference in the expression range of the vertical surface cells and the volume cells at the same position. The memory usage in the interface grid model is about 36.8% less than that of the PillarGrid model. For models in different regions, this ratio may be different, which is related to the geological conditions in the modeling area. Generally speaking, in the same operating environment, the larger the average number of layers, the smaller the ratio of the interface grid model to the PillarGrid model. In general, the memory usage in the interface grid model is about 2 / 3 of that in the PillarGrid model.
[0134] Table 3 Comparison of model data volume
[0135]
[0136] The embodiment of the present invention also provides a grid representation system for a three-dimensional geological structure model, such as Figure 6 As shown, including:
[0137] A discretization module, wherein the discretization module discretizes the three-dimensional geological attribute field of a preset area into grid units;
[0138] An array construction module, wherein the array construction module constructs a spatial relationship binary tree of different geological interface fragments of each grid unit, a first array and a second array according to the geological survey data of the preset area, and constructs a third array according to the geological survey data of the preset area and the spatial relationship binary tree of different geological interface fragments of each grid unit, wherein the first array stores the storage positions of the data of different grid units in the second array and the third array and the number of geological interface fragments in the grid unit, the second array stores the elevation data of the geological interface fragments in the grid unit, and the third array stores the attribute information of the geological interface fragments and the right subtree information of the geological interface fragments in the spatial relationship binary tree;
[0139] A gridding module, wherein the gridding module grids the geological interface segments according to the geological survey data of the preset area;
[0140] A modeling module, wherein the modeling module projects the gridded different geological interface fragments into the grid cells according to the spatial relationships of the different geological interface fragments described by the spatial relationship binary tree, records the spatial relationships of the different geological interface fragments in each grid cell vertically, and queries the attribute information of any point in the grid cell according to the first array, the second array and the third array.
[0141] In a further embodiment, querying the attribute information of any point in the grid unit according to the first array, the second array and the third array includes:
[0142] Determine the grid unit where the query point is located, and obtain the geological interface fragment data of the grid unit where the query point is located through the second array and the third array;
[0143] Let the number of geological interface fragments to be searched in the grid unit where the query point is located be N, index represents the index value of the geological interface fragment currently being processed, with an initial value of 0 and a maximum value of N-1; invalidindex represents an invalid query area, that is, in the preorder sequence of the spatial relationship binary tree of the grid unit, the geological interface fragment data other than invalidIndex belongs to the excluded range; top and bottom respectively record the index position of the geological interface fragment of the query point;
[0144] Perform recursive processing: for the geological interface fragment data currently being processed, compare the spatial position relationship between the query point and the geological interface fragment. If the query point is located above the geological interface fragment currently being processed, update bottom to the index position of the geological interface fragment currently being processed, add 1 to the value of index, and update invalidIndex to the index of the geological interface fragment located below the geological interface fragment data currently being processed; if the query point is not located above the geological interface fragment currently being processed, update top to the index position of the geological interface fragment data currently being processed, and update index to the right subtree index of the geological interface fragment currently being processed;
[0145] The recursion ends when any of the following conditions are met:
[0146] 1) The values of index and invalidIndex are the same;
[0147] 2) index is an invalid value.
[0148] The same or similar reference numerals correspond to the same or similar components;
[0149] The terms used in the drawings to describe positional relationships are only used for illustrative purposes and should not be construed as limiting this patent;
[0150] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A gridding method for representing a three-dimensional geological structure model, characterized in that: The following steps are involved: Discretize the three-dimensional geological attribute field of the preset area into grid cells; According to the geological survey data of the preset area, a spatial relationship binary tree of different geological interface fragments of each grid unit, a first array and a second array are constructed, and according to the geological survey data of the preset area and the spatial relationship binary tree of different geological interface fragments of each grid unit, a third array is constructed, wherein the first array stores the storage positions of the data of different grid units in the second array and the third array and the number of geological interface fragments in the grid unit, the second array stores the elevation data of the geological interface fragments in the grid unit, and the third array stores the attribute information of the geological interface fragments and the right subtree information of the geological interface fragments in the spatial relationship binary tree; According to the geological survey data of the preset area, the geological interface fragments are gridded; According to the spatial relationship of different geological interface fragments described by the spatial relationship binary tree, the gridded different geological interface fragments are projected into the grid units, each grid unit records the spatial relationship of different geological interface fragments in the grid unit vertically, and the attribute information of any point in the grid unit is queried according to the first array, the second array and the third array; The order of different geological interface fragments in the same grid cell in the second array corresponds to the pre-order sequence of the spatial relationship binary tree of the grid cell; Querying the attribute information of any point in the grid unit according to the first array, the second array and the third array includes: Determine the grid unit where the query point is located, and obtain the geological interface fragment data of the grid unit where the query point is located through the second array and the third array; Let the number of geological interface fragments to be searched in the grid unit where the query point is located be N, index represents the index value of the geological interface fragment currently being processed, the initial value is 0, and the maximum value is N-1; invalidIndex represents an invalid query area; top and bottom respectively record the index position of the geological interface fragment of the query point; Perform recursive processing: for the geological interface fragment data currently being processed, compare the spatial position relationship between the query point and the geological interface fragment. If the query point is located above the geological interface fragment currently being processed, update bottom to the index position of the geological interface fragment currently being processed, update invalidIndex to the index of the geological interface fragment below the geological interface fragment currently being processed, and add 1 to the value of index; if the query point is not located above the geological interface fragment currently being processed, update top to the index position of the geological interface fragment data currently being processed, and update index to the right subtree index of the geological interface fragment currently being processed; The recursion ends when any of the following conditions are met: 1) The values of index and invalidIndex are the same; 2) index is an invalid value; The grid cells are expressed as unit columns.
2. The gridding representation method of a three-dimensional geological structure model according to claim 1, characterized in that: The first array includes: Let the three-dimensional geological attribute field of the preset area be discretized as × The size of the grid cells, then the first array is a × ×2 three-dimensional array, linearized in row-optimized order, at index (x, y): In the formula, represents the first array of three dimensions, Indicates the storage location of the grid cell at the (x, y) position in the second array and the third array, represents the number of geological interface fragments in the grid cell at the (x,y) position, Represents the first one-dimensional array.
3. The gridding method for representing a three-dimensional geological structure model according to claim 2, characterized in that: When the second array stores the elevation data of the geological interface fragments in the grid unit, the floating point elevation values are discretized within an integer range, including: In the formula, represents the discretized elevation value, Represents a floating point elevation value. Indicates the elevation value of the bottom layer of the grid cell. Indicates the elevation value of the top layer of the grid cell.
4. The gridding method for representing a three-dimensional geological structure model according to claim 3, characterized in that: According to the geological survey data of the preset area, the geological interface fragments are gridded, including: The geological survey data of the preset area includes a set of sampling points on a geological interface segment, and the geological interface segment is meshed and fitted using a thin plate spline interpolation algorithm based on the sampling point set.
5. The gridding method for representing a three-dimensional geological structure model according to claim 4, characterized in that: When adding and removing geological interface segments, perform the following steps: Construct a linked binary tree according to the preset pre-order sequence and the corresponding right subtree information in the third array; updating the linked binary tree according to the information of adding and deleting geological interface fragments; According to the geological survey data after adding and deleting geological interface fragments and the updated chain binary tree, the updated first array, second array and third array are constructed.
6. A grid representation system for a three-dimensional geological structure model, characterized in that: The system uses the gridding representation method of the three-dimensional geological structure model according to any one of claims 1 to 5, including: A discretization module, wherein the discretization module discretizes the three-dimensional geological attribute field of a preset area into grid units; An array construction module, wherein the array construction module constructs a spatial relationship binary tree of different geological interface fragments of each grid unit, a first array and a second array according to the geological survey data of the preset area, and constructs a third array according to the geological survey data of the preset area and the spatial relationship binary tree of different geological interface fragments of each grid unit, wherein the first array stores the storage positions of the data of different grid units in the second array and the third array and the number of geological interface fragments in the grid unit, the second array stores the elevation data of the geological interface fragments in the grid unit, and the third array stores the attribute information of the geological interface fragments and the right subtree information of the geological interface fragments in the spatial relationship binary tree; A gridding module, wherein the gridding module grids the geological interface segments according to the geological survey data of the preset area; A modeling module, wherein the modeling module projects the gridded different geological interface fragments into the grid cells according to the spatial relationship of different geological interface fragments described by the spatial relationship binary tree, records the spatial relationship of different geological interface fragments in each grid cell vertically, and queries the attribute information of any point in the grid cell according to the first array, the second array and the third array.
