Oil reservoir grid rendering method and device based on spatial visibility relationship

By dividing the reservoir mesh model into multiple columns and extracting the sides to be rendered, the problem of low rendering efficiency of reservoir mesh model in the prior art is solved, and more efficient rendering and graphics card memory management are achieved.

CN120070692APending Publication Date: 2025-05-30CHINA NAT PETROLEUM CORP +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311617171.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-29
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

In the three-dimensional seismic exploration and development of existing technology, the rendering efficiency of the reservoir mesh model is low, resulting in huge memory consumption of graphics cards and obvious lag in operation.

Method used

By obtaining the range to be rendered in the three directions of the reservoir mesh model, the model is divided into multiple columns, the top and bottom sides to be rendered are determined, and the front, rear, left and right sides of each effective column are extracted for rendering.

Benefits of technology

It reduces the amount of display data of the reservoir mesh model, improves rendering efficiency, and significantly reduces graphics card memory consumption and operational lag.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120070692A_ABST
    Figure CN120070692A_ABST
Patent Text Reader

Abstract

The invention relates to an oil reservoir grid rendering method and device based on a space visibility relation, and the method comprises the steps: obtaining a to-be-rendered range of each direction of the I, J and K directions of a target oil reservoir grid model, and enabling the target oil reservoir grid model to be represented by hexahedral grids in the I, J and K directions; the oil reservoir grid model is divided into a plurality of stand columns; according to the to-be-rendered range of each of the I, J and K directions of the oil reservoir grid model, determining a to-be-rendered top side surface and a to-be-rendered bottom side surface of the oil reservoir grid model; extracting a front side surface, a rear side surface, a left side surface and a right side surface to be rendered in each effective column; the to-be-rendered top side face and the to-be-rendered bottom side face of the oil reservoir grid model and the to-be-rendered front side face, the to-be-rendered rear side face, the to-be-rendered left side face and the to-be-rendered right side face in each effective stand column are rendered, the rendered oil reservoir grid model is obtained, the display data size of the oil reservoir grid model can be reduced, and the rendering efficiency of the oil reservoir grid is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of constructing and displaying three-dimensional geological models in oil and gas seismic exploration and development interpretation methods, and particularly relates to a reservoir grid rendering method and device based on spatial visibility relationships. Background Art

[0002] A complete three-dimensional structural reservoir model is composed of a set of formation units arranged from top to bottom, and each formation unit is composed of hexahedral grid units arranged in a grid. Among them, each unit has internal physical property and formation structure information. In the visualization display of the three-dimensional model, the display efficiency is low, and the operation in the scene is significantly stuck. This is because the reservoir grid data volume is extremely large, generally tens of millions of grid units; each unit is a hexahedron. If all the sides of all grid units are rendered, there is a lot of data redundancy, and the memory consumption of the graphics card is extremely large. Summary of the Invention

[0003] In order to solve the above technical problems or at least partially solve the above technical problems, embodiments of the present disclosure provide a reservoir grid rendering method and device based on spatial visibility relationships.

[0004] In a first aspect, embodiments of the present disclosure provide a reservoir grid rendering method based on spatial visibility relationships, and the method includes:

[0005] Obtain the rendering range of each of the I, J, and K directions of the target reservoir grid model respectively, where the target reservoir grid model is represented by hexahedral grids in the I, J, and K directions;

[0006] Divide the reservoir grid model into multiple columns, where each column includes all grid units with the same I value and J value;

[0007] Determine the top and bottom sides to be rendered of the reservoir grid model according to the rendering range of each of the I, J, and K directions of the reservoir grid model;

[0008] Extract the front, back, left, and right sides to be rendered in each effective column;

[0009] Render the top and bottom sides to be rendered of the reservoir grid model and the front, back, left, and right sides to be rendered in each effective column to obtain a rendered reservoir grid model.

[0010] In a possible implementation manner, the determining the top and bottom sides to be rendered of the reservoir grid model according to the rendering range of each of the I, J, and K directions of the reservoir grid model includes:

[0011] Determine the effective columns according to the rendering ranges in each of the I, J, and K directions of the reservoir grid model, and record the numbers of the top grid cells and the bottom grid cells of the effective columns;

[0012] Extract the top and bottom side surfaces to be rendered of the reservoir grid model according to the top grid cells and the bottom grid cells of the effective columns.

[0013] In a possible implementation manner, the determining the effective columns according to the rendering ranges in each of the I, J, and K directions of the reservoir grid model includes:

[0014] Determine the I values, J values, and K values of each grid cell in the reservoir grid model according to the rendering ranges in each of the I, J, and K directions of the reservoir grid model;

[0015] For each column, when the I values, J values, and K values of each grid cell in the current column are all 0, regard the current column as an invalid column;

[0016] Regard the columns in the reservoir grid model other than the invalid columns as effective columns.

