A state synchronization method of a water conservancy model

By using a master-slave service architecture to synchronize the state of the hydraulic model, the problem of obtaining the initial values ​​of state variables in real-time calculation is solved, and the rapid and accurate calculation of the hydraulic model is achieved.

CN115481533BActive Publication Date: 2026-01-02NANJING HUISHUI SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211105809.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-09
Publication Date
2026-01-02
Estimated Expiration
2042-09-09

AI Technical Summary

Technical Problem

Existing hydraulic models suffer from the problem that initial values ​​of state variables are difficult to obtain directly in real-time calculations, leading to large errors in forecast results or long calculation times.

Method used

A synchronous architecture of master-slave services is adopted. The initial conditions are provided by the continuous calculation of the master service of the hydraulic model, and the state files are quickly obtained by the slave service to realize the rapid determination of the model state variables.

Benefits of technology

It improves the accuracy and timeliness of real-time calculations in hydraulic models, reduces result errors and shortens calculation time, and enhances multi-task concurrent computing capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115481533B_ABST
    Figure CN115481533B_ABST
Patent Text Reader

Abstract

The application relates to a water conservancy model state synchronization method, wherein a master service takes a historical data monitoring starting time as a model starting calculation time, initial conditions of the model are given, and the model is continuously calculated to the latest data monitoring time; a user submits a water conservancy model calculation scheme on a browser interface of a water conservancy system, the browser transmits the calculation scheme information to a slave service of the water conservancy model; the slave service accesses a model database through a master service interface, and obtains a model state file of the calculation starting time; and the slave service executes the calculation scheme and returns the calculation result to the user browser. The application adopts a master-slave service synchronization architecture to realize rapid giving of model state variable values, changes the water conservancy model from a state model to a non-state, so that real-time calculation of the water conservancy model has timeliness and accuracy, and the calculation ability of real-time calling of the water conservancy model is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of hydrological forecasting, and in particular to a state synchronization method of a water conservancy model. BACKGROUND

[0002] Real-time operation forecasting is an important part of the construction of a water conservancy intelligent business application system, and real-time water conservancy calculation is an effective implementation technique for the function, and necessary conditions thereof include a water conservancy model, initial conditions and boundary conditions. Real-time water conservancy calculation requires the water conservancy model to provide peak values and processes of key sections of a basin in a short time, thereby providing guidance for engineering operation and dispatching.

[0003] In actual application, there is a problem of initial value of a state variable for a real-time water conservancy calculation task. The state variable refers to an intermediate process calculation variable other than model input and output during model calculation, and the initial value of the state variable is the initial condition, and the specific value of the initial condition has a significant influence on the result of flood forecasting.

[0004] Since the state variable is difficult to be directly obtained through observation means, the initial value of the state variable is mainly given by a human being at present, and there are the following two commonly used methods:

[0005] One is a preheating method, that is, a state variable value at a time before a calculation start time is given, and continuous calculation is performed from the time to a flood start time, and then real-time calculation is performed. The preheating method can eliminate the influence of the initial condition on the result through continuous calculation, and the result of the preheating method is reliable, but the continuous calculation is time-consuming, and cannot meet the timeliness requirement of real-time calculation.

[0006] The other is a direct assumption method, that is, a state variable value at the calculation start time is directly given to drive model calculation, and the method can meet the time requirement of real-time calculation, but the result is directly affected by the initial value of the state variable, and the error of the result is large. SUMMARY

[0007] The present application aims to provide a state synchronization method of a water conservancy model, and the present application uses a master-slave service synchronization architecture to quickly give a state variable value of a model, changes a water conservancy model from a state model to a non-state, thereby making real-time calculation of the water conservancy model have timeliness and accuracy at the same time, and improving the calculation ability of real-time calling of the water conservancy model, so as to solve the problems encountered in the background technology.

[0008] To achieve the above-mentioned purpose, the technical scheme of the present application is as follows:

[0009] A state synchronization method of a water conservancy model, the method comprising the following steps:

[0010] Step 1: The main service of the water model starts the calculation time of the model with the historical data monitoring start time, gives the initial condition of the model, and uses the water model to continuously calculate to the latest data monitoring time;

[0011] Step 2: The user submits the water model calculation scheme in the browser interface of the water decision support system, and the browser transmits the calculation scheme information to the slave service of the water model;

[0012] Further, the information of the model calculation scheme includes the calculation start time, the calculation period, the rainfall distribution, the boundary and the engineering scheduling information.

