A moving boundary treatment method for shallow water flow simulation
By using the finite volume method with unstructured triangular meshes and determining the flooding state by controlling the water depth at the vertices of the volume, the problem of misjudgment in the dynamic boundary treatment of existing technologies is solved, and higher accuracy and stability of shallow water flow simulation are achieved.
Patent Information
- Application Number
- CN202611395453.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-09
- Publication Date
- 2026-11-24
AI Technical Summary
Existing dynamic boundary processing methods are prone to misjudging the submerged state of the control volume when simulating natural shallow water areas, especially when the terrain slope is large, which introduces calculation errors, increases the complexity and programming difficulty of the algorithm, and results in poor computational stability.
The finite volume method using unstructured triangular meshes is employed. The flooding state is determined by the water depth at each vertex of the control volume, distinguishing between flooded and exposed control volumes. Water balance calculations are performed only on exposed control volumes. Flux is calculated using the Riemann approximation solution. Combined with minimum positive water depth treatment and diffusion term simplification, different types of control volume interfaces are treated uniformly.
It improves the simulation accuracy and operational efficiency for complex conditions such as floodplains, backwaters, siltation, and pollutant diffusion, reduces calculation errors and algorithm complexity, and ensures water conservation and calculation stability.
Smart Images

Figure CN123159196A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of environmental hydraulics numerical simulation technology, and more specifically, to a method for handling dynamic boundaries in shallow water flow simulation. Background Technology
[0002] In numerical simulations of natural shallow water areas, the boundaries of the water area are constantly submerged or exposed as the water level rises and falls, resulting in a dynamic boundary problem. Accurately simulating this process is one of the key technical challenges in numerical models of shallow water dynamics.
[0003] Currently, in the finite volume method, commonly used dynamic boundary treatment methods include the freezing method and the cutting method (or thin water layer method). The freezing method determines the water depth at the center of the control volume and assigns a large roughness to the control volume exposed above the water surface, causing its flow velocity to approach zero and thus freezing it. The cutting method introduces a sufficient water depth to artificially cut or modify the terrain to ensure the stability of the calculation process. However, the above methods usually use only the water depth at the centroid of the control volume as the sole criterion for determining whether the control volume is wet or dry. When the terrain slope is large, it is very common for some nodes of the control volume to be submerged while others are exposed. In this case, if the judgment is made solely based on the water depth at the centroid, it is very easy to misjudge the actual submersion state of the control volume, thus introducing a large calculation error.
[0004] The cutting method maintains computational stability by artificially adjusting water depth or terrain, lacks a clear physical concept, and is prone to disrupting water conservation, especially in areas with drastic terrain changes where it is difficult to guarantee computational accuracy.
[0005] Furthermore, existing methods require different computational strategies for different types of control entities, which increases algorithm complexity and programming difficulty, and can easily lead to computational instability when the control entity's state changes frequently.
[0006] Therefore, a more accurate and computationally stable method for handling dynamic boundaries is needed to overcome the aforementioned shortcomings of existing technologies. Summary of the Invention
[0007] In view of this, the present invention proposes a dynamic boundary treatment method for shallow water flow simulation, based on the finite volume method of unstructured triangular mesh, which aims to achieve accurate simulation of dynamic boundary problems.
[0008] To achieve the above objectives, the present invention proposes the following technical solution: A method for handling dynamic boundaries in shallow water flow simulation includes the following steps: S1. Spatial discretization of the shallow water flow calculation region is performed using an unstructured triangular mesh. Each triangular mesh unit is treated as a control volume, and the water depth and flow velocity variables are arranged at the centroid of the control volume to obtain the water depth at the vertex of each control volume. S2. In each time step, the submerged state of the control body is determined according to the water depth at each vertex of the control body. When the water depth at all vertices of the control body is greater than or equal to zero, the control body is determined to be a submerged control body. When the water depth at any vertex of the control body is less than zero, the control body is determined to be an exposed control body. S3. Perform water balance and momentum balance calculations on the flooded control body, and perform only water balance calculations on the exposed control body, and set the flow velocity of the exposed control body to zero. S4. For the common interface between two adjacent exposed control bodies, no water flux and momentum flux exchange is performed; for the common interface between submerged control bodies and the common interface between submerged control bodies and exposed control bodies, the numerical flux across the common interface is calculated using a flux calculation format based on the Riemann approximation solution, so that the exposed control body only exchanges water with the submerged control body. S5. During the numerical flux calculation process, when the water depth at the control volume vertex, interface flux integration point, or variable reconstruction point is less than zero, the equivalent water depth of that point participating in the numerical calculation is set to the preset minimum positive water depth. S6. Repeat steps S2 to S5 to update the flooding state and hydrodynamic variables of each control body until the preset simulation end time is reached.
[0009] Further, in step S1, the bottom surface of each triangular control body is set as an inclined plane determined by the bottom elevation of the three vertices of the control body, and the water depth at the vertex is obtained according to the difference between the water level at the vertex of the control body and the bottom elevation; the water level at the vertex of the control body is obtained by interpolation of the water levels at the centroids of multiple control bodies sharing the vertex in a distance-weighted manner.
[0010] Furthermore, in step S3, for any control body, the water flux across the three boundaries of the control body is accumulated, and the water depth of the control body is updated based on the accumulated water flux. For a flooded control volume, the momentum flux across the three boundaries of the control volume will be accumulated, and the flow velocity of the control volume in the two horizontal directions will be updated based on the accumulated momentum flux. For exposed control volumes, momentum flux accumulation is not performed, and the flow velocity of the control volume in both horizontal directions is set to zero. For a common interface between two adjacent control bodies, the water flux across the common interface is equal in magnitude and opposite in direction for both control bodies.
[0011] Furthermore, for physical quantities representing velocity components, velocity components, or pollutant concentrations, the gradient at the control volume boundary is approximated by the directional gradient of the function value at the control volume center along the line connecting the control volume centers, and the diffusion term across each control volume boundary is calculated according to the following formula: .
[0012] In the formula, WL is the physical quantity at the center of the current control body, WR is the physical quantity at the center of the adjacent control body, L′ is the distance between the centers of the two control bodies, ε is the diffusion coefficient at the boundary of the corresponding control body, h is the water depth at the boundary of the corresponding control body, and L is the length of the boundary of the corresponding control body.
[0013] Further, in step S4, for the common interface between the submerged control body and the exposed control body, a first interface state is constructed using the actual water depth and actual flow velocity on the submerged control body side, and a second interface state is constructed using the zero flow velocity on the exposed control body side and the preset minimum positive water depth. The numerical flux across the common interface is calculated using the Riemann approximation solution based on the first interface state and the second interface state. The numerical flux is equal in magnitude and opposite in direction for the control bodies on both sides of the common interface. The submerged control body updates the water depth and flow velocity based on the water flux and momentum flux, while the exposed control body updates the water depth only based on the water flux.
[0014] Furthermore, in step S5, the preset minimum positive water depth is only used for wave velocity calculation, interface state reconstruction, and Riemann approximate flux calculation, and does not change the flooding state discrimination result obtained based on the original water depth of each vertex of the control volume.
[0015] Furthermore, when the control body interface is an open boundary, a virtual control body is set outside the open boundary, and the open boundary conditions are set on the virtual control body. The corresponding characteristic compatibility relationship is selected according to the local flow state of the control body inside the open boundary, and the state variables of the virtual control body are determined according to the state variables of the control body inside the open boundary and the open boundary conditions. Then, the numerical flux across the open boundary is calculated using the same Riemann approximation flux calculation format as the internal control body interface.
[0016] Furthermore, when the control volume interface is a land boundary, the numerical flux across the land boundary is calculated in the local normal coordinate system of the land boundary according to the following formula:
[0017] Where g is the acceleration due to gravity.
[0018] Furthermore, based on the normal flow velocity of the control volume inside the open boundary... U L and wave speed c L Determine the local flow state: when U L <0 and U L |> cL When the open boundary is determined to be a rapid inflow boundary, all state variables of the virtual control body are directly given. when U L >0 and | U L |> c L When the open boundary is determined to be a rapid outflow boundary, the state variable of the virtual control body is set to be the same as the state variable of the control body inside the open boundary. When | U L ∣< c L When the open boundary is determined to be a slow-flow boundary, an open boundary condition is given, consisting of water level, normal velocity, unit width flow rate, or water level-flow rate relationship, and the condition is determined according to the compatibility relationship.
[0019] Compared with the prior art, the beneficial effects of the present invention are as follows: This invention determines the wet / dry state by the water depth at each vertex of the control volume, accurately identifying partially submerged control volumes under conditions of large bottom slopes, avoiding misjudgments caused by relying solely on the centroid water depth. For exposed control volumes, only water balance is calculated and water exchange with submerged control volumes is restricted. Simultaneously, the Riemann approximation solution is uniformly used to calculate numerical flux at non-exposed-exposed interfaces. While ensuring water conservation and computational stability, this reduces format switching between different control volumes and manual water level corrections. Combined with minimum positive water depth processing and simplified calculation of diffusion terms, this invention improves the simulation accuracy and operational efficiency of shallow water flow models for complex conditions such as floodplains, backwaters, siltation, and pollutant diffusion. Attached Figure Description
[0020] 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 flowchart of the dynamic boundary treatment method for shallow water flow simulation according to the present invention; Figure 2 This is a schematic diagram of the virtual control body in an embodiment of the present invention; Figure 3 This is a schematic diagram of the semi-dry and semi-wet boundary in an embodiment of the present invention; Figure 4 This is a schematic diagram of the integral path calculation in an embodiment of the present invention; Figure 5 This is a schematic diagram of the boundary gradient approximation calculation in an embodiment of the present invention. Detailed Implementation
[0021] 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.
[0022] This embodiment proposes a dynamic boundary treatment method for shallow water flow simulation, which is particularly suitable for shallow water flow numerical models using unstructured triangular meshes and the finite volume method, such as... Figure 1 As shown, the method in this embodiment includes the following steps: S1: Constructing the computational grid and defining the control volume An unstructured triangular mesh is used to spatially discretize the computational domain. Each triangular mesh cell is treated as an independent control volume, with physical variables such as water depth, flow velocity, and pollutant concentration placed at the centroid of each triangular control volume.
[0023] S2: Determine the flooding status of the control volume Before the calculation of each time step begins, the flooding status of the control volume is determined based on the water depth values at each vertex of the control volume. The specific determination logic is as follows: If the water depth at all three vertices of a control volume is greater than or equal to zero, then the control volume is determined to be a flood control volume.
[0024] If the water depth at any vertex of a control body is less than zero (i.e., the vertex is above the water surface), then the control body is determined to be an exposed control body.
[0025] S3: Classify and calculate the control body Based on the determination result of step S2, different calculation strategies are adopted for different types of control bodies: For the flood control body: Simultaneously calculate the water balance (continuity equation) and momentum balance (momentum equation).
[0026] For exposed control volumes: only water balance calculations are performed, momentum balance calculations are not performed, and the velocity components (u, v) of the control volume are set to zero.
[0027] S4: Handles throughput exchange between control units Water exchange: When calculating the numerical flux across the control volume interface, a uniform method is used for all possible cases described in step S3 (including flood-flood, flood-exposed, and exposed-exposed).
[0028] Exposure-exposure treatment: For two adjacent control volumes that are both exposed, no flux exchange of water and momentum occurs at their interface.
[0029] Unified flux calculation: For all interfaces except the exposed-exposed interface, the flux calculation format based on the Riemann approximation solution is used to calculate the water and momentum fluxes across the interface.
[0030] S5: Prevents negative water depth values. During the calculation process, if a negative value is detected in the water depth calculated in any control body, the water depth of that control body will be forcibly set to a very small positive number close to zero (i.e., a preset minimum water depth value). This preset minimum water depth value does not affect the overall water volume conservation and calculation accuracy, so as to ensure that the calculation process will not be interrupted due to a negative water depth.
[0031] S6: Time Stepping and Iteration Repeat steps S2 to S5 to calculate the next time step until the simulation reaches the preset end time.
[0032] As a further improvement of the present invention, in step S1, a sloping-bottom model is used to process the terrain, that is, the riverbed elevation within each triangular control body is a sloping plane determined by the elevations of its three vertices. This helps to calculate the bottom slope source term more accurately.
[0033] As a further improvement of the present invention, in step S4, the flux calculation uses a high-precision Gaussian quadrature formula to calculate the average flux on the control volume boundary. Preferably, a two-point Gaussian quadrature formula is used to improve the calculation accuracy and stability.
[0034] Real-world shallow water flow problems all have boundaries, requiring boundary conditions to be specified. Boundaries are categorized into two types: land boundaries (closed boundaries) and open boundaries (water boundaries). Unlike the finite difference method, which directly assigns the values of boundary nodes at each time step, the CC-style finite volume method does not have nodes on the boundary. Therefore, boundary conditions cannot be directly assigned to the boundary control volume nodes. This embodiment employs the virtual control volume method, such as... Figure 2 As shown, an extremely thin virtual control volume is set outside the boundary, and the boundary conditions are set on the virtual control volume. Then, the compatibility relationship of the normal output characteristics is selected according to the local flow regime (slow flow or rapid flow), based on the known characteristics inside the boundary. q L Together with the boundary conditions on the virtual control volume, the boundary conditions outside the boundary are determined by joint solution. q R Then, the numerical flux across the outer boundary is calculated using the same method as that used for the internal control volume.
[0035] land border The relevant technology uses the mirror method to process land boundaries. Its main idea is to assume that the normal flow velocity at the land boundary is zero, and the flow velocity at the center of the boundary control volume is parallel to the boundary. Therefore, the conserved physical quantities at the center of the virtual control volume are obtained. Then, the numerical flux across the boundary is calculated using the Riemann approximation. This method treats the land boundary as a water boundary. When there is a large angle between the flow velocity and the boundary, the calculation of momentum flux will have a large error because the influence of hydrodynamic pressure on the boundary is not considered. In this embodiment, the numerical flux of the land boundary is calculated according to the following formula:
[0036] Compared with the mirror method, it can greatly reduce the amount of computation and can take into account the influence of hydrodynamic pressure at the land boundary.
[0037] Opening boundaries This embodiment uses the virtual control volume method to handle boundary problems. For open boundaries, the key lies in how to obtain... qR For rapids, the hydraulic parameters downstream are entirely determined by upstream, and the inflow boundary must be given. qR Each component; at the outflow boundary No boundary conditions need to be given; for slow flow, both inflow and outflow boundaries require the definition of some hydraulic elements on the boundary, and then the compatibility relation is used to determine the boundary conditions. qR Table 1 summarizes the various methods for handling open boundaries.
[0038] The following discussion addresses the situation where different boundary conditions are given for slow-flow boundaries. q R Determination of each unknown component.
[0039] (1) Given water level Z R
[0040] In the formula: Z d —The bottom elevation at the flux integration point on the boundary.
[0041] (2) Given flow rate U R
[0042] (3) Given the unit width flow rate Q R From the compatibility relation
[0043] The above formula is abouth R The nonlinear equations can be solved iteratively using Newton's method:
[0044] In the formula:
[0045]
[0046]
[0047] Dynamic boundary handling Large areas of tidal flats and sand ridges often exist in natural river channels, estuaries, and bays. These areas are sometimes submerged and sometimes exposed as the water level rises and falls, thus altering the corresponding water boundaries. When performing numerical calculations on these areas, dynamic boundary techniques must be employed to realistically simulate the tidal flow of rising tides and receding tides. Currently, there are many methods for handling dynamic boundaries, with the freezing method and the cutting method being commonly used in the finite volume method. The freezing method determines whether the control volume is exposed based on the water depth at its center. It takes a near-infinite positive roughness value for the exposed control volume, making the flow velocity in the control volume approach zero, thus freezing the control volume during calculation. The freezing method is suitable for wide, shallow, and relatively flat exposed beaches. The cutting method, also known as the thin water layer method, similarly determines whether the control volume is exposed, but it does not freeze the water level. Instead, it introduces a margin of water depth to ensure the integrity and stability of the calculation process. This is equivalent to cutting down the original terrain, and once the actual water depth exceeds the margin of water depth, the original terrain is restored. For example, Tan Weiyan and Hu Siyi used a critical water depth (HCWD) to determine whether a control volume is dry or wet. When calculating the computational domain, if a control volume and all its surroundings are dry control volumes, the calculation is skipped, and the moving boundary position is not specifically tracked. Zhao Dihua classified control volumes into three types based on two water depth thresholds: wet control volumes, dry control volumes, and semi-dry / semi-wet control volumes. When a control volume is dry, it does not participate in the calculation; when the control volume is semi-dry / semi-wet, a simplified method is used for calculation; when the control volume is wet, the Riemann approximation solution is used for calculation.
[0048] The above-mentioned methods for handling dynamic boundaries all use the water depth at the body's center as the criterion for controlling the body's wetness or dryness. However, these methods appear somewhat crude when the bottom slope is significant. For example... Figure 3As shown, when some nodes of the control body are exposed above the water surface while others are submerged at a significant depth, determining whether the control body is exposed based on a zero centroid water depth would obviously introduce a large error. To address this, Zhu Dejun designed a submerged node method. This method corrects the average water depth of the control body and the average water depth at the interface based on the submersion status of each node. The corrected average water depth is used as the criterion for whether the control body is exposed. The actual water level change is indirectly solved by calculating the change in the corrected average water depth, and the corrected average water depth at the interface is used in the convection term calculation. However, this water level correction method lacks a clear physical concept, and the water depth correction is performed on each control body at every time step, greatly increasing the computational load. More importantly, for partially submerged control bodies, regardless of the water depth correction, calculating the change in water volume within the control body or the reaction force of the bottom slope on the water using the entire control body area will introduce a large error. Therefore, this embodiment proposes the following dynamic boundary handling method: (1) The submersion and exposure of the control body are determined by the water depth at each vertex of the control body. If the water depth at any vertex of the control body is less than zero, the control body is judged to be exposed. (2) For exposed control volumes, only water balance is calculated, not momentum balance, and the flow velocity is zero; (3) The exposed control body only exchanges water volume with the submerged control body, and there is no flux exchange between the exposed control bodies; (4) If a point in the control body is exposed during the calculation (water depth is less than zero), then a very small water depth is assigned; (5) Numerical flux is calculated entirely using the Riemann approximation solution.
[0049] This method determines the water exchange between exposed and submerged control bodies through actual calculations, ensuring water conservation. Compared with manually adjusting the water level of the control bodies, its physical significance is clearer. Moreover, the same flux calculation method is used for both exposed and submerged control bodies, eliminating the need for pre-processing. Numerical calculations show that this method can effectively handle dynamic boundaries that arise during the calculation.
[0050] Diffusion term processing Currently, many flow models based on the finite volume method do not calculate the diffusion term because it is generally small compared to other terms. However, for certain problems (such as backflow sedimentation and pollutant diffusion), the diffusion term is quite important and its influence must be considered. After spatial discretization using the finite volume method, the second-order partial differential of the diffusion term is reduced to a first-order partial differential, i.e.
[0051] In the formula: W represents physical quantities such as u, v, and C; εx , εy Let be the turbulent viscosity coefficients in the x and y directions, respectively. The key lies in the gradient at the control volume boundary. The calculation.
[0052] (1) Gauss-Green's formula method along Figure 4 The integral path shown by the dashed line is calculated using Green's formula, as follows:
[0053] In the formula: A is the area enclosed by the integration path.
[0054] The coordinates and function values of points O1, P, O2, and Q are given respectively. The physical quantities used in the formula at the vertex of the control volume can be obtained by taking the weighted average of the values at the center of the control volume around the vertex according to the inverse distance.
[0055] (2) Simplification method The x and y gradients at the control volume boundary can also be approximated by the gradient of the function value at the control volume center along the line connecting them (see...). Figure 5 )
[0056] Substituting the above equation into the first-order partial differential equation, we get:
[0057] This embodiment uses a simplified method to calculate the diffusion term.
[0058] Through the above processing, this embodiment integrates open boundary, land boundary and dynamic boundary into the finite volume flux calculation framework, uses the water depth at the control volume vertex to determine the wet and dry state, performs only water balance on the exposed control volume, and adopts the Riemann approximation flux consistent with the internal interface on the exposed-submerged control volume interface, thereby improving the adaptability of shallow water flow simulation to floodplains, backwaters and complex terrain dynamic boundaries while ensuring water conservation.
[0059] 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 method for handling dynamic boundaries in shallow water flow simulation, characterized in that, Includes the following steps: S1. Spatial discretization of the shallow water flow calculation region is performed using an unstructured triangular mesh. Each triangular mesh unit is treated as a control volume, and the water depth and flow velocity variables are arranged at the centroid of the control volume to obtain the water depth at the vertex of each control volume. S2. In each time step, the submerged state of the control body is determined according to the water depth at each vertex of the control body. When the water depth at all vertices of the control body is greater than or equal to zero, the control body is determined to be a submerged control body. When the water depth at any vertex of the control body is less than zero, the control body is determined to be an exposed control body. S3. Perform water balance and momentum balance calculations on the flooded control body, and perform only water balance calculations on the exposed control body, and set the flow velocity of the exposed control body to zero. S4. For the common interface between two adjacent exposed control bodies, no water flux and momentum flux exchange is performed; for the common interface between submerged control bodies and the common interface between submerged control bodies and exposed control bodies, the numerical flux across the common interface is calculated using a flux calculation format based on the Riemann approximation solution, so that the exposed control body only exchanges water with the submerged control body. S5. During the numerical flux calculation process, when the water depth at the control volume vertex, interface flux integration point, or variable reconstruction point is less than zero, the equivalent water depth of that point participating in the numerical calculation is set to the preset minimum positive water depth. S6. Repeat steps S2 to S5 to update the flooding state and hydrodynamic variables of each control body until the preset simulation end time is reached.
2. The method according to claim 1, characterized in that, In step S1, the bottom surface of each triangular control body is set as an inclined plane determined by the bottom elevation of the three vertices of the control body, and the water depth at the vertex is obtained according to the difference between the water level at the vertex of the control body and the bottom elevation; the water level at the vertex of the control body is obtained by interpolation of the water levels at the centroids of multiple control bodies sharing the vertex in a distance-weighted manner.
3. The method according to claim 1, characterized in that, In step S3, for any control volume, the water flux across the three boundaries of the control volume is accumulated, and the water depth of the control volume is updated based on the accumulated water flux. For a flooded control volume, the momentum flux across the three boundaries of the control volume will be accumulated, and the flow velocity of the control volume in the two horizontal directions will be updated based on the accumulated momentum flux. For exposed control volumes, momentum flux accumulation is not performed, and the flow velocity of the control volume in both horizontal directions is set to zero. For a common interface between two adjacent control bodies, the water flux across the common interface is equal in magnitude and opposite in direction for both control bodies.
4. The method according to claim 1, characterized in that, For physical quantities representing velocity components, velocity components, or pollutant concentrations, the gradient at the control volume boundary is approximated by the directional gradient of the function value at the control volume center along the line connecting the control volume centers, and the diffusion term across each control volume boundary is calculated according to the following formula: , In the formula, WL is the physical quantity at the center of the current control body, WR is the physical quantity at the center of the adjacent control body, L′ is the distance between the centers of the two control bodies, ε is the diffusion coefficient at the boundary of the corresponding control body, h is the water depth at the boundary of the corresponding control body, and L is the length of the boundary of the corresponding control body.
5. The method according to claim 1, characterized in that, In step S4, for the common interface between the submerged control body and the exposed control body, a first interface state is constructed using the actual water depth and actual flow velocity on the submerged control body side, and a second interface state is constructed using the zero flow velocity on the exposed control body side and the preset minimum positive water depth. The numerical flux across the common interface is calculated using the Riemann approximation solution based on the first interface state and the second interface state. The numerical flux is equal in magnitude and opposite in direction for the control bodies on both sides of the common interface. The submerged control body updates the water depth and flow velocity based on the water flux and momentum flux, while the exposed control body updates the water depth only based on the water flux.
6. The method according to claim 1, characterized in that, In step S5, the preset minimum positive water depth is only used for wave velocity calculation, interface state reconstruction and Riemann approximate flux calculation, and does not change the flooding state discrimination result obtained based on the original water depth of each vertex of the control volume.
7. The method according to claim 1, characterized in that, When the control body interface is an open boundary, a virtual control body is set outside the open boundary, and the open boundary conditions are set on the virtual control body. The corresponding characteristic compatibility relationship is selected according to the local flow state of the control body inside the open boundary, and the state variables of the virtual control body are determined according to the state variables of the control body inside the open boundary and the open boundary conditions. Then, the numerical flux across the open boundary is calculated using the same Riemann approximation flux calculation format as the internal control body interface.
8. The method according to claim 1, characterized in that, When the control volume interface is a land boundary, the numerical flux across the land boundary is calculated in the local normal coordinate system of the land boundary according to the following formula: , Where g is the acceleration due to gravity.
9. The method according to claim 1, characterized in that, Based on the normal flow velocity of the control volume inside the open boundary U L and wave speed c L Determine the local flow state: when U L <0 and U L |> c L When the open boundary is determined to be a rapid inflow boundary, all state variables of the virtual control body are directly given. when U L >0 and | U L |> c L When the open boundary is determined to be a rapid outflow boundary, the state variable of the virtual control body is set to be the same as the state variable of the control body inside the open boundary. When | U L ∣< c L When the open boundary is determined to be a slow-flow boundary, an open boundary condition is given, consisting of water level, normal velocity, unit width flow rate, or water level-flow rate relationship, and the condition is determined according to the compatibility relationship.
