Hydrodynamic and water quality simulation method based on unstructured grid finite volume method
The hydrodynamic water quality simulation method using the unstructured mesh finite volume method solves the problems of fitting accuracy and emergency response speed for complex boundaries in sudden water pollution accidents, and achieves efficient and accurate pollutant simulation and early warning.
Patent Information
- Application Number
- CN202611375932.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-07
- Publication Date
- 2026-11-27
AI Technical Summary
Existing water pollution simulation technologies struggle to balance the accuracy of fitting complex boundaries with the speed of emergency response when dealing with sudden water pollution incidents. Traditional flux calculation and terrain processing methods are prone to mass conservation errors under shallow water conditions with strong nonlinear flow, resulting in insufficient simulation accuracy and efficiency.
A hydrodynamic and water quality simulation method based on the unstructured mesh finite volume method is adopted. By using triangular mesh cell generation, control volume integration, explicit format time progression, and sloping bottom model to handle underwater topography, automatic mesh generation and boundary condition generation are achieved, ensuring the reliability of simulation results and rapid response.
It achieves accurate fitting of complex boundaries, avoids conservation errors, is suitable for non-steady flows, can quickly respond to sudden water pollution incidents, and provides accurate forecasts of the impact range and concentration distribution of pollutants.
Smart Images

