A method for generating three-dimensional grids of natural river channels

By decomposing the natural river channel into columnar subdomains and using Gambit software for meshing, the problem of three-dimensional flow numerical simulation of natural river channels in the existing technology is solved, and efficient and accurate three-dimensional grid generation and calculation are achieved, adapting to complex boundaries. features, simplifying steps and improving calculation reliability.

CN114282331BActive Publication Date: 2024-09-24CHONGQING JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210034962.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-13
Publication Date
2024-09-24
Estimated Expiration
2042-01-13

AI Technical Summary

Technical Problem

It is difficult to realize the three-dimensional numerical simulation of water flow in natural rivers with existing technology. The two-dimensional meshing method cannot be directly applied to the numerical simulation of three-dimensional flow. Moreover, the existing three-dimensional mesh processing method has poor adaptability to complex boundary conditions, and the calculation is complex and costly.

Method used

The overall model of the natural river channel is decomposed into columnar sub-domains that are continuous and non-overlapping in the horizontal direction. After regularization, Gambit software is used for meshing, and each sub-domain is merged to generate a three-dimensional grid assembly, which avoids the need to modify the flow control equation. Coordinate transformation improves the adaptability and calculation efficiency of the grid.

Benefits of technology

It achieves efficient, accurate and stable three-dimensional numerical simulation of natural river flow, improves the quality of the grid and the accuracy of boundary characteristics, simplifies the steps and improves the reliability and automation of calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114282331B
    Figure CN114282331B
Patent Text Reader

Abstract

The present invention discloses a method for generating a three-dimensional grid of a natural river channel, characterized in that the overall model of the natural river channel is decomposed into columnar subdomains that are continuous and non-overlapping in the horizontal direction, and then each subdomain is regularized and then meshed using meshing software, and then the meshed subdomains are merged to form a three-dimensional grid assembly of the natural river channel. The present invention can better realize the three-dimensional spatial segmentation of the natural river channel, so that it can better directly complete the three-dimensional water flow numerical simulation of the natural river channel, and improve the accuracy, reliability and stability of the three-dimensional water flow numerical simulation of the natural river channel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of natural river channel computational fluid dynamics pre-processing, and in particular to a method for generating three-dimensional grids for wide, shallow and irregular natural river channels. Background Art

[0002] Three-dimensional numerical simulation of water flow in natural rivers is often required in engineering construction such as waterway regulation, river management, and hydropower development. Three-dimensional grid division of rivers is the most basic and important work in numerical simulation. However, due to the uneven bed surface, uneven width and shallowness, and curved shoreline of natural river channels, the overall physical shape of the river channel is extremely irregular. It is very difficult or even impossible to use software to automatically divide the three-dimensional grid, which greatly limits the application of three-dimensional numerical simulation of water flow in natural rivers.

[0003] CN201110372235.X discloses a complex river channel gridding method for river channel hydrological numerical simulation, firstly, various complex river channel areas with tributaries, river islands, etc. are freely divided into simple area sets, the regional control curve grid spacing is set according to the needs of river channel numerical simulation, a two-dimensional grid is generated, and the simple regional grids are merged to obtain the initial grid after the complex river channel is divided. In this way, for a specific area of ​​the river bank, the regional network point density can be flexibly increased according to the needs to realize the grid encryption division in the area. In addition, CN201810929678.6 discloses a two-dimensional structural grid division method for a branchless river channel based on terrain feature boundaries, including three steps: (1) obtaining basic data, (2) preliminary division of the two-dimensional structural grid of the target river section, and (3) lateral encryption of the preliminary division results. This method incorporates characteristic terrain boundaries such as river channel boundary lines, deep-sea lines, beach channel boundary lines and waterside lines into the two-dimensional structural grid division process of the river channel area, which enables the divided grid to better adapt to changes in the river channel boundary.

[0004] However, the above methods can only realize two-dimensional grid division of river channels and cannot be used for three-dimensional water flow numerical simulation calculation in rivers. At present, the grid processing methods for three-dimensional water flow numerical simulation in natural rivers are: (1) plane orthogonal grid line transformation combined with vertical dimensionless transformation. This method requires coordinate transformation of the control equation, which is very complex and has poor adaptability to natural rivers with complex boundary conditions; (2) structured rectangular grid. The grid nodes of this method cannot be accurately arranged on the complex boundaries of natural rivers. In order to increase the accuracy of the calculation results, the grid needs to be encrypted, so the number of grid units is very large and the calculation cost is high; (3) plane unstructured grid combined with vertical sigam coordinate transformation. This method can adapt to complex boundary conditions to a certain extent and is currently the most widely used. However, the form of the control equation after transformation is extremely complex, and the calculation results need to be converted, which increases the difficulty of calculation and may introduce new errors. In some cases, it is easy to diverge and the error is large in places with complex terrain changes. Summary of the invention

