Method and system for calculating shallow water flow based on ladder Riemannian problem

By establishing and iteratively solving a system of binary nonlinear equations in shallow water flow, the wave pattern in shallow water flow is dynamically determined, which solves the calculation efficiency and accuracy problems caused by the randomness of the initial water depth in the existing technology, and realizes the real-time determination of the wave pattern. Updated and efficient solving.

CN118733940APending Publication Date: 2024-10-01YANGZHOU UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410758383.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

When existing technology solves the stepped Riemann problem in shallow water flow, the determination of the initial water depth is arbitrary, causing the wave pattern to be unable to be updated immediately during the iterative process, affecting calculation efficiency and accuracy.

Method used

By setting the flow velocity to be sought as a function of the water depth to be sought, a binary nonlinear equation system and the Jacobian matrix of the water depth are established and iteratively solved to determine the relationship between the wave types on both sides, and the L-M iteration method is used to solve the convergence values ​​of the water depth and flow velocity. , dynamically determine whether the wave type is a shock wave or a rarefaction wave.

Benefits of technology

It improves the efficiency and accuracy of solving the shallow water flow state, ensures that the wave pattern is updated instantly during the iteration process, and no longer relies on the solid assumption of the initial value.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733940A_ABST
    Figure CN118733940A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a system for calculating shallow water flow based on a ladder Riemannian problem. The method comprises the following steps: firstly, establishing an equation according to initial parameters of an initial state of a river channel; the step Riemannian solution of the shallow water flow of the equation comprises a derivative state variable; establishing a relation equation between the derived state variables and the initial parameters according to the forms of the waves on the two sides of the river channel; and setting the flow velocity to be solved as a function of the water depth to be solved, namely uSL = f (hSL) and uSR = f (hSR), substituting the flow velocity to be solved into the relation equation to obtain a binary nonlinear equation set and a Jacobian matrix of the water depth, and performing iterative solution until convergence to obtain a stepped Riemannian solution of the shallow water flow. According to the method, the solution of the step Riemannian problem is converted into a binary nonlinear equation set, an iteration method is utilized to carry out iteration solution, and whether the wave is a sparse wave or a shock wave is determined in real time along with the difference of iteration values in the iteration process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method and system for calculating shallow water flow, in particular to a method and system for calculating shallow water flow based on a step Riemann problem. Background Art

[0002] The Riemann problem is a very important problem in shallow water flow, which is often used in the construction of numerical formats and engineering calculations. Specifically, it refers to a discontinuity: the physical variables on both sides (including water depth, flow velocity and bottom elevation) are discontinuous. The solution obtained under the control of the shallow water equation is called the Riemann solution.

[0003] The Riemann problem without considering the bottom slope source term is called the homogeneous Riemann problem, and the Riemann problem considering the bottom slope source term is called the non-homogeneous Riemann problem, that is, the step Riemann problem discussed in the present invention. The homogeneous Riemann problem is based on the comparison between the new state variables derived in the middle and the known variables on both sides. The two sides are shock waves and rarefaction waves, respectively, corresponding to different variable relationships. Four Riemann solutions are obtained by combining two of them, namely left sparse and right shock wave, left shock wave and right sparse, left shock wave and right shock wave, and left sparse and right sparse. The homogeneous Riemann problem only derives a new state variable in the middle, while the step Riemann problem will derive two new state variables. The relationship between the two state variables is determined by the static shock wave located at the discontinuity. However, this relationship has only two relational equations, and there are four variables to be sought, so it also depends on whether the shock waves on both sides are sparse waves.

[0004] The old iterative solution determines whether the two sides are shock waves or rarefaction waves after determining the initial value of the derived water depth. However, the determination of the initial value of the derived water depth is arbitrary, which leads to the randomness of the wave type on both sides, and cannot be updated immediately with the change of the iteration value during the iteration process. Summary of the invention

[0005] Purpose of the invention: The purpose of the present invention is to provide a method and system for calculating shallow water flow by solving the step Riemann problem in shallow water equations.

[0006] Technical solution: The method for calculating shallow water flow based on the step Riemann problem of the present invention comprises the following steps:

[0007] The equation is established based on the initial parameters of the initial state of the river channel; the step Riemann solution of the shallow water flow of the equation includes derived state variables, and the derived state variables include the water depth h on the left side SL , left flow velocity u SL 、Water depth on the right side h SR and the right flow velocity u SR ;

[0008] According to the wave morphology on both sides of the river channel, the relationship equation between the derived state variables and the initial parameters is established;

[0009] The desired flow velocity is set as a function of the desired water depth, that is, u SL =f(h SL ),u SR =f(h SR ), and substitute it into the relational equation to obtain a binary nonlinear equation group and a Jacobian matrix of water depth;

[0010] An iterative solution is performed according to the binary nonlinear equation group and the Jacobian matrix until convergence, thereby obtaining a step Riemann solution of the shallow water flow.

[0011] Furthermore, the relationship equation between the derived state variables and the initial parameters established according to the wave morphology on both sides of the river channel includes a first relationship equation:

[0012] If the left side is a shock wave, then:

[0013] h L u L -h SL u SL =s L (h L -h SL );

[0014]

[0015] If the left side is a rarefaction wave, then:

[0016]

[0017] If the right side is a shock wave, then:

[0018] h R u R -h SR u SR =s R (h R -h SR );

[0019]

[0020] If the right side is a rarefaction wave, then:

[0021]

[0022] Among them, S L is the left shock wave velocity, S R is the right shock wave velocity, h L is the initial left water depth, u L is the initial left flow velocity, h R is the initial right water depth, u R is the initial right-side flow velocity, and g is the gravitational acceleration.

[0023] Furthermore, the first relational equation is simplified according to the functional relationship between the desired flow velocity and the desired water depth to obtain a third relational equation:

[0024] When the shock wave is on the left:

[0025]

[0026] When the shock wave is on the right:

[0027] u SR =u R +(h SR -h R )D4;

[0028]

[0029]

[0030] Furthermore, the relationship equation between the derived state variables and the initial parameters is established according to the wave morphology on both sides of the river channel, including: the derived state variables satisfy the second relationship equation:

[0031] h SL u SL =h SR u SR ;

[0032]

[0033] in:

[0034]

[0035] where z L is the elevation of the river bottom on the left, z R It is the river bottom elevation on the right.

[0036] Furthermore, in the second relational equation, h SL and h SR The fourth equation is derived for the independent variable to obtain the fourth equation; the fourth equation is combined with the second relationship equation to obtain a binary nonlinear equation group of water depth.

[0037] Furthermore, the binary nonlinear equations of the water depth are:

[0038] f1(h LS ,h RS )=h SL u SL -h SR u SR =0;

[0039]

[0040] Further, the iterative solution of the binary nonlinear equations and the Jacobian matrix until convergence to obtain the step Riemann solution of the shallow water flow includes: using the LM iteration method to solve h SL and h SR The convergence value of u is then solved using the relationship equation. SL and u SR .

[0041] The system for calculating shallow water flow based on the step Riemann problem of the present invention comprises:

[0042] A modeling unit is used to establish an equation according to the initial parameters of the initial state of the river channel; the step Riemann solution of the shallow water flow of the equation includes a derived state variable, and the derived state variable includes the water depth h on the left side SL , left flow velocity u SL 、Water depth on the right side h SR and the right flow velocity u SR ;

[0043] The iterative equations establishment unit is used to establish the relationship equation between the derived state variables and the initial parameters according to the wave morphology on both sides of the river channel; the flow velocity to be determined is set as a function of the water depth to be determined, that is, u SL =f(h SL ),u SR =f(h SR ) is substituted into the relational equation to obtain a binary nonlinear equation group and a Jacobian matrix of water depth;

[0044] The solution unit is used to perform iterative solution according to the binary nonlinear equation group and the Jacobian matrix until convergence, so as to obtain the step Riemann solution of the shallow water flow.

[0045] The electronic device described in the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is loaded into the processor, the method for calculating shallow water flow based on the ladder Riemann problem is implemented.

[0046] The computer-readable storage medium of the present invention stores a computer program, and when the computer program is executed by a processor, the method for calculating shallow water flow based on the ladder Riemann problem is implemented.