[0017] In a possible implementation manner, the extracting the top and bottom side surfaces to be rendered of the reservoir grid model according to the top grid cells and the bottom grid cells of the effective columns includes:

[0018] Regard the top side surfaces of the top grid cells of all the effective columns as the top side surfaces to be rendered of the reservoir grid model;

[0019] Regard the bottom side surfaces of the bottom grid cells of all the effective columns as the bottom side surfaces to be rendered of the reservoir grid model.

[0020] In a possible implementation manner, the extracting the front and rear side surfaces to be rendered in each effective column includes:

[0021] For each effective column, when the current effective column is the front side surface of the reservoir grid model, or when the current effective column is not the front side surface of the reservoir grid model and all the columns in front of it are not effective columns, regard the front side surfaces of all the grid cells in the current effective column as effective front side surfaces;

[0022] When the current valid column is not the front side of the reservoir grid model and the column in front of it is a valid column, if the top of the current valid column is higher than the adjacent column in front of it, the front sides of all grid cells where the top of the current valid column is higher than the adjacent column in front of it are used as valid front sides; if the top of the current valid column is lower than the adjacent column in front of it, the back sides of all grid cells in the adjacent column in front of the current valid column where the top is higher than the current valid column are used as valid back sides; if the bottom of the current valid column is lower than the adjacent column in front of it, the front sides of all grid cells where the bottom of the current valid column is lower than the adjacent column in front of it are used as valid front sides; if the bottom of the current valid column is higher than the adjacent column in front of it, the back sides of all grid cells in the adjacent column in front of the current valid column where the bottom is lower than the current valid column are used as valid back sides; if the top and bottom of the current valid column are at the same height as the adjacent column in front of it, the front sides of all grid cells of the current valid column are invalid front sides, and the back sides of all grid cells in the adjacent column in front of the current valid column are invalid back sides;

[0023] When the current valid column is the back side of the reservoir grid model, or when the current valid column is not the back side of the reservoir grid model and all columns behind it are not valid columns, the back sides of all grid cells in the current valid column are used as valid back sides;

[0024] The valid front side and valid back side of each valid column are respectively used as the front side and back side to be rendered in each valid column.

[0025] In a possible implementation manner, the extraction of the left side and right side to be rendered in each valid column includes:

[0026] For each valid column, when the current valid column is the left side of the reservoir grid model, or when the current valid column is not the left side of the reservoir grid model and all columns on its left are not valid columns, the left sides of all grid cells in the current valid column are used as valid left sides;

[0027] When the current valid column is not the left side of the reservoir grid model and the column on its left is a valid column, if the top of the current valid column is higher than the adjacent column on its left, the left sides of all grid cells where the top of the current valid column is higher than the adjacent column on its left are taken as valid left sides; if the top of the current valid column is lower than the adjacent column on its left, the right sides of all grid cells in the adjacent column on the left of the current valid column where the top is higher than the current valid column are taken as valid right sides; if the bottom of the current valid column is lower than the adjacent column on its left, the left sides of all grid cells where the bottom of the current valid column is lower than the adjacent column on its left are taken as valid left sides; if the bottom of the current valid column is higher than the adjacent column on its left, the right sides of all grid cells in the adjacent column on the left of the current valid column where the bottom is lower than the current valid column are taken as valid right sides; if the top and bottom of the current valid column are at the same height as the adjacent column on its left, the left sides of all grid cells of the current valid column are invalid left sides, and the right sides of all grid cells in the adjacent column on the left of the current valid column are invalid right sides;

[0028] When the current valid column is the right side of the reservoir grid model, or when the current valid column is not the right side of the reservoir grid model and all columns on its right are not valid columns, the right sides of all grid cells in the current valid column are taken as valid right sides;

[0029] The valid left side and valid right side of each valid column are respectively taken as the left side and right side to be rendered in each valid column.

[0030] In a possible implementation manner, the rendering of the top side, bottom side to be rendered of the reservoir grid model, and the front side, back side, left side, and right side to be rendered in each valid column to obtain the rendered reservoir grid model includes:

[0031] Adopt a left - hand coordinate system to calculate the normal vectors of the top side, bottom side to be rendered of the reservoir grid model, and the front side, back side, left side, and right side to be rendered in each valid column;

[0032] Use a 3D visualization platform to render the reservoir grid model according to the normal vectors of the top side, bottom side to be rendered of the reservoir grid model, and the front side, back side, left side, and right side to be rendered in each valid column, so as to obtain the rendered reservoir grid model.

[0033] In a second aspect, an embodiment of the present disclosure provides a reservoir grid rendering device based on spatial visibility relationships, including:

[0034] An acquisition module, configured to respectively acquire the rendering ranges in each of the I, J, and K directions of a target reservoir grid model, where the target reservoir grid model is represented by hexahedron grids in the I, J, and K directions;

[0035] A division module, configured to divide the reservoir grid model into multiple columns, where each column includes all grid cells with the same I value and J value;