[0005] In view of the above-mentioned deficiencies of the prior art, the technical problem to be solved by the present invention is: how to provide a three-dimensional grid generation method for natural river channels that can better realize the three-dimensional spatial decomposition of the river channel, so that it can better directly realize the three-dimensional water flow numerical simulation of the natural river channel, without the need for coordinate transformation of the water flow control method, thereby improving the accuracy and stability of the three-dimensional water flow numerical simulation of the natural river channel.

[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0007] A method for generating a three-dimensional grid of a natural river channel is characterized in that the overall model of the natural river channel is decomposed into columnar sub-domains that are continuous and non-overlapping in the horizontal direction, and then each sub-domain is regularized and gridded using gridding software, and then the sub-domains after the gridding are merged to form a three-dimensional grid assembly of the natural river channel.

[0008] Based on the idea of ​​"discreteness", the present invention decomposes the natural river channel as a whole into columnar sub-domains that are continuous and non-overlapping in the horizontal direction, so that each sub-domain can be regularized with the least error cost, and then the regularized sub-domains can be easily automatically meshed using software, and finally the sub-domains are merged to form a three-dimensional mesh assembly of the natural river channel. The three-dimensional network meshing of complex natural river channels can be realized conveniently and quickly, and has the advantages of high efficiency, good quality of generated mesh, and high accuracy in characterizing the three-dimensional complex boundary characteristics of natural river channels.

[0009] Furthermore, regularizing each subdomain refers to converting the riverbed curved surface of the bottom surface of each subdomain into a plane.

[0010] In this way, the conversion into a regular body facilitates subsequent meshing.

[0011] Furthermore, the gridding software used is Gambit software.

[0012] Gambit software is an existing software that can help analysts and designers build and mesh computational fluid dynamics (CFD) models. It can directly realize the meshing of regular three-dimensional areas, with powerful functions and fast calculation.

[0013] Furthermore, the present invention specifically comprises the following steps:

[0014] a. Obtain four boundary lines of the river channel (including two bank lines and the line between the corresponding endpoints of the two bank lines) of the area where the three-dimensional water flow numerical simulation needs to be calculated, construct a horizontal plane surrounded by the four boundary lines, give the number of nodes of each boundary line, use a polygon that can be spliced ​​and extended along the horizontal plane, take two adjacent boundary nodes as one side of the polygon, perform two-dimensional grid division on the area between the four boundary lines, so that it is divided into several polygons, import the riverbed elevation, interpolate to obtain the terrain elevation of each node in each polygon unit (that is, the position of the polygon corner) corresponding to the riverbed position, and then obtain a riverbed bottom surface model composed of several polygon units;

[0015] b. Taking each polygonal unit in the riverbed bottom model as the lower bottom surface, assigning a certain same top elevation to each node of the polygonal unit to form an upper top surface, and obtaining a columnar three-dimensional subdomain, compiling the node coordinates and elevation of each subdomain into a data file one by one. Each subdomain is arranged in the manner of first the lower bottom surface and then the upper top surface, and the upper and lower nodes are arranged in reverse order;

[0016] c Import the node data files of each subdomain into Gambit software, use Gambit programming language to compile Journal files, automatically generate lines, surfaces and three-dimensional polyhedrons one by one, specify the number of subdivision nodes for each edge of each polyhedron, and automatically mesh the polyhedron. After all subdomain meshes are generated, use the face connect command to merge the coplanar surfaces, and finally generate a three-dimensional mesh combination of natural river channels.

[0017] In this way, the method can easily and quickly realize the three-dimensional grid division of natural river channels and generate a three-dimensional grid assembly of natural river channels to meet the needs of three-dimensional water flow numerical simulation of natural river channels, thereby improving the accuracy, reliability and stability of subsequent three-dimensional water flow numerical simulation. At the same time, the method utilizes the existing simple model three-dimensional division software to realize the three-dimensional division of complex space. The method itself has the advantages of simple steps, strong operability and high degree of automation.

