Two-dimensional flow field simulation visualization method and system based on b / s framework

By using a B/S framework-based approach, two-dimensional hydrodynamic numerical simulation data is converted into structured data and dynamic trajectories are generated on the Cesium platform. Combined with WebGIS and WebGL technologies, this solves the problems of result sharing and operational complexity of traditional CFD software, and realizes a visual and convenient display of the water flow evolution process.

CN114547498BActive Publication Date: 2026-03-03NINGBO WATER RESOURCES & HYDROPOWER PLANNING & DESIGN INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

Traditional CFD post-processing visualization commercial software results are difficult to share, complex to operate, have high barriers to entry and are expensive, and cannot be used for hydrodynamic simulation demonstrations on online platforms.

Method used

Using a B/S framework-based approach, the results of two-dimensional hydrodynamic numerical simulations are acquired, converted into structured data, and then used to generate dynamic trajectories on the Cesium platform. Simulations are then performed using WebGIS and WebGL technologies.

Benefits of technology

It enables a visual representation of the water flow evolution process, solves the problems of difficulty in sharing results and complexity in operation, lowers the threshold for use, and makes hydrodynamic simulation results more accessible, customizable, and convenient to share on the network platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114547498B_ABST
    Figure CN114547498B_ABST
Patent Text Reader

Abstract

The application discloses a water flow two-dimensional flow field simulation visualization method and system based on a B / S framework, and the method comprises the following steps: obtaining water dynamic numerical calculation achievement data of water flow, converting the water dynamic numerical calculation achievement data into structured data, mapping the structured data to a visualization platform, generating dynamic trajectories for showing water flow evolution processes on a simulation area, and displaying continuous, dynamic, smooth and vivid water dynamic evolution effects on a webpage end through a WebGL acceleration rendering technology. According to the water dynamic numerical calculation achievement data, the application can realize simulation display of the water dynamic evolution process on the visualization platform, and solves the problems that traditional CFD (computational fluid dynamics) post-processing software is difficult to share achievement, and the display process is complex to operate, has a high use threshold and is relatively expensive.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of two-dimensional water flow dynamic display technology, specifically to a two-dimensional flow field simulation visualization method and system based on a B / S framework. Background Technology

[0002] Currently, a variety of commercial software for fluid dynamics simulation visualization has been developed (such as Tecplot 360, ICEM-CFD, EnSight, etc.). These tools and systems can effectively visualize and analyze flow field data. However, these commercial software are usually installed on client personal computers. The simulation effect depends on the PC performance, upgrades and maintenance are difficult, resources and results are difficult to share, operation is complex, the threshold for use is high, and the price is relatively expensive.

[0003] With the development of the internet and information technology, visualization technology is gradually moving towards networking, customization, sharing, and convenience. Furthermore, with the advent of WebGL, web-based data visualization technology is no longer hampered by browser rendering and computation issues and is gradually developing. Currently, the most popular approach is to directly use WebGL technology for real-time image rendering on the client side. With the emergence of mobile devices, cross-platform technology is becoming increasingly important, and the combination of HTML5 and WebGL has become a necessary technology for cross-platform image rendering. Web Geographic Information Systems (WebGIS), as the best carrier for visualizing geographic and environmental information, are increasingly used in the water conservancy field, especially in water environment monitoring and flood disaster forecasting and early warning. It can reflect a large amount of physical data onto the actual terrain, highlighting the spatial nature of water conservancy information. However, the application of existing geographic information system technology in hydrodynamic simulation is still limited. Summary of the Invention

[0004] In view of the above technical problems, the purpose of this invention is to provide a two-dimensional flow field simulation visualization method and system based on the B / S framework, which solves the problems of traditional CFD (Computational Fluid Dynamics) post-processing visualization commercial software, such as difficulty in sharing results, complex operation of the display process, high threshold for use, and high price. It realizes the simulation and display of the hydrodynamic flow evolution process on the visualization platform based on the B / S framework, and uses the network geographic information system to make the display of hydrodynamic simulation results more vivid.

[0005] The present invention adopts the following technical solution:

[0006] A two-dimensional flow field simulation and visualization method based on a B / S framework includes the following steps:

[0007] Obtain the results of two-dimensional hydrodynamic numerical simulation and convert the simulation results into structured data;

[0008] The structured data is mapped onto the Cesium platform, and the simulation area is determined on the platform through spatial coordinate transformation;

[0009] Dynamic trajectories are generated on the simulation region to demonstrate the two-dimensional hydrodynamic evolution process.

[0010] Optionally, generating dynamic trajectories on the simulation region to demonstrate the evolution of water flow includes:

[0011] Several white noise points are generated within the simulation area, and the flow velocity at each white noise point is spatially interpolated based on spatial topology analysis.

[0012] Set the life cycle of the dynamic trajectory and divide the life cycle into n time periods, where n is a natural number;

[0013] And calculate the distance traveled by each white noise point in each time period based on the flow velocity at each white noise point;

[0014] Based on the movement distance and position of each white noise point in each time period, the trajectory of each white noise point in each time period is calculated using the local forward linear convolution algorithm.

[0015] The trajectory of each white noise point at each time period is rendered to obtain the dynamic trajectory.

[0016] Optionally, mapping the structured data to a visualization platform includes:

[0017] The structured data is stored in a database, and based on a B / S framework, the grid node information contained in the structured data in the database is mapped to the Cesium platform.

[0018] Optionally, the structured data includes at least hydrodynamic evolution hydraulic element information, time series information, spatial element information, and mesh file data used for finite element calculation.

[0019] Optionally, converting the spatial information data into structured data includes:

[0020] The mesh file is converted into mesh data format, the node coordinates in the mesh file are converted into latitude and longitude coordinates, and the results and parameter information of the computational fluid dynamics equations are converted into structured data according to the topological relationship of time and space.

[0021] Optionally, generating a plurality of white noise points within the simulation region includes:

[0022] Several white noise points are randomly generated within the simulation area according to preset parameters.

[0023] Optionally, the step of spatially interpolating the flow velocity at each white noise point based on spatial topology analysis includes:

[0024] Obtain the grid nodes of the simulated region and the flow velocity associated with each grid node; use a bidirectional linear interpolation algorithm to calculate the flow velocity at each white noise point based on the flow velocity at each grid node.

[0025] A two-dimensional flow field simulation system for water flow based on a B / S framework includes:

[0026] The data conversion unit is used to acquire two-dimensional hydrodynamic numerical simulation results data and convert the simulation results data into structured data.

[0027] The data mapping unit is used to map the structured data to the Cesium platform and couple the spatial information data corresponding to the hydraulic elements in the simulation results data to determine the simulation area on the visualization platform.

[0028] The display unit is used to generate dynamic trajectories on the simulation area to display the two-dimensional water flow evolution process.

[0029] An electronic device includes: at least one processor and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute the aforementioned two-dimensional flow field simulation visualization method based on a B / S framework.

[0030] A computer storage medium storing a computer program, which, when executed by a processor, implements the aforementioned two-dimensional flow field simulation and visualization method based on a B / S framework.

[0031] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0032] This invention acquires two-dimensional hydrodynamic numerical simulation results of water flow, converts the numerical simulation results into structured data, and then maps the structured data onto a visualization platform. Dynamic trajectories for displaying the water flow evolution process are generated on the simulation area. This enables simulation display of the water flow evolution process coupled with spatial information based on the hydrodynamics under a B / S framework, solving the problems of traditional visualization software being difficult to share CFD (Computational Fluid Dynamics) results, or having complex operation, high usage threshold, and high price. Attached Figure Description

[0033] Figure 1 This is a flowchart illustrating a two-dimensional flow field simulation and visualization method for water flow based on a B / S framework, as provided in an embodiment of the present invention.

[0034] Figure 2 This is a flowchart illustrating a method for generating dynamic trajectories that demonstrate the evolution of water flow, according to an embodiment of the present invention.

[0035] Figure 3 A flowchart illustrating a two-dimensional flow field simulation visualization method based on a B / S framework is provided in a specific embodiment of the present invention.