[0036] A determination module, configured to determine the top and bottom sides to be rendered of the reservoir grid model according to the rendering ranges in each of the I, J, and K directions of the reservoir grid model;

[0037] An extraction module, configured to extract the front side, rear side, left side, and right side to be rendered in each effective column;

[0038] A rendering module, configured to render the top and bottom sides to be rendered of the reservoir grid model and the front side, rear side, left side, and right side to be rendered in each effective column, so as to obtain a rendered reservoir grid model.

[0039] In a third aspect, an embodiment of the present disclosure provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;

[0040] The memory is used to store a computer program;

[0041] The processor is configured to implement the above-mentioned reservoir grid rendering method based on spatial visibility relationship when executing the program stored on the memory.

[0042] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, on which a computer program is stored, and is characterized in that the computer program implements the above-mentioned reservoir grid rendering method based on spatial visibility relationship when being executed by a processor.

[0043] The above technical solutions provided by the embodiments of the present disclosure have at least some or all of the following advantages compared with the prior art:

[0044] The reservoir grid rendering method based on spatial visibility relationship according to the embodiments of the present disclosure respectively obtains the rendering ranges in each of the I, J, and K directions of the target reservoir grid model, where the target reservoir grid model is represented by hexahedral grids in the I, J, and K directions; divides the reservoir grid model into multiple columns, where each column includes all grid cells with the same I value and J value; determines the top and bottom sides to be rendered of the reservoir grid model according to the rendering ranges in each of the I, J, and K directions of the reservoir grid model; extracts the front side, rear side, left side, and right side to be rendered in each effective column; renders the top and bottom sides to be rendered of the reservoir grid model and the front side, rear side, left side, and right side to be rendered in each effective column, and obtains the rendered reservoir grid model, which can reduce the display data volume of the reservoir grid model, thereby greatly improving the rendering efficiency of the reservoir grid. Description of the Drawings

[0045] The drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or related technologies. Obviously, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.

[0047] Figure 1 Schematically shows a schematic flow chart of the reservoir grid rendering method based on spatial visibility relationship according to the embodiments of the present disclosure;

[0048] Figure 2(a) schematically shows a schematic diagram of the display columns in the three directions I, J, and K of the reservoir grid according to the embodiments of the present disclosure;

[0049] Figure 2(b) schematically shows a schematic diagram of the optimized data structure corresponding to the display lists in the three directions I, J, and K of the reservoir grid according to the embodiments of the present disclosure;

[0050] Figure 3(a) schematically shows a schematic diagram of the left grid being lower than the right grid according to the embodiments of the present disclosure;

[0051] Figure 3(b) schematically shows a schematic diagram of the left grid being higher than the right grid according to the embodiments of the present disclosure;

[0052] Figure 4(a) schematically shows a schematic diagram of an effective column according to the embodiments of the present disclosure;

[0053] Figure 4(b) schematically shows a schematic diagram of the adjacent relationship between columns according to the embodiments of the present disclosure;

[0054] Figure 5 Schematically shows a schematic diagram of the overall rendering effect of a reservoir grid according to an embodiment of the present disclosure;

[0055] Figure 6 Schematically shows a schematic diagram of the internal rendering effect of a reservoir grid according to an embodiment of the present disclosure;

[0056] Figure 7 Schematically shows a structural block diagram of a reservoir grid rendering device based on spatial visibility relationship according to an embodiment of the present disclosure;

[0057] Figure 8 Schematically shows a structural block diagram of an electronic device according to an embodiment of the present disclosure. Detailed implementation manners

[0058] To make the objectives, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are some, but not all, of the embodiments of the present disclosure. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.

[0059] See Figure 1 , an embodiment of the present disclosure provides a reservoir grid rendering method based on spatial visibility relationship, including the following steps:

[0060] S1, respectively obtain the rendering ranges to be processed in each of the I, J, and K directions of the target reservoir grid model, where the target reservoir grid model is represented by hexahedral grids in the I, J, and K directions.

[0061] See Figure 2(a) and 2(b) , the reservoir grid model is composed of approximately equidistant hexahedral grids (cells) in the I, J, and K directions. Among them, the rendering ranges to be processed in each of the I, J, and K directions of the target reservoir grid model are realized by managing the display lists in the I, J, and K directions. In each direction, the continuously arranged ones are extracted to form a local rendering range to be processed. When the display lists in one direction are 3, 4, 5, 8, 16, 17, 18, the rendering ranges to be processed are {3, 5}, {8, 8}, {16, 18}, that is, a vector with the structure of {minid, maxid} as the unit. Using the flexible and convenient grid I, J, K three-direction display list combination management technology, through the free combination of the three-direction display lists, users can conveniently freely define each part of the reservoir grid that needs to be displayed and observed.

[0062] S2. Divide the reservoir grid model into multiple columns, where each column includes all grid cells with the same I value and J value.

[0063] S3. Determine the top and bottom sides to be rendered of the reservoir grid model according to the rendering ranges in each of the I, J, and K directions of the reservoir grid model.