[0018] Furthermore, the polygon in step a is a triangle or a quadrilateral, and the polyhedron in step c is a pentahedron or a hexahedron.

[0019] In this way, triangles or quadrilaterals are used, and polygonal nodes can be conveniently arranged on the boundary. They have good adaptability to complex plane boundaries, make modeling simpler, and facilitate splicing and extension along the horizontal plane, which facilitates the realization of two-dimensional mesh division.

[0020] Furthermore, in step a, the four boundary lines of the natural river channel in the area where the three-dimensional numerical value needs to be calculated are obtained based on the existing river channel topographic map to ensure the authenticity of the data.

[0021] Furthermore, in step a, when performing two-dimensional meshing, the side length of the polygon ranges from several centimeters to several meters. Specifically, the range can be as small as possible without affecting the computer processing efficiency. The smaller the value, the more conducive it is to improving the accuracy of subsequent three-dimensional water flow numerical simulation calculations in the river.

[0022] Furthermore, in step a, when the two-dimensional grid is divided, the range of the polygon side lengths at the key areas of concern in the river channel is set to be smaller, so that the polygon distribution density is higher, thereby achieving a plane grid encryption effect.

[0023] In this way, the calculation accuracy of the three-dimensional numerical simulation of the river channel in the area of ​​key concern can be improved, while the polygon side length of the area of ​​no concern can take a larger value, and the number of three-dimensional units is reduced overall to improve the calculation efficiency.

[0024] Furthermore, the key areas of concern in the river channel are locations involved in the construction of water conservancy facilities or river channel regulation in the river channel.

[0025] In this way, the calculation accuracy of three-dimensional numerical simulation of the river channel in the project-related area can be improved, making it beneficial to the construction of river channel engineering.

[0026] A further better option is that in step c, the nodes of the edge line in the vertical direction are arranged in a non-uniform distribution, so that the nodes are denser in the subsequent calculation of the associated height positions and sparser in the non-associated height positions.

[0027] In this way, vertical grid encryption is achieved, which can better improve the accuracy of subsequent corresponding application calculations compared to average distribution. For example, in the subsequent simulation calculation requirements involving the scouring of sediment at the bottom of the riverbed, sparse at the upper end and dense at the lower end can be used; in the simulation calculation requirements involving the impact of riverbed water conditions on navigation, dense at the upper end and sparse at the lower end can be used; in the simulation calculation requirements involving the impact of riverbed water conditions on fish in it, sparse at the upper and lower ends and dense in the middle can be used. In this way, the vertical grid encryption can be flexibly adjusted according to the specific needs of different subsequent applications. The reliability of subsequent application calculations is greatly improved. Moreover, this method allows the grid encryption to be adjusted as needed in both the horizontal plane and the vertical height direction. It greatly improves the adaptability of subsequent applications and improves the accuracy and reliability of subsequent simulation calculation applications.

[0028] Furthermore, in step b, the top elevation of each node of the polygonal unit is assigned according to the height of the highest water level of the river channel.

[0029] In this way, it is ensured that the three-dimensional numerical simulation calculation of the river channel under any water level condition is within the three-dimensional grid height range divided by this method, and it is ensured that the three-dimensional grid assembly of the natural river channel obtained by this method can be used for the three-dimensional numerical simulation calculation of the river channel under any condition.

[0030] Furthermore, step c specifically includes the following steps:

[0031] c1 Input the subdomain node coordinates and elevation compilation data file into Gambit software;

[0032] c2 defines the 6 or 8 nodes of the current subdomain to be numbered d1-d6 or d1-d8;

[0033] c3 generates 6 or 8 edges b1-b6 or b1-b8 between two nodes in the current subdomain;

[0034] c4 makes all 6 or 8 edges in the current subdomain form a pentahedron or hexahedron;

[0035] c5 specifies the number of grid nodes for each edge of the current subdomain (the number of nodes depends on the calculation accuracy, usually several or dozens of nodes, and the node layout can be evenly divided or unevenly divided);

[0036] c6 automatically meshes the current subdomain;

[0037] c7 determines whether all subdomains are completed; if not, selects the next adjacent subdomain and executes steps c2-c7 cyclically; if yes, executes step c8;

[0038] c8 Select all faces and use the face connect command to merge the coplanar faces;

