One-dimensional hydrodynamic simulation method and device in local coordinate system
Through the one-dimensional hydrodynamic simulation method under the local coordinate system, combined with the roughness function and the neural network optimization objective function, the problem of difficulty in mastering the overall change of the water level flow change process in the existing technology is solved, and more accurate river water level simulation and predict.
Patent Information
- Application Number
- CN202211406308.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-10
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2042-11-10
AI Technical Summary
It is difficult to grasp the overall water level change process simulated in the prior art, especially when dealing with the bending form and river section differences of irregular river channels, it is difficult to grasp the transient changes and overall changes in independent calculations of each river section.
The one-dimensional hydrodynamic simulation method under the local coordinate system is adopted. By obtaining the position information and water level flow data of multiple observation points, combining the roughness function to establish a one-dimensional hydrodynamic model, and using the neural network to optimize the objective function to determine the roughness function, simulate Water level flow change process.
This method can more accurately simulate and predict the water level changes of the target river channel, reflect the changes in roughness along the route, and the simulation results are more accurate and reliable, which conform to the water level evolution of the natural river channel, without calculating multiple river sections in sequence.
Smart Images

Figure CN115659871B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of engineering simulation and numerical simulation, and in particular to a one-dimensional hydrodynamic simulation method and device in a local coordinate system. Background Art
[0002] A river is an open and complex dynamic system. At the same time, the cross-section of a large river is often irregular and often presents a curved shape. When using a hydrodynamic model to measure and predict its water level, it is often necessary to use a distributed approach to process the hydrodynamic model. The distributed hydrodynamic model divides the river into multiple sections, sets a roughness parameter for each section to be calculated independently, and integrates multiple sections to simulate and predict the water level of the entire river. However, this method tends to ignore the differences in the curvature of the river and the cross-section of the river. The independent calculation of each section is also likely to cause transient changes in the water level, making it difficult to grasp the overall water level changes. Summary of the invention
[0003] Therefore, the technical problem to be solved by the present invention is to overcome the defect that the water level flow change process simulated in the prior art is difficult to grasp the overall water level change, thereby providing a one-dimensional hydrodynamic simulation method and device in a local coordinate system.
[0004] The first aspect of the present invention provides a one-dimensional hydrodynamic simulation method in a local coordinate system, comprising the following steps: obtaining position information of multiple observation points on a target river channel relative to a pre-established local coordinate system, and water level and flow data collected at each observation point, wherein the local coordinate system is established based on the river flow direction of the target river channel; inputting the position information of each observation point relative to the local coordinate system and the water level and flow data of each observation point into a pre-established one-dimensional hydrodynamic model, solving the one-dimensional hydrodynamic model to obtain the water level and flow change process of the target river channel, wherein the one-dimensional hydrodynamic model is established in combination with a roughness function, and the roughness function is a continuous function with the spatial position in the local coordinate system as the independent variable and the roughness as the dependent variable.
[0005] Optionally, in the one-dimensional hydrodynamic simulation method in the local coordinate system provided by the present invention, the one-dimensional hydrodynamic model includes a water flow continuity equation and a water flow motion equation, and the water flow motion equation is established in combination with a roughness function.
[0006] Optionally, in the one-dimensional hydrodynamic simulation method in the local coordinate system provided by the present invention, the roughness function is determined by the following steps: obtaining historical water level flow data collected at each observation point; inputting the historical water level flow data collected at each observation point into a pre-established optimization objective function, the optimization objective function is established in combination with the first initial neural network model, the second initial neural network model, and the hydrodynamic model, the water and sand parameters in the hydrodynamic model are determined by the first initial neural network model, the roughness in the hydrodynamic model is determined by the second initial neural network model, and the optimization objective function is determined according to the sum of the simulation residuals of each hydrodynamic model; solving the optimization objective function, optimizing the first network model parameters and the second network model parameters, and obtaining the first network model optimization parameters and the second network model optimization parameters that minimize the value of the optimization objective function, the first network model parameters are the parameters in the first initial neural network model, and the second network model parameters are the parameters in the second initial neural network model; determining the roughness function in combination with the second initial neural network model including the second network model optimization parameters.
[0007] Optionally, in the one-dimensional hydrodynamic simulation method in the local coordinate system provided by the present invention, the simulation residual of the hydrodynamic model includes the residual of the water flow continuity equation and the residual of the water flow motion equation.
[0008] Optionally, in the one-dimensional hydrodynamic simulation method in the local coordinate system provided by the present invention, the water and sand parameters determined by the first neural network model include flow and water level, and the optimization objective function also includes the approximation error of the flow output by the first initial neural network model to the actual flow, and the approximation error of the water level output by the first initial neural network model to the actual water level.
[0009] Optionally, in the one-dimensional hydrodynamic simulation method in the local coordinate system provided by the present invention, the simulation residual of the hydrodynamic model includes:
[0010]
[0011]
[0012] Among them, e1 represents the residual of the water flow continuity equation, e2 represents the residual of the water flow motion equation, B represents the water surface width, Z s Indicates water level, Q s represents flow, t represents time, x represents spatial position, q L represents the lateral inflow per unit river length, A represents the water cross-sectional area, g represents the gravitational acceleration, and n s represents the roughness, R represents the hydraulic radius, among which, Z s =Z s (x,t;θ u ), Q s =Qs (x,t;θ u ), n s =n s (x;θ p ), θ u represents the first network model parameter, θ p Represents the second network model parameters.
[0013] Optionally, in the one-dimensional hydrodynamic simulation method in the local coordinate system provided by the present invention, the pre-established one-dimensional hydrodynamic model is:
[0014]
[0015]
[0016] Among them, t represents time, x represents the spatial position in the local coordinate system, B represents the width of the water surface, Z represents the water level, Q represents the flow rate, and q L It represents the lateral inflow flow per unit river length, u represents the average flow velocity of the section, g represents the gravitational acceleration, A represents the cross-sectional area of the water flow, n(x) represents the roughness function, and R represents the hydraulic radius.
[0017] The second aspect of the present invention provides a one-dimensional hydrodynamic simulation device in a local coordinate system, comprising: a data acquisition module, used to obtain the position information of multiple observation points on the target river channel relative to a pre-established local coordinate system, and water level and flow data collected at each observation point, the local coordinate system is established based on the river flow direction of the target river channel; a simulation module, used to input the position information of each observation point relative to the local coordinate system and the water level and flow data of each observation point into a pre-established one-dimensional hydrodynamic model, solve the one-dimensional hydrodynamic model to obtain the water level and flow change process of the target river channel, the one-dimensional hydrodynamic model is established in combination with the roughness function, and the roughness function is a continuous function with the spatial position in the local coordinate system as the independent variable and the roughness as the dependent variable.
[0018] The third aspect of the present invention provides a computer device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, thereby executing the one-dimensional hydrodynamic simulation method in the local coordinate system provided in the first aspect of the present invention.
[0019] The fourth aspect of the present invention provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute a one-dimensional hydrodynamic simulation method in a local coordinate system as provided in the first aspect of the present invention.
[0020] The technical solution of the present invention has the following advantages:
[0021] In the one-dimensional hydrodynamic simulation method under the local coordinate system provided by the present invention, the one-dimensional hydrodynamic model used to simulate the water level flow change process is established based on a continuous roughness function. The continuous roughness function can reflect the process of roughness change along the way. Therefore, when the water level flow change process is simulated by the one-dimensional hydrodynamic model in the present invention, the target river channel is taken as a whole, and the simulation prediction results are more in line with the water level evolution of the natural river channel. There is no need to calculate multiple river sections in sequence, and the simulation results are more accurate and reliable. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 It is a flowchart of a specific example of a one-dimensional hydrodynamic simulation method in a local coordinate system in an embodiment of the present invention;
[0024] Figure 2 A local coordinate system established according to the river flow direction in an embodiment of the present invention;
[0025] Figure 3 is a principle block diagram of a specific example of a one-dimensional hydrodynamic simulation device in a local coordinate system in an embodiment of the present invention;
[0026] Figure 4 It is a principle block diagram of a specific example of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] In the description of the present invention, it should be noted that the terms “first” and “second” are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0029] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0030] The embodiment of the present invention provides a one-dimensional hydrodynamic simulation method in a local coordinate system, such as Figure 1 As shown, the following steps are included:
[0031] Step S11: obtaining the position information of multiple observation points on the target river channel relative to a pre-established local coordinate system, as well as the water level and flow data collected by each observation point, wherein the local coordinate system is established based on the river flow direction of the target river channel.
[0032] In an optional embodiment, the local coordinate system established according to the river flow direction is as follows: Figure 2 As shown, the river flow direction is positive.
[0033] In the embodiment of the present invention, the position information of the observation point relative to the local coordinate system is the position along the water flow direction, not the position in the rectangular coordinate system.
[0034] Step S12: Input the position information of each observation point relative to the local coordinate system and the water level and flow data of each observation point into a pre-established one-dimensional hydrodynamic model, and solve the one-dimensional hydrodynamic model to obtain the water level and flow change process of the target river. The one-dimensional hydrodynamic model is established in combination with the roughness function. The roughness function is a continuous function with the spatial position in the local coordinate system as the independent variable and the roughness as the dependent variable.
[0035] In the embodiment of the present invention, the roughness function is a continuous function that changes along the river direction.
[0036] In an optional embodiment, the real-time water level and flow data collected at each observation point are input into a one-dimensional hydrodynamic model and solved using a finite difference method, so that the water level and flow variation process of the target river channel can be calculated in real time.
[0037] The roughness of a river channel is affected by the cross section of the river channel. The cross section of the target river channel changes along the river channel, and the roughness will naturally change along the river channel. The change of the cross section of the river channel is gradual. It is rare that the cross sections at different positions of a river section are the same, and the cross section of another adjacent river section changes suddenly. Therefore, dividing the target river channel into multiple river sections and determining a roughness for each river section is inconsistent with the actual situation, so the simulated water level flow change process is inaccurate. The one-dimensional hydrodynamic model used to simulate the water level flow change process in the embodiment of the present invention is established based on a continuous roughness function. The continuous roughness function can reflect the process of roughness change along the course. Therefore, when simulating the water level flow change process through the one-dimensional hydrodynamic model in the embodiment of the present invention, the target river channel is taken as a whole. The water level line in the simulation prediction result is continuous, which is more in line with the water level evolution of the natural river channel, and there is no need to calculate multiple river sections in sequence, so the simulation result is more accurate and reliable.
[0038] In an optional embodiment, the one-dimensional hydrodynamic model includes a water flow continuity equation and a water flow motion equation, and the water flow motion equation is established in combination with the roughness function:
[0039] Continuity equation for water flow:
[0040] The equation of motion for water flow is:
[0041] Among them, t represents time, x represents the spatial position in the local coordinate system, B represents the width of the water surface, Z represents the water level, Q represents the flow rate, and q L It represents the lateral inflow flow per unit river length, u represents the average flow velocity of the section, g represents the gravitational acceleration, A represents the cross-sectional area of the water flow, n(x) represents the roughness function, and R represents the hydraulic radius.
[0042] In an optional embodiment, the roughness function is determined by the following steps:
[0043] First, obtain the historical water level and flow data collected at each observation point.
[0044] In an optional embodiment, at the bend of the river, the range of change of the river section along the course is relatively large. Therefore, in the actual application process, in order to make the roughness function more accurately reflect the roughness at different positions, more observation points can be set at the bend to collect more historical water level and flow data.
[0045] Then, the historical water level and flow data collected at each observation point are input into the pre-established optimization objective function. The optimization objective function is established in combination with the first initial neural network model, the second initial neural network model, and the hydrodynamic model. The water and sediment parameters in the hydrodynamic model are determined by the first initial neural network model, and the roughness in the hydrodynamic model is determined by the second initial neural network model. The optimization objective function is determined based on the sum of the simulation residuals of each hydrodynamic model.
[0046] In an optional embodiment, the output of the first initial neural network model includes Z s =Z s (x,t;θ u ), Q s =Q s (x,t;θ u ), etc., wherein Z s Indicates water level, Q s represents flow, x represents spatial position, t represents time, θ u It represents the first network model parameter. When solving the optimization objective function, the first network model parameter needs to be optimized. The spatial position represented by x refers to the distance along the river direction in the local coordinate system.
[0047] In an optional embodiment, the output of the second initial neural network model includes n s =n s (x;θp ), where n s represents the roughness, θ p It represents the second network model parameter. When solving the optimization objective function, the second network model parameter needs to be optimized.
[0048] Secondly, solve the optimization objective function, optimize the first network model parameters and the second network model parameters, and obtain the first network model optimization parameters and the second network model optimization parameters that minimize the value of the optimization objective function. The first network model parameters are the parameters in the first initial neural network model, and the second network model parameters are the parameters in the second initial neural network model.
[0049] In an optional embodiment, a classic gradient descent method is used to solve the optimization objective function until the optimal first network model parameters and second network model parameters are found.
[0050] Finally, the roughness function is determined by combining the second initial neural network model including the optimized parameters of the second network model.
[0051] In the one-dimensional hydrodynamic simulation method in the local coordinate system provided by the embodiment of the invention, since the optimization objective function is determined according to the sum of the simulation residuals of the hydrodynamic model, wherein the roughness in the hydrodynamic model is determined by the second initial neural network model, the second network model optimization parameters of the second neural network model determined in the process of solving the optimization objective function can minimize the sum of the simulation residuals of the hydrodynamic model. It can be seen that the method provided by the embodiment of the invention optimizes the second initial neural network model based on the strong constraints of the physical process, and the roughness function optimized by the method provided by the embodiment of the invention is more in line with the actual physical process. In addition, the method provided by the embodiment of the invention can directly optimize the objective function using a gradient optimization algorithm by placing the control equation of the hydrodynamic model into the optimized objective function without iterating the equation. At the same time, a physical driving term (i.e., the simulation residual of each hydrodynamic model) is introduced into the objective function, so that the optimization algorithm requires less observation data. The method can obtain the optimal solution of the roughness parameter with physical significance without solving the control equation, thereby obtaining the optimal roughness function, which can effectively improve the simulation efficiency and accuracy of the river water level and flow change process.
[0052] In an optional implementation embodiment, the simulation residuals of the hydrodynamic model used in constructing the optimization objective function include the residuals of the water flow continuity equation and the residuals of the water flow motion equation, that is, the optimization objective function is established based on the sum of the residuals of the water flow continuity equation and the residuals of the water flow motion equation.
[0053] In an optional embodiment, the simulation residual of the hydrodynamic model when establishing the optimization objective function includes:
[0054]
[0055]
[0056] Among them, e1 represents the residual of the water flow continuity equation, e2 represents the residual of the water flow motion equation, B represents the water surface width, Z s Indicates water level, Q s represents flow, t represents time, x represents spatial position, q L represents the lateral inflow per unit river length, A represents the water cross-sectional area, g represents the gravitational acceleration, and n s represents the roughness, R represents the hydraulic radius, among which, Z s =Z s (x,t;θ u ), Q s =Q s (x,t;θ u ), n s =n s (x;θ p ), θ u represents the first network model parameter, θ p Represents the second network model parameters.
[0057] In an optional embodiment, the optimization objective function also includes the approximation error e3=Q of the flow output by the first initial neural network model to the actual flow s -Q * , and the approximation error of the water level output by the first initial neural network model to the actual water level is e4 = Z s -Z * , where Q s represents the flow rate output by the first initial neural network model, Q * Indicates the actual flow rate, Z s represents the water level output by the first initial neural network model, Z * Indicates the actual water level, actual flow and actual water level are obtained through observation.
[0058] In an optional embodiment, the optimization objective function is:
[0059] In an embodiment of the present invention, the optimization objective function is solved until the first network model optimization parameters and the second network model optimization parameters are obtained, so that the outputs of the two neural network models satisfy the control equations as much as possible and are as close to the observed data as possible.
[0060] The embodiment of the present invention provides a one-dimensional hydrodynamic simulation device in a local coordinate system, such as Figure 3 As shown, including:
[0061] The data acquisition module 21 is used to obtain the position information of multiple observation points on the target river channel relative to a pre-established local coordinate system, as well as the water level and flow data collected by each observation point. The local coordinate system is established based on the river flow direction of the target river channel. For details, please refer to the description of step S11 in the above embodiment, which will not be repeated here.
[0062] The simulation module 22 is used to input the position information of each observation point relative to the local coordinate system and the water level and flow data of each observation point into a pre-established one-dimensional hydrodynamic model, and solve the one-dimensional hydrodynamic model to obtain the water level and flow change process of the target river. The one-dimensional hydrodynamic model is established in combination with the roughness function. The roughness function is a continuous function with the spatial position in the local coordinate system as the independent variable and the roughness as the dependent variable. For details, please refer to the description of step S12 in the above embodiment, which will not be repeated here.
[0063] An embodiment of the present invention provides a computer device, such as Figure 4 As shown, the computer device mainly includes one or more processors 31 and a memory 32. Figure 4 A processor 31 is taken as an example.
[0064] The computer device may further include: an input device 33 and an output device 34 .
[0065] The processor 31, the memory 32, the input device 33 and the output device 34 may be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.
[0066] The processor 31 can be a central processing unit (CPU). The processor 31 can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, or combinations of the above chips. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The memory 32 can include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function; the data storage area can store data created according to the use of a one-dimensional hydrodynamic simulation device in a local coordinate system, etc. In addition, the memory 32 can include a high-speed random access memory, and can also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory 32 optionally includes a memory remotely arranged relative to the processor 31, and these remote memories can be connected to the one-dimensional hydrodynamic simulation device in the local coordinate system through a network. The input device 33 can receive the calculation request (or other digital or character information) input by the user, and generate key signal input related to the one-dimensional hydrodynamic simulation device in the local coordinate system. The output device 34 can include a display device such as a display screen to output the calculation results.
[0067] The embodiment of the present invention provides a computer-readable storage medium, which stores computer instructions, and the computer storage medium stores computer executable instructions, which can execute the one-dimensional hydrodynamic simulation method in the local coordinate system in any of the above method embodiments. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memory.
[0068] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.
Claims
1. A one-dimensional hydrodynamic simulation method in a local coordinate system, characterized in that: The steps include: Acquire position information of multiple observation points on a target river channel relative to a pre-established local coordinate system, and water level and flow data collected by each observation point, wherein the local coordinate system is established based on the river flow direction of the target river channel; Inputting the position information of each observation point relative to the local coordinate system and the water level and flow data of each observation point into a pre-established one-dimensional hydrodynamic model, solving the one-dimensional hydrodynamic model to obtain the water level and flow variation process of the target river channel, wherein the one-dimensional hydrodynamic model is established in combination with a roughness function, and the roughness function is a continuous function with the spatial position in the local coordinate system as an independent variable and the roughness as a dependent variable; The one-dimensional hydrodynamic model includes a water flow continuity equation and a water flow motion equation, and the water flow motion equation is established in combination with a roughness function; The roughness function is determined by the following steps: Obtain historical water level and flow data collected at each observation point; Inputting the historical water level and flow data collected at each observation point into a pre-established optimization objective function, wherein the optimization objective function is established by combining the first initial neural network model, the second initial neural network model, and the hydrodynamic model, wherein the water and sediment parameters in the hydrodynamic model are determined by the first initial neural network model, and the roughness in the hydrodynamic model is determined by the second initial neural network model, and the optimization objective function is determined according to the sum of the simulation residuals of each hydrodynamic model; Solving the optimization objective function, optimizing the first network model parameters and the second network model parameters, and obtaining the first network model optimization parameters and the second network model optimization parameters that minimize the value of the optimization objective function, wherein the first network model parameters are parameters in the first initial neural network model, and the second network model parameters are parameters in the second initial neural network model; Determining the roughness function in combination with a second initial neural network model including the optimization parameters of the second network model; The simulation residuals of the hydrodynamic model include residuals of the water flow continuity equation and residuals of the water flow motion equation; The water and sediment parameters determined by the first initial neural network model include flow and water level. The optimization objective function also includes an approximation error between the flow rate output by the first initial neural network model and the actual flow rate, and an approximation error between the water level output by the first initial neural network model and the actual water level; The simulation residuals of the hydrodynamic model include: Among them, e1 represents the residual of the water flow continuity equation, e2 represents the residual of the water flow motion equation, B represents the water surface width, Z s Indicates water level, Q s represents flow, t represents time, x represents spatial position, q L represents the lateral inflow per unit river length, A represents the water cross-sectional area, g represents the gravitational acceleration, and n s represents the roughness, R represents the hydraulic radius, among which, Z s =Z s (x,t;q u ), Q s =Q s (x,t;q u ), n s =n s (x;q p ), q u represents the first network model parameter, q p represents the second network model parameter; The pre-established one-dimensional hydrodynamic model is: Among them, t represents time, x represents the spatial position in the local coordinate system, B represents the width of the water surface, Z represents the water level, Q represents the flow rate, and q L It represents the lateral inflow flow per unit river length, u represents the average flow velocity of the section, g represents the gravitational acceleration, A represents the cross-sectional area of the water flow, n(x) represents the roughness function, and R represents the hydraulic radius.
2. A one-dimensional hydrodynamic simulation device in a local coordinate system, characterized in that: include: A data acquisition module, used to acquire position information of multiple observation points on a target river channel relative to a pre-established local coordinate system, and water level and flow data collected by each observation point, wherein the local coordinate system is established based on the river flow direction of the target river channel; A simulation module, used for inputting the position information of each observation point relative to the local coordinate system and the water level and flow data of each observation point into a pre-established one-dimensional hydrodynamic model, solving the one-dimensional hydrodynamic model to obtain the water level and flow change process of the target river channel, wherein the one-dimensional hydrodynamic model is established in combination with a roughness function, and the roughness function is a continuous function with the spatial position in the local coordinate system as an independent variable and the roughness as a dependent variable; The one-dimensional hydrodynamic model includes a water flow continuity equation and a water flow motion equation, and the water flow motion equation is established in combination with a roughness function; The roughness function is determined by the following steps: Obtain historical water level and flow data collected at each observation point; Inputting the historical water level and flow data collected at each observation point into a pre-established optimization objective function, wherein the optimization objective function is established by combining the first initial neural network model, the second initial neural network model, and the hydrodynamic model, wherein the water and sediment parameters in the hydrodynamic model are determined by the first initial neural network model, and the roughness in the hydrodynamic model is determined by the second initial neural network model, and the optimization objective function is determined according to the sum of the simulation residuals of each hydrodynamic model; Solving the optimization objective function, optimizing the first network model parameters and the second network model parameters, and obtaining the first network model optimization parameters and the second network model optimization parameters that minimize the value of the optimization objective function, wherein the first network model parameters are parameters in the first initial neural network model, and the second network model parameters are parameters in the second initial neural network model; Determining the roughness function in combination with a second initial neural network model including the optimization parameters of the second network model; The simulation residuals of the hydrodynamic model include residuals of the water flow continuity equation and residuals of the water flow motion equation; The water and sediment parameters determined by the first initial neural network model include flow and water level. The optimization objective function also includes an approximation error between the flow rate output by the first initial neural network model and the actual flow rate, and an approximation error between the water level output by the first initial neural network model and the actual water level; The simulation residuals of the hydrodynamic model include: Among them, e1 represents the residual of the water flow continuity equation, e2 represents the residual of the water flow motion equation, B represents the water surface width, Z s Indicates water level, Q s represents flow, t represents time, x represents spatial position, q L represents the lateral inflow per unit river length, A represents the water cross-sectional area, g represents the gravitational acceleration, and n s represents the roughness, R represents the hydraulic radius, among which, Z s =Z s (x,t;q u ), Q s =Q s (x,t;q u ), n s =n s (x;q p ), q u represents the first network model parameter, q p represents the second network model parameter; The pre-established one-dimensional hydrodynamic model is: Among them, t represents time, x represents the spatial position in the local coordinate system, B represents the width of the water surface, Z represents the water level, Q represents the flow rate, and q L It represents the lateral inflow flow per unit river length, u represents the average flow velocity of the section, g represents the gravitational acceleration, A represents the cross-sectional area of the water flow, n(x) represents the roughness function, and R represents the hydraulic radius.
3. A computer device, characterized in that: include: at least one processor; And a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to perform the one-dimensional hydrodynamic simulation method in the local coordinate system as described in claim 1.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the one-dimensional hydrodynamic simulation method in a local coordinate system as claimed in claim 1.