[0064] See Figure 3(a) and 3(b) , divide the grid cells into columns. The top and bottom of the column are obviously visible, while the other top and bottom surfaces of the grid cells in the column are not visible. For the top cells of adjacent columns, if their adjacent sides are geometrically consistent, then their adjacent sides are not visible; otherwise, it is necessary to judge which of the two adjacent sides is not blocked (the size relationship in the Z direction) to judge their visibility. Therefore, whether a certain side of a grid cell is visible depends on whether it is blocked by adjacent cells. By judging the visibility of adjacent grid cells based on the geometric topological relationship of the reservoir grid model, determine the top and bottom sides to be rendered of the reservoir grid model.

[0065] S4. Extract the front side, rear side, left side, and right side to be rendered in each valid column.

[0066] See Figure 4(a) and 4(b) , for the reservoir grid with irregular boundaries, first, judge the validity of each column. All six sides of the cells in the invalid column are invalid and do not need to be rendered. If all the front columns of a column are invalid, then the front sides of all the grid cells in this column are valid; if the front column of a column is valid, then it is necessary to compare the visibility of the front column and this column. By judging the visibility of the reservoir grid with irregular boundaries, determine the front side, rear side, left side, and right side to be rendered in each valid column.

[0067] S5. Render the top and bottom sides to be rendered of the reservoir grid model and the front side, rear side, left side, and right side to be rendered in each valid column to obtain the rendered reservoir grid model.

[0068] In this embodiment, in step S3, the determining the top and bottom sides to be rendered of the reservoir grid model according to the rendering ranges in each of the I, J, and K directions of the reservoir grid model includes:

[0069] Determine the valid columns according to the rendering ranges in each of the I, J, and K directions of the reservoir grid model, and record the numbers of the top grid cells and bottom grid cells of the valid columns;

[0070] Extract the top and bottom sides to be rendered of the reservoir grid model based on the top grid cells and bottom grid cells of the valid columns.

[0071] In this embodiment, determining the valid columns according to the rendering ranges in each of the I, J, and K directions of the reservoir grid model includes:

[0072] Determine the I values, J values, and K values of each grid cell in the reservoir grid model according to the rendering ranges in each of the I, J, and K directions of the reservoir grid model;

[0073] For each column, when the I values, J values, and K values of each grid cell in the current column are all 0, regard the current column as an invalid column;

[0074] Regard the columns in the reservoir grid model other than the invalid columns as valid columns.

[0075] In this embodiment, extracting the top and bottom sides to be rendered of the reservoir grid model based on the top grid cells and bottom grid cells of the valid columns includes:

[0076] Take the top sides of the top grid cells of all the valid columns as the top sides to be rendered of the reservoir grid model;

[0077] Take the bottom sides of the bottom grid cells of all the valid columns as the bottom sides to be rendered of the reservoir grid model.

[0078] In this embodiment, in step S4, extracting the front side and the rear side to be rendered in each valid column includes:

[0079] For each valid column, when the current valid column is the front side of the reservoir grid model, or when the current valid column is not the front side of the reservoir grid model and all the columns in front of it are not valid columns, take the front sides of all the grid cells in the current valid column as the valid front sides;

[0080] When the current effective column is not the front side of the reservoir grid model and the column in front of it is an effective column, if the top of the current effective column is higher than the adjacent column in front of it, the front sides of all grid cells where the top of the current effective column is higher than the adjacent column in front of it are taken as the effective front sides; if the top of the current effective column is lower than the adjacent column in front of it, the back sides of all grid cells in the adjacent column in front of the current effective column where the top is higher than the current effective column are taken as the effective back sides; if the bottom of the current effective column is lower than the adjacent column in front of it, the front sides of all grid cells where the bottom of the current effective column is lower than the adjacent column in front of it are taken as the effective front sides; if the bottom of the current effective column is higher than the adjacent column in front of it, the back sides of all grid cells in the adjacent column in front of the current effective column where the bottom is lower than the current effective column are taken as the effective back sides; if the top and bottom of the current effective column are at the same height as the adjacent column in front of it, the front sides of all grid cells of the current effective column are ineffective front sides, and the back sides of all grid cells in the adjacent column in front of the current effective column are ineffective back sides;

[0081] When the current effective column is the back side of the reservoir grid model, or when the current effective column is not the back side of the reservoir grid model and all columns behind it are not effective columns, the back sides of all grid cells in the current effective column are taken as the effective back sides;

[0082] The effective front sides and effective back sides of each effective column are respectively taken as the front side and back side to be rendered in each effective column.

[0083] In this embodiment, in step S4, the extraction of the left side and right side to be rendered in each effective column includes:

[0084] For each effective column, when the current effective column is the left side of the reservoir grid model, or when the current effective column is not the left side of the reservoir grid model and all columns on its left are not effective columns, the left sides of all grid cells in the current effective column are taken as the effective left sides;