[0039] c9 completes the three-dimensional mesh generation of the corresponding natural river channel.

[0040] This facilitates the automatic execution of the Gambit software.

[0041] In summary, the present invention can better realize the three-dimensional spatial decomposition of the river channel, so that it can better directly complete the three-dimensional water flow numerical simulation of the river channel without the need to change the coordinates of the water flow control equation, thereby improving the accuracy and stability of the three-dimensional water flow numerical simulation of the natural river channel. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a schematic diagram of two-dimensional grid division of the area between four boundary lines of a river channel where a three-dimensional numerical area needs to be calculated in the present invention.

[0043] Figure 2 Schematic diagram of a single pentahedral subdomain.

[0044] Figure 3 Schematic diagram of a single hexahedral subdomain.

[0045] Figure 4 Schematic diagram of the process of step c.

[0046] Figure 5Schematic diagram of the natural river channel three-dimensional grid assembly generated by the final segmentation. DETAILED DESCRIPTION

[0047] The present invention is further described in detail below in conjunction with specific implementation modes.

[0048] Specific implementation method: see Figure 1-5 A method for generating three-dimensional grids of natural river channels is characterized in that the overall model of the natural river channel is decomposed into columnar subdomains that are continuous and non-overlapping in the horizontal direction, and then each subdomain is gridded by using gridding software after being regularized, and then the subdomains are merged to form a three-dimensional grid assembly of the natural river channel.

[0049] Thus, the present invention is based on the idea of ​​"discreteness" and decomposes the natural river channel as a whole into columnar sub-domains that are continuous and non-overlapping in the horizontal direction, so that each sub-domain can be regularized at the least error cost, and then the regularized sub-domains can be easily automatically meshed using software, and finally the sub-domains are merged to form a three-dimensional mesh assembly of the natural river channel. Therefore, the three-dimensional network meshing of the complex natural river channel is conveniently and quickly realized, with the advantages of high efficiency, good quality of generated mesh, and high accuracy in characterizing the three-dimensional complex boundary characteristics of the natural river channel.

[0050] The regularizing of each subdomain refers to converting the riverbed curved surface of the bottom surface of each subdomain into a plane.

[0051] In this way, the conversion into a regular body facilitates subsequent meshing.

[0052] Among them, the gridding software used is Gambit software.

[0053] Gambit software is an existing software that can help analysts and designers build and mesh computational fluid dynamics (CFD) models. It can directly realize the meshing of regular three-dimensional areas, with powerful functions and fast calculation.

[0054] The present invention specifically comprises the following steps:

[0055] a Obtain the four boundary lines of the river channel (including two bank lines and the line between the corresponding endpoints of the two bank lines) for which the three-dimensional numerical area needs to be calculated, construct a horizontal plane surrounded by the four boundary lines, give the number of nodes of each boundary line, use a polygon that can be spliced ​​and extended along the horizontal plane, take two adjacent boundary nodes as one side of the polygon, and perform two-dimensional meshing on the area between the four boundary lines, see Figure 1 , so that it is divided into several polygons, the riverbed elevation is imported, and the terrain elevation corresponding to the riverbed position of each node (i.e. the position of the polygon corner) in each polygon unit is interpolated, and then the riverbed bottom surface model composed of several polygon units is obtained;

[0056] b. Taking each polygonal unit in the riverbed bottom model as the lower bottom surface, assigning a certain same top elevation to each node of the polygonal unit to form an upper top surface, and obtaining a columnar three-dimensional subdomain, compiling the node coordinates and elevation of each subdomain into a data file one by one. Each subdomain is arranged in the manner of first the lower bottom surface and then the upper top surface, and the upper and lower nodes are arranged in reverse order;

[0057] c Import the node data files of each subdomain into Gambit software, use Gambit programming language to compile Journal files, automatically generate lines, surfaces and three-dimensional polyhedrons one by one, specify the number of subdivision nodes for each edge of each polyhedron, and automatically mesh the polyhedron. After all subdomain meshes are generated, use the face connect command to merge the coplanar surfaces, and finally generate a three-dimensional mesh combination of natural river channels.