[0047] Beneficial effect: Compared with the prior art, the advantages of the present invention are: the present invention converts the solution of the step Riemann problem into a set of binary nonlinear equations, the wave types on both sides will not be solidified with the initial determination, and during the iteration process, it can be instantly determined whether it is a rarefaction wave or a shock wave according to the different iterative values, which can improve the efficiency and accuracy of solving shallow water flow states. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 is a flow chart of the method of the present invention;

[0049] Figure 2 It is a schematic diagram of the initial conditions of the present invention;

[0050] Figure 3 Schematic diagram of known conditions and variables to be determined in the present invention

[0051] Figure 4 A comparison diagram of iteration results and simulation results for left rarefaction wave and right shock wave in an embodiment of the present invention;

[0052] Figure 5 It is a comparison diagram between iteration results and simulation results for left shock wave and right shock wave of an embodiment of the present invention;

[0053] Figure 6 It is a comparison diagram between iteration results and simulation results for left rarefaction wave and right rarefaction wave of an embodiment of the present invention. DETAILED DESCRIPTION

[0054] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.

[0055] like Figure 1 As shown, the method for calculating shallow water flow based on the ladder Riemann problem includes the following steps:

[0056] (10) Assumption of initial parameters of river channel: Select a river channel with different water depth, riverbed height and flow velocity on both sides. Figure 2 As shown, the initial parameters on both sides are: the initial left water depth h L , initial left flow velocity u L , initial left river bottom elevation z L , initial right water depth h R , initial right side flow velocity u R , initial right river bottom elevation z R . The above are all known values.

[0057] (20) Determine the initial value of the variable to be determined: Two new states will be derived in the middle, and these two new states have a ladder as the interface, such as Figure 3 As shown, the water depth on the left is h SL , the velocity on the left is u SL , the water depth on the right is h SR , the flow velocity on the right is u SR . These four variables are the variables to be found.

[0058] The present invention regards the desired flow velocity as a function of the desired water depth, that is, u SL =f(h SL ),u SR =f(h SR), and finally iteratively solve the binary nonlinear equations related to the water depth.

[0059] (30) Substitute the initial water depth into the equation group and iterate: derive the iterative equation group and substitute the initial water depth into it for iteration;

[0060] (31) Determine the shape of the two side waves:

[0061] Compare SL With h L If h SL >h L , then the left side is a shock wave, otherwise it is a rarefaction wave.

[0062] Compare SR With h R If h SR >h R , then the right side is a shock wave, otherwise it is a rarefaction wave.

[0063] (32) List the relationship between state variables:

[0064] If the left side is a shock wave, the following relationship is satisfied:

[0065]

[0066] Where S L is the left shock wave velocity;

[0067] If the left side is a sparse wave, the following relationship is satisfied:

[0068]

[0069] If the right side is a shock wave, the following relationship is satisfied:

[0070]

[0071] Where S R is the right shock wave velocity;

[0072] If the right side is a rarefaction wave, the following relationship is satisfied:

[0073]

[0074] The shock wave in the middle makes the state variables on both sides satisfy the relationship:

[0075]

[0076] in

[0077]

[0078] (33) Simplified relation: From equation (2), we can get:

[0079]

[0080] in

[0081]

[0082] Derivative of (7):

[0083]

[0084] From (4), we can get:

[0085]

[0086] in:

[0087]

[0088] Derivation

[0089]

[0090] make:

[0091]

[0092] Then (1) becomes

[0093]

[0094] Combining the two equations, we get:

[0095]

[0096] make:

[0097]

[0098] Substitute (14)(17) into (16):

[0099]

[0100] Right now:

[0101]

[0102] From (17), we can get:

[0103]

[0104] Substituting (20) into (19) we obtain:

[0105]

[0106] From (13), we can obtain:

[0107]

[0108] Substituting (22) into (18) we obtain:

[0109]

[0110] Substituting (21) into (23), we obtain:

[0111] u SL =u L -(h SL -h L )D3 (24)

[0112] Reverse the above formula to h SL The derivative is:

[0113]

[0114] in:

[0115]

[0116] Similarly, if the right side is a shock wave, then:

[0117] u SR =u R +(h SR -h R )D4 (27)

[0118]

[0119] in:

[0120]

[0121] (34) List the equation and Jacobian matrix:

[0122] From (5), we can get:

[0123] f1(h LS ,h RS )=h SL u SL -h SR u SR =0 (30)

[0124]