[0085] When the current valid column is not the left side of the reservoir grid model and the column on its left is a valid column, if the top of the current valid column is higher than the column adjacent to it on the left, the left sides of all grid cells where the top of the current valid column is higher than the column adjacent to it on the left are taken as valid left sides; if the top of the current valid column is lower than the column adjacent to it on the left, the right sides of all grid cells in the column adjacent to the current valid column on the left where the top is higher than the current valid column are taken as valid right sides; if the bottom of the current valid column is lower than the column adjacent to it on the left, the left sides of all grid cells where the bottom of the current valid column is lower than the column adjacent to it on the left are taken as valid left sides; if the bottom of the current valid column is higher than the column adjacent to it on the left, the right sides of all grid cells in the column adjacent to the current valid column on the left where the bottom is lower than the current valid column are taken as valid right sides; if the top and bottom of the current valid column are at the same height as the column adjacent to it on the left, the left sides of all grid cells of the current valid column are invalid left sides, and the right sides of all grid cells in the column adjacent to the current valid column on the left are invalid right sides;

[0086] When the current valid column is the right side of the reservoir grid model, or when the current valid column is not the right side of the reservoir grid model and all columns on its right are not valid columns, the right sides of all grid cells in the current valid column are taken as valid right sides;

[0087] The valid left sides and valid right sides of each valid column are respectively taken as the left side and right side to be rendered in each valid column.

[0088] In this embodiment, in step S5, rendering the top side, bottom side to be rendered of the reservoir grid model and the front side, rear side, left side and right side to be rendered in each valid column to obtain the rendered reservoir grid model includes:

[0089] Adopting a left - hand coordinate system, calculating the normal vectors of the top side, bottom side to be rendered of the reservoir grid model and the front side, rear side, left side and right side to be rendered in each valid column;

[0090] Using a 3D visualization platform, rendering the reservoir grid model according to the normal vectors of the top side, bottom side to be rendered of the reservoir grid model and the front side, rear side, left side and right side to be rendered in each valid column to obtain the rendered reservoir grid model.

[0091] In this embodiment, the adopting a left - hand coordinate system, calculating the normal vectors of the top side, bottom side to be rendered of the reservoir grid model and the front side, rear side, left side and right side to be rendered in each valid column includes:

[0092] The reservoir grid model adopts the Z-axis coordinate from top to bottom, with the normal vector of the top surface being {0, 0, -1} as the standard, to determine the normal vectors of the top and bottom sides of the reservoir grid model to be rendered, as well as the front, rear, left and right sides to be rendered in each valid column, as parameters for three-dimensional visualization rendering.

[0093] The disclosed reservoir grid rendering method based on spatial visibility relationship creates an optimized data structure by managing the grid display lists of I, J, and K directions in space for massive reservoir grids, divides the reservoir grid into columns, performs directionally stored reservoir grids, and performs grid geometry consistency checks and grid visibility checks on the columns, thereby realizing reverse fault discrimination and upper and lower plate grid allocation of the reservoir grid, and obtaining an irregular boundary reservoir grid. After rendering the irregular boundary reservoir grid, the rendered reservoir grid model is displayed, which can eliminate most of the grid units inside the three-dimensional reservoir grid and leave only the surface units that need to be rendered, thereby greatly improving the rendering efficiency of the reservoir grid, thereby improving the user experience of the GeoEast software reservoir modeling system.

[0094] The following is an example of the decomposition result of actual three-dimensional seismic data in a certain work area to illustrate the reservoir grid rendering method based on spatial visibility relationship disclosed in the present invention. It can be seen that the method of the present invention has achieved the following results: Figure 5 The effect shown is that after removing most of the internal grid cells, the internal situation of the reservoir grid after rendering is as follows Figure 6 As shown, the reservoir grid rendering method based on spatial visibility relationship disclosed in the present invention includes:

[0095] The first step is to manage the display lists of the three directions I, J, and K. In each direction, extract each continuous arrangement to form a local display line segment: for example, 3, 4, 5, 8, 16, 17, 18 should be expressed as {3, 5}, {8, 8}, {16, 18}, that is, a vector structure with {minid, maxid} as the unit. The local line segment list structures of the three directions are combined into a spatial block list.

[0096] The second step is to determine the validity of the grid column. All grid cells in the Z (K) direction on a plane grid unit are called a column. If all grid cells on a column are invalid, then this column is invalid; as long as there is a valid cell, then this column is valid, and the top and bottom network unit numbers of this column are recorded. This is very common in oil reservoir grids with irregular boundaries. Among them, for invalid columns, all grid cells do not need to be rendered.

[0097] In the third step, based on the validity attribute of the grid columns, the top and bottom surfaces of the reservoir grid can be extracted. Ignoring all invalid grid columns, for all valid columns, for the top grid cells above them, take their top side surfaces; for the bottom grid cells below them, take their bottom side surfaces.