[0036] Figure 4 This is a schematic diagram of a mesh using a bidirectional linear interpolation algorithm provided in an embodiment of the present invention;

[0037] Figure 5 A dynamic trace diagram is provided as an example of a specific embodiment of the present invention;

[0038] Figure 6 A schematic diagram of a two-dimensional water flow field simulation system based on a B / S framework provided in an embodiment of the present invention;

[0039] Figure 7 A schematic diagram of a two-dimensional water flow field simulation system based on a B / S framework is provided for a specific embodiment of the present invention;

[0040] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0041] The present invention will now be further described in conjunction with the accompanying drawings and specific embodiments. It should be noted that, without conflict, the various embodiments or technical features described below can be arbitrarily combined to form new embodiments:

[0042] The following explains the proper nouns and techniques:

[0043] CFD, short for Computational Fluid Dynamics, is a product of the integration of modern fluid mechanics, numerical mathematics, and computer science. It is a highly dynamic interdisciplinary science. It approximates the integral and differential terms in the governing equations of fluid mechanics as discrete algebraic forms, creating a system of algebraic equations. Computers then solve these discrete algebraic equations to obtain numerical solutions at discrete time / space points.

[0044] Structured data, also known as quantitative data, is information that can be represented using data or a uniform structure, such as numbers and symbols. It is highly organized and neatly formatted data. It is a data type that can be placed in tables and spreadsheets.

[0045] Unstructured meshes: Unstructured meshes are meshes without regular topological relationships, typically composed of triangular meshes. An unstructured mesh means that interior points within a mesh region do not have identical adjacent cells. That is, the number of cells connected to different interior points within the mesh partitioning region varies. There is no implicit connectivity between each element.

[0046] Grid data refers to finite element data obtained by discretizing a two-dimensional hydrodynamic model and performing finite element numerical solutions.

[0047] Fluid mechanics studies the static and dynamic states of a fluid under the action of various forces, as well as the interaction and flow patterns between the fluid and the solid boundary when there is relative motion.

[0048] A mesh file is a type of mesh file. There are several main file types with the MESH file extension. It can be opened using the 3D model format file method, published by Medit, and is typically a 3D model format file. It mainly includes the geometric information of the mesh, divided into dimensions, nodes, faces, cells, zones, etc. Statements in the file are enclosed in parentheses, and each statement generally begins with an integer indicating its type.

[0049] Bilinear interpolation, also known as bilinear interpolation, is a linear interpolation extension of an interpolation function with two variables. Its core idea is to perform linear interpolation in two directions separately. As an interpolation algorithm in numerical analysis, bilinear interpolation is widely used in signal processing, digital image and video processing, and other fields.

[0050] HTML stands for Hypertext Markup Language, a markup language. It consists of a series of tags. These tags unify the format of documents on the web, connecting scattered internet resources into a logical whole. HTML text is descriptive text composed of HTML commands, which can specify text, graphics, animations, sounds, tables, links, etc.

[0051] Geographic information refers to the geographical meaning contained and expressed by geographic data. It is a general term for numbers, texts, images, and graphics related to the quantity, quality, properties, distribution characteristics, relationships, and laws of substances related to geographic environmental elements.

[0052] Vector field visualization techniques include, for example, the labeling method that uses simple symbols such as arrows to indicate wind direction, with the length of the arrows representing wind speed; the vector line method that uses a set of curves with arrows representing airflow direction to form a streamline diagram; the particle method that assigns wind vector data in the wind field to a particle system and controls the movement of the particles to dynamically display the wind field; and texture-based vector field visualization algorithms, such as the point noise method in line integral convolution and the texture convolution algorithm. Currently, vector field visualization techniques are mostly used in wind field simulation in the meteorological field.

[0053] Example 1:

[0054] Please refer to Figure 1-8 , Figure 1 This invention illustrates a two-dimensional flow field simulation and visualization method for water flow based on a B / S framework, comprising the following steps:

[0055] Step S1: Analyze the two-dimensional hydrodynamic numerical simulation results of water flow and convert the two-dimensional hydrodynamic numerical simulation results into structured data;

