A method for constructing flood inundation scenes in real time based on river and lake cross-section data
By combining the one-dimensional hydrodynamic model and the spatial interpolation technology of the two-dimensional unstructured grid in the flood evolution of the basin, a large-scale flood inundation scenario was constructed, which solved the problems of long calculation time and insufficient resolution in the existing technology, and achieved Fast and accurate construction and presentation of flooding scenarios.
Patent Information
- Application Number
- CN202410841034.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-27
AI Technical Summary
It is difficult for the existing technology to combine high-resolution flood inundation scene construction and real-time simulation in the evolution of river basin floods. Especially in large-scale river and lake areas, the calculation of the two-dimensional hydrodynamic model is time-consuming and difficult to meet timeliness requirements, while the one-dimensional model It cannot provide sufficient resolution detail data.
A one-dimensional hydrodynamic model is used to calculate river and lake section data, and the data is mapped to a two-dimensional unstructured grid through spatial interpolation to construct a flood submergence scenario. The high-resolution two-dimensional unstructured grid is used for terrain interpolation and topological relationships. Establish, combine micro area construction and node optimization to generate visual primitives.
It realizes the rapid construction of accurate flood inundation scenes in a large area of the basin, reduces the calculation time, improves the calculation efficiency and scene display speed, can handle complex terrain and irregular grid cell distribution, and has high versatility and reliability.
Smart Images