[0125] u in the formula SL Determined by (7) and (24); u SR Determined by (10) and (27); D is determined by (6).

[0126] With hSL Taking the derivative of (30) with respect to the independent variable, we obtain:

[0127]

[0128] u in the above formula SL Also determined by (7) and (24); Determined by (9) and (25).

[0129] With h SR Taking the derivative of (30) with respect to the independent variable, we obtain:

[0130]

[0131] u in the above formula SR Also determined by (10) and (27); Determined by (12) and (28).

[0132] With h SL Taking the derivative of (31) with respect to the independent variable, we obtain:

[0133]

[0134] u in the above formula SL Also determined by (7) and (24); Also determined from (9) and (25), Δz = z R -z L . With h SR Taking the derivative of (31) with respect to the independent variable, we obtain:

[0135]

[0136] u in the above formula SR Also determined by (10) and (27); Also determined by (12) and (28).

[0137] In this way, the binary nonlinear homogeneous equations (30)(31)(32)(33)(34)(35) and their Jacobian matrix can be solved using the LM iteration method to obtain h SL and h SR The convergence value of u is obtained by using (1)(2)(3)(4) SL and u SR .

[0138] (40) until convergence to obtain the desired water depth.

[0139] ① For the case of left rarefaction and right shock wave, the initial conditions are set in this embodiment:

[0140] h L =5m,uL =0m / s, z L =0m,h R =1m,u R =0m / s, z R =1m

[0141] h SL and h SR The initial value of the iteration is 5, and the result is obtained after iteration:

[0142] h SL =3.64399m,u SL =2.08243m / s,h SR =2.24788m,u SR =3.32036m / s

[0143] This problem can be simulated using one-dimensional numerical simulation. Figure 4 It is the comparison between the iterative result and the simulation result at t = 0.89308s.

[0144] ② For shock waves on both sides, this embodiment sets the initial conditions:

[0145] h L =4m,u L =4.75m / s, z L =0m,h R =1.0838m,u R =-2.18m / s, z R =1m

[0146] h SL and h SR The initial value of the iteration is 5, and the result is obtained after iteration:

[0147] h SL =5.19336m,u SL =2.99267m / s,h SR =3.71648m,u SR =4.18192m / s

[0148] Figure 5 It is the comparison between the iterative result and the simulation result at t = 0.8936s.

[0149] ③ For left sparse wave and right sparse wave, this embodiment sets the initial conditions:

[0150] h L =8m,u L =-2m / s, z L =0m,h R =5m,u R =7.17m / s, zR =1m

[0151] h SL and h SR The initial value of the iteration is 5, and the result is obtained after iteration:

[0152] h SL =4.39958m,u SL =2.576215m / s,h SR =2.92406m,u SR =3.87621m / s

[0153] Figure 6 It is the comparison between the iterative result and the simulation result at t = 0.50415s.

[0154] The system for calculating shallow water flow based on the step Riemann problem of the present invention comprises:

[0155] A modeling unit is used to establish an equation based on initial parameters of the initial state of the river channel; the Riemann solution of the shallow water flow of the equation includes derived state variables, and the derived state variables include the water depth h on the left side SL , left flow velocity u SL 、Water depth on the right side h SR and the right flow velocity u SR ;

[0156] The iterative equations establishment unit is used to establish the relationship equation between the derived state variables and the initial parameters according to the wave morphology on both sides of the river channel; the flow velocity to be determined is set as a function of the water depth to be determined, that is, u SL =f(h SL ),u SR =f(h SR ), and substitute it into the relational equation to obtain a binary nonlinear equation group and a Jacobian matrix of water depth;

[0157] The solution unit is used to perform iterative solution according to the binary nonlinear equation group and the Jacobian matrix until convergence, so as to obtain the step Riemann solution of the shallow water flow.

[0158] The electronic device described in the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is loaded into the processor, the method for calculating shallow water flow based on the ladder Riemann problem is implemented.

[0159] The computer-readable storage medium of the present invention stores a computer program, and when the computer program is executed by a processor, the method for calculating shallow water flow based on the ladder Riemann problem is implemented.

[0160] The computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, flash memory, or any other medium that can be used to store the desired program code in the form of instructions or data structures and that can be accessed by a computer.