[0056] In this embodiment, the two-dimensional hydrodynamic numerical simulation results data include at least hydrodynamic evolution hydraulic element information, time series information, spatial element information, and mesh file data used for finite element calculation.

[0057] Among them, the two-dimensional hydrodynamic numerical simulation results data refers to the simulation results data based on the two-dimensional hydrodynamic evolution process using the principles of computational fluid dynamics, and the mesh file data used in the computational fluid dynamics finite element calculation is the original mesh data file.

[0058] Optionally, converting the two-dimensional hydrodynamic numerical simulation results into structured data includes:

[0059] The grid file is converted into mesh data format, the node coordinates in the grid file are converted into latitude and longitude coordinates, and the hydraulic element information in the two-dimensional hydrodynamic numerical simulation results data is converted into structured data according to the topological relationship of time and space.

[0060] In this embodiment, the unstructured mesh used for the two-dimensional hydrodynamic numerical simulation can be stored in a PostgreSQL database according to the mesh structure; the CFD result data can be parsed and stored in a PostgreSQL database according to a certain data structure standard.

[0061] Step S2: Map the structured data to the visualization platform and couple the spatial information data corresponding to the hydraulic elements in the simulation results data to determine the simulation area on the visualization platform;

[0062] In this embodiment, the spatial information data may include geographic information data, water conservancy project data, water area data, and other spatial element data.

[0063] In this embodiment, the visualization platform can be the WebGIS platform, and water area information, water conservancy project information and other spatial elements can be overlaid on the terrain data based on the WebGIS platform.

[0064] Based on the WebGis platform, water area information, water conservancy project information and other spatial elements are overlaid on topographic data;

[0065] Step S3: Generate dynamic trajectories on the simulation area to demonstrate the two-dimensional water flow evolution process.

[0066] In this embodiment, please refer to Figure 2. Figure 2 The flowchart illustrating the specific implementation of generating dynamic trajectories to demonstrate the evolution of water flow is shown, including:

[0067] (1) Based on the size of the simulation area, several white noise points are randomly generated within the calculation range, assuming that these white noise points are uncorrelated with each other.

[0068] (2) Using the bidirectional linear interpolation algorithm, the flow velocity at each white noise point is calculated based on the flow velocity difference at the grid nodes;

[0069] (3) Set the lifecycle t of the trace growth, and uniformly discretize the lifecycle t into a finite number of time periods {t1, t2, ..., tn};

[0070] (4) Calculate the distance si that moves within the time period ti based on the flow velocity at the location of each white noise point;

[0071] (5) Call the local forward linear convolution algorithm to calculate the trace Ti of each white noise point from the starting position to si;

[0072] (6) Based on the flow rate at the set position of the color band and the trace line. Perform shading and rendering on Ti;

[0073] (7) Map the rendered trace Ti onto the canvas;

[0074] (8) Repeat steps (4)-(7) until the life cycle of the trace ends, and you will get the dynamic trace effect;

[0075] (9) Repeat steps (1)-(8) to obtain a continuous flow field effect.

[0076] In this embodiment, the present invention is based on the Cesium platform and uses the dynamic trace method to dynamically display the flow regime evolution during the water flow process. The flow field trace is dynamically rendered according to the change of flow velocity, making the flow regime display more vivid and the information more diversified. WebGL accelerated rendering technology is used to make the display of large-scale hydraulic element data on the web page smoother and more refined.

[0077] Optionally, generating dynamic trajectories on the simulation region to demonstrate the evolution of water flow includes:

[0078] Step S31: Generate several white noise points within the simulation region, and spatially interpolate the flow velocity at each white noise point based on spatial topology analysis; Optionally, generating several white noise points within the simulation region includes:

[0079] Several white noise points are randomly generated within the simulation area according to preset parameters.

[0080] Step S32: Set the life cycle of the dynamic trajectory and divide the life cycle into n time periods, where n is a natural number;

[0081] Step S33: Calculate the distance traveled by each white noise point in each time period based on the flow velocity at each white noise point;