[0058] In this way, the method can conveniently and quickly realize the three-dimensional mesh partitioning of natural river channels, generate a three-dimensional mesh assembly of natural river channels, so as to meet the needs of three-dimensional water flow numerical simulation and calculation of natural river channels, and improve the accuracy, reliability and stability of subsequent three-dimensional water flow simulation calculation. At the same time, the method utilizes the existing simple model three-dimensional partitioning software to realize the three-dimensional partitioning of complex space. The method itself has the advantages of simple steps, strong operability and high degree of automation.

[0059] The polygon in step a is a triangle or a quadrilateral, and the polyhedron in step c is a pentahedron (such as Figure 2 ) or hexahedron (such as Figure 3 ).

[0060] In this way, triangles or quadrilaterals are used, and polygonal nodes can be conveniently arranged on the boundary, which has good adaptability to complex boundaries. At the same time, modeling is simpler, and it is convenient to realize splicing and extension along the horizontal plane, and to realize two-dimensional mesh division.

[0061] In step a, the four boundary lines of the river channel where the three-dimensional numerical area needs to be calculated are obtained based on the existing river channel map to ensure the authenticity of the data.

[0062] Among them, in step a, when performing two-dimensional mesh generation, the side length of the polygon ranges from several centimeters to several meters. Specifically, the range can be as small as possible without affecting the computer processing efficiency. The smaller the value, the more conducive it is to improving the accuracy of subsequent three-dimensional numerical simulation calculations of the river channel.

[0063] Among them, in step a, when the two-dimensional grid is divided, the range of polygon side lengths of the key areas of concern in the river channel is taken to be smaller, so that the polygon distribution density is larger and the grid is encrypted.

[0064] In this way, the accuracy of three-dimensional numerical simulation of river channels in the areas of key concern can be improved. The polygons in the areas of no concern can take larger values, which can reduce the total number of grid cells and improve the calculation efficiency.

[0065] Among them, the key areas of concern in the river channel are the areas involved in the construction of water conservancy facilities or river channel regulation in the river channel.

[0066] In this way, the calculation accuracy of three-dimensional numerical simulation of the river channel in the project-related area can be improved, making it beneficial to the construction of river channel engineering.

[0067] In step c, the nodes of the edge line are arranged in a non-uniform distribution in the vertical direction, and are denser in the subsequent calculation of the associated height position and sparser in the non-associated height position.

[0068] In this way, vertical grid encryption is achieved, which can better improve the accuracy of subsequent corresponding application calculations compared to average distribution. For example, in the subsequent simulation calculation requirements involving the scouring of sediment at the bottom of the riverbed, sparse at the upper end and dense at the lower end can be used; in the simulation calculation requirements involving the impact of riverbed water conditions on navigation, dense at the upper end and sparse at the lower end can be used; in the simulation calculation requirements involving the impact of riverbed water conditions on fish in it, sparse at the upper and lower ends and dense in the middle can be used. In this way, the vertical grid encryption can be flexibly adjusted according to the specific needs of different subsequent applications. The reliability of subsequent application calculations is greatly improved. Moreover, this method allows the grid encryption to be adjusted as needed in both the horizontal plane and the vertical height direction. It greatly improves the adaptability of subsequent applications and improves the accuracy and reliability of subsequent simulation calculation applications.

[0069] Among them, in step b, the top elevation of each node of the polygonal unit is assigned according to the height of the highest water level of the river.

[0070] In this way, it is ensured that the three-dimensional numerical simulation calculation of the river channel under any water level condition is within the three-dimensional grid height range divided by this method, and it is ensured that the three-dimensional grid assembly of the natural river channel obtained by this method can be used for the three-dimensional numerical simulation calculation of the river channel under any condition.

[0071] See also Figure 4-5 , step c specifically includes the following steps:

[0072] c1 Input the subdomain node coordinates and elevation compilation data file into Gambit software;

[0073] c2 defines the 6 or 8 nodes of the current subdomain to be numbered d1-d6 or d1-d8;

[0074] c3 generates 6 or 8 edges b1-b6 or b1-b8 between two nodes in the current subdomain;

[0075] c4 makes all 6 or 8 edges in the current subdomain form a pentahedron or hexahedron;

[0076] c5 specifies the number of grid nodes for each edge of the current subdomain (the number of nodes depends on the calculation accuracy, usually several or dozens of nodes, and the node layout can be evenly divided or unevenly divided);

[0077] c6 automatically meshes the current subdomain;

[0078] c7 determines whether all subdomains are completed; if not, selects the next adjacent subdomain and executes steps c2-c7 cyclically; if yes, executes step c8;