[0161] The processor is used to execute the computer program stored in the memory to implement each step of the method involved in the above embodiment.

Claims

1. A method for calculating shallow water flow based on the step Riemann problem, characterized in that: The steps include: The equation is established based on the initial parameters of the initial state of the river channel; the step Riemann solution of the shallow water flow of the equation includes derived state variables, and the derived state variables include the water depth h on the left side SL , left flow velocity u SL 、Water depth on the right side h SR and the right flow velocity u SR ; According to the wave morphology on both sides of the river channel, the relationship equation between the derived state variables and the initial parameters is established; The desired flow velocity is set as a function of the desired water depth, that is, u SL =f(h SL ),u SR =f(h SR ), and substitute it into the relational equation to obtain a binary nonlinear equation group and a Jacobian matrix of water depth; An iterative solution is performed according to the binary nonlinear equation group and the Jacobian matrix until convergence, thereby obtaining a step Riemann solution of the shallow water flow.

2. The method for calculating shallow water flow based on the step Riemann problem according to claim 1, characterized in that: The relationship equation between the derived state variables and the initial parameters established according to the wave morphology on both sides of the river channel includes the first relationship equation: If the left side is a shock wave, then: h L u L -h SL u SL =s L (h L -h SL ); If the left side is a rarefaction wave, then: If the right side is a shock wave, then: h R u R -h SR u SR =s R (h R -h SR ); If the right side is a rarefaction wave, then: Among them, S L is the left shock wave velocity, S R is the right shock wave velocity, h L is the initial left water depth, u L is the initial left flow velocity, h R is the initial right water depth, u R is the initial right-side flow velocity, and g is the gravitational acceleration.

3. The method for calculating shallow water flow based on the step Riemann problem according to claim 2, characterized in that: The first relational equation is simplified according to the functional relationship between the desired flow velocity and the desired water depth to obtain a third relational equation: When the shock wave is on the left: When the shock wave is on the right: u SR =u R +(h SR -h R )D4; 4. The method for calculating shallow water flow based on the step Riemann problem according to claim 3 is characterized in that: The relationship equation between the derived state variables and the initial parameters established according to the wave morphology on both sides of the river channel includes: The derived state variables satisfy the second relation equation: h SL u SL h SR u SR ; in: where z L is the elevation of the river bottom on the left, z R It is the river bottom elevation on the right.

5. The method for calculating shallow water flow based on the step Riemann problem according to claim 4 is characterized in that: In the second relational equation, h SL and h SR Taking the derivative for the independent variable, we get the fourth equation; The fourth equation and the second relationship equation are combined to obtain a binary nonlinear equation group of water depth.

6. The method for calculating shallow water flow based on the step Riemann problem according to claim 5, characterized in that: The binary nonlinear equations for the water depth are: f1(h LS ,h RS )=h SL you SL -h SR you SR =0; 7. The method for calculating shallow water flow based on the step Riemann problem according to claim 1, characterized in that: The iterative solution is performed according to the binary nonlinear equation group and the Jacobian matrix until convergence to obtain the step Riemann solution of the shallow water flow, which includes: Using the LM iteration method to solve h SL and h SR The convergence value of u is then solved using the relationship equation. SL and u SR .

8. A system for calculating shallow water flow based on the step Riemann problem, characterized in that: include: A modeling unit is used to establish an equation according to the initial parameters of the initial state of the river channel; the step Riemann solution of the shallow water flow of the equation includes a derived state variable, and the derived state variable includes the water depth h on the left side SL , left flow velocity u SL 、Water depth on the right side h SR and the right flow velocity u SR ; The iterative equations establishment unit is used to establish the relationship equation between the derived state variables and the initial parameters according to the wave morphology on both sides of the river channel; the flow velocity to be determined is set as a function of the water depth to be determined, that is, u SL =f(h SL ),u SR =f(h SR ), and substitute it into the relational equation to obtain a binary nonlinear equation group and a Jacobian matrix of water depth; The solution unit is used to perform iterative solution according to the binary nonlinear equation group and the Jacobian matrix until convergence, so as to obtain the step Riemann solution of the shallow water flow.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is loaded into a processor, the method for calculating shallow water flow based on the step Riemann problem according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for calculating shallow water flow based on the step Riemann problem according to any one of claims 1 to 7 is implemented.