[0082] Specifically, the process of spatially interpolating the flow velocity at each white noise point based on spatial topology analysis includes:

[0083] Obtain the grid nodes of the simulated region and the flow velocity associated with each grid node; use a bidirectional linear interpolation algorithm to calculate the flow velocity at each white noise point based on the flow velocity at each grid node.

[0084] Specifically, using a bidirectional linear interpolation algorithm, the flow velocity at each white noise point is calculated based on the flow velocity at each grid node, as follows: Please refer to... Figure 4 As shown, Figure 4 This is a schematic diagram of a bidirectional linear interpolation algorithm provided in an embodiment of the present invention.

[0085] Given grid node Q 11 Q 21 Q 12 Q 22 The flow velocities at the randomly generated white noise point P(x, y) are u(x1, y1), u(x1, y1), u(x1, y2), and u(x2, y2), respectively. The flow velocity u(x, y) at the randomly generated white noise point P(x, y) is obtained by interpolation by performing two linear interpolations in the x-direction.

[0086] Flow velocity at point R1(x, y1)

[0087] Flow velocity at point R2(x, y2)

[0088] Perform another linear interpolation along the y-direction at points R1 and R2 to obtain the flow velocity at P(x, y).

[0089] Step S34: Based on the moving distance and position of each white noise point in each time period, the local forward linear convolution algorithm is used to calculate the trajectory of each white noise point in each time period.

[0090] In this embodiment, the step of using a local forward linear convolution algorithm to calculate the trajectory of each white noise point in each time period specifically includes:

[0091] For a pixel ρ in the output texture image, the streamline ρ(τ) is obtained by integrating along the line of symmetry in the positive direction of the flow velocity, starting from ρ, where 0 ≤ τ ≤ L, and L is the length of the positive streamline. When τ is 0, it corresponds to pixel ρ. The pixel value T′(ρ(0)) of ρ is the convolution of the noise texture values ​​at each point of the streamline:

[0092]

[0093] The discrete form is:

[0094]

[0095] Where T is the input white noise texture, and T(ρ(τ)) is the noise texture value at each point on the streamline. k(τ) is the convolution kernel, representing the correlation between each point on the streamline and P. pi represents N discrete points on the streamline, and W... i For p i The contribution of the convolution kernel k(τ) to P, i.e., the contribution of the kernel k(τ) at point p. t-1 and p i The area covered between them.

[0096] Step S35: Render the trajectory of each white noise point in each time period to obtain the dynamic trajectory.

[0097] In practical implementation, WebGL acceleration rendering technology can be used to make the display of large-scale hydraulic element data on the web page smoother and more detailed.

[0098] By simulating and displaying the hydrodynamic evolution process on a visualization platform, the results of hydrodynamic numerical calculations can be solved by addressing the problems of traditional CFD (Computational Fluid Dynamics) post-processing software, such as difficulty in sharing the results, complexity of operation, high barriers to entry, and high cost.

[0099] In the above implementation process, the present invention acquires two-dimensional hydrodynamic numerical simulation results of water flow, converts the simulation results data into structured data, and then maps the structured data onto a visualization platform to generate dynamic trajectories on the simulation area to display the evolution process of water flow. This enables the simulation and display of the two-dimensional hydrodynamic numerical calculation results data coupled with spatial information of the hydrodynamic evolution process on the visualization platform, solving the problems of traditional CFD (Computational Fluid Dynamics) post-processing software processing results being difficult to share, or the display process being complex, having a high threshold for use, and being relatively expensive.

[0100] The method of the present invention will be described below with reference to specific embodiments:

[0101] Please refer to Figure 3 As shown, Figure 3 This invention illustrates a specific embodiment of a two-dimensional flow field simulation and visualization method for water flow based on a B / S framework, including:

[0102] (1) First, use the PostgreSQL database to design various database table structures;

[0103] (2) Convert the grid file used for CFD calculation into mesh data format, convert the node coordinates into latitude and longitude coordinates, and store them in the database;