[0098] In the fourth step, extract the front and back side surfaces of the visible cells of the reservoir grid. For each grid column, perform visibility checks in the order of first calculating from the top cell and then from the bottom cell. First, if a column is already the front side surface of the reservoir grid, then the front side surfaces of all grid cells of this column are valid; second, if all the front columns of a column are invalid, then the front side surfaces of all grid cells of this column are valid; when the front column is valid, it is necessary to compare the top and bottom grid cells of the two columns. Taking the top grid cell as an example: if the top grid cell of this column is higher than the front column, then the front side surfaces of all grid cells of this column that are higher than the top grid cell of the front column are valid, otherwise, the back side surfaces of the front column are valid. If this column is already the back side surface of the reservoir grid, or all the columns behind it are invalid, then the back side surfaces of all cells of this column are valid.

[0099] In the fifth step, extract the left and right side surfaces of the visible cells of the reservoir grid. For each grid column, perform visibility checks in the order of first calculating from the top cell and then from the bottom cell. First, if a column is already the left side surface of the reservoir grid, then the left side surfaces of all grid cells of this column are valid; second, if all the left columns of a column are invalid, then the left side surfaces of all grid cells of this column are valid; when the left column is valid, it is necessary to compare the top and bottom grid cells of the two columns. Taking the top cell as an example: if the top of this column is higher than the left column, then the left side surfaces of all grid cells of this column that are higher than the top grid cell of the left column are valid, otherwise, the right side surfaces of the left column are valid. If this column is already the right side surface of the reservoir grid, or all the columns to its right are invalid, then the right side surfaces of all cells of this column are valid.

[0100] In the sixth step, since the Z coordinate of the reservoir grid increases downward, a left-handed coordinate system is adopted here to calculate the normal vectors of the side surfaces of the valid grid cells. Therefore, the normal vector of the top surface is {0, 0, -1}, and the normal vector of the bottom surface is {0, 0, 1}.

[0101] In the seventh step, use the OpenInventor 3D visualization platform to render the side surfaces of the reservoir grid skin.

[0102] The reservoir grid rendering method based on spatial visibility relationship of the present disclosure makes visibility judgments on the six sides of three-dimensional formation grid cells based on the spatial visibility relationship, so as to eliminate most of the grid cells inside the reservoir grid and only retain a few skin cells that need to be rendered.

[0103] The reservoir grid rendering method based on spatial visibility relationship of the present disclosure determines the validity of each vertical column according to the validity of the grid cells. Only the valid columns need to extract the top and bottom surfaces of the grid. For each column, it is necessary to extract its visible (unobstructed) sides according to its visibility relationship (whether geometrically consistent) with adjacent columns. It is a very convenient and efficient assistance tool, which can greatly improve the display efficiency of reservoir grids and lay a technical foundation for extracting the fault plane cells inside the model and then performing fault sealing analysis based on the model.

[0104] See Figure 7 , the embodiment of the present disclosure provides a reservoir grid rendering device based on spatial visibility relationship, including:

[0105] An acquisition module 11, configured to respectively acquire the rendering ranges in each of the I, J, and K directions of the target reservoir grid model, where the target reservoir grid model is represented by hexahedral grids in the I, J, and K directions;

[0106] A division module 12, configured to divide the reservoir grid model into multiple columns, where each column includes all grid cells with the same I value and J value;

[0107] A determination module 13, configured to determine the top and side surfaces and the bottom and side surfaces to be rendered of the reservoir grid model according to the rendering ranges in each of the I, J, and K directions of the reservoir grid model;

[0108] An extraction module 14, configured to extract the front side, rear side, left side, and right side to be rendered in each valid column;

[0109] A rendering module 15, configured to render the top and side surfaces and the bottom and side surfaces to be rendered of the reservoir grid model and the front side, rear side, left side, and right side to be rendered in each valid column, so as to obtain a rendered reservoir grid model.

[0110] The implementation processes of the functions and roles of each unit in the above device are specifically described in detail in the implementation processes of the corresponding steps in the above method, and will not be elaborated here.

[0111] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the descriptions of the method embodiments. The device embodiments described above are only illustrative. The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple grid units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the present invention. A person of ordinary skill in the art can understand and implement it without creative work.

[0112] In the above embodiments, any combination of the acquisition module 11, the division module 12, the determination module 13, the extraction module 14, and the rendering module 15 can be combined and implemented in one module, or any one of the modules can be split into multiple modules. Or, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. At least one of the acquisition module 11, the division module 12, the determination module 13, the extraction module 14, and the rendering module 15 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on chip, a system on substrate, a system on package, an application specific integrated circuit (ASIC), or can be implemented by any other reasonable way of integrating or packaging circuits, etc., in hardware or firmware, or implemented in any one of the three implementation manners of software, hardware, and firmware, or in any appropriate combination of several of them. Or, at least one of the acquisition module 11, the division module 12, the determination module 13, the extraction module 14, and the rendering module 15 can be at least partially implemented as a computer program module, and when the computer program module runs, it can execute the corresponding functions.