[0013] Step 3: The slave service accesses the model database through the main service interface to obtain the model state file at the calculation start time;

[0014] Further, the water model slave service obtains the model state through the water model main service interface, specifically, the slave service sends the state request information to the main service, the state request information includes the water model slave service port address and the model calculation start time, the main service receives the model state request, generates the model state file at the calculation start time and sends it to the slave service.

[0015] Further, the model state file specifically includes the water quantity and quality state of the basin elements at the time.

[0016] Step 4: The slave service executes the calculation scheme and returns the calculation result to the user browser;

[0017] Further, the slave service executing the calculation scheme specifically includes giving the initial condition of the model according to the state variable set in the state file, reading the boundary condition and engineering scheduling information contained in the calculation scheme information, and driving the water model to calculate.

[0018] In the above scheme, the main service is used to provide the calculation result and the basin state file of the water model synchronized with the real-time monitoring data; the slave service is used to receive the input information submitted by the user through the browser, send the state request to the model main service, receive the model state file and execute the calculation scheme; the browser of the water system is used to provide the input model calculation scheme, transmit the calculation scheme information to the slave service and display the calculation result.

[0019] Compared with the prior art, the beneficial effects of the present application are: the synchronization method eliminates the influence of the initial value of the state variable on the subsequent calculation result by using the continuous calculation of the main service of the water conservancy model, and the water conservancy model directly obtains the initial condition according to the calculation result of the main service, which on the one hand eliminates the result error caused by directly assuming the initial condition in real-time calculation, effectively improves the result accuracy of real-time water conservancy calculation; on the other hand, the transmission of the state file is used instead of the traditional local model calculation, so as to have the necessary condition of fast start calculation, and the time-consuming problem of water conservancy model state given is improved compared with the prior art, the concurrent calculation function of real-time calculation multi-task is realized with small space resource consumption, and the business capability of real-time calculation of the water conservancy model is improved. BRIEF DESCRIPTION OF DRAWINGS

[0020] The disclosed content of the present application will be explained with reference to the accompanying drawings, which should be understood as merely for illustrative purposes, and not intended to limit the protection scope of the present application. In the drawings, the same reference signs are used to refer to the same parts. Among them:

[0021] Figure 1 a flow chart of a state synchronization method of a water conservancy model of the present application;

[0022] Figure 2 a schematic diagram of the working principle of a state synchronization method of a water conservancy model of the present application;

[0023] Figure 3 a schematic diagram of the calculation condition of a water conservancy model in the present application. DETAILED DESCRIPTION

[0024] In order to make the technical means, creative features, purposes and effects realized by the present application easy to understand, the present application will be further described in detail in conjunction with the drawings. These drawings are simplified schematic diagrams, and only illustrate the basic structure of the present application in a schematic manner, and therefore only show the relevant components of the present application.

[0025] According to the technical scheme of the present application, those skilled in the art can propose a plurality of structure modes and implementation modes which can be replaced with each other without changing the essential spirit of the present application. Therefore, the following specific embodiments and drawings are only exemplary descriptions of the technical scheme of the present application, and should not be regarded as the whole or as a limitation or restriction on the technical scheme of the present application.

[0026] The technical scheme of the present application will be further described in detail below in conjunction with the drawings and embodiments.

[0027] As shown in Figure 1 and Figure 2 , a state synchronization method of a water conservancy model, the method comprising the following steps:

[0028] Step 1: The main service of the water model starts the calculation time with the historical data monitoring time as the model start time, gives the initial conditions of the model, and uses the water model to continuously calculate to the latest data monitoring time. The water model calculation task information is added to the calculation period, rainfall distribution, boundary, and engineering scheduling information to ensure the accuracy of the water model calculation.

[0029] The main service is used to provide the calculation results and basin state files of the water model synchronized with real-time monitoring data. The initial conditions of the main service calculation start time are given by humans. The latest calculation results of the water model main service are transmitted to the water decision support system through the interface as the default value when filling in the interface calculation scheme.

[0030] Step 2: The user submits the water model calculation scheme in the browser interface of the water system. The browser transmits the calculation scheme information to the slave service of the water model. The browser of the water system is used to provide input model calculation scheme, transmit calculation scheme information to the slave service, and display the calculation results. The slave service is used to receive the input information submitted by the user through the browser, send a state request to the model main service, receive the model state file, and execute the calculation scheme.