[0104] (3) Analyze the CFD calculation results, convert the results into structured data according to the topological relationship of time and space, and store them in the database;

[0105] (4) Based on the leaflet framework, add WebGis service to overlay spatial information such as river system information and water conservancy project information into the map service;

[0106] (5) Based on the HTML5 framework, map the grid node information in the database to Cesium;

[0107] (6) White noise point generation: Based on preset parameters such as the number of points and boundaries, white noise points are randomly generated in the simulation area so that the distribution of points covers the entire area. It is assumed that these white noise points are unrelated to each other. Taking into account the performance of the server and the display effect, the distribution of points should be roughly uniform and appropriately sparse, and there should be no clustering.

[0108] (7) Based on the coordinates of the white noise points, perform spatial analysis to find the neighboring grid nodes. Use the bidirectional linear interpolation algorithm to calculate the flow velocity at each white noise point based on the flow velocity difference at the neighboring grid nodes, thereby improving the accuracy of flow velocity interpolation.

[0109] (8) Set the lifecycle t of the trace growth, and uniformly discretize the lifecycle t into a finite number of time periods {t1, t2, ..., tn}. The more time periods there are, the smoother the trace growth effect will be, but the greater the consumption of server resources will be.

[0110] (9) Calculate the distance si that moves during the ti period based on the flow velocity at the location of each white noise point at the end of the ti-1 period;

[0111] (10) Call the local forward linear convolution algorithm to calculate the trace Ti of each white noise point from si-1 to si;

[0112] (11) Based on the flow velocity at the set position of the color band and the trace line. The Ti is shaded and rendered, and the traces can be rendered with transparency according to their life cycle. The closer to the end of the life cycle, the higher the transparency, until it is completely transparent. This can make the traces appear layered.

[0113] (12) Map the rendered trace Ti onto the Cesium canvas;

[0114] (13) Boundary detection: Perform spatial analysis on the location of si. If si is outside the simulation area, the lifetime of the trace ends prematurely.

[0115] (14) Repeat steps (9)-(13) until the lifecycle of the trace ends, and you will get the dynamic trace effect; please refer to Figure 5 As shown, Figure 5 A dynamic trace is shown in a specific embodiment.

[0116] (15) Repeat steps (6)-(14) to obtain a continuous flow field effect;

[0117] (16) The continuous dynamic flow field evolution effect is displayed in a web browser.

[0118] The present invention will now be described with reference to specific embodiments. The method of the present invention includes the following steps:

[0119] (1) In this embodiment, the database is a PostgreSQL database, and the database table structures are designed accordingly;

[0120] (2) Convert the grid file used for calculating the CFD equations corresponding to the water flow into mesh data format, convert the node coordinates into latitude and longitude coordinates, and store them in the database;

[0121] (2) Analyze the results of the CFD equations, convert the results into structured data according to the topological relationship of time and space, and store them in the database;

[0122] (4) Based on the leaflet framework, add WebGis service to overlay spatial information such as river system information and water conservancy project information into the map service;

[0123] (5) Based on the HTML5 framework, map the grid node information in the database to Cesium;

[0124] (6) White noise point generation: Based on preset parameters such as the number of points and boundaries, white noise points are randomly generated within the simulation area to ensure that the distribution of points covers the entire area. It is assumed that these white noise points are uncorrelated. Considering both server performance and display effect, the distribution of points should be roughly uniform and appropriately spaced, without any clustering.

[0125] (7) Based on the coordinates of the white noise points, perform spatial analysis to find the neighboring grid nodes. Use the bidirectional linear interpolation algorithm to calculate the flow velocity at each white noise point based on the flow velocity difference at the neighboring grid nodes, thereby improving the accuracy of flow velocity interpolation.

[0126] (8) Set the lifecycle t of the trace growth, and uniformly discretize the lifecycle t into a finite number of time periods {t1, t2, ..., tn}. The more time periods there are, the smoother the trace growth effect will be, but the greater the consumption of server resources will be.

[0127] (9) Calculate the distance si that moves during the ti period based on the flow velocity at the location of each white noise point at the end of the ti-1 period;