[0113] See Figure 8 , the electronic device provided by the embodiments of the present disclosure includes a processor 1110, a communication interface 1120, a memory 1130, and a communication bus 1140. Among them, the processor 1110, the communication interface 1120, and the memory 1130 communicate with each other through the communication bus 1140;

[0114] The memory 1130 is used to store a computer program;

[0115] When the processor 1110 executes the program stored in the memory 1130, it implements the following reservoir grid rendering method based on spatial visibility relationship:

[0116] Obtain the rendering ranges in each of the I, J, and K directions of the target reservoir grid model respectively, where the target reservoir grid model is represented by hexahedral grids in the I, J, and K directions;

[0117] Divide the reservoir grid model into multiple columns, where each column includes all grid cells with the same I value and J value;

[0118] Determine the top and bottom sides to be rendered of the reservoir grid model according to the rendering ranges in each of the I, J, and K directions of the reservoir grid model;

[0119] Extract the front side, back side, left side, and right side to be rendered in each valid column;

[0120] Render the top and bottom sides to be rendered of the reservoir grid model and the front side, back side, left side, and right side to be rendered in each valid column to obtain the rendered reservoir grid model.

[0121] The above communication bus 1140 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus 1140 can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, only a thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0122] The communication interface 1120 is used for communication between the above electronic device and other devices.

[0123] The memory 1130 can include a Random Access Memory (RAM), and can also include a non-volatile memory, such as at least one disk memory. Optionally, the memory 1130 can also be at least one storage device located far from the aforementioned processor 1110.

[0124] The above-mentioned processor 1110 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0125] An exemplary embodiment of the present disclosure also provides a computer-readable storage medium. A computer program is stored on the above-mentioned computer-readable storage medium, and when the computer program is executed by a processor, the method for rendering a reservoir grid based on spatial visibility relationships as described above is implemented.

[0126] The computer-readable storage medium may be included in the device / apparatus described in the above embodiments; it may also exist alone without being assembled into the device / apparatus. The above-mentioned computer-readable storage medium carries one or more programs, and when the one or more programs are executed, the method for rendering a reservoir grid based on spatial visibility relationships according to the embodiments of the present disclosure is implemented.

[0127] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, device, or apparatus.

[0128] It should be noted that, in this text, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the said element.

[0129] The above are only specific embodiments of the present disclosure, enabling those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments shown herein, but rather to the broadest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for rendering reservoir grid based on spatial visibility relationship, characterized in that, the method includes: Obtain the rendering range to be rendered in each of the I, J, and K directions of the target reservoir grid model respectively, wherein the target reservoir grid model is represented by hexahedron grids in the I, J, and K directions; Divide the reservoir grid model into multiple columns, where each column includes all grid cells with the same I value and J value; Determine the top and bottom sides to be rendered of the reservoir grid model according to the rendering range to be rendered in each of the I, J, and K directions of the reservoir grid model; Extract the front side, rear side, left side, and right side to be rendered in each effective column; Render the top and bottom sides to be rendered of the reservoir grid model and the front side, rear side, left side, and right side to be rendered in each effective column to obtain the rendered reservoir grid model.

2. The method according to claim 1, characterized in that, the determining the top and bottom sides to be rendered of the reservoir grid model according to the rendering range to be rendered in each of the I, J, and K directions of the reservoir grid model includes: Determine effective columns according to the rendering range to be rendered in each of the I, J, and K directions of the reservoir grid model, and record the numbers of the top grid cells and bottom grid cells of the effective columns; Extract the top and bottom sides to be rendered of the reservoir grid model according to the top grid cells and bottom grid cells of the effective columns.

3. The method according to claim 2, characterized in that, the determining effective columns according to the rendering range to be rendered in each of the I, J, and K directions of the reservoir grid model includes: Determine the I value, J value, and K value of each grid cell in the reservoir grid model according to the rendering range to be rendered in each of the I, J, and K directions of the reservoir grid model; For each column, when the I value, J value, and K value of each grid cell in the current column are all 0, regard the current column as an invalid column; Regard the columns other than the invalid columns in the reservoir grid model as effective columns.

4. The method according to claim 2, characterized in that, the extracting the top and bottom sides to be rendered of the reservoir grid model according to the top grid cells and bottom grid cells of the effective columns includes: Regard the top sides of the top grid cells of all effective columns as the top sides to be rendered of the reservoir grid model; Regard the bottom sides of the bottom grid cells of all effective columns as the bottom sides to be rendered of the reservoir grid model.