[0031] Further, the water system is any one of a water decision support system, an online water model system, and a water flood prevention system. The information of the model calculation scheme includes the calculation start time, the calculation period, the rainfall distribution, the boundary, and the engineering scheduling information.

[0032] Step 3: The slave service accesses the model database through the main service interface to obtain the model state file of the calculation start time.

[0033] Further, the water model slave service obtains the model state through the water model main service interface. Specifically, the slave service sends a state request information to the main service, which includes the water model slave service port address and the model calculation start time. The main service receives the model state request, generates the model state file at the calculation start time, and sends it to the slave service.

[0034] Further, the model state file specifically includes the water quantity and quality state of the basin elements at that time, such as water level, flow, flow rate, and pollutant concentration.

[0035] Step 4: The slave service executes the calculation scheme and returns the calculation results to the user browser.

[0036] Further, the execution of the calculation scheme by the slave service specifically includes giving the model initial conditions according to the state variable set in the state file, reading the boundary conditions and engineering scheduling information contained in the calculation scheme information, and driving the water model to calculate.

[0037] From the service, the initial conditions of the model are given according to the state variables in the state file, and the calculation period length, rainfall distribution, boundary and engineering scheduling information in the model calculation task information received in step 1 are input into the water conservancy model, so that the water conservancy model calculation conditions are complete. As shown in Figure 3 the water conservancy model starts to calculate, and after the calculation is completed, the calculation results are output to the user browser interface from the service.

[0038] In summary, the present application adopts the synchronous architecture of master-slave service to realize the rapid giving of the model state variable value, changes the water conservancy model from the state model to the non-state, so that the real-time calculation of the water conservancy model has timeliness and accuracy at the same time, and the calculation ability of the real-time call of the water conservancy model is improved.

[0039] Moreover, the present synchronous method eliminates the influence of the initial value of the state variable on the subsequent calculation result by continuous calculation of the master service of the water conservancy model, and the slave service of the water conservancy model directly obtains the initial condition according to the calculation result of the master service, which on the one hand eliminates the result error caused by directly assuming the initial condition in real-time calculation, effectively improves the result accuracy of real-time water conservancy calculation, and on the other hand uses the transmission of the state file to replace the traditional local model supplementary calculation, so as to have the necessary condition of rapid start calculation, and the time-consuming problem of water conservancy model state giving is improved compared with the prior art, the concurrent calculation function of real-time calculation multi-task is realized with small space resource consumption, and the business ability of real-time calculation of the water conservancy model is improved.

[0040] It should be noted that in this paper, the terms "include", "contain" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. These undisclosed elements are all prior art known to those skilled in the art.

[0041] The above specific embodiments further illustrate the purpose, technical solutions and advantages of the present application, and it should be understood that the above description is only a specific embodiment of the present application and is not used to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method of state synchronization of a hydraulic model, characterized in that, The method comprises the following steps: Step 1: the main service of the water model takes the historical data monitoring start time as the model start calculation time, gives the model initial conditions, and continuously calculates the model to the latest data monitoring time; Step 2: the user submits a water model calculation scheme in the browser interface of the water system, and the browser transmits the calculation scheme information to the slave service of the water model; Step 3: the slave service accesses the model database through the main service interface, and obtains the model state file of the calculation start time; Step 4: the slave service executes the calculation scheme and returns the calculation result to the user browser; The main service is used for providing the calculation result and the basin state file of the water model and the real-time monitoring data synchronization; the slave service is used for receiving the input information submitted by the user through the browser, sending a state request to the model main service, receiving the model state file, and executing the calculation scheme; the browser of the water system is used for providing the input model calculation scheme, transmitting the calculation scheme information to the slave service, and displaying the calculation result; In step 2, the information of the model calculation scheme comprises a calculation start time, a calculation period length, rainfall distribution, boundary and engineering scheduling information.

2. The method for state synchronization of a hydraulic model according to claim 1, characterized in that: In step 3, the slave service sends state request information to the main service, the state request information comprises a water model slave service port address and a model calculation start time, the main service receives the model state request, generates the model state file at the calculation start time and sends it to the slave service.

3. The method for state synchronization of a hydraulic model according to claim 1, characterized in that: In step 3, the model state file specifically comprises water quantity and quality states of basin elements at the time.

4. The method for state synchronization of a hydraulic model according to claim 1, characterized in that: In step 4, the slave service executing the calculation scheme specifically comprises giving the model initial conditions according to the state variable set in the state file, reading the boundary conditions and engineering scheduling information contained in the calculation scheme information, and driving the water model to calculate.