Figure CN118395904B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of watershed digital twin technology, and specifically is a method for constructing flood inundation scenarios in real time based on river and lake cross-section data. Background Art
[0002] Floods evolve from top to bottom along the main rivers and lakes in the basin, and their journey is often hundreds to thousands of kilometers, taking several days to more than ten days. The rivers and lakes through which floods flow have the characteristics of large area and complex river flow (referring to the existence of branches, islands, shoals, etc. in rivers and lakes). The main work of flood control in the basin is to simulate the evolution of floods in the basin, construct flood inundation scenarios, analyze flood indicators and situations, and calculate inundation losses. Among them, the construction of flood inundation scenarios is the basis for flood situation analysis and inundation loss calculation.
[0003] On the one hand, the use of high-resolution computational grid two-dimensional hydrodynamic models can generally simulate the plane physical field of flood evolution under complex boundary and river conditions, providing data with sufficient resolution for the construction of fine flood inundation scenes. However, if a high-resolution grid two-dimensional hydrodynamic model is directly used to carry out large-scale river and lake flood evolution calculations, due to the huge number of units and the huge calculation time, the model is difficult to meet the timeliness requirements of real-time flood simulation; at the same time, the number of graphics required to render when constructing flood inundation scenes is huge, which brings difficulties to the dynamic display and analysis of flood scenes. On the other hand, although the one-dimensional hydrodynamic model is used to carry out large-scale river and lake flood evolution calculations in a short time, it can only calculate the macroscopic characteristics of the river / lake section (it is difficult to provide detailed data such as the plane distribution of various physical quantities that meet the resolution required for scene construction). Therefore, one-dimensional and two-dimensional hydrodynamic models each have the problem of difficulty in balancing real-time calculation and scene construction.
[0004] The general idea to solve the above problems is: first use a one-dimensional model to carry out flood evolution calculation to obtain flood information data (water level, flow, etc. and their changes over time) of river and lake sections, and then map these cross-section data (mainly using water level) to a two-dimensional grid through spatial interpolation to obtain the plane information data of flood inundation (inundation range, water depth distribution, etc.), and then construct the flood inundation scene. In this series of work, spatial interpolation of data is a routine operation, and the construction of flood inundation scenes is the core. The work requirements are: the constructed flood inundation scene and its changes over time must be able to accurately reflect the real flood evolution process, and the algorithm efficiency must be high (meet real-time construction). In addition, when describing and simulating real river and lake topography with irregular boundaries and complex river flow, the two-dimensional hydrodynamic model generally uses a two-dimensional unstructured grid with strong adaptability. The characteristics of this type of computational grid are that the encoding of grid elements is irregular; at the same time, in the real flood evolution process, the distribution of water units (wet units) in the computational grid on the plane is irregular. These situations add difficulties to the construction of flood inundation scenes. Therefore, it is of great scientific and practical significance to study and find a method to construct flood inundation scenes in real time based on river and lake cross-section data. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a method for real-time construction of flood inundation scenes based on river and lake section data, which solves the problems of insufficient accuracy, insufficient efficiency, and lack of versatility of similar methods in the current field of water conservancy information technology (watershed digital twin).
[0006] To achieve the above objectives, this application provides the following technical solutions:
[0007] The present application embodiment provides a method for constructing a flood inundation scene in real time based on river and lake cross-section data, comprising the following steps:
[0008] Step 1: Use a set of cross sections to divide the simulated river and lake target area, and establish a one-dimensional hydrodynamic model of the target area based on this. At the same time, the plane area between two adjacent sections is divided into a sub-area, thereby dividing the target area into several sub-areas;
[0009] Step 2: Use a high-resolution two-dimensional unstructured grid to divide the target area into quadrilateral units that do not overlap on the plane, interpolate the measured terrain onto the nodes of the two-dimensional unstructured grid to construct the plane terrain distribution, and establish the topological relationship between various elements of the two-dimensional unstructured grid;
[0010] Step 3: Establish the corresponding relationship between various elements and sub-regions of the two-dimensional unstructured grid, and associate the units and sub-regions of the two-dimensional unstructured grid;
[0011] Step 4: Call the one-dimensional hydrodynamic model to carry out flood evolution calculation to obtain flood information data of river and lake sections, and map the section data to a two-dimensional unstructured grid at each moment of the flood evolution process;
[0012] Step 5: Based on the water depth data at the center of the unstructured grid cell, search for water edges in each sub-area and obtain a set of water edges;
[0013] Step 6: construct a micro-facet based on the set of water edges, where the micro-facet is a set of water edges selected from the set of water edges of the sub-region;
[0014] Step 7: compress and optimize the nodes on the boundary of the micro-facet water area obtained in step 6;
[0015] Step 8: Convert the compressed and optimized microfacet data into the primitive format data specified by the visualization engine and display it on the computer screen.
[0016] In step 1, the elements of the sub-region are: the numbers of the two sections that constitute the sub-region, and the plane coordinates of the endpoints of the two sections. All sub-regions in the target area constitute a set of sub-regions, and the symbols DCS0, DCS1, ..., DCSn are used to identify each sub-region in turn.
[0017] In step 1, the one-dimensional hydrodynamic model refers to a hydraulic calculation program based on the river section and its spacing, open boundary conditions, initial conditions of the calculation area, etc., including the functions of discretization and solution of one-dimensional water flow control equations, result output, etc. The one-dimensional hydrodynamic model uses the one-dimensional Saint-Venant equation as the control equation to describe the water flow movement, and uses the finite difference method and the finite volume method to discretize the control equation. The momentum equation is discretized under the framework of operator splitting technology. Specifically: the water level gradient term in the momentum equation is discretized using the θ semi-implicit method; the convection term in the momentum equation is solved using the Euler-Lagrange method; the continuity equation is discretized using the finite volume method; the momentum equation and the continuity equation are combined and a tridiagonal algebraic equation system is constructed to solve the velocity-pressure coupling to obtain the water level at the center of each unit and the flow rate at the interface.
[0018] In step 2, the two-dimensional unstructured grid is produced by a self-developed computer program or commercial software. When an unstructured grid is used, the horizontal area is covered by a series of non-overlapping convex polygons (eg, quadrilaterals). The topological relationship of the two-dimensional unstructured grid refers to the connection relationship between the units, nodes and edges in the grid described by variables, specifically including: ①i34(i) is the number of nodes / edges of unit i; nm(i,l) is the global number of the lth node of unit i, l = 1,2,…, i34(i); j(i,l) is the global number of the lth edge of unit i, l = 1, 2,…, i34(i); ic(i,l) is the global number of the lth neighbor unit of unit i, l = 1, 2,…, i34(i), when the unit corresponding to the local index l does not exist, -1 is used to indicate it; ②i(j,l) is the global number of the two units sharing the jth edge, l = 1, 2, it is stipulated that i(j,1) stores the unit with the smaller global number, when one side of the edge is outside the calculation area, -1 is used to indicate it; ip(j,l) is the global number of the nodes at the two endpoints of the jth edge, l = 1, 2; ③ine(k,l), the global number of units around node k, l = 1, 2,…, nne(k), nne(k) is the number of units around node k; inp(k,l), the global number of nodes around node k, l = 1, 2,…, nnp(k), nnp(k) is the number of nodes around node k.
[0019] In step 3, the specific method for establishing the correspondence between the two-dimensional unstructured grid cells and the sub-regions is as follows: for a given sub-region, a traversal search of the unstructured grid is carried out, and the cells whose center coordinates are within the sub-region are added to the cell set of the sub-region. At the same time, an attribute variable is added to the cell to identify the sub-region to which the cell belongs, and searches are carried out for the sub-regions DCS0, DCS1, ..., DCSn in sequence, so that the correspondence between the two-dimensional unstructured grid cells and the sub-regions can be established.
[0020] In step 4, calling a one-dimensional hydrodynamic model to carry out flood evolution calculation to obtain flood information data of river and lake sections, and mapping the section data to a two-dimensional unstructured grid at each moment of the flood evolution process includes the following steps:
[0021] Step 41: Call the one-dimensional hydrodynamic model of the target area to calculate the flood evolution process and obtain flood information data such as flow and water level of the river and lake sections;
[0022] Step 42: interpolating the cross-section flood information data to the two-dimensional unstructured grid unit based on the corresponding relationship between the river and lake cross-section flood information data, the sub-region, the two-dimensional unstructured grid unit and the sub-region;
[0023] Step 43: Use the topography and water level at the center of the grid cell to calculate the water depth, determine the dry and wet state of the grid cell and give it a label, providing basic supporting data for constructing flood inundation scenarios.
[0024] In step 5, based on the water depth data of the center of the unstructured grid unit, searching for water edges in each sub-area and obtaining a set of water edges includes the following steps:
[0025] A grid edge that meets one of the following two conditions is defined as a water edge. For the first type of water edge, the cells on both sides of the grid edge are wet, and the two cells belong to two different sub-regions respectively. For the second type of water edge, the cells on one side of the grid edge are wet and the cells on the other side are dry or non-existent, and the cells on both sides are in the same sub-region or in different sub-regions. There is one and only one wet cell on both sides of the water edge in a single sub-region. According to the definition of the water edge, the edges of all wet cells in the target region are traversed to obtain the water edge set of the calculation grid; for a certain sub-region, the edges of all wet cells in it are traversed to obtain the water edge set of the sub-region.
[0026] In step 6, a microfacet is constructed based on the set of water area edges, where the microfacet is a set of water area edges selected from the set of water area edges of the sub-area, and includes the following steps:
[0027] Step 61: Set the attribute variables of all water edges in the sub-region to 0, and create a new micro-facet. The number of water edges it has at the initial moment is 0, that is, the water edge subset of the micro-facet is empty;
[0028] Step 62: traverse the water edge set in the current sub-region in ascending order of number, and add the first unused water edge found to the current micro-facet;
[0029] Step 63: For the first water area edge added to the micro-facet domain, take out its two nodes, mark them as 0# and 1# points respectively, and define 0# point as the first node of the water area boundary of the current micro-facet domain; at the same time, define 1# point as the pulling node, which is the basis for searching the next water area edge of the micro-facet domain;
[0030] Step 64: Based on the topological relationship of the unstructured grid, first find all water edges around the pulling node, and then select them. Specifically, according to the total number N of water edges around the pulling node, when N=1, the only water edge is directly identified as the next water edge of the micro-facet domain. When N>1, further screening is required. The conditions that a water edge around the pulling node must meet to belong to the current micro-facet domain are: the wet cell corresponding to the water edge and the wet cell corresponding to the last water edge added to the micro-facet domain are the same or adjacent cells;
[0031] Step 65: For the water edge newly added to the microfacet domain, use its second node as the pulling node, and perform the operation of step 64 again to add the next water edge. Repeat this process and continuously search for new water edges. When the number of the newly added node of the new water edge is the same as the number of the 0# point of the current microfacet domain, the water boundary is closed, which indicates that the construction of the water edge subset of the microfacet domain is completed. The basic elements of the water edge are two nodes. The closed water boundary surrounded by the water edge subset or the node sequence corresponding to it is used to describe the microfacet domain.
[0032] Step 66: Execute steps 62 to 65 to create and search for the next micro-facet in the current sub-region until the number of unused water edges remaining in the sub-region is less than a specified lower limit;
[0033] Step 67: Execute steps 61 to 66 to create and search for microfacets in other sub-areas.
[0034] In step 7, the compression optimization of nodes on the boundary of the micro-facet water area includes the following steps:
[0035] Step 71: Classify and identify the grid nodes on the water boundary of the micro-facet domain. The first type of water boundary node features: nodes located on the common water boundary of two adjacent micro-facet domains in two adjacent sub-regions. The first type of water boundary nodes will not affect the constructed water distribution and are all eliminated. The second type of water boundary node features: nodes on the water boundary in a single sub-region. The second type of water boundary nodes depicts the plane morphology of the water area and is partially optimized.
[0036] Step 72: When the water area boundary is smooth, the critical angle method is used to delete the second type of water area boundary nodes.
[0037] The specific process of using the critical angle method to delete the boundary nodes of the second type of water area is as follows:
[0038] Step 721: On a water area boundary of a microfacet domain that contains only second-type nodes, two adjacent water area edges are sequentially taken from one end thereof, and their included angle α is calculated;
[0039] Step 722: according to the specified digital earth scene scaling ratio, estimate the number of micro-facets required for rendering, and then determine a critical angle α0;
[0040] Step 723: Determine the relative size of α and α0, and optimize the water area boundary accordingly. When the angle α>α0, retain the three nodes involved in the two water areas. When α≤α0, it means that the water area boundary is smooth. Delete the common nodes of the two water areas from the water area boundary of the micro-facet domain. After compressing the nodes of the original water area boundary, an approximate water area boundary can be obtained, and the water area surrounded by it is the approximate micro-facet domain.
[0041] Compared with the prior art, the present invention has the following beneficial effects:
[0042] The method provided by the present invention has the following four characteristics. First, the flood inundation scene constructed by the method can accurately reflect the scene and process of flood evolution. Second, it has the ability to handle complex situations such as unstructured grid unit encoding and irregular distribution of wet units on the plane, and is universal. Third, the method has high computational efficiency and can meet the needs of real-time construction of flood inundation scenes. Tests show that the time consumption can be reduced to seconds when the method of the present invention is applied to constructing large-scale flood inundation scenes in real watersheds. Fourth, it can avoid directly using unstructured grid units to construct flood inundation scenes, solving the problem of too large a number of graphics elements included in constructing large-scale flood inundation scenes in watersheds.
[0043] Therefore, the present invention provides a method for constructing flood inundation scenes in real time based on river and lake cross-section data. Compared with similar methods in the past, the method of the present invention has the advantages of high reliability, strong versatility, high computational efficiency, and fast visualization scene display speed. It is particularly noteworthy that the method of the present invention makes full use of the topological relationship of unstructured grid elements and cleverly designs the construction method and process of flood inundation micro-facets (avoiding repeated traversal searches), which makes the method highly efficient and uncomplicated. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a schematic diagram of the method flow for implementing the present invention.
[0045] Figure 2 It is a schematic diagram of implementing the sub-regions of the present invention and establishing the corresponding relationship between the sub-regions and the two-dimensional unstructured grid elements.
[0046] Figure 3 It is a schematic diagram of the process of searching for the boundary of the micro-facet water area according to the present invention.
[0047] Figure 4 It is a schematic diagram of node compression and optimization on the boundary of the micro-facet water area according to the present invention.
[0048] Figure 5 It is a schematic diagram showing the results of flooding scenes at different moments during the flood process of the present invention. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] As attached Figure 1 As shown, a method for constructing a flood inundation scene in real time based on river and lake cross-section data includes the following steps:
[0051] Step 1: Use a set of cross-sections to divide the simulated river and lake target area, and establish a one-dimensional hydrodynamic model of the target area based on this; at the same time, divide the plane area between two adjacent sections into a sub-area, thereby dividing the target area into several sub-areas.
[0052] Step 2: Use a high-resolution two-dimensional unstructured grid to divide the target area into quadrilateral units that do not overlap on the plane, interpolate the measured terrain onto the nodes of the two-dimensional unstructured grid to construct the plane terrain distribution, and establish the topological relationship between various elements (nodes, units, edges) of the two-dimensional unstructured grid.
[0053] Step 3: Establish the corresponding relationship between various elements and sub-regions of the two-dimensional unstructured grid, mainly to associate the units and sub-regions of the two-dimensional unstructured grid.
[0054] Step 4: Call the one-dimensional hydrodynamic model to carry out flood evolution calculations to obtain flood information data of river and lake sections, and map the section data to a two-dimensional unstructured grid at each moment of the flood evolution process.
[0055] Step 5: Based on the water depth data at the center of the unstructured grid unit, search for water edges (grid edges that can be used to construct micro-facets) in each sub-region and obtain a set of water edges.
[0056] Step 6: construct a micro-facet based on the set of water edges. The micro-facet is essentially a set (subset) of water edges selected from the set of water edges of the sub-region.
[0057] Step 7: Compress and optimize the nodes on the boundary of the micro-facet water area obtained in step 6.
[0058] Step 8: Convert the compressed and optimized microfacet data into the primitive format data specified by the visualization engine and display it on the computer screen.
[0059] Figure 2 It is a schematic diagram of implementing the sub-regions of the present invention and establishing the corresponding relationship between the sub-regions and the two-dimensional unstructured grid elements. Figure 2 In the above method, the target area between two adjacent river and lake sections is defined as a sub-area, thereby dividing the entire target area into several sub-areas. The sub-areas can be identified as DCS0, DCS1, ..., DCSn in sequence, where n is a positive integer.
[0060] After the sub-region set is established, the number of the sub-region to which the unit belongs is searched based on the center coordinates of the two-dimensional unstructured grid unit. The positive and negative mapping relationship between the sub-region and the grid unit can be defined as follows: ① For each grid unit, store the number of the sub-region to which it belongs; ② For each sub-region, store the number of grid units it has and the list of unit numbers. This positive and negative mapping relationship is fixed and can greatly facilitate the mapping of cross-section data to two-dimensional grids.
[0061] Figure 3 It is a schematic diagram of the process of searching for the boundary of the micro-facet water area according to the present invention. Figure 3 ① After removing S1 which has been added to the microfacet domain, there is only one water edge (i.e., S2) around N2, so S2 is directly identified as the next water edge of the microfacet domain and added to the microfacet domain, and the traction node is pushed forward to the newly added node N3 of S2. ② After removing S2, there are still three water edges (S3, S4, and S5) around N3. Among them, the wet cell corresponding to S5 is adjacent to the wet cell corresponding to S2, which meets the selection condition, while S3 and S4 do not meet the condition. Therefore, S5 is identified as the next water edge of the microfacet domain and added to the microfacet domain, and the traction node is pushed forward to N4. ③ When the traction node is pushed to N6, after removing S7, there are still three water edges (S8, S9, and S10) around N6. Among them, the wet cell corresponding to S10 is the same as the wet cell corresponding to S7, which meets the selection condition, while S8 and S9 do not meet the condition. Therefore, S10 is identified as the next water edge of the current microfacet and added to the microfacet, and the pulling node is advanced to N7. This process is repeated until the pulling node number is the same as the 0# point, and the microfacet construction is completed.
[0062] Figure 4 It is a schematic diagram of node compression and optimization on the boundary of the micro-facet water area according to the present invention. Figure 4 In the paper, the micro-facet water boundary nodes are divided into two categories: ① nodes located on the common water boundary of two adjacent micro-facets in two adjacent sub-areas ( Figure 4 (a) solid points in the figure) correspond to the first type of water area edge; ② nodes on the water area boundary in a single sub-region ( Figure 4 The hollow points in (a) correspond to the second type of water boundary. The first type of water boundary nodes will not affect the distribution of the constructed water area and can be eliminated. The second type of water boundary nodes depict the plane shape of the water area. When the water boundary is relatively smooth, the critical angle (α0) method can be used to appropriately delete the second type of water boundary nodes. The specific process is as follows.
[0063] On a water boundary of a microfacet domain that only contains the second type of nodes, two adjacent water edges are taken out from one end of it in turn, and their angle α is calculated. When the angle α>α0, the three nodes involved in the two water edges are retained. When α≤α0, it means that the water boundary is relatively smooth, and the common nodes of the two water edges can be deleted from the water boundary of the microfacet domain. By specifying different α0, this method can control the reconstruction fineness of the water boundary of the microfacet domain. Therefore, the node compression method of the water boundary of the microfacet domain can be used for the hierarchical display of flood inundation scenes, and its steps are as follows. First, according to the specified digital earth scene scaling ratio, the number of microfacet domains required to be rendered is estimated, and then a more appropriate α0 is determined; then, an approximate microfacet domain of the corresponding resolution is constructed according to the selected α0.
[0064] Figure 5 It is a schematic diagram showing the results of flooding scenes at different moments during the flood process of the present invention. Figure 5 In the visualization tool used, Cesium (based on WebGL) is used. The method used to dynamically play the evolution of river and lake floods is as follows: in the background of Cesium 3D map, a graphic element is created for each flooding scene at each moment to form a time series. The dynamic evolution of floods can be obtained by displaying this time series scene in sequence as the time step advances.
[0065] The above embodiments are merely examples of the technical solutions of the present invention. The inversion model construction method involved in the present invention is not limited to the contents described in the above embodiments, but is subject to the scope defined in the claims. Any modification, supplement or equivalent replacement made by a person skilled in the art of the present invention on the basis of the embodiment is within the scope of protection claimed by the present invention.
Claims
1. A method for constructing a flood inundation scene in real time based on river and lake cross-section data, characterized in that: The steps include: Step 1: Use a set of cross sections to divide the simulated river and lake target area, and establish a one-dimensional hydrodynamic model of the target area based on this. At the same time, the plane area between two adjacent sections is divided into a sub-area, thereby dividing the target area into several sub-areas; Step 2: Use a high-resolution two-dimensional unstructured grid to divide the target area into quadrilateral units that do not overlap on the plane, interpolate the measured terrain onto the nodes of the two-dimensional unstructured grid to construct the plane terrain distribution, and establish the topological relationship between various elements of the two-dimensional unstructured grid; Step 3: Establish the corresponding relationship between various elements and sub-regions of the two-dimensional unstructured grid, and associate the units and sub-regions of the two-dimensional unstructured grid; Step 4: Call the one-dimensional hydrodynamic model to carry out flood evolution calculation to obtain flood information data of river and lake sections, and map the section data to a two-dimensional unstructured grid at each moment of the flood evolution process; Step 5: Based on the water depth data at the center of the unstructured grid cell, search for water edges in each sub-area and obtain a set of water edges; Step 6: construct a micro-facet based on the set of water edges, where the micro-facet is a set of water edges selected from the set of water edges of the sub-region; Step 7: compress and optimize the nodes on the boundary of the micro-facet water area obtained in step 6; Step 8: Convert the compressed and optimized microfacet data into the primitive format data specified by the visualization engine and display it on the computer screen; In step 5, based on the water depth data of the center of the unstructured grid unit, searching for water edges in each sub-area and obtaining a set of water edges includes the following steps: A grid edge that meets one of the following two conditions is defined as a water edge. For the first type of water edge, the cells on both sides of the grid edge are wet, and the two cells belong to two different sub-regions respectively. For the second type of water edge, the cells on one side of the grid edge are wet and the cells on the other side are dry or non-existent, and the cells on both sides are in the same sub-region or in different sub-regions. There is only one wet cell on both sides of the water edge in a single sub-region. According to the definition of the water edge, the edges of all wet cells in the target region are traversed to obtain the water edge set of the calculation grid; for a certain sub-region, the edges of all wet cells in it are traversed to obtain the water edge set of the sub-region; In step 6, a micro-facet region is constructed based on the set of water area edges, where the micro-facet region is a set of water area edges selected from the set of water area edges of the sub-region, and the steps include: Step 61: Set the attribute variables of all water edges in the sub-region to 0, and create a new micro-facet. The number of water edges it has at the initial moment is 0, that is, the water edge subset of the micro-facet is empty; Step 62: traverse the water edge set in the current sub-region in ascending order of number, and add the first unused water edge found to the current micro-facet; Step 63: For the first water area edge added to the micro-facet domain, take out its two nodes, mark them as 0# and 1# points respectively, and define 0# point as the first node of the water area boundary of the current micro-facet domain; at the same time, define 1# point as the pulling node, which is the basis for searching the next water area edge of the micro-facet domain; Step 64: Based on the topological relationship of the unstructured grid, first find all water edges around the pulling node, and then select them. Specifically, according to the total number N of water edges around the pulling node, when N=1, the only water edge is directly identified as the next water edge of the micro-facet domain. When N>1, further screening is required. The conditions that a water edge around the pulling node must meet to belong to the current micro-facet domain are: the wet cell corresponding to the water edge and the wet cell corresponding to the last water edge added to the micro-facet domain are the same or adjacent cells; Step 65: For the water edge newly added to the microfacet domain, use its second node as the pulling node, and perform the operation of step 64 again to add the next water edge. Repeat this process and continuously search for new water edges. When the number of the newly added node of the new water edge is the same as the number of the 0# point of the current microfacet domain, the water boundary is closed, which indicates that the construction of the water edge subset of the microfacet domain is completed. The basic elements of the water edge are two nodes. The closed water boundary surrounded by the water edge subset or the node sequence corresponding to it is used to describe the microfacet domain. Step 66: Execute steps 62 to 65 to create and search for the next micro-facet in the current sub-region until the number of unused water edges remaining in the sub-region is less than a specified lower limit; Step 67: Execute steps 61 to 66 to create and search for microfacets in other sub-areas.
2. The method for constructing a flood inundation scene in real time based on river and lake cross-section data according to claim 1, characterized in that: In step 1, the elements of the sub-region are: the numbers of the two sections that constitute the sub-region, and the plane coordinates of the endpoints of the two sections. All sub-regions in the target area constitute a set of sub-regions, and the symbols DCS0, DCS1, ..., DCSn are used to identify each sub-region in turn.
3. The method for constructing a flood inundation scene in real time based on river and lake cross-section data according to claim 1, characterized in that: In step 3, the specific method for establishing the correspondence between the two-dimensional unstructured grid cells and the sub-regions is as follows: for a given sub-region, a traversal search of the unstructured grid is carried out, and the cells whose center coordinates are within the sub-region are added to the cell set of the sub-region. At the same time, an attribute variable is added to the cell to identify the sub-region to which the cell belongs, and searches are carried out for the sub-regions DCS0, DCS1, ..., DCSn in sequence, so that the correspondence between the two-dimensional unstructured grid cells and the sub-regions can be established.
4. The method for constructing a flood inundation scene in real time based on river and lake cross-section data according to claim 1, characterized in that: In step 4, calling a one-dimensional hydrodynamic model to carry out flood evolution calculation to obtain flood information data of river and lake sections, and mapping the section data to a two-dimensional unstructured grid at each moment of the flood evolution process includes the following steps: Step 41: Call the one-dimensional hydrodynamic model of the target area to calculate the flood evolution process and obtain flood information data such as flow and water level of the river and lake sections; Step 42: interpolating the cross-section flood information data to the two-dimensional unstructured grid unit based on the correspondence between the river and lake cross-section flood information data, the sub-region, the two-dimensional unstructured grid unit and the sub-region; Step 43: Use the topography and water level at the center of the grid cell to calculate the water depth, determine the dry and wet state of the grid cell and give it a label, providing basic supporting data for constructing flood inundation scenarios.
5. The method for constructing a flood inundation scene in real time based on river and lake cross-section data according to claim 1, characterized in that: In step 7, the compression optimization of nodes on the boundary of the micro-facet water area includes the following steps: Step 71: Classify and identify the grid nodes on the water boundary of the micro-facet domain. The first type of water boundary node features: nodes located on the common water boundary of two adjacent micro-facet domains in two adjacent sub-regions. The first type of water boundary nodes will not affect the constructed water distribution and are all eliminated. The second type of water boundary node features: nodes on the water boundary in a single sub-region. The second type of water boundary nodes depicts the plane morphology of the water area and is partially optimized. Step 72: When the water area boundary is smooth, the critical angle method is used to delete the second type of water area boundary nodes.
6. The method for constructing a flood inundation scene in real time based on river and lake cross-section data according to claim 5, characterized in that: The specific process of using the critical angle method to delete the boundary nodes of the second type of water area is as follows: Step 721: On a water boundary of a microfacet domain that contains only the second type of nodes, take out two adjacent water edges from one end of it and calculate their angles. α ; Step 722: Estimate the number of microfacets to be rendered based on the specified digital earth scene scaling ratio, and then determine a critical angle. α 0; Step 723: Determination α and α 0, and optimize the water boundary accordingly. α > α 0, keep the three nodes involved in these two water edges. α ≤ α When it is 0, it means that the water boundary is smooth. The common nodes of the two water edges are deleted from the water boundary of the micro-facet domain. After the nodes of the original water boundary are compressed, an approximate water boundary can be obtained. The water area surrounded by it is the approximate micro-facet domain.