[0128] (10) Call the local forward linear convolution algorithm to calculate the trace Ti of each white noise point from si-1 to si;

[0129] (11) Based on the flow velocity at the set position of the color band and the trace line. The Ti is shaded and rendered, and the traces can be rendered with transparency according to their life cycle. The closer to the end of the life cycle, the higher the transparency, until it is completely transparent. This can make the traces appear layered.

[0130] (12) Map the rendered trace Ti onto the Cesium canvas;

[0131] (13) Boundary detection: Perform spatial analysis on the location of si. If si is outside the simulation area, the lifetime of the trace ends prematurely.

[0132] (14) Repeat steps (9)-(13) until the life cycle of the trace ends, and you will get the dynamic trace effect;

[0133] (15) Repeat steps (6)-(14) to obtain a continuous flow field effect.

[0134] (16) The continuous dynamic flow field evolution effect is displayed in a web browser.

[0135] In the above implementation process, the method of the present invention utilizes advanced Web technology, employs Leaflet framework technology to overlay spatial hydraulic elements, and develops a two-dimensional flow field visualization technology based on the Cesium platform. It analyzes structured CFD result data, couples geographic information, engineering information and other spatial elements, and uses WebGL accelerated rendering technology. It uses the dynamic flow trace method to dynamically display the flow velocity, flow state and other elements in the water flow evolution process on the web page, making the numerical calculation results of hydrodynamic reconstruction more visual and the hydraulic elements more concrete. At the same time, it makes the simulation results more networked, customized, shared and convenient.

[0136] Example 2

[0137] Figure 6 This invention illustrates a two-dimensional flow field simulation system for water flow based on a B / S framework, comprising:

[0138] The data conversion unit 10 is used to acquire two-dimensional hydrodynamic numerical simulation results of water flow and convert the simulation results data into structured data.

[0139] The data mapping unit 20 is used to map the structured data to the Cesium platform and couple the spatial information data corresponding to the hydraulic elements in the simulation results data to determine the simulation area on the visualization platform.

[0140] The display unit 30 is used to generate dynamic trajectories on the simulation area to display the two-dimensional water flow evolution process.

[0141] Please refer to Figure 7 As shown, Figure 7 The diagram shows a framework schematic of a specific embodiment of a two-dimensional flow field simulation system based on a B / S framework according to the present invention. In specific implementation, the two-dimensional flow field simulation system based on a B / S framework of the present invention is implemented through a presentation layer, an engine layer, and a data layer. The presentation layer acquires data, the engine layer performs data mapping and rendering, and the display station displays dynamic trajectories.

[0142] Specifically, the CFD results data are structured and analyzed, and then a standardized data structure is adopted to facilitate integration with various commercial software. The Leaflet framework spatial data and WebGIS overlay technology are used to highly integrate hydrodynamic simulation results, water conservancy projects, and topographic maps, giving the water conservancy simulation results human geographical significance and making the representation of affected areas more intuitive, facilitating impact analysis. Local forward linear integral convolution is used to calculate flow paths, and lifecycle control is used to achieve dynamic flow path evolution, making the two-dimensional flow field display dynamic and visual. A B / S framework is adopted to eliminate reliance on PC-based commercial software, facilitating the networking, sharing, customization, and convenience of water conservancy simulation results. WebGL accelerated rendering technology is used to ensure smooth and vibrant rendering of massive amounts of data in the browser.

[0143] Example 3:

[0144] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. In this application, it can be... Figure 8 The schematic diagram shown illustrates an electronic device 100 for implementing the present invention's method for simulating and visualizing two-dimensional water flow fields based on a B / S framework, according to embodiments of this application.

[0145] like Figure 8 The diagram shows the structure of an electronic device 100, which includes one or more processors 102 and one or more storage devices 104. These components are interconnected via a bus system and / or other forms of connection mechanisms (not shown). It should be noted that... Figure 8 The components and structure of the electronic device 100 shown are merely exemplary and not limiting; the electronic device may have, as needed. Figure 8 The components shown may also have Figure 8 Other components and structures not shown.

