Basin simulation modeling method, electronic equipment and medium
By pre-processing and interpolation processing of geological strata, an overall simulation modeling grid was established and refined modeling was carried out in local areas, the problems of unreasonable and low efficiency of data structure design in basin simulation were solved, and the computational efficiency was achieved promote.
Patent Information
- Application Number
- CN202010976203.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-16
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2040-09-16
AI Technical Summary
There are problems of unreasonable data structure design and low spatial efficiency in basin simulation modeling, resulting in low computational efficiency.
By pre-processing and interpolation processing of multiple geological strata, an overall simulation modeling grid is established, point sets, point topological relationships and cubes are obtained, and refined modeling is carried out in local areas to achieve data merging, independent or segmentation. Block calculations to improve computing efficiency.
It realizes rapid data acquisition and local refined modeling, improves the space and efficiency of basin simulation, and is of great significance.
Smart Images

Figure CN114429012B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of basin simulation, and in particular relates to a basin simulation modeling method, electronic equipment and medium. Background Art
[0002] Basin simulation is based on physical and chemical geological mechanisms. It uses computers to quantitatively simulate the formation and evolution of oil and gas basins, the generation, migration and accumulation of hydrocarbons in time and space to reveal the essence of the oil and gas laws in the basin.
[0003] Basin numerical simulation technology has developed extremely rapidly in the past decade. The wide application of basin simulation technology has made basin analysis move towards quantification, dynamics and automatic drawing. Today, basin simulation technology is not only a form of expression of geological processes, but also an indispensable means of studying various dynamic parameters. Therefore, it has been widely valued by basin analysis experts and petroleum geologists.
[0004] As a long-term technical problem, basin simulation faces difficulties and challenges in many aspects, such as accurate solution of simulation algorithms, consideration of geological factors such as faults and diagenesis, restoration of intermittent mutation processes of oil and gas migration, and reconstruction of paleohydrodynamic processes. Strengthening the application of three-dimensional geological attribute modeling and structural modeling technology, and implementing interactive simulation of key stages under the guidance of oil and gas migration and accumulation laws that conform to geological laws will be the main direction of the development of basin simulation technology in the future. In addition, incorporating the latest progress and new technologies in disciplines such as oil and gas geology, mathematical geology, and computers into basin simulation will also greatly promote the advancement of this technology.
[0005] However, in the process of basin simulation modeling, due to the huge amount of basin data, there are great overheads in data storage and calculation, so some space and efficiency optimizations are needed to meet the modeling requirements. For example, some local areas are refined instead of the entire area to avoid insufficient space; during the simulation process, the basin modeling grid is divided into blocks for multi-threaded or distributed computing to improve the efficiency of simulation calculations; a reasonable data organization structure is used to represent the basin simulation modeling to improve time and space efficiency, etc. These are the main problems that need to be faced in basin simulation. How to achieve efficient modeling data structure design and space efficiency optimization is of great significance to basin simulation.
[0006] Therefore, there is a particular need for a basin simulation implementation method that can be optimized in terms of space and efficiency. Summary of the invention
[0007] The purpose of the present invention is to propose a basin simulation modeling method to solve the problems of unreasonable design of existing modeling data structure and low space efficiency.
[0008] In view of this, the present invention provides a basin simulation modeling method, electronic device and medium, which at least solve the problems of unreasonable design of existing modeling data structure and low space efficiency.
[0009] In a first aspect, the present invention provides a basin simulation modeling method, comprising: step 1: pre-processing a plurality of geological layers respectively according to a modeling range; step 2: interpolating each pre-processed geological layer to obtain a geological layer grid; step 3: in the geological layer grid, establishing a microlayer between each two adjacent geological layers to obtain an overall simulation modeling grid; step 4: obtaining a point set, a point topological relationship and a cube of the overall simulation modeling grid; step 5: selecting a local modeling range in the overall simulation modeling grid; step 6: based on the local modeling range, repeating steps 1 to 4 to obtain a point set, a point topological relationship and a cube of a refined simulation modeling grid corresponding to the local modeling range; step 7: performing basin simulation calculations based on the point set, the point topological relationship and the cube of the overall simulation modeling grid and the point set, the point topological relationship and the cube of the refined simulation modeling grid.
[0010] Optionally, the modeling range includes a benchmark range and a benchmark number of rows and columns, and step 1 includes: step 11: setting the benchmark range and benchmark number of rows and columns of the geological stratum, and generating multiple benchmark grid points within the modeling range based on the benchmark range and benchmark number of rows and columns; step 12: for a geological stratum, based on the benchmark range and benchmark number of rows and columns, obtaining an area intersecting with the modeling range; step 13: in the intersecting area, the data value of each benchmark grid point is the data value corresponding to the grid point of the geological stratum closest to the benchmark grid point in the geological stratum; outside the intersecting area, the data value of each benchmark grid point is an invalid value; step 14: repeating steps 12-13 for each geological stratum until the benchmark range and number of rows and columns of all geological strata are unified, and multiple geological strata with a unified benchmark range and number of rows and columns are obtained; step 15: performing stratigraphic depth interleaving and depth data missing processing on multiple geological strata with a unified benchmark range and number of rows and columns.
[0011] Optionally, step 15 includes: when two adjacent geological layers overlap in depth, marking the depth of the upper geological layer on the right side of the overlapping area as the depth of the corresponding position of the lower geological layer; traversing all geological layers in order of depth from bottom to top, and when the current geological layer has a depth missing, marking the depth of the missing part as the depth of the corresponding position of the stratum below the current geological layer.
[0012] Optionally, step 2 includes: setting the modeling area and the number of rows and columns of the modeling model, generating multiple modeling grid points in the modeling area based on the modeling area and the number of rows and columns of the modeling model; interpolating each preprocessed geological layer according to the modeling area and the number of rows and columns of the modeling model to obtain an interpolated geological layer grid.
[0013] Optionally, interpolation processing is performed according to the following steps: when the modeling grid point falls on the grid point of the preprocessed geological stratum, the data value of the grid point of the preprocessed geological stratum is used as the data value of the modeling grid point; when the modeling grid point falls on the grid point connecting line of the preprocessed geological stratum, the two grid points at both ends of the grid point connecting line are weighted according to the inverse proportion of the square of the distance between them and the modeling grid point to calculate the interpolated data value; when the modeling grid point falls within the preprocessed geological stratum and does not fall on the grid point of the preprocessed geological stratum and the grid point connecting line, four grid points corresponding to the modeling grid point are obtained at the grid point of the preprocessed geological stratum according to the coordinates of the modeling grid point, and the interpolated data value of the four grid points is weighted according to the inverse proportion of the square of the distance between them and the modeling grid point to calculate; when the modeling grid point falls outside the range of the grid points of the preprocessed geological stratum, the data value of the grid point of the preprocessed geological stratum that is closest to the modeling grid point is used as the interpolated data value.
[0014] Optionally, step 3 includes: traversing the geological layers of the interpolated geological layer grid from bottom to top according to depth, obtaining the geological age difference between the current geological layer and the geological layer below it, dividing the geological age difference by the stratigraphic splitting age interval of the current geological layer, and obtaining the number of microlayers that need to be split; based on the number of microlayers that need to be split, inserting microlayers between the previous geological layer and the geological layer below it.
[0015] Optionally, each grid point corresponds to a topological relationship, and the point topological relationship includes the next grid point of the grid point along the column direction, the next grid point along the row direction, and the next grid point along the depth direction; grids located at the same position on two adjacent geological layers form a cube.
[0016] Optionally, the basin simulation calculation includes at least one of a merge calculation, an independent calculation and a block calculation; the merge calculation is to merge the point set of the overall simulation modeling grid with the point set of the refined simulation modeling grid, and perform basin simulation calculation based on the merged point set, point topological relationship and cube; the independent calculation is to perform basin overall simulation calculation based on the point set, point topological relationship and cube of the overall simulation modeling grid, and to perform basin refined simulation calculation based on the point set, point topological relationship and cube of the refined simulation modeling grid;
[0017] The block calculation is to divide the overall simulation modeling grid and the refined simulation modeling grid into a plurality of blocks respectively, and perform basin refined simulation calculation based on the point set, point topological relationship and cube of each block.
[0018] In a second aspect, the present invention further provides an electronic device, comprising: a memory storing executable instructions; and a processor, wherein the processor runs the executable instructions in the memory to implement the above-mentioned basin simulation modeling method.
[0019] In a third aspect, the present invention further provides a computer-readable storage medium storing a computer program, which implements the above-mentioned basin simulation modeling method when executed by a processor.
[0020] The beneficial effects of the present invention are as follows: the basin simulation modeling method of the present invention uniformly preprocesses and interpolates various geological layers, generates a unified data grid range and point topological relationship, can acquire data faster, realizes local refined modeling and block simulation, and is valuable for improving the basin simulation space and efficiency.
[0021] The present invention has other features and advantages, which will be apparent from or will be described in detail in the accompanying drawings and the following specific embodiments incorporated herein, which together serve to explain the specific principles of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The above and other objects, features and advantages of the present invention will become more apparent through a more detailed description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components throughout the exemplary embodiments of the present invention.
[0023] Figure 1 A flow chart of a basin simulation modeling method according to an embodiment of the present invention is shown.
[0024] Figure 2 A schematic diagram of processing geological layers according to modeling scope in a basin simulation modeling method according to an embodiment of the present invention is shown.
[0025] Figure 3 The diagram shows the overlapping and missing parts of geological layer depths in a basin simulation modeling method according to an embodiment of the present invention.
[0026] Figure 4 A schematic diagram of geological layer interpolation processing of a basin simulation modeling method according to an embodiment of the present invention is shown.
[0027] Figure 5 A schematic diagram of establishing microlayers of a basin simulation modeling method according to an embodiment of the present invention is shown.
[0028] Figure 6 A modeling model point set, point topological relationship and cube schematic diagram of a basin simulation modeling method according to an embodiment of the present invention are shown.
[0029] Figure 7 The local refined simulation modeling of a basin simulation modeling method according to an embodiment of the present invention is shown.
[0030] Figure 8 The figure shows the local refinement and point number conversion under the block of a basin simulation modeling method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0031] The preferred embodiments of the present invention will be described in more detail below. Although the preferred embodiments of the present invention are described below, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0032] Embodiment 1
[0033] Figure 1 A flow chart of a basin simulation modeling method according to an embodiment of the present invention is shown. Figure 2 A schematic diagram of processing geological layers according to modeling scope in a basin simulation modeling method according to an embodiment of the present invention is shown. Figure 3 The diagram shows the overlapping and missing parts of geological layer depths in a basin simulation modeling method according to an embodiment of the present invention. Figure 4 A schematic diagram of geological layer interpolation processing of a basin simulation modeling method according to an embodiment of the present invention is shown. Figure 5 A schematic diagram of establishing microlayers of a basin simulation modeling method according to an embodiment of the present invention is shown. Figure 6 A modeling model point set, point topological relationship and cube schematic diagram of a basin simulation modeling method according to an embodiment of the present invention are shown. Figure 7 The local refined simulation modeling of a basin simulation modeling method according to an embodiment of the present invention is shown. Figure 8 The figure shows the local refinement and point number conversion under the block of a basin simulation modeling method according to an embodiment of the present invention.
[0034] Combination Figure 1 , Figure 2 , Figure 3 , Figure 4 , Figure 5 , Figure 6 , Figure 7 and Figure 8 As shown, the basin simulation modeling method includes: step 1: pre-processing multiple geological layers according to the modeling range; step 2: interpolating each pre-processed geological layer to obtain a geological layer grid; step 3: in the geological layer grid, establishing a micro layer between each two adjacent geological layers to obtain an overall simulation modeling grid; step 4: obtaining a point set, a point topological relationship and a cube of the overall simulation modeling grid; step 5: selecting a local modeling range in the overall simulation modeling grid; step 6: based on the local modeling range, repeating steps 1 to 4 to obtain a point set, a point topological relationship and a cube of a refined simulation modeling grid corresponding to the local modeling range; step 7: basin simulation calculation is performed based on the point set, the point topological relationship and the cube of the overall simulation modeling grid and the point set, the point topological relationship and the cube of the refined simulation modeling grid.
[0035] Specifically, the input data for basin simulation modeling is a set of geological horizons, each of which represents a stratum. Its main data include a two-dimensional grid composed of a set of spatial coordinates, stratigraphic age, geological event type, stratigraphic splitting age interval, local geological event range and type, local refinement range and refinement ratio, and some other geological parameters.
[0036] The modeling process is to represent the basin as a whole by taking these geological layers, and each geological layer in the basin can be accessed through a unified data interface. In order to model this set of geological layers, preprocessing is first required, including unifying the plane range of each geological layer, and dealing with unreasonable depth intersections or invalid areas between layers.
[0037] The input data is a set of geological horizons, each of which represents a stratum. Its main data include a set of two-dimensional grids composed of spatial coordinates, stratigraphic age, geological event type, stratigraphic splitting age interval, local geological event range and type, local refinement range and refinement ratio, and some other geological parameters. The unified processing of the modeling range of geological horizons is to unify each geological horizon to a coordinate grid with the same range and number of rows and columns.
[0038] Specify the area to be modeled and the number of rows and columns of the modeling model, interpolate the number of rows and columns of the previously preprocessed geological layer modeling model and the range of the modeling area, and interpolate into a coordinate grid corresponding to the set modeling area range and number of rows and columns. Several microlayers can be generated between two geological layers to more finely display the basin model and obtain the overall simulation modeling grid. Generate specific data for the overall simulation modeling grid, including points, point topological relationships, cubes, etc. In addition to the basic overall simulation modeling grid, some additional regional ranges can be set for more refined modeling. The local refined area is independent of the basic overall simulation modeling grid process, which is equivalent to going through the modeling process again with these additional ranges and numbers of rows and columns, and each obtains an additional independent modeling model. In the process of basin simulation, according to the calculation needs, the overall simulation modeling grid and the refined simulation modeling grid can be calculated independently in some calculation steps, while other calculation steps need to merge the data of these models for unified calculation. At this time, it is necessary to merge the point sets and cubes of each model to perform the corresponding basin simulation calculation.
[0039] According to an exemplary implementation, each geological layer is uniformly preprocessed and interpolated to generate a unified data grid range and point topological relationship, which can enable faster data acquisition, achieve local refined modeling and block simulation, and is valuable for improving basin simulation space and efficiency.
[0040] As an optional scheme, the modeling scope includes a benchmark range and a benchmark number of rows and columns, and step 1 includes: step 11: setting the benchmark range and benchmark number of rows and columns of the geological stratum, and generating multiple benchmark grid points within the modeling scope based on the benchmark range and the benchmark number of rows and columns; step 12: for a geological stratum, based on the benchmark range and the benchmark number of rows and columns, obtaining the area intersecting with the modeling scope; step 13: in the intersecting area, the data value of each benchmark grid point is the data value corresponding to the grid point of the geological stratum closest to the benchmark grid point in the geological stratum; outside the intersecting area, the data value of each benchmark grid point is an invalid value; step 14: repeating steps 12-13 for each geological stratum until the benchmark range and the number of rows and columns of all geological strata are unified, and multiple geological strata with a unified benchmark range and number of rows and columns are obtained; step 15: performing stratigraphic depth interleaving and depth data missing processing on multiple geological strata with a unified benchmark range and number of rows and columns.
[0041] like Figure 2 As shown, the geological horizon range is first processed uniformly. Since the geological range of each geological horizon and the number of rows and columns of the geological horizon data coordinate grid may be inconsistent, each geological horizon needs to be unified to the same range and number of rows and columns of the coordinate grid before modeling. A base number of rows and columns and a base range can be set in advance, or the number of rows and columns and range of one geological horizon can be used as a benchmark, and the grid data of all geological horizons are processed to this base grid.
[0042] like Figure 2 The range of the middle geological layer a intersects with the reference range in the upper right part. The range and number of rows and columns of the processed a are the reference grid. The area where the upper right part a intersects with the reference grid has data, such as the black block in the figure. The other parts have no data and are assigned an invalid value of nan. In the part of the processed a grid with data, the data value of each grid point is the data value corresponding to the grid point closest to this grid point in the original geological layer a.
[0043] like Figure 2 The range of the middle geological layer b intersects with the reference range in the lower left part. The range and number of rows and columns of b after processing are the reference grid. The area where the lower left part b intersects with the reference grid has data, such as the black block in the figure. The other parts have no data and are assigned an invalid value of nan. In the part of the processed b grid with data, the data value of each grid point is the data value corresponding to the grid point closest to this grid point in the original geological layer b.
[0044] As an optional scheme, step 15 includes: when two adjacent geological layers overlap in depth, marking the depth of the upper geological layer on the right side of the overlapping area as the depth of the corresponding position of the lower geological layer; traversing all geological layers in order of depth from bottom to top, and when the current geological layer has a depth missing, marking the depth of the missing part as the depth of the corresponding position of the stratum below the current geological layer.
[0045] After the unified range and number of rows and columns of the benchmark grid are processed, the grids of each geological layer have the same shape. Next, in the depth direction, the interlaced depth of the strata and the missing depth data are processed. Figure 3 As shown in the figure, the upper part shows two geological layers h1 and h2, which are interlaced in the depth direction. If the geological event type of h1 is deposition and the interlaced part is not within the range of a local geological event type of erosion, then h1 is unreasonable in this interlaced area, and its stratigraphic depth should be above h2. Then the depth value in the coordinate grid point corresponding to h1 in this area is modified to the value of the corresponding grid point in h2 to achieve depth interlacing.
[0046] Figure 3 The lower part is the processing of the missing depth. Since the geological layer range is processed, although each geological layer is unified on the same coordinate grid, due to the inconsistency of the data range of each geological layer, some geological layers may have depth values within a range, but other geological layers have invalid values within this range. As shown in h1 and h2 in the figure, the depth value in the grid point corresponding to the invalid value area of h1 needs to be assigned to the value of the grid point at the corresponding position in h2 to realize the processing of depth missing.
[0047] For a set of geological layers that have been input, the method for handling depth overlap and missing is as follows: traverse in order from bottom to top in depth. When the current geological layer h1 is found to be missing in depth, the previously traversed lower layer is recorded as h2, and then the above method for handling depth missing of h1 and h2 is followed. If the current geological layer is the bottom layer, the depth of the missing part is assigned to the depth of the corresponding position of the second-to-last layer; when the current geological layer h1 is found to be interlaced in depth with the previously traversed lower layer h2, the above method for handling depth overlap of h1 and h2 is followed. At this point, all geological layers are unified on the same grid, and there is no overlap or missing part in depth.
[0048] As an optional scheme, step 2 includes: setting the modeling area and the number of rows and columns of the modeling model, generating multiple modeling grid points in the modeling area based on the modeling area and the number of rows and columns of the modeling model; interpolating each preprocessed geological layer according to the modeling area and the number of rows and columns of the modeling model to obtain an interpolated geological layer grid.
[0049] First, specify the modeling area to be modeled, which can be the entire geological layer or a part of the area, and then specify the number of rows and columns of the modeling model. The larger the number of rows and columns, the more detailed the modeling. After setting the modeling area and the number of rows and columns, the previously preprocessed set of geological layers is interpolated according to the set number of rows and columns and the range of the modeling area, and interpolated into a coordinate grid corresponding to the set modeling area range and number of rows and columns.
[0050] like Figure 4 As shown in the figure, the left side is a geological horizon coordinate grid after preprocessing in the above steps, the middle is the set modeling area and number of rows and columns, and the right side is the result of interpolation of this geological horizon under this modeling range and number of rows and columns. Different from the preprocessing, each grid point in the modeling range has a corresponding interpolation result, even if it is a grid point outside the range of the horizon grid.
[0051] For each grid point in the modeling range grid, the interpolation method of its grid data value is as follows: according to the coordinates of this grid point, find the four grid points of the corresponding grid in the layer grid, and then interpolate these four grid points with the inverse square of their distance from the modeling grid point as the weight, and the result is the data value of the modeling grid point; for the modeling grid point that falls exactly on the layer grid point, directly take the layer grid data value; for the modeling grid point that falls on the layer grid line, the two grid points at both ends of the grid line are interpolated with the inverse square of their distance from the modeling grid point as the weight, and the result is the data value of the modeling grid point; for the modeling grid point outside the layer grid range, take the data value of the grid point closest to it in the layer grid as the interpolation result.
[0052] The scope and type of local geological events contained in each geological layer also need to be changed. The scope of local geological events records the range of row and column numbers of local geological events in the geological layer grid. After interpolation, the row and column numbers of the geological layer and the range they represent have changed, so the row and column numbers of the local geological event range need to be changed. The specific method is that the data format of the local geological event range is the maximum and minimum values of the row and column, a total of 4 values. First, obtain the x or y coordinates of the row or column corresponding to each value in the geological layer, and then obtain the row or column of this x or y coordinate in the modeling grid according to the coordinates and the modeling grid range and the number of rows and columns. This row or column is the row and column number of the changed local geological event range.
[0053] After the above interpolation is performed on all preprocessed geological stratum grids, the interpolated geological stratum grids according to the range and number of rows and columns set by the modeling grid are obtained.
[0054] As an optional scheme, interpolation processing is performed according to the following steps: when the modeling grid point falls on the grid point of the preprocessed geological stratum, the data value of the grid point of the preprocessed geological stratum is used as the data value of the modeling grid point; when the modeling grid point falls on the grid point connecting line of the preprocessed geological stratum, the two grid points at both ends of the grid point connecting line are weighted according to the inverse square ratio of the distance between them and the modeling grid point to calculate the interpolated data value; when the modeling grid point falls within the preprocessed geological stratum and does not fall on the grid point of the preprocessed geological stratum and the grid point connecting line, according to the coordinates of the modeling grid point, four grid points corresponding to the modeling grid point are obtained at the grid point of the preprocessed geological stratum, and the interpolated data value is calculated according to the inverse square ratio of the distance between the four grid points and the modeling grid point as the weight; when the modeling grid point falls outside the range of the grid points of the preprocessed geological stratum, the data value of the grid point of the preprocessed geological stratum closest to the modeling grid point is used as the interpolated data value.
[0055] As an optional scheme, step 3 includes: traversing the geological layers of the interpolated geological layer grid from bottom to top according to depth, obtaining the geological age difference between the current geological layer and the geological layer below it, dividing the geological age difference by the stratigraphic splitting age interval of the current geological layer, and obtaining the number of microlayers that need to be split; based on the number of microlayers that need to be split, inserting microlayers between the previous geological layer and the geological layer below it.
[0056] Specifically, several microlayers can be generated between two geological layers to more finely display the basin model. According to the geological ages of the two geological layers and the stratigraphic splitting age interval, the number of split microlayers is obtained, and then each microlayer is interpolated.
[0057] The specific method is to traverse each geological layer from bottom to top according to the depth, obtain the geological age difference between the current geological layer and the previous geological layer below it, and then divide it by the stratigraphic splitting age interval of the current geological layer to obtain the number of microlayers that need to be split. When the stratigraphic splitting age interval is 0 or the number of microlayers obtained is less than 1, it means that there is no need to split the microlayer and it is skipped; when the number is greater than or equal to 1, the microlayer needs to be generated.
[0058] Microlayers represent the geological layers between the two geological layers. Assuming that the number of split microlayers is n, n microlayers need to be inserted between the two geological layers to split this space into n+1 parts. The splitting adopts an equal division mode, that is, the interval between the two geological layers is divided into n+1 parts according to the depth. The depth value of each grid point in each microlayer is the depth value of the corresponding position of this microlayer after the depth value of the upper and lower geological layers n+1 is evenly divided.
[0059] like Figure 5 As shown in the figure, the two geological layers h1 and h2 are split into three micro-layers. First, the two layers h1 and h2 are divided into four equal parts in the depth direction, that is, the upper and lower grid points in h1 and h2 corresponding to the same row and column positions are divided into four equal parts in depth. The middle figure in the figure lists the four-equal division of several grid points as examples. Each pair of grid points in the entire coordinate grid is divided into four equal parts, and three new coordinate grids are obtained, namely the split micro-layers h1h2_1, h1h2_2, and h1h2_3.
[0060] The other data processing methods for geological layers are as follows: the stratigraphic age is processed in the same direction as the depth, the geological ages of h1 and h2 are equally divided to obtain the geological ages of each microlayer, the geological event type is the geological event type of h1, the stratigraphic splitting age interval is 0, and the local geological event range and type are the local geological event range and type of h1. At this point, the microlayer splitting is completed, and all the geological layers required for modeling are obtained.
[0061] As an optional solution, each grid point corresponds to a topological relationship, and the point topological relationship includes the next grid point along the column direction, the next grid point along the row direction, and the next grid point along the depth direction; grids located at the same position on two adjacent geological layers form a cube.
[0062] Generate specific data for basin simulation modeling, including points, point topological relationships, cubes, etc. Points are formed by merging the grid points of all geological layers into a point set, and the order is to take each grid point of each geological layer from deep to shallow, and the numbering starts from 0 and increases in sequence.
[0063] like Figure 6As shown, the numbering order of 144 grid points in 3 geological layers is shown, starting from the bottom layer, first traversing by column, then traversing by row, and finally traversing by geological layer.
[0064] Each point corresponds to a point topology relationship, which contains three data, nextx, nexty, and nextz, indicating the next point of this point in three directions. For example, the three point topology objects of a point shown by the black dot in the figure are the next point in the column direction, row direction, and depth direction. In the case of encountering a boundary, the next object is empty. The purpose of generating point topology relationships is to access adjacent points faster.
[0065] There will be several cubes between two adjacent geological layers, the number of which is the same as the number of grid cells. Figure 6 The grid shown in the figure is 8X6, and the number of grids is 7X5, that is, 35. Therefore, 35 cubes will be formed between every two geological layers, representing the rock column between the two geological layers. Each cube is composed of 8 points, which are 4 points of the lower geological layer and 4 points of the upper geological layer, in the order of abcdefgh in the figure.
[0066] So far, the specific modeling data of the basin simulation model have been obtained, that is, the modeling model formed according to the set number of rows and columns and various geological layers and microlayers within the range.
[0067] As an optional scheme, the basin simulation calculation includes at least one of merge calculation, independent calculation and block calculation; the merge calculation is to merge the point set of the overall simulation modeling grid with the point set of the refined simulation modeling grid, and perform basin simulation calculation based on the merged point set, point topological relationship and cube; the independent calculation is to perform overall basin simulation calculation based on the point set, point topological relationship and cube of the overall simulation modeling grid, and perform refined basin simulation calculation based on the point set, point topological relationship and cube of the refined simulation modeling grid; the block calculation is to divide the overall simulation modeling grid and the refined simulation modeling grid into multiple blocks respectively, and perform refined basin simulation calculation based on the point set, point topological relationship and cube of each block.
[0068] In addition to the basic modeling settings, you can set some additional area ranges for more refined modeling, such as Figure 7As shown, the geological stratigraphic grid in the figure has two areas with additional more precise modeling requirements. The specific processing method is that the overall modeling process remains unchanged, and the overall modeling model model is obtained according to the method of the previous steps. For the two local refined areas, independent modeling is performed separately, and the method is the same as above, where the modeling range takes the range of the two areas, and the modeling rows and columns take the rows and columns of the two areas, and the modeling models refinemodel_1 and refinemodel_2 are obtained. That is, the local refined areas are independent of the basic modeling process, which is equivalent to going through the modeling process again with these additional ranges and rows and columns, and each obtains an additional independent modeling model.
[0069] An overall modeling model and multiple detailed modeling models are generated. During the basin simulation process, according to the calculation needs, these models can be calculated independently in some calculation steps, while other calculation steps require the data of these models to be merged for unified calculation. At this time, the point sets and cubes of each model need to be merged.
[0070] When merging, the point set numbering needs to be unified. Grid points in repeated positions in the local refined area and the original area also need to be skipped to prevent repeated calculations. In basin simulation, each model may be split into different areas for block calculation, which is equivalent to each independent model being split into multiple block models, and the point set numbering will also change accordingly. Therefore, there are three states of point sets: merge, independent, and block. Merge means merging all modeling models together, including overall modeling and modeling of each local refined part; independent means the state when the overall modeling and local refined modeling are respectively used as independent models; block means that these models are further divided into several sub-blocks during the simulation process.
[0071] like Figure 8 As shown in the figure, the two grids corresponding to the independent state are the overall modeling and local refined modeling generated above; the merged state means combining these grids, which is equivalent to Figure 7 The left figure in the figure; the block state means that each independent model is further divided into several blocks, and the point numbering of each block restarts from zero. For the switching of these states, the point numbering needs to be changed, specifically the following types:
[0072] 1. From independence to blocks
[0073] For a point in an independent model, the point number is recorded as vertexid. Assuming that the number of grid rows and columns of the independent model is singlerows and singlecols respectively, the number of grid points in each layer is singlelayervertexcount=singlerows*singlecols, and the layer number of the point is singlelayer=vertexid / singlelayervertexcount.
[0074] Let singleoffset=vertexid%singlelayervertexcount, then its row number and column number in the independent model are singlerow=singleoffset / singlecols and singlecol=singleoffset%singlecols respectively.
[0075] Then traverse each block. Each block contains a row and column number range parameter, which indicates the row and column number range corresponding to it in the original independent model grid. Find the block whose range contains the above row and column numbers. Assume that the starting row and column numbers of this block in the original independent grid are blockrowstart and blockcolstart, the number of rows and columns of the block grid are blockrows and blockcols respectively, and the number of grid points per layer of the block geological layer is blocklayervertexcount=blockrows*blockcols. Then the row and column numbers of this point in the block are blockrow=(singlerow-blockrowstart) and blockcol=(singlecol-blockcolstart), and the point number in the block model is singlelayer*blocklayervertexcount+blockrow*blockcols+blockcol.
[0076] 2. Block to independent
[0077] For a point in the block model, the point number is recorded as vertexid. Assuming that the number of rows and columns of the independent model grid is singlerows and singlecols respectively, the number of grid points per layer is singlelayervertexcount=singlerows*singlecols. Assuming that the starting row and column numbers of this block model in the original independent grid are blockrowstart and blockcolstart, and the number of rows and columns of the block grid are blockrows and blockcols respectively, the number of grid points per layer of the block geological layer is blocklayervertexcount=blockrows*blockcols.
[0078] The layer number of this point in the block model is blocklayer=vertexid / blocklayervertexcount, and blockoffset=vertexid%blocklayervertexcount. Then the row number and column number of this point in the block model are
[0079] blockrow=blockoffset / blockcols, blockcol=blockoffset%blockcols. The row and column numbers of this point in the original independent grid are singlerow=(blockrow+blockrowstart), singlecol=(blockcol +blockcolstart), and the point number in the original independent grid is blocklayer*singlelayervertexcount+singlerow*singlecols+ singlecol.
[0080] 3. From independence to merger
[0081] First, calculate the number of grid points in each layer of the merged model. The total number is the number of grid points in each basic modeling model plus the number of grid points in each refined model minus the number of duplicate points. Duplicate points exist because some grid points in the refined area overlap with the original modeling model, such as Figure 8 In the merged grid diagram, the points numbered 14 to 17, 20 to 23, 26 to 29, and 32 to 35 are both points of the original model and points of the refined grid, so they should be subtracted when calculating the number of grid points in each layer of the merged point.
[0082] Assume that the number of refined models is k, and the span of each refined grid in the original grid is p1, p2…p k 、q1,q2…q k , the number of rows and columns of the refined grid itself is m1,m2…mk 、n1,n2…n k , the starting position of the refined grid in the original grid row and column is ps1, ps2…ps k 、qs1,qs2…qs k , the number of rows and columns of the original grid is m0, n0, then the number of grid points in each layer of the merged model is m0*n0+∑ k i=1 (m i *n i -(p i +1)*(q i +1)), recorded as unionlayervertexcount.
[0083] Next, for a point in the independent model, the point number is recorded as vertexid. Assuming that the current model is the jth refined model, the number of grid points per layer is curlayervertexcount= m j * n j The layer number of this point is curlayer=vertexid / curlayervertexcount, and curoffset=vertexid%curlayervertexcount. The row number and column number of this point in this independent model are currow=curoffset / curcols and curcol=curoffset%curcols respectively.
[0084] If the model where this point is located is the original basic modeling model, its point number is curlayer*unionlayervertexcount+curoffset.
[0085] If the model is another refined model, assuming the current model is the jth refined model, there are two cases:
[0086] 1. When currow*p j %(m j -1)=0 and curcol*q j %(n j -1)=0, it means that this point is a duplicate point in the original grid. In this case, the row and column numbers of the duplicate point in the original grid are used, and the row number ownrow=ps j +currow* p j / (m j -1), column number owncol=qs j +curcol* q j / (n j-1), the point number is curlayer*unionlayervertexcount+ownrow*n0+owncol.
[0087] 2. When the above conditions are not met, it means that this point is not a duplicate point in the original grid. First, calculate the number of duplicate points that appear before this point in the grid of the layer where the current model point is located, and record tmprow=currow*p j / (m j -1), tmprowremainder= currow* p j %(m j -1), tmpcol = curcol * q j / (n j -1), when tmprowremainder=0, the number of repeated points is sameposcount=tmprow*(q j +1)+tmpcol+1, when tmprowremainder!=0, the number of repeated points is sameposcount=(tmprow+1)* (q j +1). Next, calculate the total number of grid points in this layer of each model before this model, that is, m0*n0+∑ j-1 i=1 (m i *n i -(p i +1)*(q i +1)), recorded as unionoffset, the final point number is curlayer*unionlayervertexcount+unionoffset+curoffset-sameposcount.
[0088] 4. Merge to independence.
[0089] Assume that the number of refined models is k, and the span of each refined grid in the original grid is p1, p2…p k 、q1,q2…q k , the number of rows and columns of the refined grid itself is m1,m2…m k 、n1,n2…n k , the starting position of the refined grid in the original grid row and column is ps1, ps2…ps k 、qs1,qs2…qs k , the number of rows and columns of the original grid is m0, n0, then the number of grid points in each layer of the merged model is m0*n0+∑ k i=1 (m i *n i-(p i +1)*(q i +1)), recorded as unionlayervertexcount.
[0090] Next, for a point in the merged model, let the point number be vertexid, then its layer number is unionayer = vertexid / unionlayervertexcount, and unionoffset = vertexid % unionlayervertexcount.
[0091] When unionoffset is less than m0*n0, it means that this point is located in the basic modeling model, and the point number in the independent model is unionlayer* m0*n0+unionoffset;
[0092] When unionoffset is greater than m0*n0, it means that it is located in the local refined model. First, we need to find out which local refined model this point belongs to. For local refined model j, the number of non-repeated grid points in each layer is mi*ni-(pi+1)*(qi+1). Use unionoffset to subtract m0*n0 first, and then start from the first local refined model. If unionoffset is greater than the number of non-repeated grid points of the current local refined model, subtract this number of non-repeated grid points and traverse the next one until unionoffset is less than the number of non-repeated grid points of the current local refined model, indicating that this point belongs to the current local refined model. Assuming that the current one is the jth one, the value of unionoffet at this time is curoffset. For the current local refined model, traverse the grid points one by one, and skip when encountering repeated grid points, until the number of traversed non-repeated points is equal to curoffset, then stop. The method for determining repeated grid points is: the row and column numbers of the current traversal are recorded as currow and curcol. If currow*pj%(mj-1)=0 and curcol*qj%(nj-1)=0, it is a repeated point. In order to traverse faster, the row and column span information of the refined model can be used to traverse row by row instead of point by point. The number of non-repeated points that have been traversed is recorded as curcount. Start traversing row by row from the first row. For each row, when currow*pj%(mj-1)=0 and curcount+ nj-(qi+1)<=curoffset, the number of non-repeated points in this row is nj-(qi+1). Add this value to curcount and traverse the next row. When currow*pj%(mj-1)!=0 and curcout+ nj<=curoffset, the number of non-repeated points in this row is nj. Add this value to curcount and traverse the next row. If the previous two situations are not met, traverse this row point by point. For each point, if currow*pj%(mj-1)!=0 or curcol*qj%(nj-1)!=0, it is a non-repeated point. Add 1 to curcount until curcout equals curoffset. Get the row and column numbers currow and curcol when the traversal stops, then the number of this point in the refined model is unionlayer*mi*ni+currow*ni+curcol.
[0093] like Figure 8In the merged grid shown, the order of point numbering is to first number the basic modeling model from 0 to 35, then number the refined modeling model from 36, and skip the points that are repeated with the original basic modeling model, and continue to number to 68. It can be seen that the two models have 36 and 49 points respectively when they are independent, and there are 16 repeated points and 69 non-repeated points after merging.
[0094] For the case of block to merge, first perform block to independent, then perform independent to merge; for the case of merge to block, first perform merge to independent, then perform independent to block.
[0095] Embodiment 2
[0096] The present disclosure provides an electronic device, which includes: a memory storing executable instructions; a processor, which runs the executable instructions in the memory to implement the above-mentioned basin simulation modeling method.
[0097] An electronic device according to an embodiment of the present disclosure includes a memory and a processor.
[0098] The memory is used to store non-temporary computer-readable instructions. Specifically, the memory may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc.
[0099] The processor may be a central processing unit (CPU) or other forms of processing units with data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions. In one embodiment of the present disclosure, the processor is used to execute the computer-readable instructions stored in the memory.
[0100] Those skilled in the art should be able to understand that in order to solve the technical problem of how to obtain a good user experience, the present embodiment may also include well-known structures such as a communication bus and an interface, and these well-known structures should also be included in the protection scope of the present disclosure.
[0101] For detailed description of this embodiment, reference may be made to the corresponding descriptions in the aforementioned embodiments, which will not be repeated here.
[0102] Embodiment 3
[0103] The present disclosure provides a computer-readable storage medium storing a computer program, which implements the above basin simulation modeling method when executed by a processor.
[0104] According to the computer-readable storage medium of the embodiment of the present disclosure, non-transitory computer-readable instructions are stored thereon. When the non-transitory computer-readable instructions are executed by a processor, all or part of the steps of the method of each embodiment of the present disclosure are executed.
[0105] The above-mentioned computer-readable storage media include, but are not limited to: optical storage media (e.g., CD-ROM and DVD), magneto-optical storage media (e.g., MO), magnetic storage media (e.g., magnetic tape or mobile hard disk), media with built-in rewritable non-volatile memory (e.g., memory card) and media with built-in ROM (e.g., ROM box).
[0106] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments.
Claims
1. A basin simulation modeling method, characterized in that: include: Step 1: Preprocess multiple geological layers according to the modeling scope; Step 2: interpolate each preprocessed geological horizon to obtain a geological horizon grid; Step 3: In the geological layer grid, a microlayer is established between each two adjacent geological layers to obtain an overall simulation modeling grid; Step 4: Obtain the point set, point topological relationship and cube of the overall simulation modeling grid; Step 5: Select the local modeling range in the overall simulation modeling grid; Step 6: Based on the local modeling range, repeat steps 1 to 4 to obtain a point set, point topological relationship and cube of a refined simulation modeling grid corresponding to the local modeling range; Step 7: basin simulation calculation is performed based on the point set, point topological relationship and cube of the overall simulation modeling grid and the point set, point topological relationship and cube of the refined simulation modeling grid; The modeling scope includes a reference scope and reference row and column numbers, and step 1 includes: Step 11: setting a reference range and reference row and column number of the geological layer, and generating a plurality of reference grid points within the modeling range based on the reference range and reference row and column number; Step 12: for a geological layer, based on the reference range and the reference row and column number, obtaining an area intersecting with the modeling range; Step 13: within the intersecting area, the data value of each reference grid point is the data value corresponding to the grid point of the geological stratum closest to the reference grid point in the geological stratum; outside the intersecting area, the data value of each reference grid point is an invalid value; Step 14: Repeat steps 12-13 for each geological layer until all geological layers have completed the unification of the reference range and the number of rows and columns, thereby obtaining multiple geological layers with the unified reference range and the number of rows and columns; Step 15: Perform stratigraphic depth interleaving and depth data missing processing on multiple geological layers with a unified reference range and number of rows and columns; The step 15 comprises: When two adjacent geological horizons overlap in depth, the depth of the upper geological horizon on the right side of the overlapping area is marked as the depth of the corresponding position of the lower geological horizon; Traverse all geological layers in order from bottom to top in depth. When the current geological layer has a missing depth, mark the depth of the missing part as the depth of the corresponding position of the layer below the current geological layer. The step 2 comprises: Setting a modeling region and the number of rows and columns of the modeling model, and generating a plurality of modeling grid points in the modeling region based on the modeling region and the number of rows and columns of the modeling model; Performing interpolation processing on each preprocessed geological layer according to the modeling area and the number of rows and columns of the modeling model to obtain an interpolated geological layer grid; The interpolation process is performed according to the following steps: When the modeling grid point falls on the grid point of the preprocessed geological horizon, the data value of the grid point of the preprocessed geological horizon is used as the data value of the modeling grid point; When the modeling grid point falls on the grid point connection line of the preprocessed geological layer, two grid points at both ends of the grid point connection line are weighted in inverse proportion to the square of their distances from the modeling grid point to calculate the interpolated data value; When the modeling grid point falls within the preprocessed geological horizon and does not fall on the grid points of the preprocessed geological horizon and the grid point connection line, four grid points corresponding to the modeling grid point are obtained at the grid points of the preprocessed geological horizon according to the coordinates of the modeling grid point, and the four grid points are weighted in inverse proportion to the square of the distance between the four grid points and the modeling grid point to calculate the interpolated data value; When the modeling grid point falls outside the range of the grid points of the preprocessed geological horizon, the data value of the grid point of the preprocessed geological horizon that is closest to the modeling grid point is used as the interpolated data value.
2. The basin simulation modeling method according to claim 1, characterized in that: The step 3 comprises: Traversing the geological layers of the interpolated geological layer grid from bottom to top according to depth, obtaining the geological age difference between the current geological layer and the geological layer below it, dividing the geological age difference by the stratigraphic splitting age interval of the current geological layer, and obtaining the number of microlayers that need to be split; Based on the number of microlayers that need to be split, microlayers are inserted between the previous geological horizon and the geological horizon below it.
3. The basin simulation modeling method according to claim 2, characterized in that: Each grid point corresponds to a topological relationship, and the point topological relationship includes the next grid point of the grid point along the column direction, the next grid point along the row direction, and the next grid point along the depth direction; The grids at the same position in two adjacent geological layers form a cube.
4. The basin simulation modeling method according to claim 2, characterized in that: The basin simulation calculation includes at least one of combined calculation, independent calculation and block calculation; The merging calculation is to merge the point set of the overall simulation modeling grid with the point set of the refined simulation modeling grid, and perform basin simulation calculation based on the merged point set, point topological relationship and cube; The independent calculation is to perform basin overall simulation calculation based on the point set, point topological relationship and cube of the overall simulation modeling grid, and to perform basin refined simulation calculation based on the point set, point topological relationship and cube of the refined simulation modeling grid; The block calculation is to divide the overall simulation modeling grid and the refined simulation modeling grid into a plurality of blocks respectively, and perform basin refined simulation calculation based on the point set, point topological relationship and cube of each block.
5. An electronic device, characterized in that: The electronic device comprises: A memory storing executable instructions; A processor, wherein the processor runs the executable instructions in the memory to implement the basin simulation modeling method according to any one of claims 1-4.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the basin simulation modeling method according to any one of claims 1 to 4 is implemented.
