Flow and Pressure Detection Method and System for Water Supply Pipelines Based on Dual Hydraulic Simulation
By constructing a water supply simulation physical model and performing multiple flow pressure measurements, combined with accurate calibration factors and constants, the problem of difficult to measure flow and pressure in existing water supply pipelines is solved, and high-precision flow and pressure detection is achieved, reducing installation costs.
Patent Information
- Application Number
- CN202411216542.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2044-09-02
AI Technical Summary
Existing methods for flow pressure detection of water supply pipelines have difficulties in installing equipment, especially in existing pipelines, where flow and pressure are difficult to measure.
Using dual hydraulic simulation method, a physical model of water supply simulation is constructed, multiple flow pressure measurements are performed, and multiple sets of data are obtained, and precise adjustment factors and constants are obtained through calibration calculations, and a simulation model is established to calculate the flow of the supervisor.
It realizes that the main pipe flow is measured by installing small branches without breaking the pipe or water is cut, reducing installation costs and improving the accuracy of flow and pressure measurement.
Smart Images

Figure CN119026516B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of pipeline pressure detection, and particularly to a method and system for detecting the flow rate and pressure of a water supply pipeline based on dual hydraulic simulation. Background Art
[0002] The main objective of monitoring the flow rate and pressure of a water supply network is to ensure the stable operation of the water supply network and prevent water supply problems caused by excessive or insufficient flow rate, or excessive or insufficient pressure. These problems may lead to water supply interruption, affecting the lives of residents and the normal operation of the city. The monitoring of the flow rate and pressure of the water supply network is mainly achieved through flow meters and pressure gauges installed in the network.
[0003] At the current stage, the installation process of flow meters and pressure gauges for pipelines has certain requirements for the installation location and environment of the equipment. For example, the installation of an electromagnetic flow meter has specific requirements for the length of the straight pipe section, which is to ensure the measurement accuracy of the equipment. However, in the actual installation process, it is inconvenient to install measurement equipment such as flow meters and pressure gauges in some existing pipelines, and it is difficult to measure the flow rate and pressure conditions of the corresponding pipelines. Summary of the Invention
[0004] In view of this, the present invention provides a method and system for detecting the flow rate and pressure of a water supply pipeline based on dual hydraulic simulation, so as to solve the problem that it is relatively difficult to detect the flow rate and pressure of an existing water supply pipeline.
[0005] The technical solution adopted by the present invention is as follows:
[0006] In the first aspect, the present invention provides a method for detecting the flow rate and pressure of a water supply pipeline based on dual hydraulic simulation, including:
[0007] Construct a water supply simulation physical model, and based on the water supply simulation physical model, perform multiple measurements of the water supply flow rate and pressure to obtain multiple sets of flow rate and pressure data; the flow rate and pressure data include the initial flow rate Qm1 of the main water supply pipe, the initial pressure Pm of the main water supply pipe, the branch pipe water supply pressure P1, the branch pipe flow rate Q1, the branch pipe water supply pressure P2, and the main pipe flow rate Qm2;
[0008] Perform calibration calculations on each set of flow rate and pressure data according to the adjustment calculation formula to obtain the corresponding precise calibration factor α and precise calibration constant C;
[0009] Based on multiple sets of flow rate and pressure data and the corresponding precise calibration factor α and precise calibration constant C, perform simulation modeling on the water supply pipeline system to obtain the initial water supply pipeline model of the water supply pipeline system;
[0010] 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 perform feedback adjustment on the precise calibration factor α and precise calibration constant C in the initial water supply pipeline model to obtain a water supply pipeline simulation model;
[0011] 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;
[0012] 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 pipeline flow of the main water supply pipe through the water supply pipeline simulation model.
[0013] Further, construct a water supply simulation physical model, and based on the water supply simulation physical model, perform water supply flow and pressure measurements multiple times to obtain multiple sets of flow and pressure data, including:
[0014] 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 pipeline with full pipe water supply to measure the initial flow Qm1 of the main water supply pipe and the initial pressure Pm of the main water supply pipe;
[0015] Install a branch pipe with a length of 1 meter on the simulated water supply main pipeline, and sequentially install a first pressure gauge, a flow meter and a second pressure gauge at the end of the branch pipe to measure the branch pipe water supply pressure P1, the branch pipe flow Q1 and the branch pipe water supply pressure P2 respectively;
[0016] Based on the initial pressure Pm of the main water supply pipe, the branch pipe water supply pressure P1, the branch pipe flow Q1 and the branch pipe water supply pressure P2, calculate the main pipeline flow Qm2 of the main water supply pipe through the Darcy - Weisbach formula;
[0017] Combine the initial flow Qm1 of the main water supply pipe, the initial pressure Pm of the main water supply pipe, the branch pipe water supply pressure P1, the branch pipe flow Q1, the branch pipe water supply pressure P2 and the main pipeline flow Qm2 to obtain a set of flow and pressure data;
[0018] Adjust and set multiple initial pressures Pm of the main water supply pipe to measure pressure and flow, and obtain multiple sets of flow and pressure data.
[0019] Further, the calibration calculation based on each set of flow and pressure data to obtain the corresponding precise calibration factor α and precise calibration constant C includes:
[0020] Based on each set of flow and pressure data, calculate the actual resistance of the pipeline according to the resistance coefficient calculation formula. The resistance coefficient calculation formula is:
[0021] λ = 8 / ((3.2 - 2.5*(log(abs_rou / dia)))^2)
[0022] Wherein, λ represents the actual resistance value; abs_rou represents the absolute pipe roughness, which refers to the average height of the protrusions on the non-smooth part of the pipe wall, dia represents the diameter of the pipe, and the quotient of the absolute pipe roughness abs_rou and the diameter dia represents the relative pipe roughness;
[0023] Based on each set of flow-pressure data of the pipeline, the estimated resistance value λ1 is obtained by simulation calculation using the trial-and-error method, and the deviation is calculated through the mean value of multiple sets of estimated resistance values λ1 and the actual resistance value λ, and the deviation is used as the precise calibration constant C;
[0024] The precise calibration factor α is calculated according to the calibration expression, and the calibration expression is:
[0025] λ1 = (8*α / ((3.2 - 2.5*(log(abs_rou / dia)))^2)) + C.
[0026] Furthermore, based on multiple sets of flow-pressure data and the corresponding precise calibration factor α and precise calibration constant C, a simulation model of the water supply pipeline system is established to obtain the initial water supply pipeline model of the water supply pipeline system, including:
[0027] A machine learning algorithm model is established, and the initial pressure Pm of the main water supply pipe, the branch water supply pressure P1, the branch flow Q1, the branch water supply pressure P2, and 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-pressure data are used as input values, and the main pipe flow Qm2 is used as the fitting value for pipeline simulation modeling to form the initial water supply pipeline model of the pipeline system.
[0028] Furthermore, the precise calibration factor α and the precise calibration constant C in the initial water supply pipeline model are feedback-adjusted by using the water supply pressure value and the pipeline flow value to obtain the water supply pipeline simulation model, including:
[0029] Based on the initial water supply pipeline model, the main pipe flow Qm2 is calculated, and the flow difference between the main pipe flow Qm2 and the pipeline flow value Qs of the main pipe in the actual water supply pipeline is calculated;
[0030] The fluid density ρ, the fluid viscosity μ, and the absolute pipe roughness abs_rou in the initial water supply pipeline model are iteratively corrected multiple times by using the flow difference until the flow difference is less than the preset threshold and the iteration stops. During the iteration process, when the main pipe flow Qm2 is greater than the pipeline flow value Qs, the parameter values of the fluid density ρ, the fluid viscosity μ, and the absolute pipe roughness abs_rou are reduced;
[0031] During the model fitting process, the pipeline resistance variance is calculated through the mean value of the estimated resistance value λ1 and the actual resistance value λ obtained by fitting;
[0032] Compare the variance of the new pipeline resistance obtained by fitting calculation with the variance of the original pipeline resistance. If the change range of the variance of the new pipeline resistance is greater than 5% of the variance of the original pipeline resistance, then adjust the value of the precise calibration factor α downward by 1‰, and calculate the deviation of the mean value of the estimated resistance value λ1 obtained by fitting and the actual resistance value λ as the new precise calibration constant C', and use the new precise calibration constant C to replace the original precise calibration constant C;
[0033] If the change range of the variance of the new pipeline resistance is less than 5% of the variance of the original pipeline resistance, then calculate the deviation of the mean value of the estimated resistance value λ1 obtained by fitting and the actual resistance value λ as the new precise calibration constant C', and compare the new precise calibration constant C' with the original precise calibration constant C. If the change range of the new precise calibration constant C' is less than 10% of the original precise calibration constant C, then do not replace the original precise calibration constant C, otherwise use the new precise calibration constant C to replace the original precise calibration constant C.
[0034] In a second aspect, the present invention provides a water supply pipeline flow and pressure detection system based on dual hydraulic simulation, including:
[0035] A physical simulation module for constructing a water supply simulation physical model and performing 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 includes the initial flow Qm1 of the water supply main pipe, the initial pressure Pm of the water supply main pipe, the water supply pressure P1 of the branch pipe, the branch pipe flow Q1, the water supply pressure P2 of the branch pipe, and the main pipe flow Qm2;
[0036] A calibration parameter calculation module for performing calibration calculations on each set of flow and pressure data according to the adjustment calculation formula to obtain the corresponding precise calibration factor α and precise calibration constant C;
[0037] A pipeline simulation module for performing simulation modeling on the water supply pipeline system based on multiple sets of flow and pressure data and the corresponding precise calibration factor α and precise calibration constant C to obtain an initial water supply pipeline model of the water supply pipeline system;
[0038] A parameter optimization module for obtaining the water supply pressure value and pipeline flow value of the actual water supply pipeline, and using the water supply pressure value and pipeline flow value to perform feedback adjustment on the precise calibration factor α and precise calibration constant C in the initial water supply pipeline model to obtain a water supply pipeline simulation model;
[0039] A model library construction module for adjusting 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;
[0040] A pipeline flow calculation module is used to select a corresponding water supply pipeline simulation model from a water supply pipeline model library according to the installation conditions of the water supply pipeline, and calculate the main flow of the main water supply pipe through the water supply pipeline simulation model.
[0041] In summary, the beneficial effects of the present invention are as follows:
[0042] A method for detecting the flow and pressure of a water supply pipeline based on dual hydraulic simulation provided by the present invention measures the flow and pressure of the water supply through constructing a physical simulation model of the water supply, obtains multiple sets of flow and pressure data, and performs calibration calculations on each set of flow and pressure data to obtain corresponding accurate calibration factors α and accurate calibration constants C. The flow and pressure of the branch pipe can be simulated and measured through the physical simulation model. Then, based on multiple sets of flow and pressure data and the corresponding accurate calibration factors α and accurate calibration constants C, a simulation model of the water supply pipeline system is established and parameter adjustment is performed to obtain a water supply pipeline simulation model. 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, a 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 main water supply pipe is calculated through the water supply pipeline simulation model. The present invention utilizes fluid mechanics formulas and assists with artificial intelligence algorithm models to achieve the effect of accurately predicting the flow and pressure of the main pipe by using the flow and pressure of the branch pipe. Description of the Drawings
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments of the present invention will be briefly introduced below. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings, and all of these are within the protection scope of the present invention.
[0044] Figure 1 It is a flow chart of the method for detecting the flow and pressure of a water supply pipeline based on dual hydraulic simulation of the present invention;
[0045] Figure 2 It is a functional module diagram of the system for detecting the flow and pressure of a water supply pipeline based on dual hydraulic simulation of the present invention. Detailed Embodiments
[0046] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It should be noted that in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. If there is no conflict, the various features in the present invention and its embodiments can be combined with each other, and all are within the protection scope of the present invention.
[0047] Embodiment 1:
[0048] Please refer to Figure 1 , Figure 1 which is a flowchart of a method for detecting the flow rate and pressure of a water supply pipeline based on dual hydraulic simulation in Embodiment 1 of the present invention. The method for detecting the flow rate and pressure of a water supply pipeline provided by the present invention includes the following steps:
[0049] Construct a physical model of water supply simulation, and based on the physical model of water supply simulation, measure the flow rate and pressure of water supply multiple times to obtain multiple sets of flow rate and pressure data; the flow rate and pressure data include the initial flow rate Qm1 of the main water supply pipe, the initial pressure Pm of the main water supply pipe, the water supply pressure P1 of the branch pipe, the flow rate Q1 of the branch pipe, the water supply pressure P2 of the branch pipe, and the flow rate Qm2 of the main pipe;
[0050] Perform calibration calculations on each set of flow rate and pressure data according to the adjustment calculation formula to obtain the corresponding accurate calibration factor α and accurate calibration constant C;
[0051] Based on multiple sets of flow rate and pressure data and the corresponding accurate calibration factor α and accurate calibration constant C, perform simulation modeling on the water supply pipeline system to obtain the initial water supply pipeline model of the water supply pipeline system;
[0052] Obtain the water supply pressure value and pipeline flow rate value of the actual water supply pipeline, and use the water supply pressure value and pipeline flow rate value to perform feedback adjustment on the accurate calibration factor α and accurate calibration constant C in the initial water supply pipeline model to obtain the water supply pipeline simulation model;
[0053] Adjust the water supply pipeline simulation model according to the installation combination method of the water supply pipeline to obtain the water supply pipeline model library;
[0054] 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 pipe flow rate of the main water supply pipe through the water supply pipeline simulation model.
[0055] Furthermore, for many existing water supply networks, it is impossible to install equipment by pipe breaking. Therefore, it is not feasible to install large-diameter flow meters in some areas of the existing water supply pipe network. However, in these areas, by installing small branch pipes, for example, the main pipe is DN500 (DN represents the nominal diameter), and the branch pipe only needs to be DN20, the effect of measuring the flow of the main pipe can be achieved without pipe breaking and water interruption, and the scheme is also feasible. Secondly, the cost of installing a large-diameter flow meter is usually high, while the cost of installing this set of systems, which includes branch pipes, two pressure gauges, and a small-diameter flow meter, is much lower.
[0056] Therefore, in the embodiments of the present invention, by constructing a water supply simulation physical model and performing water supply flow and pressure measurements multiple times based on the water supply simulation physical model, multiple sets of flow and pressure data including branch pipe flow and branch pipe pressure are obtained, specifically including the following process:
[0057] 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 pipe water supply, and measure the initial flow Qm1 of the water supply main pipe and the initial pressure Pm of the water supply main pipe.
[0058] Install a 1-meter-long branch pipe on the simulated water supply main pipe, and sequentially install a first pressure gauge, a flow meter, and a second pressure gauge at the end of the branch pipe to form a set of instrument groups, and measure the branch pipe water supply pressure P1, the branch pipe flow Q1, and the branch pipe water supply pressure P2 respectively.
[0059] According to the principle of fluid mechanics, in this case, the pipeline has a characteristic that when each branch pipe passes through a unit mass of water, the resistance loss is equal, that is, hF1 = hF2 = shf. The total pipeline flow is the sum of the branch pipe flow and the main pipe flow, that is, V total = V main + V branch. In the case of laminar flow, the flow distribution is only related to the inner diameter of the pipeline, and the flow can be simply calculated. However, most of the time it is turbulent flow, and the flow and resistance conditions need to be calculated according to the Darcy-Weisbach formula.
[0060] Based on the initial pressure Pm of the water supply main pipe, the branch pipe water supply pressure P1, the branch pipe flow Q1, and the branch pipe water supply pressure P2, the embodiments of the present invention calculate the main pipe flow Qm2 of the water supply main pipe through the Darcy-Weisbach formula.
[0061] Combine the initial flow Qm1 of the water supply main pipe, the initial pressure Pm of the water supply main pipe, 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.
[0062] Adjust and set multiple initial pressures Pm of the water supply main pipe to measure the pressure and flow, and obtain multiple sets of flow and pressure data.
[0063] Furthermore, there will be a deviation between the main pipe flow rate Qm2 calculated by the water supply simulation physical model and the actual value. The reasons are as follows: 1. The absolute pipe roughness is not accurate enough. 2. The temperature and water quality conditions are not taken into account, resulting in inaccurate fluid density and viscosity. 3. The local head loss has errors due to different actual branch pipe construction conditions. Therefore, the embodiments of the present invention introduce a precise calibration factor α and a precise calibration constant C for simulation modeling.
[0064] Specifically, in the embodiments of the present invention, based on each set of flow rate-pressure data for calibration calculation to obtain the corresponding precise calibration factor α and precise calibration constant C, the following process is included:
[0065] Based on each set of flow rate-pressure data, calculate the actual resistance of the pipeline according to the resistance coefficient calculation formula. The resistance coefficient calculation formula is:
[0066] λ = 8 / ((3.2 - 2.5*(log(abs_rou / dia)))^2)
[0067] Wherein, λ represents the actual resistance value; abs_rou represents the absolute pipe roughness, which refers to the average height of the protrusions on the non-smooth part of the pipe wall, dia represents the diameter of the pipeline, and the quotient of the absolute pipe roughness abs_rou and the diameter dia represents the relative pipe roughness;
[0068] Based on each set of flow rate-pressure data of the pipeline, use the trial-and-error method to simulate and calculate the estimated resistance value λ1, and calculate the deviation by the average value of multiple groups of estimated resistance values λ1 and the actual resistance value λ, and take the deviation as the precise calibration constant C;
[0069] Then calculate the precise calibration factor α according to the calibration expression. The calibration expression is:
[0070] λ1 = (8*α / ((3.2 - 2.5*(log(abs_rou / dia)))^2)) + C.
[0071] Furthermore, in the embodiments of the present invention, based on multiple groups of flow rate-pressure data and the corresponding precise calibration factor α and precise calibration constant C, perform simulation modeling on the water supply pipeline system to obtain the initial water supply pipeline model of the water supply pipeline system, including:
[0072] Establish a machine learning algorithm model, and use the initial pressure Pm of the water supply main pipe, the branch pipe water supply pressure P1, the branch pipe flow rate Q1, the branch pipe water supply pressure P2, and the branch pipe 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 groups of flow rate-pressure data as input values, and use the main pipe flow rate Qm2 as the fitting value to perform pipeline simulation modeling to form the initial water supply pipeline model of the pipeline system.
[0073] In the modeling process of the embodiments of the present invention, both the fixed error caused by local loss and the error caused by problems such as absolute pipe roughness abs_rou and viscosity are considered. Among them, a key value to be measured in the modeling process is "absolute pipe roughness abs_rou", which can be obtained by looking up a table, but it is not accurate enough. However, since the pipe resistance coefficient of the same batch is constant, this value can be corrected according to the data records and reinforcement learning algorithm 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 change is small. However, the water supply temperature T, fluid density ρ, and fluid viscosity μ are still designed as parameters into the model to improve the accuracy of the model in predicting the main pipe flow rate.
[0074] Furthermore, in the embodiments of the present invention, the accurate tuning factor α and the accurate tuning constant C in the initial water supply pipe model are feedback adjusted by using the water supply pressure value and the pipe flow rate value to obtain a water supply pipe simulation model, including:
[0075] Based on the initial water supply pipe model, the main pipe flow rate Qm2 is calculated, and the flow difference between the main pipe flow rate Qm2 and the pipe flow rate Qs of the main pipe in the actual water supply pipe is calculated;
[0076] The fluid density ρ, fluid viscosity μ, and absolute pipe roughness abs_rou in the initial water supply pipe model are iteratively corrected multiple times by using the flow difference until the iteration stops when the flow difference is less than a preset threshold. During the iteration process, when the main pipe flow rate Qm2 is greater than the pipe flow rate Qs, the parameter values of the fluid density ρ, fluid viscosity μ, and absolute pipe roughness abs_rou are reduced. For example, in a DN600 main pipe, a DN40 branch pipe is installed. When Qm2 is greater than 5‰ of Qs, the absolute pipe roughness is reduced by 1‰, and the fluid density ρ and fluid viscosity μ are reduced by 0.5‰, and vice versa. The iteration stops until the error between Qm2 and Qs is less than 5‰, which can be considered as the measurement error.
[0077] Calculate the variance between the estimated resistance value λ1 and the mean value of the actual resistance value λ. When the variance is small and the mean value changes greatly, the value of C is adjusted. When the variance is too large, the value of α is adjusted. The specific process is as follows:
[0078] Calculate the variance between the estimated resistance value λ1 and the mean value of the actual resistance value λ. If the newly calculated variance is greater than 5% of the original variance, the value of the accurate tuning factor α is adjusted downward by 1‰, and a new deviation is calculated through the mean values of multiple groups of estimated resistance values λ1 and actual resistance values λ, and the new deviation is used as the new accurate tuning constant C;
[0079] During the model fitting process, the pipeline resistance variance is calculated from the mean of the estimated resistance value λ1 obtained by fitting and the actual resistance value λ.
[0080] Compare the newly calculated pipeline resistance variance from fitting with the original pipeline resistance variance. If the change range of the new pipeline resistance variance is greater than 5% of the original pipeline resistance variance, then decrease the value of the precise calibration factor α by 1‰, and calculate the deviation of the mean of the estimated resistance value λ1 obtained by fitting and the actual resistance value λ as the new precise calibration constant C', and use the new precise calibration constant C to replace the original precise calibration constant C.
[0081] If the change range of the new pipeline resistance variance is less than 5% of the original pipeline resistance variance, then calculate the deviation of the mean of the estimated resistance value λ1 obtained by fitting and the actual resistance value λ as the new precise calibration constant C', and compare the new precise calibration constant C' with the original precise calibration constant C. If the change range of the new precise calibration constant C' is less than 10% of the original precise calibration constant C, then do not replace the original precise calibration constant C, otherwise use the new precise calibration constant C to replace the original precise calibration constant C.
[0082] Specifically, the pipeline resistance variance calculated from the mean of the estimated resistance value λ1 obtained by fitting and the actual resistance value λ is as follows:
[0083] Before pipeline fitting, the precise calibration factor α 0 and the precise calibration constant C 0 were originally planned to be initially set. Using the initially set precise calibration factor α 0 and the precise calibration constant C 0 calculate the initial estimated resistance value λ1 of the pipeline 0 , and further calculate the difference between the initial estimated resistance value λ1 0 and the mean of the actual resistance value λ to obtain the original planned error.
[0084] When updating the data of the initial water supply pressure and re - fitting the pipeline, obtain the precisely calibrated factor α 1 and the precise calibration constant C 1 calculated from fitting. Using the initially set precise calibration factor α 1 and the precise calibration constant C 1 calculate the actual estimated resistance value λ1 of the pipeline 1 , and further calculate the difference between the actual estimated resistance value λ1 1 and the mean of the actual resistance value λ to obtain the actual error.
[0085] When the difference between the actual error and the original planned error is large, for the precisely calibrated factor α 0 and the precise calibration constant C 0 used in the original planned errorAdjust to obtain a new precise calibration factor α 2 and the precise calibration constant C 2 , and use the new precise calibration factor α 2 and the precise calibration constant C 2 to calculate the estimated resistance value λ1 2 , and further calculate the actual estimated resistance value λ1 2 and the difference between the mean value of the actual resistance value λ to obtain the correction error.
[0086] Use the original planned error, actual error, and correction error to calculate the variance to obtain the pipeline resistance variance.
[0087] Through the above parameter adjustment process, the embodiment of the present invention can prevent the α value from being frequently modified due to the excessive change range of the C value.
[0088] Specifically, in the embodiment of the present invention, the initial value sets the precise calibration factor α to 1, and the precise calibration constant C is the difference between the mean value of 10 groups of estimated resistance values and the actual resistance value λ (i.e., the original planned error). Referring to Table 1 below, after determining the initial value based on the basic ten groups of data, adjust α to 0.9857 and C to 0.3.
[0089] Table 1 Comparison Table of Main Pipe Flow Rates
[0090]
[0091] After updating the data of the initial water supply pressure, perform feedback adjustment on these two values according to the actual calculation results. The new data is shown in Table 2 below:
[0092] Table 2 Comparison Table of Newly Added Main Pipe Flow Rates
[0093]
[0094] It can be seen that the difference between the actual error and the original planned error is relatively large, and the new R² value has increased significantly compared to the original R². It can be considered that there are significant differences in the fitting α and C values between these two groups of data, so these two values need to be corrected. Since the abnormal points have too much impact on the overall situation when the sample size of the newly added calculation results is small, the method of re-establishing the fitting model with the overall input cannot be used. Therefore, only make small-scale adjustments to the α and C values based on 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 comparison of the overall output results is shown in Table 3 below:
[0095] Table 3 Comparison Table of Result Errors
[0096]
[0097] As can be seen from the above data, the overall prediction error of the simulation model will be larger when the flow rate is larger, which is in line with the law. At the same time, the increase in the size difference between the branch pipe and the main pipe will also lead to an increase in the error. In terms of the calculation results, in the actual application scenario, that is, when installing a branch pipe to replace the large flowmeter of the main pipe with a smaller flowmeter, even in the case of a large size difference, this method has higher accuracy than the existing methods. For the existing methods, in the case where the main pipe flowmeter cannot be installed, only the flow rate at this point can be estimated by relying on the remote flowmeter or the hydraulic model.
[0098] Furthermore, in the embodiments of the present invention, a model library is formed with different combinations of pipelines. For example, main pipes with pipe diameters of DN300, D500, and D1000 are respectively combined with branch pipes with a pipe diameter of DN50 to form at least three pipeline models. In the embodiments of the present invention, when the installation conditions of the new pipeline are restricted, by establishing a branch pipe on the main pipe, the flow rate of the main pipe can be calculated by applying the water supply pipeline model, achieving the effect of using a small-diameter flowmeter to measure data and fit the flow rate of the main pipe.
[0099] The flow rate of the main pipe is calculated by inputting more accurate "absolute pipe roughness" and "fluid density and viscosity". Note that the more accurate values here are the more accurate values under the matching of this pipeline, that is, the values of DN600 matching DN400 shown in the above example. If the matching of the main pipe and the branch pipe changes, this accurate value needs to be recalculated according to the process. After inputting this accurate value, combined with the flow rate calculation method, the total flow rate value is converted according to the reading of the small flowmeter of the branch pipe. The input values for this part are the branch pipe flow rate, the main pipe diameter, the branch pipe diameter, the corrected absolute pipe roughness, and the corrected density and viscosity of water, and the output value is the total flow rate value, which is the target flow rate value of the main pipe.
[0100] Embodiment 2: Refer to Figure 2 As shown, the present invention provides a water supply pipeline flow and pressure detection system based on dual hydraulic simulation, including:
[0101] A physical simulation module for constructing a water supply simulation physical model and performing multiple water supply flow and pressure measurements based on the water supply simulation physical model to obtain multiple sets of flow and pressure data; the flow and pressure data includes the initial flow rate Qm1 of the water supply main pipe, the initial pressure Pm of the water supply main pipe, the branch pipe water supply pressure P1, the branch pipe flow rate Q1, the branch pipe water supply pressure P2, and the main pipe flow rate Qm2;
[0102] A calibration parameter calculation module for performing calibration calculations on each set of flow and pressure data according to the adjustment calculation formula to obtain the corresponding accurate calibration factor α and accurate calibration constant C;
[0103] A pipeline simulation module, which is used to perform simulation modeling on a water supply pipeline system based on multiple sets of flow pressure data and corresponding precise calibration factors α and precise calibration constants C to obtain an initial water supply pipeline model of the water supply pipeline system;
[0104] A parameter optimization module, which 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 perform feedback adjustment on the precise calibration factor α and precise calibration constant C in the initial water supply pipeline model to obtain a water supply pipeline simulation model;
[0105] A model library construction module, which 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;
[0106] A pipeline flow calculation module, which is used to select a 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 pipeline flow of the water supply main pipeline through the water supply pipeline simulation model.
[0107] In the embodiments of the present invention, a water supply simulation physical model is constructed to measure the water supply flow pressure, and multiple sets of flow pressure data are obtained. Each set of flow pressure data is calibrated and calculated to obtain corresponding precise calibration factors α and precise calibration constants C. The branch pipe flow and pressure can be simulated and measured through the physical simulation model. Then, based on multiple sets of flow pressure data and corresponding precise calibration factors α and precise calibration constants C, simulation modeling and parameter adjustment are performed on the water supply pipeline system to obtain a water supply pipeline simulation model. 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, a 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 pipeline flow of the water supply main pipeline is calculated through the water supply pipeline simulation model. Using the fluid mechanics formula and assisted by an artificial intelligence algorithm model, it is possible to accurately predict the flow and pressure of the main pipeline using the flow and pressure of the branch pipe, while reducing the cost of installing measurement equipment.
[0108] 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 them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions 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 of a simulated water supply main pipeline with full water supply, and measure the initial flow Qm1 and initial pressure Pm of the water supply main pipeline; 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 adjustment calculation formula is used to adjust and calculate each set of flow pressure data to obtain the corresponding precise adjustment factor α and precise adjustment 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.
4. The water supply pipeline flow 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 of using 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 includes: Calculate main flow based on initial water supply pipe model , and calculate the main flow The flow rate difference with the pipe flow value Qs of the main pipe in the actual water supply pipeline; The flow difference is used to perform multiple iterations on the fluid density ρ, fluid viscosity μ, and absolute pipe 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. When it is greater than the pipeline flow value Qs, the parameter values of 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 λ, including: before the pipeline fitting, the original plan will initially set the precision adjustment factor α0 and the precision adjustment constant C0, and use the initially set precision adjustment factor α0 and the precision 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; Update the data of the initial water supply pressure, and in the process of refitting the pipeline, obtain the precise adjustment factor α1 and the precise adjustment constant C1 calculated by fitting, use the precise adjustment factor α1 and the precise adjustment constant C1 to calculate the actual estimated resistance value λ11 of the pipeline, and further calculate the difference between the actual estimated resistance value λ11 and the mean value of the actual resistance value λ to obtain the actual error; When the difference between the actual error and the original planned error is large, the precision adjustment factor α0 and the precision adjustment constant C0 used in the original planned error are adjusted to obtain a new precision adjustment factor α2 and a precision adjustment constant C2, and the estimated resistance value λ12 is calculated using the new precision adjustment factor α2 and the precision adjustment constant C2, and the difference between the actual estimated resistance value λ12 and the mean value of the actual resistance value λ is further calculated to obtain the corrected error; The variance is calculated using the original planned error, actual error and corrected error to obtain the pipeline resistance variance; Compare the new pipeline resistance variance calculated by fitting 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, adjust the precision adjustment factor α value downward by 1‰, and calculate the deviation between the estimated resistance value λ1 obtained by fitting and the mean of the actual resistance value λ as the new precision adjustment constant C', and use the new precision adjustment constant C' 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
Intelligent rural water supply data collection and analysis system and method based on big data
CN116452191A
Campus water supply pipe network prediction leakage simulation method
CN118031124A