[0079] c8 Select all faces and use the face connect command to merge the coplanar faces;

[0080] c9 completes the three-dimensional mesh division of the corresponding natural river channel and obtains the three-dimensional mesh combination of the natural river channel, such as Figure 5 .

[0081] This facilitates the automatic execution of the Gambit software.

Claims

1. A method for generating a three-dimensional grid of a natural river, characterized in that: The whole model of the natural river channel is decomposed into columnar sub-domains which are continuous and non-overlapping in the horizontal direction, and then each sub-domain is meshed by using meshing software after being regularized, and then the meshed sub-domains are merged to form a three-dimensional mesh assembly of the natural river channel; The said regularization of each subdomain refers to converting the riverbed curved surface of the bottom surface of each subdomain into a plane; the meshing software used is Gambit software; The method specifically includes the following steps: a. obtaining four boundary lines of a natural river channel in an area where three-dimensional water flow values ​​need to be calculated, constructing a horizontal plane surrounded by the four boundary lines, giving the number of nodes of each boundary line, using a polygon that can be spliced ​​and extended along the horizontal plane, taking two adjacent boundary nodes as one side of the polygon, performing two-dimensional grid division on the area between the four boundary lines so as to divide it into a number of polygons, importing the riverbed elevation, interpolating to obtain the terrain elevation of each node in each polygon unit corresponding to the riverbed position, and then obtaining a riverbed bottom surface model composed of a number of polygon units; b. Taking each polygonal unit in the riverbed bottom model as the lower bottom surface, assigning a certain same top elevation to each node of the polygonal unit to form an upper top surface, and obtaining a columnar three-dimensional subdomain, compiling the node coordinates and elevation of each subdomain into a data file one by one. Each subdomain is arranged in the manner of first the lower bottom surface and then the upper top surface, and the upper and lower nodes are arranged in reverse order; c Import the node data files of each subdomain into Gambit software, use Gambit programming language to compile Journal files, automatically generate lines, surfaces and three-dimensional polyhedrons one by one, specify the number of subdivision nodes for each edge of each polyhedron, and automatically mesh the polyhedron. After all subdomain meshes are generated, use the face connect command to merge the coplanar surfaces, and finally generate a three-dimensional mesh combination of natural river channels.

2. The method for generating a three-dimensional grid of a natural river channel according to claim 1, characterized in that: The polygon in step a is a triangle or a quadrilateral, and the polyhedron in step c is a pentahedron or a hexahedron.

3. The method for generating a three-dimensional grid of a natural river channel according to claim 1, characterized in that: In step a, when performing two-dimensional mesh generation, the side lengths of the polygons range from several centimeters to several meters.

4. The method for generating a three-dimensional grid of a natural river channel according to claim 1, characterized in that: In step a, when the two-dimensional grid is divided, the range of the polygon side length of the key concerned area in the river channel is set to be smaller, so that the polygon distribution density is higher; The key areas of concern within the river are the areas involved in the construction of water conservancy facilities or river regulation within the river.

5. The method for generating a three-dimensional grid of a natural river channel according to claim 1, characterized in that: In step c, the nodes of the edge line are arranged in a non-uniform distribution in the vertical direction, and are denser in the subsequent calculation of the associated height position and sparser in the non-associated height position.

6. The method for generating a three-dimensional grid of a natural river channel according to claim 1, characterized in that: In step b, the top elevation of each node of the polygonal unit is assigned according to the height of the highest water level of the river.

7. The method for generating a three-dimensional grid of a natural river channel according to claim 1, characterized in that: In step c, the following steps are specifically included: c1 Input the subdomain node coordinates and elevation compilation data file into Gambit software; c2 defines the 6 or 8 nodes of the current subdomain to be numbered d1-d6 or d1-d8; c3 generates 6 or 8 edges b1-b6 or b1-b8 between two nodes in the current subdomain; c4 makes all 6 or 8 edges in the current subdomain form a pentahedron or hexahedron; c5 specifies the number of grid nodes for each edge of the current subdomain; c6 automatically meshes the current subdomain; c7 determines whether all subdomains are completed; if not, selects the next adjacent subdomain and executes steps c2-c7 cyclically; if yes, executes step c8; c8 Select all faces and use the face connect command to merge the coplanar faces; c9 completes the three-dimensional mesh generation of the corresponding natural river channel.