5. The method according to claim 1, characterized in that, the extracting the front side and rear side to be rendered in each effective column includes: For each effective column, when the current effective column is the front side of the reservoir grid model, or when the current effective column is not the front side of the reservoir grid model and all the columns in front of it are not effective columns, regard the front sides of all grid cells in the current effective column as effective front sides; When the current valid column is not the front side of the reservoir grid model and the column in front of it is a valid column, if the top of the current valid column is higher than the adjacent column in front of it, the front sides of all grid cells where the top of the current valid column is higher than the adjacent column in front of it are taken as valid front sides; if the top of the current valid column is lower than the adjacent column in front of it, the back sides of all grid cells in the adjacent column in front of the current valid column where the top is higher than the current valid column are taken as valid back sides; if the bottom of the current valid column is lower than the adjacent column in front of it, the front sides of all grid cells where the bottom of the current valid column is lower than the adjacent column in front of it are taken as valid front sides; if the bottom of the current valid column is higher than the adjacent column in front of it, the back sides of all grid cells in the adjacent column in front of the current valid column where the bottom is lower than the current valid column are taken as valid back sides; if the top and bottom of the current valid column are at the same height as the adjacent column in front of it, the front sides of all grid cells of the current valid column are invalid front sides, and the back sides of all grid cells in the adjacent column in front of the current valid column are invalid back sides; When the current valid column is the back side of the reservoir grid model, or when the current valid column is not the back side of the reservoir grid model and all columns behind it are not valid columns, the back sides of all grid cells in the current valid column are taken as valid back sides; The valid front side and valid back side of each valid column are respectively taken as the front side and back side to be rendered in each valid column.

6. The method according to claim 1, wherein, the extracting the left side and right side to be rendered in each valid column includes: For each valid column, when the current valid column is the left side of the reservoir grid model, or when the current valid column is not the left side of the reservoir grid model and all columns on its left are not valid columns, the left sides of all grid cells in the current valid column are taken as valid left sides; When the current valid column is not the left side of the reservoir grid model and the column on its left is a valid column, if the top of the current valid column is higher than the adjacent column on its left, the left sides of all grid cells where the top of the current valid column is higher than the adjacent column on its left are taken as valid left sides; if the top of the current valid column is lower than the adjacent column on its left, the right sides of all grid cells in the adjacent column on the left of the current valid column where the top is higher than the current valid column are taken as valid right sides; if the bottom of the current valid column is lower than the adjacent column on its left, the left sides of all grid cells where the bottom of the current valid column is lower than the adjacent column on its left are taken as valid left sides; if the bottom of the current valid column is higher than the adjacent column on its left, the right sides of all grid cells in the adjacent column on the left of the current valid column where the bottom is lower than the current valid column are taken as valid right sides; if the top and bottom of the current valid column are at the same height as the adjacent column on its left, the left sides of all grid cells of the current valid column are invalid left sides, and the right sides of all grid cells in the adjacent column on the left of the current valid column are invalid right sides; When the current valid column is on the right side of the reservoir grid model, or when the current valid column is not on the right side of the reservoir grid model and all columns on its right side are not valid columns, the right sides of all grid cells in the current valid column are used as valid right sides; The valid left side and valid right side of each valid column are respectively used as the left side and right side to be rendered in each valid column.

7. The method according to claim 1, wherein, rendering the top side and bottom side to be rendered of the reservoir grid model and the front side, back side, left side and right side to be rendered in each valid column to obtain a rendered reservoir grid model, including: Adopting a left-handed coordinate system to calculate the normal vectors of the top side and bottom side to be rendered of the reservoir grid model and the front side, back side, left side and right side to be rendered in each valid column; Using a 3D visualization platform to render the reservoir grid model according to the normal vectors of the top side and bottom side to be rendered of the reservoir grid model and the front side, back side, left side and right side to be rendered in each valid column to obtain a rendered reservoir grid model.

8. A reservoir grid rendering device based on spatial visibility relationship, wherein, including: An acquisition module for respectively acquiring the rendering ranges in each of the I, J, and K directions of the target reservoir grid model, where the target reservoir grid model is represented by hexahedral grids in the I, J, and K directions; A division module for dividing the reservoir grid model into multiple columns, where each column includes all grid cells with the same I value and J value; A determination module for determining the top side and bottom side to be rendered of the reservoir grid model according to the rendering ranges in each of the I, J, and K directions of the reservoir grid model; An extraction module for extracting the front side, back side, left side and right side to be rendered in each valid column; A rendering module for rendering the top side and bottom side to be rendered of the reservoir grid model and the front side, back side, left side and right side to be rendered in each valid column to obtain a rendered reservoir grid model.

9. An electronic device, wherein, including a processor, a communication interface, a memory and a communication bus, where the processor, the communication interface and the memory complete communication with each other through the communication bus; The memory is used for storing a computer program; The processor, when executing the program stored on the memory, implements the method for rendering a reservoir grid based on spatial visibility relationship according to any one of claims 1-7.

10. A computer-readable storage medium, on which a computer program is stored, wherein, the computer program, when executed by a processor, implements the method for rendering a reservoir grid based on spatial visibility relationship according to any one of claims 1-7.