Flood routing simulation implementation method based on programmed grid body
Through a method based on programmatic mesh, custom data reading and creating flood models, the problem of large image and calculation amount of flood evolution simulation in the existing technology is solved, and higher precision and realistic flood evolution data prediction is achieved, providing better support for flood warning and flood prevention work.
Patent Information
- Application Number
- CN202411481225.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2025-02-25
AI Technical Summary
The existing flood evolution simulation methods cannot effectively process and present real flood evolution data, resulting in insufficient flood warning support, and the methods based on geometric models and particle systems have problems such as insufficient image and large calculation volume.
The flood evolution simulation method based on programmatic mesh is adopted to create a flood model through custom data reading and programmatic mesh, so as to realize the flood evolution simulation of different data in different rivers, improving the automation of data preprocessing and the mimicry of flood models.
提高了洪水演进数据预测的精度和拟真度,实现了洪水模型的快速创建和实时渲染,增强了洪水预警的支持能力,为防汛工作提供了更好的技术支持。
Smart Images

Figure CN119516149A_ABST
Abstract
Description
Technical Field
[0001] The invention discloses a flood evolution simulation implementation method based on a programmed grid body, and relates to the technical field of data rendering. Background Art
[0002] In response to the actual needs of river observation, along with the rapid development of big data collection and visualization rendering technology, the key technologies of virtual reality and visualization research are increasingly widely used in the field of river observation. For scenes such as rivers, lakes, reservoirs, flood storage areas, and flood diversion areas, there are higher simulation requirements for the trend and impact of flood evolution from macro, meso, and micro perspectives. There are currently two main methods for flood evolution simulation in visualization rendering engines. One is flood evolution simulation based on geometric models, but the method based on geometric models only pursues similarity in shape and requires artificial setting of too many attributes, resulting in obvious artificial traces and lack of realism. The other method is flood evolution simulation based on particle systems. This method has major problems. If the constructed particle model is simple and the number of particles is too small, the texture and authenticity of the flood cannot be shown. If the constructed particle model is complex and the number of particles is too large, the amount of calculation will be quite large, especially in the scope of super-large basins, and it is difficult to achieve real-time rendering.
[0003] Most of the existing methods are unable to process and present real flood evolution data, but only simulate sample data, which cannot provide good support for flood warning in reality. Summary of the invention
[0004] In view of the problems of the prior art, the present invention provides a flood evolution simulation implementation method based on a programmed grid, which realizes flood evolution simulation of different data for different rivers by reading customized data and creating a flood model with a programmed grid, thereby improving the accuracy and realism of flood evolution data prediction.
[0005] The specific scheme proposed by the present invention is:
[0006] The present invention provides a flood evolution simulation implementation method based on a programmed grid, comprising:
[0007] Step 1: Preprocess and store the actual flood evolution data, and create different flood evolution data processing rules according to actual business needs.
[0008] Step 2: Filter flood data: Read the stored flood evolution data into the visualization rendering engine and create a DataTable to filter and obtain the flood evolution data point information of different years.
[0009] Step 3: Generate flood model: Perform vector conversion based on flood evolution data point information, obtain the x-axis and y-axis coordinates corresponding to the data point information and store them in the vertex array, use the ear cutting method to cut the vertex data in the vertex array into triangle vertices, input the vertex data and triangle information into the procedural mesh to generate the flood model,
[0010] Step 4: Simulate and display the flood evolution: Create a flood material and attach it to the flood model. Slice the generated flood model according to the flood evolution time, display different flood patches in different time periods, and the corresponding flood evolution simulation effects.
[0011] Furthermore, in step 2 of the flood evolution simulation implementation method based on programmed grid, a DataTable is created to store flood evolution data, and flood evolution data point information of different years is obtained by filtering the flood evolution data using the DataTable.
[0012] Furthermore, step 3 of the flood evolution simulation implementation method based on programmed grids specifically includes:
[0013] According to the flood evolution data point information, vector conversion is performed, and the data point information in the DataTable is reversed from the right-hand coordinate system data to the left-hand coordinate system data used in the visualization rendering engine. For the converted data point information, its x-axis and y-axis coordinates are obtained and stored in the vertex array.
[0014] Use the ear cutting method to cut the vertex data in the vertex array into triangle vertices: preset the flood evolution data as a polygon with N vertices, select an acute angle tip of the polygon as the ear tip, remove the vertex data of the ear tip from the vertex array, and so on, recursively remove the vertex data of the ear tip until there are 2 vertices left, and obtain a group of segmented triangles.
[0015] The flood model is generated by inputting vertex data and triangle information into a procedural mesh, through which triangle geometry is custom created.
[0016] Furthermore, in step 4 of the flood evolution simulation implementation method based on a procedural mesh, a flood material is created, including: creating a flood material according to actual flood evolution data, adding texture and normal texture to provide basic visual effects, using Constant3Vector nodes and lerp nodes to simulate the bottom surface of the water and transition colors, and finally adding animated textures and Fresnel nodes to control the ripple effect and transparency of the water.
[0017] The present invention also provides a flood evolution simulation implementation device based on programmed grid, including a preprocessing module, a screening module, a flood model management module and a simulation display module.
[0018] The preprocessing module preprocesses and stores the actual flood evolution data and creates different flood evolution data processing rules according to actual business needs.
[0019] The filter module filters flood data: the stored flood evolution data is read into the visualization rendering engine, and a DataTable is created to filter and obtain the flood evolution data point information of different years.
[0020] The flood model management module generates a flood model: it performs vector conversion based on the flood evolution data point information, obtains the x-axis and y-axis coordinates corresponding to the data point information and stores them in the vertex array, uses the ear cutting method to cut the vertex data in the vertex array into triangle vertices, and inputs the vertex data and triangle information into the procedural mesh to generate a flood model.
[0021] The simulation display module simulates and displays the flood evolution: creates flood materials and attaches them to the flood model, slices the generated flood model according to the flood evolution time, displays different flood patches in different time periods, and the corresponding flood evolution simulation effects.
[0022] Furthermore, the screening module of the flood evolution simulation implementation device based on programmed grid creates a DataTable to store flood evolution data, and obtains flood evolution data point information of different years by screening the flood evolution data using the DataTable.
[0023] Furthermore, the flood model management module of the flood evolution simulation implementation device based on programmatic mesh performs vector conversion according to the flood evolution data point information, reverses the data point information in the DataTable from right-handed coordinate system data to left-handed coordinate system data used in the visualization rendering engine, obtains the x-axis and y-axis coordinates of the converted data point information and stores them in the vertex array.
[0024] Use the ear cutting method to cut the vertex data in the vertex array into triangle vertices: preset the flood evolution data as a polygon with N vertices, select an acute angle tip of the polygon as the ear tip, remove the vertex data of the ear tip from the vertex array, and so on, recursively remove the vertex data of the ear tip until there are 2 vertices left, and obtain a group of segmented triangles.
[0025] The flood model is generated by inputting vertex data and triangle information into a procedural mesh, through which triangle geometry is custom created.
[0026] Furthermore, the simulation display module of the flood evolution simulation implementation device based on a procedural grid creates flood materials, including: creating flood materials according to actual flood evolution data, adding textures and normal textures to provide basic visual effects, using Constant3Vector nodes and lerp nodes to simulate the bottom surface of water and transition colors, and finally adding animated textures and Fresnel nodes to control the ripple effect and transparency of water.
[0027] The benefits of the present invention are:
[0028] The present invention uses an automated processing program in the data processing process, and can customize processing rules according to actual river data, which can automatically process a large amount of data, greatly saving the time of data processing. The processed data is stored in the database and transmitted through the interface, which improves data security and transmission reliability.
[0029] The present invention generates a flood model based on a programmed grid body and uses visualization technology to display river floods. It can present the process of river flood spreading in a more vivid and three-dimensional manner, and can play a certain role in flood prevention work.
[0030] The present invention uses algorithms such as the ear cutting method in the visualization process, which can quickly decompose historical flood data and real-time river flood data into the data format required for creating a model. The data can then be segmented according to actual business needs, thereby enabling rapid creation of a flood model and facilitating users to quickly implement a flood evolution simulation process. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a schematic flow chart of the method of the present invention. DETAILED DESCRIPTION
[0032] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.
[0033] Example 1
[0034] The present invention provides a flood evolution simulation implementation method based on a programmed grid, comprising:
[0035] Step 1: Preprocess and store the actual flood evolution data, and create different flood evolution data processing rules based on actual business needs.
[0036] Step 2: Filter flood data: Read the stored flood evolution data into the visualization rendering engine, and create a DataTable to filter and obtain the flood evolution data point information of different years.
[0037] When creating DataTable, the flood evolution data is stored, and the flood evolution data point information of different years is obtained by filtering the flood evolution data using the DataTable data table.
[0038] Step 3: Generate flood model: Perform vector conversion according to the flood evolution data point information, obtain the x-axis and y-axis coordinates corresponding to the data point information and store them in the vertex array, use the ear cutting method to cut the vertex data in the vertex array into triangle vertices, and input the vertex data and triangle information into the procedural mesh to generate a flood model.
[0039] Specifically, it includes: performing vector conversion according to the flood evolution data point information, reversing the data point information in the DataTable from the right-hand coordinate system data to the left-hand coordinate system data used in the visualization rendering engine, obtaining the x-axis and y-axis coordinates of the converted data point information and storing them in the vertex array,
[0040] Use the ear cutting method to cut the vertex data in the vertex array into triangle vertices: preset the flood evolution data as a polygon with N vertices, select an acute angle tip of the polygon as the ear tip, remove the vertex data of the ear tip from the vertex array, and so on, recursively remove the vertex data of the ear tip until there are 2 vertices left, and obtain a group of segmented triangles.
[0041] The flood model is generated by inputting vertex data and triangle information into a procedural mesh, through which triangle geometry is custom created.
[0042] Step 4: Simulate and display the flood evolution: Create a flood material and attach it to the flood model. Slice the generated flood model according to the flood evolution time, display different flood patches in different time periods, and the corresponding flood evolution simulation effects.
[0043] The creation of flood material in step 4 may include: creating flood material according to actual flood evolution data, adding texture and normal texture to provide basic visual effects, using Constant3Vector node and lerp node to simulate the bottom surface and transition color of water, and finally adding animated texture and Fresnel node to control the ripple effect and transparency of water.
[0044] The present invention can carry out a real customized flood evolution process simulation, automatically process the incoming river flood data, convert it into an elevation data type that can be received by the programmed grid, and store it in the database for data storage. It can process river flood data quickly and in large quantities, thus speeding up the speed and convenience of flood simulation, and also improves the visualization and realism of flood evolution simulation in rivers, thus providing certain help for river flood prevention work.
[0045] Example 2
[0046] The present invention also provides a flood evolution simulation implementation device based on programmed grid, including a preprocessing module, a screening module, a flood model management module and a simulation display module.
[0047] The preprocessing module preprocesses and stores the actual flood evolution data and creates different flood evolution data processing rules according to actual business needs.
[0048] The filter module filters flood data: the stored flood evolution data is read into the visualization rendering engine, and a DataTable is created to filter and obtain the flood evolution data point information of different years.
[0049] The flood model management module generates a flood model: it performs vector conversion based on the flood evolution data point information, obtains the x-axis and y-axis coordinates corresponding to the data point information and stores them in the vertex array, uses the ear cutting method to cut the vertex data in the vertex array into triangle vertices, and inputs the vertex data and triangle information into the procedural mesh to generate a flood model.
[0050] The simulation display module simulates and displays the flood evolution: creates flood materials and attaches them to the flood model, slices the generated flood model according to the flood evolution time, displays different flood patches in different time periods, and the corresponding flood evolution simulation effects.
[0051] As the information interaction and execution process between the modules of the above-mentioned device are based on the same concept as the embodiment of the method of the present invention, the specific contents can be found in the description of the embodiment of the method of the present invention and will not be repeated here.
[0052] Likewise, the benefits of the device of the present invention are:
[0053] The present invention uses an automated processing program in the data processing process, and can customize processing rules according to actual river data, which can automatically process a large amount of data, greatly saving the time of data processing. The processed data is stored in the database and transmitted through the interface, which improves data security and transmission reliability.
[0054] The present invention generates a flood model based on a programmed grid body and uses visualization technology to display river floods. It can present the process of river flood spreading in a more vivid and three-dimensional manner, and can play a certain role in flood prevention work.
[0055] The present invention uses algorithms such as the ear cutting method in the visualization process, which can quickly decompose historical flood data and real-time river flood data into the data format required for creating a model. The data can then be segmented according to actual business needs, thereby enabling rapid creation of a flood model and facilitating users to quickly implement a flood evolution simulation process.
[0056] It should be noted that not all steps and modules in the above-mentioned processes and device structures are necessary, and some steps or modules can be ignored according to actual needs. The execution order of each step is not fixed and can be adjusted as needed. The system structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities, or some components in multiple independent devices may be implemented together.
[0057] The above-described embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or changes made by those skilled in the art based on the present invention are within the protection scope of the present invention. The protection scope of the present invention shall be subject to the claims.
Claims
1. A flood evolution simulation implementation method based on programmed grid, characterized by include: Step 1: Preprocess and store the actual flood evolution data, and create different flood evolution data processing rules according to actual business needs. Step 2: Filter flood data: Read the stored flood evolution data into the visualization rendering engine and create a DataTable to filter and obtain the flood evolution data point information of different years. Step 3: Generate flood model: Perform vector conversion based on flood evolution data point information, obtain the x-axis and y-axis coordinates corresponding to the data point information and store them in the vertex array, use the ear cutting method to cut the vertex data in the vertex array into triangle vertices, input the vertex data and triangle information into the procedural mesh to generate the flood model, Step 4: Simulate and display the flood evolution: Create a flood material and attach it to the flood model. Slice the generated flood model according to the flood evolution time, display different flood patches in different time periods, and the corresponding flood evolution simulation effects.
2. A flood evolution simulation implementation method based on programmed grid according to claim 1, characterized in that In step 2, a DataTable is created to store the flood evolution data. The flood evolution data point information of different years is obtained by filtering the flood evolution data using the DataTable.
3. The method for implementing flood evolution simulation based on programmed grid according to claim 1, characterized in that Step 3 specifically includes: According to the flood evolution data point information, vector conversion is performed, and the data point information in the DataTable is reversed from the right-hand coordinate system data to the left-hand coordinate system data used in the visualization rendering engine. For the converted data point information, its x-axis and y-axis coordinates are obtained and stored in the vertex array. Use the ear cutting method to cut the vertex data in the vertex array into triangle vertices: preset the flood evolution data as a polygon with N vertices, select an acute angle tip of the polygon as the ear tip, remove the vertex data of the ear tip from the vertex array, and so on, recursively remove the vertex data of the ear tip until there are 2 vertices left, and obtain a group of segmented triangles. The flood model is generated by inputting vertex data and triangle information into a procedural mesh, through which triangle geometry is custom created.
4. The method for implementing flood evolution simulation based on programmed grid according to claim 1, characterized in that In step 4, we create a flood material, which includes: creating a flood material based on the actual flood evolution data, adding textures and normal textures to provide basic visual effects, using Constant3Vector nodes and lerp nodes to simulate the bottom surface of the water and transition colors, and finally adding animated textures and Fresnel nodes to control the ripple effect and transparency of the water.
5. A flood evolution simulation implementation device based on programmed grid, characterized by It includes pre-processing module, screening module, flood model management module and simulation display module. The preprocessing module preprocesses and stores the actual flood evolution data and creates different flood evolution data processing rules according to actual business needs. The filter module filters flood data: the stored flood evolution data is read into the visualization rendering engine, and a DataTable is created to filter and obtain the flood evolution data point information of different years. The flood model management module generates a flood model: it performs vector conversion based on the flood evolution data point information, obtains the x-axis and y-axis coordinates corresponding to the data point information and stores them in the vertex array, uses the ear cutting method to cut the vertex data in the vertex array into triangle vertices, and inputs the vertex data and triangle information into the procedural mesh to generate a flood model. The simulation display module simulates and displays the flood evolution: creates flood materials and attaches them to the flood model, slices the generated flood model according to the flood evolution time, displays different flood patches in different time periods, and the corresponding flood evolution simulation effects.
6. The flood evolution simulation implementation device based on programmed grid according to claim 5 is characterized by: The screening module creates a DataTable to store flood evolution data, and uses the DataTable to filter the flood evolution data point information of different years based on the flood evolution data.
7. The flood evolution simulation implementation device based on programmed grid according to claim 5 is characterized in that the flood The model management module performs vector conversion based on the flood evolution data point information, and reverses the data point information in the DataTable from the right-hand coordinate system data to the left-hand coordinate system data used in the visualization rendering engine. For the converted data point information, the x-axis and y-axis coordinates are obtained and stored in the vertex array. Use the ear cutting method to cut the vertex data in the vertex array into triangle vertices: preset the flood evolution data as a polygon with N vertices, select an acute angle tip of the polygon as the ear tip, remove the vertex data of the ear tip from the vertex array, and so on, recursively remove the vertex data of the ear tip until there are 2 vertices left, and obtain a group of segmented triangles. The flood model is generated by inputting vertex data and triangle information into a procedural mesh, through which triangle geometry is custom created.
8. The flood evolution simulation implementation device based on programmed grid according to claim 5 is characterized by: The simulation display module creates flood materials, including: creating flood materials based on actual flood evolution data, adding textures and normal textures to provide basic visual effects, using Constant3Vector nodes and lerp nodes to simulate the bottom surface of the water and transition colors, and finally adding animated textures and Fresnel nodes to control the ripple effect and transparency of the water.