Figure CN123179987A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of water pollution simulation technology, and more specifically, to a hydrodynamic water quality simulation method based on the unstructured grid finite volume method. Background Technology
[0002] Sudden water pollution incidents are characterized by rapid spread, wide impact, and severe damage, seriously harming the ecological environment and threatening people's lives and health. The time and location of such incidents are uncertain; the direct causes may include water traffic accidents, illegal or accidental discharges by enterprises, road traffic accidents, pipeline ruptures, etc., making it impossible to determine the time and location in advance. Current manual modeling methods for hydrodynamic and water quality simulations require time-consuming preprocessing steps such as mesh generation and boundary condition setting for specific computational areas, which cannot meet the need for rapid response in emergency situations involving sudden water pollution incidents. Therefore, researching technologies for automatically building hydrodynamic and water quality models using basic data is of significant practical importance.
[0003] In hydrodynamic and water quality numerical simulations, the accuracy of water quality models depends on three factors: computational grid generation, flow field calculation, and parameter selection. Only high-quality computational grids, accurate flow fields, and reasonable parameters can yield high-precision concentration fields. For water bodies with complex boundaries, traditional structured grids struggle to accurately approximate the real shoreline, leading to insufficient simulation accuracy. Furthermore, the traditional finite volume method, when dealing with shallow water flow problems, typically uses the normal flux at the midpoint of the control volume interface as the average normal flux. However, for shallow water flow, the normal flux often exhibits a strongly nonlinear distribution at the interface, and the midpoint approximation introduces significant errors, violating momentum conservation within the control volume. Addressing underwater topography is also a challenge in solving two-dimensional hydrodynamic models. Traditional flat-bottom models treat the riverbed elevation as a constant within each control volume, failing to effectively approximate complex underwater topography and introducing significant errors in flux calculations.
[0004] In summary, existing water pollution simulation schemes struggle to balance the accuracy of fitting complex boundaries with the speed of emergency response when dealing with sudden water pollution incidents. Furthermore, traditional flux calculation and terrain processing methods are prone to mass conservation errors under shallow water conditions with strong nonlinear flow, resulting in insufficient accuracy and efficiency in water pollution simulation. Summary of the Invention
[0005] In view of this, the present invention proposes a hydrodynamic water quality simulation method based on the unstructured mesh finite volume method to solve the problems existing in the prior art.
[0006] To achieve the above objectives, this invention proposes a hydrodynamic water quality simulation method based on the unstructured mesh finite volume method, comprising: Acquire underwater topographic data and physical information of the simulated water pollution area, wherein the physical information includes water level, flow velocity and pollutant concentration data; The water pollution simulation area is divided into triangular mesh units to obtain a control volume, and the physical information is stored in the control volume; and control equations are constructed. The finite volume method is used to discretize the integral of the control equations on each control volume to obtain the discrete equations for each control volume; By advancing the discrete equations over time, we can obtain simulation results of the physical information of different control volumes to obtain simulation results of the water pollution simulation area.
[0007] Optionally, the process of constructing the governing equations includes: Two-dimensional shallow water equations and two-dimensional water quality equations are constructed, and then unified into vector form to obtain the governing equations, which include water flow motion terms and pollutant migration terms.
[0008] Optionally, the control body uses a grid-centered arrangement of nodes, with the nodes located at the centroid of the grid cells. The physical information is stored at the nodes, and the physical quantities of the nodes represent the average values of the corresponding control body.
[0009] Optionally, the governing equation is:
[0010] Where q represents a conserved physical quantity vector, including water depth, x-momentum, y-momentum, and pollutant concentration; These are the flux vectors in the x and y directions, respectively; Let represent the source term vector, t represent the time unit, and x and y represent the units in the xy direction.
[0011] Optionally, the flux vector is:
[0012]
[0013] in The values represent water depth, average flow velocity in the vertical x and y directions, and pollutant concentration, while g represents gravitational acceleration.
[0014] Optionally, the source terms include the momentum equation source terms corresponding to water flow motion, which include riverbed slope terms, bottom friction terms, wind shear force terms, and Coriolis force terms; the concentration equation source terms corresponding to pollutant migration include dispersion terms and external source / sink terms; the riverbed slope terms are determined by underwater topographic data.
[0015] Optionally, the time advancement of the discrete equations is performed in an explicit format.
[0016] Optionally, the underwater terrain data is processed using a sloping bottom model, and the ground elevation within each control body is determined by the vertex elevation of that control body, with continuous terrain at the interface of the control body.
[0017] On the other hand, the present invention provides a hydrodynamic water quality simulation system based on the unstructured grid finite volume method for performing the above-described method.
[0018] Compared with the prior art, the beneficial effects of the present invention are as follows: To address the aforementioned issues, this invention employs an unstructured triangular mesh to discretize the computational domain. The triangular mesh can precisely fit complex and irregular boundaries such as river channels, shoals, and estuaries, overcoming the shortcomings of traditional structured meshes that produce jagged errors at complex boundaries. Furthermore, it can flexibly densify or sparse the mesh at locations with significant local topographic changes, transitions between coarse and fine meshes, and tortuous boundaries, thus balancing computational accuracy and efficiency.
[0019] This invention uses the finite volume method to discretize the governing equations. Since the fluxes across the control volume boundary are equal in magnitude and opposite in direction for adjacent control volumes, the conservation law is strictly satisfied over the entire computational domain, and there is no conservation error. This ensures that the total mass of pollutants will not increase or decrease due to the numerical format, thus ensuring the reliability of the simulation results.
[0020] This invention uses a sloping-bottom model instead of the traditional flat-bottom model to handle underwater terrain. The ground elevation within the control volume is determined by the vertex elevation. The terrain at the control volume interface is continuous, which can more effectively approximate the real terrain. Furthermore, since there are no terrain discontinuities at the control volume interface, the calculation of flux is greatly simplified.
[0021] This invention uses an explicit format for time progression, which can directly calculate the unknown value of the next moment from the value of the known moment without iterative solution. It is suitable for flows with strong non-constant properties and can effectively simulate complex water flow states with alternating tides in tidal river sections as well as rapidly changing flows caused by sudden pollution accidents.
[0022] This invention realizes dynamic modeling of hydrodynamic and water quality models based on the established watershed basic database. When a sudden water pollution accident occurs, the system can automatically extract the model range, automatically divide the grid, and automatically generate boundary conditions, avoiding the time consumption of manual modeling and enabling rapid accident simulation and early warning forecasting.
[0023] Engineering verification shows that the hydrodynamic and water quality model of the river network area established by this invention uses triangular grids for discretization. The water level process and flow process of each station are in good agreement with the measured values. It can quickly predict the impact range of pollutants and the concentration of pollutants in the water body after an accident. Attached Figure Description
[0024] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. In the drawings: Figure 1 This is a schematic diagram of the method flow in an embodiment of the present invention; Figure 2 This is a schematic diagram of a partial coordinate system of the control body interface in an embodiment of the present invention; Figure 3 This is a schematic diagram of the flat-bottomed model and a partial hydraulic model of the flat-bottomed model in an embodiment of the present invention; Figure 4 This is a schematic diagram of the pollutant increment concentration distribution 1 hour after a water pollution incident in an embodiment of the present invention; Figure 5 This is a schematic diagram of the incremental concentration distribution of pollutants 6 hours after a water pollution incident, as shown in an embodiment of the present invention. Detailed Implementation
[0025] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the disclosure to those skilled in the art. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other. The present invention will now be described in detail with reference to the accompanying drawings and embodiments.
[0026] This invention provides a hydrodynamic water quality simulation method based on the unstructured mesh finite volume method, such as... Figure 1 As shown, it includes the following: Its overall calculation process begins with the establishment of the calculation domain and the acquisition of initial data. First, the underwater topographic data of the calculation domain is acquired, as well as hydrological and water quality data such as water level, flow rate and pollutant concentration at each boundary at the initial moment.
[0027] After data preparation, mesh generation and physical quantity definition are performed. The simulation domain is divided into non-overlapping unstructured triangular meshes, with each triangle serving as a control volume, and physical variables stored at the centroid of the control volume. After discretizing the computational domain into a finite number of control volumes, governing equations for water flow and water quality changes are established—two-dimensional shallow water equations to describe water flow patterns, and two-dimensional water quality equations to describe pollutant migration and transformation patterns. Both are unified into vector-form governing equations.
[0028] Subsequently, the finite volume method is used for discretization. The governing equations are integrated over each control volume, and the Gauss-Green formula is used to transform the surface integral into a line integral along the control volume boundary, yielding the discrete algebraic equations for each control volume. In these equations, the normal flux across the control volume boundary is equal in magnitude and opposite in direction to adjacent control volumes. Therefore, the conservation of mass, momentum, and contaminants is strictly satisfied throughout the computational domain.
[0029] Next, the flux through each side of the control volume is calculated, which is the net water volume, net momentum, and net contaminant passing through the boundary per unit time. This flux depends on the difference in physical state between the control volumes on both sides of the boundary and is a quantitative expression of the exchange of water, momentum, and contaminants between adjacent control volumes.
[0030] The time-stepping method employs an explicit approach, integrating the discrete equations over time to directly calculate the unknown values at the next time step from the known physical quantities at the current moment. This eliminates the need to solve large systems of equations, making it particularly suitable for unsteady flows. During the calculation, the time step is constrained by stability conditions to ensure computational stability.
[0031] The terrain processing adopts a sloping bottom model. The ground elevation within the control volume is determined by the elevations of three vertices. The terrain at the interface of the control volume is continuous, and the bottom slope term is accurately calculated, avoiding the errors caused by the traditional flat bottom model's step-like approximation of the real terrain.
[0032] In boundary condition processing, the virtual control volume method is used for open boundaries. The water level, flow rate or velocity process is given according to the local flow regime, and the normal velocity of the land boundary is zero.
[0033] The dynamic boundary treatment targets areas with alternating exposed and submerged conditions. It determines the wet and dry state by controlling the water depth at the top of the volume. Dry elements only participate in water balance and do not participate in momentum calculation, thereby simulating the flooding of the beach during high tide and the return of the tide to the channel during low tide.
[0034] The diffusion term is calculated using a simplified method, approximating the gradient at the boundary with the gradient along the direction of the line connecting the centers of adjacent control volumes, taking into account the effects of water flow kinetic viscosity and pollutant dispersion on material transport.
[0035] After the above steps, the calculation for one time step is completed, obtaining the water depth, flow velocity, and pollutant concentration for each control volume at the next moment. The process then repeats until the simulation ends. Finally, the calculation results are output as charts, images, or animations to display the spatiotemporal distribution of water level, flow velocity, flow direction, and pollutant concentration across the entire basin, providing data support for early warning and emergency decision-making in the event of sudden water pollution incidents.
[0036] Through the above process, this method can simulate the laws of water flow and the migration and diffusion of pollutants. When a sudden water pollution accident occurs, the system can automatically extract the model range, automatically divide the grid, and automatically generate boundary conditions based on the established watershed database, quickly carry out accident simulation, and predict the impact range and concentration distribution of pollutants.
[0037] The above technical solution is described in detail below: I. Overview of the Plan This scheme forms the foundational framework of the entire numerical simulation, responsible for establishing the complete computational architecture from physical governing equations to discrete grid solutions. Its core task is to divide the continuous water area (the lower reaches of the Dongjiang River delta) into a finite number of non-overlapping triangular control volumes, define the conserved physical quantities on each control volume, and establish a unified format for time progression and spatial discretization.
[0038] This scheme covers: establishing governing equations, discretization using the finite volume method, generation of unstructured triangular meshes, spatial and temporal discretization schemes, treatment of sloping terrain, treatment of open and land boundaries, treatment of moving boundaries, and calculation of diffusion terms.
[0039] II. Basic Equations The study of the Wanghe River area usually uses a one-dimensional hydrodynamic mathematical model. In order to simulate the hydrodynamic and water quality movement characteristics of each river section more precisely, this study uses a two-dimensional planar flow and water quality mathematical model to simulate and calculate the hydrodynamics and water quality of the Dongjiang River Basin.
[0040] 2.1 Two-dimensional shallow water equations Most rivers, lakes, and near-shore waters are shallow currents, satisfying the following assumptions: ① It has a free surface; ② Gravity is the main driving force, and the frictional resistance between the water flow and the solid boundary and inside the water flow is the main dissipation force; ③ The horizontal flow velocity is approximately uniformly distributed along the water depth; ④ The vertical flow velocity and vertical acceleration are negligible, and the water pressure is close to the static pressure distribution.
[0041] Based on the above assumptions, integrating the three-dimensional water flow equations along the water depth direction yields the two-dimensional shallow water flow equations:
[0042]
[0043]
[0044] The meanings of each parameter in the formula are as follows: The water level is indicated by h; the water depth is indicated by h. , The elevation of the riverbed; U and v represent the vertical average flow velocities in the x and y directions, respectively; f represents the Coriolis force coefficient. , The angular velocity of Earth's rotation. To calculate the geographical latitude of the water body; These represent the bottom friction in the x and y directions, respectively. ; These represent the shear forces exerted by the wind on the free water surface in the x and y directions, respectively. , , The drag coefficient is... air density, , These represent the wind speeds in the x and y directions. Indicates the density of water; λ and y are the kinetic viscosity coefficients of water flow in the x and y directions, respectively; q represents the flow rate per unit area of the source or sink, with q being positive for the source and negative for the sink. These represent the flow velocities in the x and y directions, respectively, when the source or sink is input or output.
[0045] because , can be obtained The equation can be rewritten as:
[0046]
[0047]
[0048] 2.2 Two-dimensional water quality equation Since the horizontal scale of shallow water flow is much larger than its vertical scale, it can be assumed that pollutants in shallow water flow are uniformly mixed vertically, and the concentration of pollutants only varies on the horizontal plane, thus simplifying the problem to a two-dimensional planar problem. Integrating the three-dimensional convection-diffusion equation of pollutants vertically, the horizontal water quality equation can be obtained:
[0049] The meanings of each parameter in the formula are as follows: Indicates the vertical average concentration; Represents the dispersion coefficients in the x and y directions; S represents the source and sink terms.
[0050] 2.3 Vector Form of the Equation Since the two-dimensional shallow water equation and the two-dimensional convection dispersion equation are consistent in mathematical form, they can be uniformly written in the following form:
[0051] In the formula: q = (h, hu, hv, hC),
[0052]
[0053]
[0054]
[0055]
[0056]
[0057] The parameters in the formula have the following meanings: q represents the conserved physical quantity vector, which includes water depth, x-momentum, y-momentum, and pollutant concentration; These are the flux vectors in the x and y directions, respectively; Represents the source term vector; g represents gravitational acceleration; This indicates the elevation of the riverbed bottom.
[0058] 2.4 Boundary conditions for the equation ① Initial conditions: The model must specify the flow field and concentration field at the initial time:
[0059] ② Boundary conditions: The boundaries of the computational region are divided into two types: land boundaries and open boundaries.
[0060] Given the following conditions on the land boundary:
[0061] In the formula For flow velocity vectors, The boundary normal unit vector.
[0062] The flow boundary conditions on an open boundary can be of the following types: Given water level process ; Given flow process ; Given normal flow velocity process .
[0063] Concentration boundary conditions on open boundaries can be of the following types: Given concentration process ; Given concentration gradient ,in Indicates the boundary normal.
[0064] When water flows out of the computational domain, the concentration of the boundary element is the calculated concentration; when water flows into the computational domain, the concentration of the boundary element is determined according to the given concentration boundary conditions.
[0065] III. Equation Discretization 3.1 Finite Volume Method The finite volume method was first proposed by McDonald and was first used to solve the two-dimensional Euler equations. In 1972, Patankar et al. used it to calculate steady incompressible flow, and in 1977, Jameson introduced the method into airflow calculation.
[0066] The basic idea of the finite volume method is to divide the computational domain into a series of continuous but non-overlapping control volumes. The differential equation to be solved is integrated over each control volume to obtain a set of discrete equations, where the unknowns are the average values of the dependent variable across the control volumes. These equations are then solved by combining boundary and initial conditions. For two-dimensional water flow calculations, the flow rate and momentum across each control volume are first calculated. Then, a flow rate and momentum balance calculation is performed on each control volume to obtain the water depth and velocity at the end of the computational period. Since the flux across a control volume is equal in magnitude and opposite in direction to adjacent control volumes, the conservation law is strictly satisfied across the entire computational domain, and there is no conservation error.
[0067] The key aspects of the finite volume method are twofold: first, the arrangement of control points (variable nodes) within the control volume; and second, the algorithm for calculating fluxes across the control volume boundaries. Early finite volume methods used rectangular grids with control points at the grid centers. When calculating fluxes, they first assumed the distribution of state variables within the control volume and then used interpolation to obtain the values of these state variables at the control volume boundaries, thus determining the fluxes across these boundaries. This method assumes the dependent variable is continuous across the control volumes and cannot handle discontinuous problems (such as calculating dam-break flow).
[0068] Since the 1980s, the finite volume method (FMD), based on unstructured meshes, has rapidly developed in aerodynamic calculations. Simultaneously, many novel ideas have been introduced into the FMD, such as the concept of discontinuity. This concept posits that variables are discontinuous at all control volume interfaces, requiring the solution of Riemann problems at these interfaces to obtain the numerical flux across the interfaces. The introduction of discontinuity enables the FMD to handle discontinuous problems. To improve the accuracy of the FMD, some scholars have proposed the MUSCL and ENO methods for reconstructing variables within the control volume, and have also proposed methods to constrain variables or fluxes at interfaces to prevent numerical oscillations. These new ideas and methods have led to significant progress in the FMD. By the 1990s, this new type of FMD began to be applied to flow calculations. Due to its geometric flexibility, characteristic upwind capability, ability to handle both continuous and discontinuous flow, and advantages such as clear physical meaning and good conservation properties, it has found increasing application in numerical simulations of flow and water quality.
[0069] 3.2 Spatial Discretization This paper employs the unstructured finite volume method to solve mathematical models of water flow and water quality. The unstructured meshes used in the finite volume method are typically composed of triangular or quadrilateral meshes. Currently, convex quadrilateral meshes are preferred because, with the same number of nodes, the number of cells and sides in a triangular mesh is often twice or more than that in a quadrilateral mesh, resulting in a higher computational cost. The accuracy and stability of first-order methods using elongated triangles are poor. Quadrilateral meshes provide better solutions, and second-order viscosity is easier to handle. Triangular and quadrilateral meshes can be used in combination, with quadrilaterals as the primary mesh and triangles as a supplement. The latter is used at locations with significant local topographic changes, transitions between coarse and fine meshes, and tortuous boundaries. To accurately approximate underwater topography and for ease of programming, this paper uses only triangular meshes. The discretization process can be divided into the following steps: (1) Establish an FVM grid The computational domain is divided into non-overlapping triangular meshes, requiring that the side lengths of the triangles be as close as possible. Currently, automatic triangle generation algorithms such as the Delaunay algorithm and the frontal advancement method are very mature. This paper directly uses the open-source software EasyMesh and the dedicated software FastTAB (SMS) for mesh generation.
[0070] (2) Arrange nodes After mesh generation, nodes need to be placed on the mesh, and physical variables (also called state variables) are defined on the nodes. Mesh generation and node placement are performed independently, and nodes are not necessarily the vertices of the mesh. In the two-dimensional case, there are two node placement methods: Cell-Centred (CC) and Cell-Vertice (CV). The former places only one node at the centroid of the mesh, and the values of the physical variables on the node have a mesh-averaged meaning. The latter places nodes on all vertices of the mesh. Here, we use the CC method for node placement.
[0071] (3) Define the control body The control volume is the basic unit for mass and momentum balance calculations, and its definition varies depending on the node arrangement. For the CC scheme, the control volume is the mesh, and the nodes do not overlap. The CC scheme is simple, easy to implement, and has convenient boundary handling, making it the most widely used scheme currently. However, the FVM scheme of the CC scheme is often first-order; a second-order scheme can only be established when the mesh is uniform and regular or properly processed, and the numerical solution is prone to oscillations.
[0072] (4) Assume the distribution of physical quantities After the nodes and control volumes are defined, assumptions must be made about the distribution of physical quantities within the control volumes. Similar to FEM, each control volume uses some approximation function (usually ). The order of the result is obtained by approximating the true solution using a polynomial of degree n. The decision is made. FEM is a sub-element approximation, where the distribution of the solution within the element is completely determined by the variable values at the element nodes. FVM, on the other hand, requires interpolation of the average value of the solutions on adjacent control volumes to determine the distribution of the solution within the control volume. When the approximate solution is constant within the element or control volume, FEM is of order zero and FVM is of order one. When the approximate solution is linearly distributed within the element or control volume, the FEM is first-order and the FVM is second-order. This paper adopts either a first-order or second-order scheme according to practical needs.
[0073] (5) Discretize the equations on the control volume like Figure 2 As shown, this paper uses a triangular control volume. Integrating the equation over the control volume yields:
[0074] In the formula: To control the planar region (area is ), It is an area differential element.
[0075] For containing and Applying the Gauss-Green formula, the surface integral is reduced to a line integral along its perimeter, resulting in:
[0076] In the formula: To control the perimeter of the body (counterclockwise direction). For line integral infinitesimal elements, , Let x and y be the components of the outward normal unit vector on the perimeter. , These are the average values of the conserved physical quantities and the source and sink terms within the control volume, respectively. For a CC-type FVM, when the accuracy is less than or equal to second order, they are equal to the values of the variables and the source and sink terms at the centroid of the triangle, respectively.
[0077] Denote the normal flux across the control volume boundary. Considering that this paper uses a triangular mesh, the equation can also be written as:
[0078] In the formula: Let j be the length of the j-th side. Let be the average normal numerical flux of the j-th edge.
[0079] because The distribution along the control volume boundary is generally nonlinear, and high accuracy can be achieved by using numerical quadrature formulas. Therefore, the formula can be written as:
[0080] In the formula: The average normal numerical flux of the j-th side calculated by the numerical integration formula ; For integration weights; This represents the total number of integration points. Let be the value of the conserved physical quantity at the j-th side and the k-th integration point.
[0081] 3.3 Time Discreteness Time discretization is mainly divided into explicit schemes and implicit schemes: (1) Explicit formats can be derived from known formats. The value at time is calculated directly. For unknown values at time points, it is unnecessary to solve the system of equations. However, when the time variability of the solution is large, The value of is mainly determined by the precision; when the time variability is small, The main limitation is stability. Explicit schemes are primarily used for flows with strong non-constancy, such as discontinuous flows, and for situations with complex geometry and boundary treatment.
[0082] (2) Implicit format is simultaneously generated by and The solution approximates the space derivative and source terms at time, therefore usually requires solving a system of simultaneous equations. Implicit schemes have good stability and allow for relatively large... It has high efficiency, but the solution is slow to obtain at each time step, and the program design is complex. It is mainly used for cases of constant flow or small time variability of the solution.
[0083] The discontinuous finite volume method typically employs a complex Riemannian solver to calculate the mass flux across the control volume boundary, and there are still many difficulties in adopting an implicit scheme.
[0084] For the ordinary differential equations obtained after spatial discretization, this paper uses the following ordinary differential equation solver for time discretization. Let the right-hand side of the equation be denoted as... The formula can be written as:
[0085] This paper adopts a first-order explicit scheme:
[0086] In the formula: To control the average value of conserved physical quantities within the body; For the reason The conserved physical quantities within the reconstructed control body are: The function.
[0087] 3.4 Geometric Formulas Boundary unit outward normal vector:
[0088] On the border :
[0089] Area of triangle:
[0090] 3.5 Flux Calculation 3.5.1 Flux calculations between control volumes are performed using an arithmetic mean:
[0091] This is the simplest format. This represents the flux between control volumes. Indicates left flux and right flux. ,in This represents water depth, average flow velocity in the vertical x and y directions, and pollutant concentration. The physical quantity q = (h, hu, hv, hC).
[0092] 3.5.2 Monotonic Stream Function Form The most commonly used and relatively simple type is the Lax-Friedrichs stream function:
[0093] In the formula The maximum value is It is taken from the relevant range. Other monotonic stream functions include Godunov stream functions, Engquist-Osher stream functions, etc.
[0094] IV. Terrain Processing Shallow water flow is driven by gravity and constrained by topography. Topography is a key factor affecting water flow. Therefore, the correct calculation of the horizontal component of the force between the water body and the bed wall is often the key to the success of numerical simulation and a major difference between water and air flow simulation.
[0095] In the finite difference method, the effect of the bottom slope on the flow is implied in the pressure gradient term. However, in the finite volume method, the pressure gradient term is decomposed into a water depth term. and bottom slope item The former is incorporated into the convection term of the equation for calculation, while the latter is considered in the source term. During the calculation, when performing momentum balance on each control volume at each time step, it is necessary not only to accurately estimate the convection term (including hydrostatic pressure) but also to accurately estimate the reaction force of the bed bottom on the water flow.
[0096] (1) Flat-bottomed model like Figure 3 As shown, previous methods for treating terrain mostly employed a "flat-bottom" model, assuming the riverbed elevation to be constant within each control volume. Physically, this approach generalizes the flow into a multi-tiered waterfall pattern; mathematically, it approximates the actual terrain using stepped platforms. At the control volume interface, the flow is generalized as a stepped flow, and the Riemann solution is used to calculate the flux at the interface. Unlike aerodynamic calculations, flow calculations must consider the influence of the different elevations on the left and right sides of the control volume interface. For this specific Riemann problem, there is currently no simple and practical solution. A common method is to slightly shift the control volume interface to one of the cells, placing the interface on a flat bottom, and then using a general Riemann approximation to calculate the interface flux. This method uses the water depth on one side of the interface to represent the different water depths on both sides, resulting in significant errors in the calculated flux. The greater the elevation difference on both sides of the interface, the larger the error in the flux.
[0097] (2) Sloping bottom model Because flat-bottom models cannot effectively approximate complex underwater topography, and the stepped control volume boundaries significantly complicate flux calculations, some researchers have adopted "sloping-bottom" models as alternatives. A sloping-bottom model refers to a control volume where the ground elevation is inclined. For the CC-type finite volume method, the ground elevation within the control volume is determined by the apex elevation, and the terrain is continuous at the control volume interface. Compared to flat-bottom models, sloping-bottom models more effectively approximate real-world terrain, and the absence of terrain discontinuities at the control volume interface greatly simplifies flux calculations.
[0098] Because this paper uses a triangular control volume, the ground within the control volume is a plane. This makes the bottom slope term... The calculation becomes very simple. Let the coordinates of the three vertices of a certain control volume be denoted as . The three vertices are arranged counterclockwise; the triangular equation of the plane determined by the three vertices can be written in point normal form:
[0099] when When, it can be transformed into:
[0100] The boundary is handled using the virtual control volume method: a virtual control volume is set up outside the boundary, and the outer state is determined by the inner state and given boundary conditions. The flux is then calculated in the same way as the inner control volume. The normal velocity of the land boundary is zero; the open boundary is given a water level or flow rate process. In most cases, the tidal section of the lower Dongjiang River is slow-flowing, and the outer state of the boundary can be deduced from the given values based on compatibility relationships. The upper boundary of the model is given the flow rates at Boluo Station and Qilinzui Station, and the lower boundary is given the water levels at Dasheng Station and Sishengwei Station.
[0101] The moving boundary is determined using the vertex water depth method; any cell whose vertex is exposed is considered a dry cell. Dry cells only participate in water balance and not momentum calculation. The diffusion term is handled using a simplified method, that is, the gradient at the boundary is approximated by the gradient along the direction of the line connecting the centers of adjacent control volumes.
[0102] This scheme establishes the underlying computational framework of the early warning system: the downstream delta is divided into approximately 25,000 triangular control volumes, the data storage method for each control volume (centroid) is defined, a complete derivation from two-dimensional shallow water equations and water quality equations to a discrete algebraic equation system is established, explicit time progression is used, a slope-bottom model is used to fit the real riverbed topography, a virtual control volume method is used to handle open boundaries, the vertex water depth method is used to determine the wet / dry state of moving boundaries, and a simplified method is used to calculate the diffusion term. This scheme provides a complete numerical computational architecture for the early warning system.
[0103] Through the above process, this method can simulate the water flow patterns and pollutant migration and diffusion processes in river network areas. When a sudden water pollution incident occurs, the system can automatically extract the model range, automatically divide the grid, and automatically generate boundary conditions based on the established watershed database, quickly conduct incident simulations, and predict the impact range and concentration distribution of pollutants. The simulation results are as follows: Figure 4 , Figure 5 As shown.
[0104] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A hydrodynamic water quality simulation method based on the unstructured mesh finite volume method, characterized in that, include: Acquire underwater topographic data and physical information of the simulated water pollution area, wherein the physical information includes water level, flow velocity and pollutant concentration data; The water pollution simulation area is divided into triangular grid cells to obtain a control volume, and the physical information is stored in the control volume; And construct the governing equations; The finite volume method is used to discretize the integral of the control equations on each control volume, thus obtaining the discrete equations for each control volume; By advancing the discrete equations over time, we can obtain simulation results of the physical information of different control volumes and thus obtain simulation results of the water pollution simulation area.
2. The method according to claim 1, characterized in that, The process of constructing the governing equations includes: Two-dimensional shallow water equations and two-dimensional water quality equations are constructed, and then unified into vector form to obtain the governing equations, which include water flow motion terms and pollutant migration terms.
3. The method according to claim 1, characterized in that, The control body employs a grid-centered arrangement of nodes, with each node positioned at the centroid of a grid cell. The physical information is stored at each node, and the physical quantity of each node represents the average value of the corresponding control body.
4. The method according to claim 1, characterized in that, The governing equation is: , Where q represents a conserved physical quantity vector, including water depth, x-momentum, y-momentum, and pollutant concentration; These are the flux vectors in the x and y directions, respectively; Let represent the source term vector, t represent the time unit, and x and y represent the units in the xy direction.
5. The method according to claim 4, characterized in that, The flux vector is: , , in The values represent water depth, average flow velocity in the vertical x and y directions, and pollutant concentration, while g represents gravitational acceleration.
6. The method according to claim 4, characterized in that, The source terms include the momentum equation source terms corresponding to water flow motion, which include the riverbed slope term, bottom friction term, wind shear force term, and Coriolis force term; the concentration equation source terms corresponding to pollutant migration include the dispersion term and external source / sink term; the riverbed slope term is determined by underwater topographic data.
7. The method according to claim 1, characterized in that, The time-progression of the discrete equations is performed in an explicit format.
8. The method according to claim 1, characterized in that, The underwater terrain data is processed using a sloping bottom model. The ground elevation within each control body is determined by the elevation of the vertex of that control body, and the terrain is continuous at the interface of the control body.
9. A hydrodynamic and water quality simulation system based on the unstructured mesh finite volume method, characterized in that, Used to perform the method described in any one of claims 1-8.
