Water supply pipeline flow pressure detection method and system based on dual hydraulic simulation
Through dual hydraulic simulation methods and machine learning algorithms, the problem that water supply pipes are not suitable for installing traditional flow meters is solved, low-cost and accurate flow and pressure detection is achieved, and the stability of the water supply system is improved.
Patent Information
- Application Number
- CN202411216542.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-09-02
AI Technical Summary
The flow pressure detection of existing water supply pipelines is difficult to accurately measure when it is inconvenient to install equipment, especially when the pipeline does not meet the equipment installation requirements, resulting in interruption of water supply and unstable operation.
Using dual hydraulic simulation method, by constructing a physical model of water supply simulation, performing multiple flow pressure measurements, calculating accurate calibration factors and constants, establishing an initial water supply pipeline model, and adjusting the model to accurately Predict supervisor flow and pressure.
It realizes that low-cost equipment is installed through branch pipes without breaking the pipe or constantly water, accurately predicting the flow rate and pressure of the main pipe, reducing the detection cost and improving the stability of the water supply system.
Smart Images

Figure CN119026516A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of pipeline pressure detection, and in particular to a water supply pipeline flow pressure detection method and system based on dual hydraulic simulation. Background Art
[0002] The main goal of water supply network flow and pressure monitoring is to ensure the stable operation of the water supply network and prevent water supply problems caused by excessive or insufficient flow, or excessive or low pressure. These problems may cause water supply interruptions, affecting residents' lives and the normal operation of the city. Water supply network flow and pressure monitoring is mainly achieved through flow meters and pressure gauges installed in the network.
[0003] At present, the installation process of flowmeters and pressure gauges in pipelines has certain requirements for the installation location and environment of the equipment. For example, the installation of electromagnetic flowmeters has specific requirements for the length of straight pipe sections, which is to ensure the accuracy of equipment measurement. However, in the actual installation process, it is not convenient to install flowmeters, pressure gauges and other measuring equipment in some existing pipelines, making it difficult to measure the flow and pressure of the corresponding pipelines. Summary of the invention
[0004] In view of this, the present invention provides a water supply pipeline flow rate and pressure detection method and system based on dual hydraulic simulation, so as to solve the problem that the existing water supply pipeline flow rate and pressure detection is relatively difficult.
[0005] The technical solution adopted by the present invention is: In a first aspect, the present invention provides a method for detecting flow and pressure of a water supply pipeline based on dual hydraulic simulation, comprising: Construct a water supply simulation physical model, and perform water supply flow and pressure measurements multiple times based on the water supply simulation physical model to obtain multiple sets of flow and pressure data; the flow and pressure data include the initial flow Qm1 of the water supply main, the initial pressure Pm of the water supply main, the branch water supply pressure P1, the branch flow Q1, the branch water supply pressure P2 and the main flow Qm2; According to the adjustment calculation formula, each set of flow and pressure data is adjusted and calculated to obtain the corresponding precise adjustment factor α and precise adjustment constant C; Based on multiple sets of flow and pressure data and the corresponding precision adjustment factor α and precision adjustment constant C, the water supply pipeline system is simulated and modeled to obtain an initial water supply pipeline model of the water supply pipeline system; The water supply pressure value and pipeline flow value of the actual water supply pipeline are obtained, and the water supply pressure value and pipeline flow value are used to feedback adjust the precision adjustment factor α and the precision adjustment constant C in the initial water supply pipeline model to obtain a water supply pipeline simulation model; According to the installation combination mode of the water supply pipeline, the water supply pipeline simulation model is adjusted to obtain a water supply pipeline model library; According to the installation conditions of the water supply pipeline, the corresponding water supply pipeline simulation model is selected from the water supply pipeline model library, and the main flow of the water supply main is calculated through the water supply pipeline simulation model.
[0006] Furthermore, the water supply simulation physical model is constructed, and water supply flow and pressure measurements are performed multiple times based on the water supply simulation physical model to obtain multiple groups of flow and pressure data, including: Construct a water supply experimental environment, and install a flow meter and a pressure gauge at the water inlet end of a simulated water supply main pipe with full water supply, and measure the initial flow Qm1 and initial pressure Pm of the water supply main pipe; A branch pipe with a length of 1 meter is installed on the simulated water supply main pipe, and a first pressure gauge, a flow meter and a second pressure gauge are installed at the terminal of the branch pipe in sequence to measure the branch pipe water supply pressure P1, branch pipe flow Q1 and branch pipe water supply pressure P2 respectively; Based on the initial pressure Pm of the water supply main, the water supply pressure P1 of the branch pipe, the flow rate Q1 of the branch pipe and the water supply pressure P2 of the branch pipe, the main flow rate Qm2 of the water supply main is calculated by the Darcy Weisbach formula; Combine the water supply main initial flow Qm1, the water supply main initial pressure Pm, the branch pipe water supply pressure P1, the branch pipe flow Q1, the branch pipe water supply pressure P2 and the main pipe flow Qm2 to obtain a set of flow and pressure data; The initial pressures Pm of multiple water supply mains are adjusted and set to measure the pressure and flow, and obtain multiple sets of flow and pressure data.
[0007] Furthermore, the calibration calculation is performed based on each set of flow and pressure data to obtain the corresponding precise calibration factor α and precise calibration constant C, including: Based on each set of flow pressure data, the actual resistance of the pipeline is calculated according to the resistance coefficient calculation formula. The resistance coefficient calculation formula is: λ = 8 / ((3.2-2.5*(log(abs_rou / dia)))^2) Among them, λ represents the actual resistance value; abs_rou represents the absolute pipeline roughness, which refers to the average height of the protrusions on the rough part of the pipe wall; dia represents the diameter of the pipe, and the quotient of the absolute pipeline roughness abs_rou and the diameter dia represents the relative pipeline roughness; Based on each set of flow pressure data of the pipeline, the estimated resistance value λ1 is calculated by trial and error method, and the deviation is calculated by the average of multiple sets of estimated resistance values λ1 and actual resistance values λ, and the deviation is used as the precise adjustment constant C; The precise adjustment factor α is calculated based on the calibration expression, which is: λ1 = (8*α / ((3.2-2.5*(log(abs_rou / dia)))^2)) + C.
[0008] Furthermore, based on the multiple sets of flow pressure data and the corresponding precise adjustment factors α and precise adjustment constants C, the water supply pipeline system is simulated and modeled to obtain an initial water supply pipeline model of the water supply pipeline system, including: A machine learning algorithm model is established, and the initial pressure Pm of the water supply main, the branch water supply pressure P1, the branch flow Q1, the branch water supply pressure P2, the branch length L, the water supply temperature T, the fluid density ρ, the fluid viscosity μ, the absolute pipe roughness abs_rou, the main pipe diameter D1 and the branch pipe diameter D2 in multiple sets of flow and pressure data are used as input values. The main pipe flow Qm2 is used as the fitting value to perform pipeline simulation modeling and form an initial water supply pipeline model of the pipeline system.
[0009] Furthermore, the water supply pressure value and the pipeline flow value are used to feedback-regulate the precision adjustment factor α and the precision adjustment constant C in the initial water supply pipeline model to obtain a water supply pipeline simulation model, including: Calculate the main pipe flow Qm2 based on the initial water supply pipe model, and calculate the flow difference between the main pipe flow Qm2 and the pipe flow value Qs of the main pipe in the actual water supply pipe; The flow difference is used to perform multiple iterations on the fluid density ρ, fluid viscosity μ, and absolute pipeline roughness abs_rou in the initial water supply pipeline model until the iteration is stopped when the flow difference is less than the preset threshold. During the iteration process, when the main flow Qm2 is greater than the pipeline flow value Qs, the parameter values of the fluid density ρ, fluid viscosity μ, and absolute pipeline roughness abs_rou are reduced; In the process of model fitting, the pipeline resistance variance is calculated by the mean of the estimated resistance value λ1 obtained by fitting and the actual resistance value λ; The new pipeline resistance variance calculated by fitting is compared with the original pipeline resistance variance. If the variation range of the new pipeline resistance variance is greater than 5% of the original pipeline resistance variance, the precision adjustment factor α is adjusted downward by 1‰, and the deviation between the estimated resistance value λ1 obtained by fitting and the mean of the actual resistance value λ is calculated as the new precision adjustment constant C', and the new precision adjustment constant C is used to replace the original precision adjustment constant C; If the variation range of the new pipeline resistance variance is less than 5% of the original pipeline resistance variance, the deviation between the estimated resistance value λ1 obtained by fitting and the mean of the actual resistance value λ is calculated as the new precision adjustment constant C', and the new precision adjustment constant C' is compared with the original precision adjustment constant C. If the variation range of the new precision adjustment constant C' is less than 10% of the original precision adjustment constant C, the original precision adjustment constant C is not replaced, otherwise the new precision adjustment constant C is used to replace the original precision adjustment constant C.
[0010] In a second aspect, the present invention provides a water supply pipeline flow and pressure detection system based on dual hydraulic simulation, comprising: A physical simulation module is used to construct a water supply simulation physical model, and perform water supply flow and pressure measurements multiple times based on the water supply simulation physical model to obtain multiple sets of flow and pressure data; the flow and pressure data include the initial flow Qm1 of the water supply main, the initial pressure Pm of the water supply main, the branch water supply pressure P1, the branch flow Q1, the branch water supply pressure P2 and the main flow Qm2; The adjustment parameter calculation module is used to adjust and calculate each set of flow and pressure data according to the adjustment calculation formula to obtain the corresponding precise adjustment factor α and precise adjustment constant C; A pipeline simulation module is used to simulate and model the water supply pipeline system based on multiple sets of flow and pressure data and corresponding precision adjustment factors α and precision adjustment constants C, and obtain an initial water supply pipeline model of the water supply pipeline system; A parameter optimization module is used to obtain the water supply pressure value and pipeline flow value of the actual water supply pipeline, and use the water supply pressure value and pipeline flow value to feedback adjust the precision adjustment factor α and the precision adjustment constant C in the initial water supply pipeline model to obtain a water supply pipeline simulation model; A model library construction module is used to adjust the water supply pipeline simulation model according to the installation combination mode of the water supply pipeline to obtain a water supply pipeline model library; The pipeline flow calculation module is used to select the corresponding water supply pipeline simulation model from the water supply pipeline model library according to the installation conditions of the water supply pipeline, and calculate the main flow of the water supply main through the water supply pipeline simulation model.
[0011] In summary, the beneficial effects of the present invention are as follows: The present invention provides a water supply pipeline flow and pressure detection method based on dual hydraulic simulation. The method measures the water supply flow and pressure by constructing a water supply simulation physical model to obtain multiple groups of flow and pressure data, and performs calibration calculation on each group of flow and pressure data to obtain the corresponding precise calibration factor α and precise calibration constant C. The branch flow and pressure can be simulated and measured by the physical simulation model. Then, based on the multiple groups of flow and pressure data and the corresponding precise calibration factor α and precise calibration constant C, the water supply pipeline system is simulated and modeled and parameter adjusted to obtain a water supply pipeline simulation model, and then the water supply pipeline simulation model is adjusted according to the installation combination mode of the water supply pipeline to obtain a water supply pipeline model library. Finally, the corresponding water supply pipeline simulation model is selected from the water supply pipeline model library according to the installation conditions of the water supply pipeline, and the main flow of the water supply main pipe is calculated by the water supply pipeline simulation model. The present invention uses fluid mechanics formulas and assists in the use of artificial intelligence algorithm models to achieve the effect of accurately predicting the flow and pressure of the main pipe by using the branch flow and pressure. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings required for use in the embodiment of the present invention will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work, and these are all within the protection scope of the present invention.
[0013] Figure 1 It is a flow chart of the water supply pipeline flow and pressure detection method based on dual hydraulic simulation of the present invention; Figure 2 It is a functional module diagram of the water supply pipeline flow and pressure detection system based on dual hydraulic simulation of the present invention. DETAILED DESCRIPTION
[0014] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. If there is no conflict, the various features of the present invention and the embodiments can be combined with each other, all within the scope of protection of the present invention.
[0015] Embodiment 1: See also Figure 1 , Figure 1 This is a flow chart of a water supply pipeline flow pressure detection method based on dual hydraulic simulation in Example 1 of the present invention. The water supply pipeline flow pressure detection method provided by the present invention comprises the following steps: Construct a water supply simulation physical model, and perform water supply flow and pressure measurements multiple times based on the water supply simulation physical model to obtain multiple sets of flow and pressure data; the flow and pressure data include the initial flow Qm1 of the water supply main, the initial pressure Pm of the water supply main, the branch water supply pressure P1, the branch flow Q1, the branch water supply pressure P2 and the main flow Qm2; According to the adjustment calculation formula, each set of flow and pressure data is adjusted and calculated to obtain the corresponding precise adjustment factor α and precise adjustment constant C; Based on multiple sets of flow and pressure data and the corresponding precision adjustment factor α and precision adjustment constant C, the water supply pipeline system is simulated and modeled to obtain an initial water supply pipeline model of the water supply pipeline system; The water supply pressure value and pipeline flow value of the actual water supply pipeline are obtained, and the water supply pressure value and pipeline flow value are used to feedback adjust the precision adjustment factor α and the precision adjustment constant C in the initial water supply pipeline model to obtain a water supply pipeline simulation model; According to the installation combination mode of the water supply pipeline, the water supply pipeline simulation model is adjusted to obtain a water supply pipeline model library; According to the installation conditions of the water supply pipeline, the corresponding water supply pipeline simulation model is selected from the water supply pipeline model library, and the main flow of the water supply main is calculated through the water supply pipeline simulation model.
[0016] Furthermore, for many existing water supply networks, it is impossible to break pipes to install equipment, so it is not feasible to install large-diameter flow meters in some areas of the existing water supply network. However, by installing small branch pipes in these areas, such as the main pipe DN500 (DN represents the nominal diameter), the branch pipe only needs DN20, and the effect of measuring the main pipe flow can be achieved without breaking pipes and cutting off water supply. The solution is also feasible. Secondly, the cost of installing a large-diameter flow meter is usually high, while the cost of installing this system is much lower. The system includes branch pipes, two pressure gauges, and a small-diameter flow meter.
[0017] Therefore, in the embodiment of the present invention, a water supply simulation physical model is constructed, and water supply flow and pressure measurements are performed multiple times based on the water supply simulation physical model to obtain multiple groups of flow and pressure data including branch flow and branch pressure, which specifically includes the following processes: A water supply experimental environment was constructed, and a flow meter and a pressure gauge were installed at the water inlet end of a simulated water supply main pipeline with full water supply, and the initial flow Qm1 and initial pressure Pm of the water supply main pipeline were measured.
[0018] A branch pipe with a length of 1 meter is installed on the simulated water supply main pipeline, and the first pressure gauge, flow meter and second pressure gauge are installed in sequence at the terminal of the branch pipe to form a set of instruments to measure the branch pipe water supply pressure P1, branch pipe flow Q1 and branch pipe water supply pressure P2 respectively.
[0019] According to the principles of fluid mechanics, the pipeline in this case has a characteristic that when each branch pipe flows through a unit mass of water, the resistance loss is equal, that is, hF1 = hF2 = shf. The total pipe flow is the branch pipe flow plus the main pipe flow, that is, Vtotal = Vmain + Vbranch. In the case of laminar flow, the flow distribution is only related to the inner diameter of the pipe, so the flow can be simply calculated. But most of the time it is turbulent, and the flow and resistance need to be calculated according to the Darcy Weisbach formula.
[0020] The embodiment of the present invention calculates the main flow Qm2 of the water supply main by Darcy Weisbach formula based on the initial pressure Pm of the water supply main, the branch water supply pressure P1, the branch flow Q1 and the branch water supply pressure P2.
[0021] A set of flow and pressure data is obtained by combining the initial flow Qm1 of the water supply main, the initial pressure Pm of the water supply main, the branch water supply pressure P1, the branch flow Q1, the branch water supply pressure P2 and the main flow Qm2.
[0022] The initial pressures Pm of multiple water supply mains are adjusted and set to measure the pressure and flow, and obtain multiple sets of flow and pressure data.
[0023] Furthermore, the main pipe flow Qm2 calculated by the water supply simulation physical model will deviate from the actual value due to the following reasons: 1. The absolute pipe roughness is not accurate enough. 2. The temperature and water quality are not taken into consideration, resulting in inaccurate fluid density and viscosity. 3. The error of local head loss is caused by the different actual branch pipe construction conditions. Therefore, the embodiment of the present invention introduces the precise adjustment factor α and the precise adjustment constant C for simulation modeling.
[0024] Specifically, in the embodiment of the present invention, the calibration calculation is performed based on each set of flow pressure data to obtain the corresponding precise calibration factor α and precise calibration constant C, including the following process: Based on each set of flow pressure data, the actual resistance of the pipeline is calculated according to the resistance coefficient calculation formula. The resistance coefficient calculation formula is: λ = 8 / ((3.2-2.5*(log(abs_rou / dia)))^2) Among them, λ represents the actual resistance value; abs_rou represents the absolute pipeline roughness, which refers to the average height of the protrusions on the rough part of the pipe wall; dia represents the diameter of the pipe, and the quotient of the absolute pipeline roughness abs_rou and the diameter dia represents the relative pipeline roughness; Based on each set of flow pressure data of the pipeline, the estimated resistance value λ1 is calculated by trial and error method, and the deviation is calculated by the average of multiple sets of estimated resistance values λ1 and actual resistance values λ, and the deviation is used as the precise adjustment constant C; Then the precise adjustment factor α is calculated based on the calibration expression, which is: λ1 = (8*α / ((3.2-2.5*(log(abs_rou / dia)))^2)) + C.
[0025] Furthermore, in the embodiment of the present invention, based on multiple sets of flow pressure data and corresponding precise adjustment factors α and precise adjustment constants C, a water supply pipeline system is simulated and modeled to obtain an initial water supply pipeline model of the water supply pipeline system, including: A machine learning algorithm model is established, and the initial pressure Pm of the water supply main, the branch water supply pressure P1, the branch flow Q1, the branch water supply pressure P2, the branch length L, the water supply temperature T, the fluid density ρ, the fluid viscosity μ, the absolute pipe roughness abs_rou, the main pipe diameter D1 and the branch pipe diameter D2 in multiple sets of flow and pressure data are used as input values. The main pipe flow Qm2 is used as the fitting value to perform pipeline simulation modeling and form an initial water supply pipeline model of the pipeline system.
[0026] In the modeling process of the embodiment of the present invention, both the fixed error caused by local loss and the error caused by the absolute pipe roughness abs_rou and viscosity are considered. Among them, a key value that needs to be measured in the modeling process is "absolute pipe roughness abs_rou". The absolute pipe roughness abs_rou can be obtained by looking up the table, but it is not accurate enough. However, since the resistance coefficient of the same batch of pipelines is unchanged, this value can be corrected according to the data records and reinforcement learning algorithms in the subsequent model training process, and finally the effect of accurate measurement is achieved. Another key value is "fluid density and fluid viscosity". Since this is a water supply environment, it generally does not change when the temperature does not change much, but the water supply temperature T, fluid density ρ, and fluid viscosity μ are still designed into the model as parameters to improve the accuracy of the model in predicting the main flow.
[0027] Furthermore, in the embodiment of the present invention, the water supply pressure value and the pipeline flow value are used to perform feedback adjustment on the precision adjustment factor α and the precision adjustment constant C in the initial water supply pipeline model to obtain a water supply pipeline simulation model, including: Calculate the main pipe flow Qm2 based on the initial water supply pipe model, and calculate the flow difference between the main pipe flow Qm2 and the pipe flow value Qs of the main pipe in the actual water supply pipe; The flow difference is used to perform multiple iterations to correct the fluid density ρ, fluid viscosity μ, and absolute pipeline roughness abs_rou in the initial water supply pipeline model until the flow difference is less than the preset threshold. During the iteration, when the main flow Qm2 is greater than the pipeline flow value Qs, the parameter values of the fluid density ρ, fluid viscosity μ, and absolute pipeline roughness abs_rou are reduced. For example, a DN40 branch pipe is installed in a DN600 main pipeline. When Qm2 is greater than 5‰ of Qs, the absolute pipeline roughness is reduced by 1‰, and the fluid density ρ and fluid viscosity μ are reduced by 0.5‰, and vice versa. Stop when the error between the iteration Qm2 and Qs is less than 5‰, which can be considered as a measurement error.
[0028] Calculate the variance between the estimated resistance value λ1 and the mean of the actual resistance value λ. If the variance is not large and the mean changes greatly, adjust the C value. If the variance is too large, adjust the α value. The specific process is: Calculate the variance of the estimated resistance value λ1 and the mean of the actual resistance value λ. If the newly calculated variance is greater than the original variance by 5%, adjust the precision adjustment factor α downward by 1‰, and recalculate the new deviation through the mean of multiple groups of estimated resistance values λ1 and actual resistance values λ, and use the new deviation as the new precision adjustment constant C; During the model fitting process, the pipeline resistance variance is calculated by the mean of the estimated resistance value λ1 obtained by fitting and the actual resistance value λ.
[0029] The new pipeline resistance variance calculated by fitting is compared with the original pipeline resistance variance. If the variation range of the new pipeline resistance variance is greater than 5% of the original pipeline resistance variance, the precision adjustment factor α value is adjusted downward by 1‰, and the deviation of the mean of the estimated resistance value λ1 obtained by fitting and the actual resistance value λ is calculated as the new precision adjustment constant C', and the new precision adjustment constant C is used to replace the original precision adjustment constant C.
[0030] If the variation range of the new pipeline resistance variance is less than 5% of the original pipeline resistance variance, the deviation between the estimated resistance value λ1 obtained by fitting and the mean of the actual resistance value λ is calculated as the new precision adjustment constant C', and the new precision adjustment constant C' is compared with the original precision adjustment constant C. If the variation range of the new precision adjustment constant C' is less than 10% of the original precision adjustment constant C, the original precision adjustment constant C is not replaced, otherwise the new precision adjustment constant C is used to replace the original precision adjustment constant C.
[0031] Specifically, the pipeline resistance variance is calculated by the mean of the estimated resistance value λ1 obtained by fitting and the actual resistance value λ: Before pipeline fitting, the original plan would initially set the precise adjustment factor α0 and the precise adjustment constant C0, and use the initially set precise adjustment factor α0 and the precise adjustment constant C0 to calculate the initial estimated resistance value λ10 of the pipeline, and further calculate the difference between the initial estimated resistance value λ10 and the mean of the actual resistance value λ to obtain the original plan error.
[0032] The data of the initial water supply pressure is updated, and the precise adjustment factor α1 and the precise adjustment constant C1 are obtained during the refitting process of the pipeline. The actual estimated resistance value λ11 of the pipeline is calculated using the initially set precise adjustment factor α1 and the precise adjustment constant C1. The difference between the actual estimated resistance value λ11 and the mean of the actual resistance value λ is further calculated to obtain the actual error.
[0033] When the difference between the actual error and the originally planned error is large, the precision adjustment factor α0 and the precision adjustment constant C0 used in the originally planned error are adjusted to obtain new precision adjustment factor α2 and precision adjustment constant C2. The estimated resistance value λ12 is calculated using the new precision adjustment factor α2 and precision adjustment constant C2, and the difference between the actual estimated resistance value λ12 and the mean of the actual resistance value λ is further calculated to obtain the corrected error.
[0034] The variance of pipeline resistance is obtained by using the original planned error, actual error and corrected error to calculate the variance.
[0035] The embodiment of the present invention can prevent the α value from being frequently modified due to excessive changes in the C value through the above parameter adjustment process.
[0036] Specifically, in the embodiment of the present invention, the initial value sets the precision adjustment factor α to 1, and the precision adjustment constant C is the difference between the average of the 10 groups of estimated resistance values and the actual resistance value λ (i.e., the original planned error). Referring to Table 1 below, after the initial value is determined based on the basic ten groups of data, α is adjusted to 0.9857 and C to 0.3.
[0037] Table 1 Main flow comparison table After updating the data of the initial water supply pressure, the two values are adjusted according to the actual calculation results. The newly added data are shown in Table 2 below: Table 2 Newly added main flow comparison table It can be seen that the actual error is quite different from the original planned error, and the new R² value is much larger than the original R². It can be considered that the two sets of data have large differences in the α and C values of the fitting, so these two values need to be corrected. Since the new calculation results have too much impact on the overall when the sample is small, the method of re-establishing the fitting model with the overall input cannot be used. Therefore, only a small-scale adjustment is made to the α and C values with reference to the calculation results of the new input values. For example, in this example, the α value can be adjusted downward by 1‰ to 0.9847143, and the C value can be adjusted downward by 5% to 0.285. The overall output results are shown in Table 3 below: Table 3 Result error comparison table From the above data, it can be seen that the simulation model as a whole has a larger prediction error value when the flow rate is larger, which is in line with the law. At the same time, the difference in size between the branch pipe and the main pipe will also lead to an increase in the error. In terms of calculation results, this method is more accurate than existing methods in actual application scenarios, that is, installing a branch pipe to replace the main pipe with a smaller flow meter, which is also a case of a large size difference. In the case where the main pipe flow meter cannot be installed, the existing method can only rely on the remote flow meter or hydraulic model to infer the flow at that point.
[0038] Furthermore, in the embodiment of the present invention, a model library is formed based on different combinations of pipelines, such as main pipes with diameters of DN300, D500, and D1000, respectively, and branch pipes with a diameter of DN50 to form at least three pipeline models. In the case of limited installation conditions for new pipelines, the embodiment of the present invention can establish branch pipes on the main pipe, apply the water supply pipeline model to deduce the flow of the main pipe, and achieve the effect of fitting the flow of the main pipe with the measured data of a small-diameter flowmeter.
[0039] The main pipe flow is calculated by inputting more accurate "absolute pipe roughness" and "fluid density and viscosity". Note that the more accurate value here is the more accurate value under the matching of the pipe, that is, the value of DN600 with DN400 as shown in the above example. If the matching of the main pipe and the branch pipe changes, the accurate value needs to be recalculated according to the process. After entering the accurate value, combined with the flow calculation method, the total flow value is converted according to the reading of the branch pipe small flow meter. The input values of this part are the branch pipe flow, the main pipe diameter, the branch pipe diameter, the corrected absolute pipe roughness, and the corrected water density and viscosity. The output value is the total flow value, which is the target flow value of the main pipe.
[0040] Example 2: Reference Figure 2 As shown, the present invention provides a water supply pipeline flow pressure detection system based on dual hydraulic simulation, comprising: A physical simulation module is used to construct a water supply simulation physical model, and perform water supply flow and pressure measurements multiple times based on the water supply simulation physical model to obtain multiple sets of flow and pressure data; the flow and pressure data include the initial flow Qm1 of the water supply main, the initial pressure Pm of the water supply main, the branch water supply pressure P1, the branch flow Q1, the branch water supply pressure P2 and the main flow Qm2; The adjustment parameter calculation module is used to adjust and calculate each set of flow and pressure data according to the adjustment calculation formula to obtain the corresponding precise adjustment factor α and precise adjustment constant C; A pipeline simulation module is used to simulate and model the water supply pipeline system based on multiple sets of flow and pressure data and corresponding precision adjustment factors α and precision adjustment constants C, and obtain an initial water supply pipeline model of the water supply pipeline system; A parameter optimization module is used to obtain the water supply pressure value and pipeline flow value of the actual water supply pipeline, and use the water supply pressure value and pipeline flow value to feedback adjust the precision adjustment factor α and the precision adjustment constant C in the initial water supply pipeline model to obtain a water supply pipeline simulation model; A model library construction module is used to adjust the water supply pipeline simulation model according to the installation combination mode of the water supply pipeline to obtain a water supply pipeline model library; The pipeline flow calculation module is used to select the corresponding water supply pipeline simulation model from the water supply pipeline model library according to the installation conditions of the water supply pipeline, and calculate the main flow of the water supply main through the water supply pipeline simulation model.
[0041] The embodiment of the present invention measures the water supply flow and pressure by constructing a water supply simulation physical model to obtain multiple groups of flow and pressure data, and calibrates and calculates each group of flow and pressure data to obtain the corresponding precise calibration factor α and precise calibration constant C. The branch flow and pressure can be simulated and measured by the physical simulation model. Then, based on the multiple groups of flow and pressure data and the corresponding precise calibration factor α and precise calibration constant C, the water supply pipeline system is simulated and modeled and the parameters are adjusted to obtain a water supply pipeline simulation model, and then the water supply pipeline simulation model is adjusted according to the installation combination mode of the water supply pipeline to obtain a water supply pipeline model library. Finally, according to the installation conditions of the water supply pipeline, the corresponding water supply pipeline simulation model is selected from the water supply pipeline model library, and the main flow of the water supply main pipe is calculated through the water supply pipeline simulation model. The fluid mechanics formula is used to assist the use of an artificial intelligence algorithm model to achieve accurate prediction of the flow and pressure of the main pipe using the branch flow and pressure, while reducing the cost of installing measurement equipment.
[0042] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A water supply pipeline flow pressure detection method based on dual hydraulic simulation, characterized in that: include: Construct a water supply simulation physical model, and perform water supply flow and pressure measurements multiple times based on the water supply simulation physical model to obtain multiple sets of flow and pressure data; the flow and pressure data include the initial flow Qm1 of the water supply main, the initial pressure Pm of the water supply main, the branch water supply pressure P1, the branch flow Q1, the branch water supply pressure P2 and the main flow Qm2; According to the adjustment calculation formula, each set of flow and pressure data is adjusted and calculated to obtain the corresponding precise adjustment factor α and precise adjustment constant C; Based on multiple sets of flow and pressure data and the corresponding precision adjustment factor α and precision adjustment constant C, the water supply pipeline system is simulated and modeled to obtain an initial water supply pipeline model of the water supply pipeline system; The water supply pressure value and pipeline flow value of the actual water supply pipeline are obtained, and the water supply pressure value and pipeline flow value are used to feedback adjust the precision adjustment factor α and the precision adjustment constant C in the initial water supply pipeline model to obtain a water supply pipeline simulation model; According to the installation combination mode of the water supply pipeline, the water supply pipeline simulation model is adjusted to obtain a water supply pipeline model library; According to the installation conditions of the water supply pipeline, the corresponding water supply pipeline simulation model is selected from the water supply pipeline model library, and the main flow of the water supply main is calculated through the water supply pipeline simulation model.
2. The water supply pipeline flow pressure detection method according to claim 1, characterized in that: The water supply simulation physical model is constructed, and water supply flow and pressure measurements are performed multiple times based on the water supply simulation physical model to obtain multiple groups of flow and pressure data, including: Construct a water supply experimental environment, and install a flow meter and a pressure gauge at the water inlet end of a simulated water supply main pipe with full water supply, and measure the initial flow Qm1 and initial pressure Pm of the water supply main pipe; A branch pipe with a length of 1 meter is installed on the simulated water supply main pipe, and a first pressure gauge, a flow meter and a second pressure gauge are installed at the terminal of the branch pipe in sequence to measure the branch pipe water supply pressure P1, branch pipe flow Q1 and branch pipe water supply pressure P2 respectively; Based on the initial pressure Pm of the water supply main, the water supply pressure P1 of the branch pipe, the flow rate Q1 of the branch pipe and the water supply pressure P2 of the branch pipe, the main flow rate Qm2 of the water supply main is calculated by the Darcy Weisbach formula; Combine the water supply main initial flow Qm1, the water supply main initial pressure Pm, the branch pipe water supply pressure P1, the branch pipe flow Q1, the branch pipe water supply pressure P2 and the main pipe flow Qm2 to obtain a set of flow and pressure data; The initial pressures Pm of multiple water supply mains are adjusted and set to measure the pressure and flow, and obtain multiple sets of flow and pressure data.
3. The water supply pipeline flow rate and pressure detection method according to claim 1, characterized in that: The calibration calculation based on each set of flow pressure data to obtain the corresponding precise calibration factor α and precise calibration constant C includes: Based on each set of flow pressure data, the actual resistance of the pipeline is calculated according to the resistance coefficient calculation formula. The resistance coefficient calculation formula is: λ = 8 / ((3.2-2.5*(log(abs_rou / dia)))^2) Among them, λ represents the actual resistance value; abs_rou represents the absolute pipeline roughness, which refers to the average height of the protrusions on the rough part of the pipe wall; dia represents the diameter of the pipe, and the quotient of the absolute pipeline roughness abs_rou and the diameter dia represents the relative pipeline roughness; Based on each set of flow pressure data of the pipeline, the estimated resistance value λ1 is calculated by trial and error method, and the deviation is calculated by the average of multiple sets of estimated resistance values λ1 and actual resistance values λ, and the deviation is used as the precise adjustment constant C; The precise adjustment factor α is calculated based on the calibration expression, which is: λ1 = (8*α / ((3.2-2.5*(log(abs_rou / dia)))^2)) + C.
4. The water supply pipeline flow rate and pressure detection method according to claim 1, characterized in that: The water supply pipeline system is simulated and modeled based on multiple groups of flow pressure data and corresponding precise adjustment factors α and precise adjustment constants C to obtain an initial water supply pipeline model of the water supply pipeline system, including: A machine learning algorithm model is established, and the initial pressure Pm of the water supply main, the branch water supply pressure P1, the branch flow Q1, the branch water supply pressure P2, the branch length L, the water supply temperature T, the fluid density ρ, the fluid viscosity μ, the absolute pipe roughness abs_rou, the main pipe diameter D1 and the branch pipe diameter D2 in multiple sets of flow and pressure data are used as input values. The main pipe flow Qm2 is used as the fitting value to perform pipeline simulation modeling and form an initial water supply pipeline model of the pipeline system.
5. The water supply pipeline flow rate and pressure detection method according to claim 1, characterized in that: The method uses the water supply pressure value and the pipeline flow value to feedback-regulate the precision adjustment factor α and the precision adjustment constant C in the initial water supply pipeline model to obtain a water supply pipeline simulation model, including: Calculate the main pipe flow Qm2 based on the initial water supply pipe model, and calculate the flow difference between the main pipe flow Qm2 and the pipe flow value Qs of the main pipe in the actual water supply pipe; The flow difference is used to perform multiple iterations on the fluid density ρ, fluid viscosity μ, and absolute pipeline roughness abs_rou in the initial water supply pipeline model until the iteration is stopped when the flow difference is less than the preset threshold. During the iteration process, when the main flow Qm2 is greater than the pipeline flow value Qs, the parameter values of the fluid density ρ, fluid viscosity μ, and absolute pipeline roughness abs_rou are reduced; In the process of model fitting, the pipeline resistance variance is calculated by the mean of the estimated resistance value λ1 obtained by fitting and the actual resistance value λ; The new pipeline resistance variance calculated by fitting is compared with the original pipeline resistance variance. If the variation range of the new pipeline resistance variance is greater than 5% of the original pipeline resistance variance, the precision adjustment factor α is adjusted downward by 1‰, and the deviation between the estimated resistance value λ1 obtained by fitting and the mean of the actual resistance value λ is calculated as the new precision adjustment constant C', and the new precision adjustment constant C is used to replace the original precision adjustment constant C; If the variation range of the new pipeline resistance variance is less than 5% of the original pipeline resistance variance, the deviation between the estimated resistance value λ1 obtained by fitting and the mean of the actual resistance value λ is calculated as the new precision adjustment constant C', and the new precision adjustment constant C' is compared with the original precision adjustment constant C. If the variation range of the new precision adjustment constant C' is less than 10% of the original precision adjustment constant C, the original precision adjustment constant C is not replaced, otherwise the new precision adjustment constant C is used to replace the original precision adjustment constant C.
6. A water supply pipeline flow and pressure detection system based on dual hydraulic simulation, characterized in that: include: A physical simulation module is used to construct a water supply simulation physical model, and perform water supply flow and pressure measurements multiple times based on the water supply simulation physical model to obtain multiple sets of flow and pressure data; the flow and pressure data include the initial flow Qm1 of the water supply main, the initial pressure Pm of the water supply main, the branch water supply pressure P1, the branch flow Q1, the branch water supply pressure P2 and the main flow Qm2; The adjustment parameter calculation module is used to adjust and calculate each set of flow and pressure data according to the adjustment calculation formula to obtain the corresponding precise adjustment factor α and precise adjustment constant C; A pipeline simulation module is used to simulate and model the water supply pipeline system based on multiple sets of flow and pressure data and corresponding precision adjustment factors α and precision adjustment constants C, and obtain an initial water supply pipeline model of the water supply pipeline system; A parameter optimization module is used to obtain the water supply pressure value and pipeline flow value of the actual water supply pipeline, and use the water supply pressure value and pipeline flow value to feedback adjust the precision adjustment factor α and the precision adjustment constant C in the initial water supply pipeline model to obtain a water supply pipeline simulation model; A model library construction module is used to adjust the water supply pipeline simulation model according to the installation combination mode of the water supply pipeline to obtain a water supply pipeline model library; The pipeline flow calculation module is used to select the corresponding water supply pipeline simulation model from the water supply pipeline model library according to the installation conditions of the water supply pipeline, and calculate the main flow of the water supply main through the water supply pipeline simulation model.
Citation Information
Patent Citations
Heating pipe network hydraulic simulation model identification correction method and system, method of operation
CN106682369A
Design method for controllable transient-flow leakage detecting system
CN110081319A
Pipe network heat storage system based on heat supply network bypass injection pressure reduction and regulation and control method thereof
CN114440289A
Intelligent rural water supply data collection and analysis system and method based on big data
CN116452191A
One-dimensional hydraulic simulation parameter calibration method, device and equipment and storage medium
CN117952035A