[0146] The processor 102 may be a central processing unit (CPU) or other form of processing unit with data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 100 to perform desired functions.

[0147] The storage device 104 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 102 may execute the program instructions to implement the functions (implemented by the processor) in the embodiments of this application described below, and / or other desired functions. Various application programs and various data may also be stored in the computer-readable storage medium, such as various data used and / or generated by the application programs.

[0148] This invention also provides a computer storage medium on which a computer program is stored. If the method of this invention is implemented as a software functional unit and sold or used as an independent product, it can be stored in this computer storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer storage medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc. It should be noted that the contents of the computer storage medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer storage medium does not include electrical carrier signals and telecommunication signals.

[0149] For those skilled in the art, various other corresponding changes and modifications can be made based on the technical solutions and concepts described above, and all such changes and modifications should fall within the protection scope of the claims of this invention.

Claims

1. A two-dimensional flow field simulation and visualization method for water flow based on a B / S framework, characterized in that, Includes the following steps: Obtain the results of two-dimensional hydrodynamic numerical simulation and convert the simulation results into structured data; The structured data is mapped to a visualization platform, and the spatial information data corresponding to the hydraulic elements in the simulation results are coupled to determine the simulation area on the visualization platform. Dynamic trajectories are generated on the simulation region to demonstrate the two-dimensional water flow evolution process; Mapping the structured data to the visualization platform includes: The structured data is stored in a database, and based on a B / S framework, the grid node information contained in the structured data in the database is mapped to a visualization platform and finally displayed on a browser webpage. The generation of dynamic trajectories on the simulation region to demonstrate the two-dimensional water flow evolution process includes: Several white noise points are generated within the simulation area, and the flow velocity at each white noise point is spatially interpolated based on spatial topology analysis. Set the life cycle of the dynamic trajectory and divide the life cycle into n time periods, where n is a natural number; Calculate the distance traveled by each white noise point in each time period based on the flow velocity at each white noise point; Based on the movement distance and position of each white noise point in each time period, the trajectory of each white noise point in each time period is calculated using the local forward linear convolution algorithm. The trajectory of each white noise point at each time period is rendered to obtain the dynamic trajectory; The structured data includes at least hydrodynamic evolution hydraulic element information, time series information, spatial element information, and mesh file data used for finite element calculation; Converting the two-dimensional hydrodynamic numerical simulation results into structured data includes: Convert the mesh file to mesh data format, and convert the node coordinates in the mesh file to latitude and longitude coordinates; Then, the hydraulic element information in the simulation results data is converted into structured data according to the topological relationship in time and space.

2. The two-dimensional flow field simulation and visualization method for water flow based on a B / S framework according to claim 1, characterized in that, The generation of several white noise points within the simulation region includes: Several white noise points are randomly generated within the simulation area according to preset parameters.

3. The two-dimensional flow field simulation and visualization method for water flow based on a B / S framework according to claim 1, characterized in that, The spatial interpolation of flow velocities at each white noise point based on spatial topology analysis includes: Obtain the grid nodes of the simulated region and the flow velocity associated with each grid node; use a bidirectional linear interpolation algorithm to calculate the flow velocity at each white noise point based on the flow velocity at each grid node.

4. A two-dimensional flow field simulation system based on a B / S framework, used to implement the visualization method for two-dimensional flow field simulation based on a B / S framework as described in any one of claims 1 to 3, characterized in that, include: The data conversion unit is used to acquire the two-dimensional hydrodynamic numerical simulation results of water flow and convert the simulation results data into structured data. The data mapping unit is used to map the structured data to the Cesium platform and couple the spatial information data corresponding to the hydraulic elements in the simulation results data to determine the simulation area on the Cesium platform. The display unit is used to generate dynamic trajectories on the simulation area to display the two-dimensional water flow evolution process.

5. An electronic device, characterized in that, include: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the two-dimensional flow field simulation visualization method based on the B / S framework according to any one of claims 1-3.

6. A computer storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the two-dimensional flow field simulation and visualization method based on the B / S framework as described in any one of claims 1-3.