A method, device, equipment and medium for determining water flow of a pipeline

By acquiring pipeline topology and equipment information, identifying and decomposing multi-level nested pipeline loops, and calculating the total water flow and resistance, the problem of accuracy in water flow measurement in complex pipe networks is solved, and efficient flow determination is achieved.

CN122490748APending Publication Date: 2026-07-31PERSAGY TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
PERSAGY TECHNOLOGY CO LTD
Filing Date
2026-04-29
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

Existing technologies struggle to accurately measure water flow in complex pipe networks, especially in multi-level nested pipe systems with elbows, tees, reducers, and valve nodes, where there are monitoring blind spots and large flow measurement errors.

Method used

By acquiring pipeline topology information and equipment attribute information, multi-level nested pipeline loops are identified and decomposed. Using the nesting relationship between loops and equipment characteristic curves, the total water flow and resistance are calculated, and the branch flow rate is determined step by step.

Benefits of technology

It enables hierarchical decomposition of complex pipe network systems, significantly improving the accuracy and precision of water flow measurement and simplifying the calculation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122490748A_ABST
    Figure CN122490748A_ABST
Patent Text Reader

Abstract

This invention discloses a method, apparatus, device, and medium for determining pipeline water flow. The method includes: acquiring pipeline topology information of a target area and operational and attribute information of each pipeline device; determining multiple nested pipeline loops from the pipeline topology information based on the connection relationships of the pipeline devices; determining the total water flow of the multiple nested pipeline loops based on the operational information and the attribute and operational information of the pipeline devices; determining the resistance of the pipeline loops based on the attribute information; and determining the water flow of the branches in the pipeline loops based on the total water flow and the resistance of the pipeline loops. This method can accurately determine the water flow of a pipeline, improving the accuracy and efficiency of flow determination.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of water conservancy engineering, and in particular to a method, apparatus, equipment and medium for determining pipeline water flow. Background Technology

[0002] The core challenge in water pipe flow measurement lies in the extremely complex pipe network topology. Most pipelines are not straight lines, but rather branching, looping, or multi-level nested structures, containing numerous bends, tees, diameter changes, and valve nodes. This complex spatial layout causes the flow state to shift from laminar to turbulent, resulting in significant flow field disturbances and making it difficult to find stable measurement sections. Secondly, numerous environmental interference factors exist. Older pipes commonly suffer from scaling and corrosion on their inner walls, causing the actual pipe diameter and roughness to deviate from design values, leading to the failure of hydraulic calculation models. Furthermore, the pipe network is deeply buried underground, its route is unclear, and water load fluctuates in real time, resulting in frequent pressure changes.

[0003] Existing single-point contact sensors rely on pre-installed deployment, but the complex topology of underground pipe networks makes full-path coverage impossible, inevitably resulting in monitoring blind spots. Furthermore, incomplete single-point data fails to characterize the overall operating conditions, leading to significant errors in flow measurement and making it difficult to reflect the true operating status of the pipe network. Summary of the Invention

[0004] This invention provides a method, apparatus, equipment, and medium for determining water flow in a pipeline. The solution of this invention can accurately determine the water flow in a pipeline branch, thereby improving the accuracy of flow determination.

[0005] In a first aspect, embodiments of the present invention provide a method for determining the flow rate of water in a pipeline, comprising: Obtain pipeline topology information, operational information, and attribute information of each pipeline device in the target area; Based on the connection relationship of each of the pipeline devices, multiple nested pipeline loops are determined from the pipeline topology information. The pipeline loop is either a first type of loop or a second type of loop. The first type of loop includes at least two parallel branches, each branch including at least one of the pipeline devices. The second type of loop includes at least one of the first type of loops. Based on the operational information and the attribute and operational information of the pipeline equipment, the total water flow of the multiple nested pipeline loops is determined; The resistance of the pipeline loop is determined based on the attribute information; Based on the total water flow and the resistance of the pipeline loop, the water flow rate of the branch in the pipeline loop is determined.

[0006] Secondly, embodiments of the present invention provide a device for determining the flow rate of water in a pipeline, comprising: The acquisition module is used to acquire pipeline topology information, as well as the operation and attribute information of each pipeline device in the target area. The loop determination module is used to determine multiple nested pipe loops from the pipe topology information based on the connection relationship of each of the pipe devices. The pipe loop is either a first type loop or a second type loop. The first type loop includes at least two parallel branches, each branch including at least one of the pipe devices. The second type loop includes at least one first type loop. The loop flow determination module is used to determine the total water flow of the multiple nested pipe loops based on the operation information and the attribute information and operation information of the pipeline equipment. A resistance determination module is used to determine the resistance of the pipeline loop based on the attribute information.

[0007] The branch flow determination module is used to determine the water flow rate of the branch in the pipeline loop based on the total water flow and the resistance of the pipeline loop.

[0008] Thirdly, embodiments of the present invention provide an electronic device, the electronic device comprising: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the method for determining the pipe water flow rate as described in any one of the embodiments of the present invention.

[0009] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing computer instructions, which are used to cause a processor to execute the method for determining water pipe flow rate as described in any one of the embodiments of the present invention.

[0010] This invention provides a method, apparatus, device, and medium for determining pipeline water flow. The method includes: acquiring pipeline topology information of a target area and operational and attribute information of each pipeline device; determining multiple nested pipeline loops from the pipeline topology information based on the connection relationships of the pipeline devices, wherein each pipeline loop is a first-type loop or a second-type loop, the first-type loop including at least two parallel branches, each branch including at least one pipeline device, and the second-type loop including at least one first-type loop; determining the total water flow of the multiple nested pipeline loops based on the operational information and the attribute and operational information of the pipeline devices; determining the resistance of the pipeline loop based on the attribute information; and determining the water flow of the branches in the pipeline loop based on the total water flow and the resistance of the pipeline loop. Specifically, by identifying the multi-level nested loop structure in the pipeline topology information, a hierarchical decomposition of a complex pipeline network system is achieved. Based on the operational and attribute information of each pipeline device, the total water flow and resistance characteristics of each level of pipeline loop are independently calculated. By utilizing the nested constraint relationship between loops, the water flow rate of each branch in a single pipeline loop can be accurately determined, significantly improving the accuracy of water volume measurement. Attached Figure Description

[0011] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0012] Figure 1 A flowchart illustrating a method for determining pipeline water flow rate according to Embodiment 1 of the present invention; Figure 2 A flowchart illustrating a method for determining pipeline water flow rate according to Embodiment 2 of the present invention; Figure 3 This is a schematic diagram of the pipeline topology provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of a device for determining the flow rate of water in a pipeline, provided in Embodiment 3 of the present invention. Figure 5 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Detailed Implementation

[0013] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0014] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0015] It should be noted that the collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the technical solution disclosed herein all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0016] Example 1 Figure 1 The flowchart below shows a method for determining pipeline water flow rate according to Embodiment 1 of the present invention. This method is specifically applicable to the situation of calculating the flow rate of each branch in a complex water pipe network. This method can be executed by a pipeline water flow rate determination device, which can be composed of software and / or hardware and configured in a computer or server.

[0017] like Figure 1 As shown, it includes: Step 110: Obtain the pipeline topology information of the target area and the operation and attribute information of each pipeline equipment.

[0018] In this system, pipeline equipment refers to various hardware entities that constitute the entire water transport system. These hardware entities include valves, pumps, heat exchangers, and pipe sections. Pipeline equipment represents various physical components within the pipe network system. Pipeline topology information is network structure data describing the connection relationships between all pipes and equipment in the network. This network structure data is used to clarify the flow paths and directions of water. In a single operation, not all pipeline equipment is in working condition; therefore, the pipeline topology information in this embodiment may only be the topology information of the pipeline equipment that is in working condition. For inactive pipeline equipment and their associated pipelines, no calculation is required, and they are assumed to have no water flow. Operational information refers to the dynamic parameters of the pipeline equipment at a specific time or under specific operating conditions. These dynamic parameters include pressure, frequency, and real-time power. Operational information reflects the current operating status of the system. Attribute information refers to the inherent static parameters of the pipeline equipment. These static parameters include the rated power, location, and characteristic curves of the pipeline equipment. Characteristic curves characterize the correlation between different attribute parameters of the pipeline equipment, such as frequency, head, and power. These characteristic curves are obtained through static laboratory measurements and will not be elaborated here.

[0019] Step 120: Based on the connection relationship of each of the pipeline devices, determine multiple pipeline loops with nested relationships from the pipeline topology information, wherein the pipeline loop is a first type loop or a second type loop, the first type loop includes at least two parallel branches, each branch includes at least one of the pipeline devices, and the second type loop includes at least one first type loop.

[0020] In this context, a pipe loop is a closed flow path in the pipe topology, consisting of pipes and pipe equipment, with the starting and ending points coinciding. Within the same pipe loop, the water flow rate of the main branch is equal to the sum of the water flows of each branch. Nesting relationships refer to a hierarchical structure where multiple pipe loops contain and are included. For example, a large main water supply loop can contain independent water supply sub-loops for multiple floors; each floor's independent water supply sub-loop also includes water supply loops for multiple rooms. The basic loop structure of this embodiment is a loop with parallel branches. The first type of loop is a basic closed-loop structure containing at least two parallel branches. It should be noted that, due to the parallel structure, the pipe loop includes at least two branches, and the branch loops corresponding to these two branches, i.e., a ring-shaped waterway consisting of branches and the main branch. The first type of loop is used to realize the diversion and convergence of water flows. Parallel flow refers to a connection where water flow splits into multiple paths at one point, flows through different routes, and then converges at another point. Parallel flow provides parallel flow channels, and it indicates that the pressure difference at both ends of each parallel branch is the same. A second type of loop is a higher-level closed loop composed of at least one first-type loop. It should be noted that a first-type loop can be a minimal and indivisible graphical loop, whose internal components consist only of piping equipment, and there are no other nested structures within it. A second-type loop includes at least one first-type loop, and it represents a loop where the nesting relationship is not completely separated.

[0021] Specifically, determining multiple nested pipeline loops from the pipeline topology information based on the connection relationships of each pipeline device includes: Based on the connection relationship of each pipeline device, the connection node corresponding to each pipeline device is identified; if there are at least two pipeline devices that are connected end to end through the connection node to form a closed path, the closed path is determined as a pipeline loop; according to the inclusion relationship of pipeline devices between each pipeline loop, the nesting relationship between pipeline loops is determined.

[0022] Specifically, a connection node is the junction point between two or more pipeline devices in a pipeline topology, representing the location where fluid branches or merges in the pipeline network; a head-to-tail connection refers to multiple pipeline devices being connected sequentially through their connection nodes to form a branchless linear path, representing the water flow sequentially through each device along this path. A closed path is a route in a network composed of connection nodes and pipeline devices that starts from a certain node, traverses several devices and nodes along the connection relationships, and returns to the starting node.

[0023] Furthermore, if all pipeline equipment included in the first pipeline loop belongs to the equipment set of the second pipeline loop, and at least one pipeline equipment in the equipment set of the second pipeline loop does not belong to the first pipeline loop, then the first pipeline loop is determined to be nested within the second pipeline loop.

[0024] The first pipeline loop and the second pipeline loop are nested adjacent to each other, with the first pipeline loop being a sub-loop of the second pipeline loop.

[0025] Step 130: Based on the operation information and the attribute information and operation information of the pipeline equipment, determine the total water flow of the multiple nested pipeline loops.

[0026] The total water volume in the pipeline loop is the total flow rate of the pipeline loop trunk line, which is composed of the water flows of multiple branches. It should be noted that for a pipeline network, branches may include pipeline equipment or the pipeline network itself; for example, the entire pipeline network can be considered a virtual component or device. This embodiment of the invention achieves the final analysis of the water flow rate of all branches by decomposing and calculating the pipeline loops at each level layer by layer.

[0027] Step 140: Determine the resistance of the pipeline loop based on the attribute information.

[0028] Among them, resistance is the force generated by water flow through each pipe and equipment during the transmission process. The resistance of different pipe and equipment is determined by basic information such as its type, material and power. The resistance of a pipe loop can be determined by the resistance of the equipment included in each branch. For example, the resistance of each pipe and equipment connected in series can be determined by adding the resistances, and the resistance of each equipment connected in parallel can be calculated by the parallel formula.

[0029] For example, the series formula is: The parallel formula is: ;in, Resistance of piping systems connected in series or parallel.

[0030] Step 150: Based on the total water flow and the resistance of the pipe loop, determine the water flow rate of the branch in the pipe loop.

[0031] Specifically, the total water flow in the pipeline loop and the resistance of each branch in the pipeline loop can be used to determine the water flow of each branch in each level of the pipeline loop according to the nesting relationship. It should be noted that the branch of the upper-level pipeline loop can be the main branch of the lower-level pipeline loop. Therefore, the water flow of the branch of the upper-level pipeline loop is the total flow of the main branch of the lower-level pipeline loop.

[0032] This invention provides a method, apparatus, device, and medium for determining pipeline water flow. The method includes: acquiring pipeline topology information of a target area and operational and attribute information of each pipeline device; determining multiple nested pipeline loops from the pipeline topology information based on the connection relationships of the pipeline devices, wherein each pipeline loop is a first-type loop or a second-type loop, the first-type loop including at least two parallel branches, each branch including at least one pipeline device, and the second-type loop including at least one first-type loop; determining the total water flow of the multiple nested pipeline loops based on the operational information and the attribute and operational information of the pipeline devices; determining the resistance of the pipeline loop based on the attribute information; and determining the water flow of the branches in the pipeline loop based on the total water flow and the resistance of the pipeline loop. Specifically, by identifying the multi-level nested loop structure in the pipeline topology information, a hierarchical decomposition of a complex pipeline network system is achieved. Based on the operational and attribute information of each pipeline device, the total water flow and resistance characteristics of each level of pipeline loop are independently calculated. By utilizing the nested constraint relationship between loops, the water flow rate of each branch in a single pipeline loop can be accurately determined, significantly improving the accuracy of water volume measurement.

[0033] Example 2 Figure 2 This is a flowchart of a method for determining pipeline water flow rate according to Embodiment 2 of the present invention. This embodiment is based on the above embodiment and further defines some steps of the above method.

[0034] like Figure 2 As shown, it includes: Step 210: Obtain the pipeline topology information of the target area and the operation and attribute information of each pipeline equipment.

[0035] Step 220: Based on the connection relationship of each of the pipeline devices, determine multiple pipeline loops with nested relationships from the pipeline topology information, wherein the pipeline loop is a first type loop or a second type loop, the first type loop includes at least two parallel branches, each branch includes at least one of the pipeline devices, and the second type loop includes at least one first type loop.

[0036] Step 230: Based on the multiple nested pipe loops, generate multiple nested simulated loops corresponding to the pipe loops and simulated components in the simulated loops. The simulated components in the simulated loops corresponding to the second type of loop are the first type of loop and pipe equipment. The simulated components in the simulated loops corresponding to the first type of loop are pipe equipment. The operating information of the simulated components is associated with the pipe equipment of the inner loop corresponding to the simulated components.

[0037] Step 240: Determine the total water flow of the pipeline loop corresponding to the simulated loop based on the attribute information and operation information of the simulated components in the simulated loop.

[0038] In this model, a simulated loop is an abstract logical circuit created based on the topology and nesting relationships of actual pipeline loops. The simulated loop represents the actual pipeline loop. It transforms complex physical pipeline networks into analytical models that facilitate mathematical calculations, representing the equivalent of the actual pipeline loop in the simulation. A simulated component is a computational unit within the simulated loop that represents an actual pipeline device or a complete inner loop. An inner loop is a lower-level sub-loop that is completely contained within a higher-level pipeline loop. For example, in the calculation, an inner loop containing multiple pipeline devices can be abstracted as a simulated component with equivalent resistance, thus simplifying the calculation of the outer loop; the inner loop is a first-type loop, and the outer loop is a second-type loop.

[0039] Optionally, based on the attribute information and operational information of the simulated components in the simulated loop, the total water flow of the corresponding pipeline loop is determined, including: For the simulated loop corresponding to the second type of loop, the operating information and attribute information of the simulated components corresponding to the first type of loop are determined based on the operating information and attribute information of each pipeline device in the first type of loop. The operating information and attribute information of the simulated components corresponding to the pipeline devices in the simulated loop are also determined based on the operating information and attribute information of the simulated components in the second type of loop. The total water flow of the second type of loop corresponding to the simulated loop is determined based on the attribute information and operating information of the simulated components in the second type of loop. Finally, the total water flow of the first type of loop corresponding to the simulated loop is determined based on the operating information and attribute information of the pipeline devices in the first type of loop.

[0040] Specifically, for different types of Class I and Class II loops, the total water flow can be calculated using similar calculation methods, such as calculating the simulated components (Class I loop) and pipeline equipment separately.

[0041] Specifically, determining the total water flow of the second type of loop corresponding to the simulated loop based on the attribute information and operating information of the simulated components in the second type of loop includes: Determine the sum of the rated flow rates of each simulated component in the simulated loop of the second type of loop, and the target rated flow rate of the target simulated component; determine the equivalent number of devices in the simulated loop based on the sum of the rated flow rates of each simulated component and the target rated flow rate, wherein the equivalent number of devices is the equivalent number of the target simulated component in the simulated loop; obtain the device characteristic curve of the target simulated component, wherein the device characteristic curve represents the correspondence between the operating frequency of the pipeline equipment, the loop flow rate, and the head; obtain the system resistance curve of the simulated loop, wherein the system resistance curve represents the correspondence between the number of devices in the simulated loop, the loop flow rate, and the head; determine the total water flow of the second type of loop corresponding to the simulated loop based on the device characteristic curve, the system resistance curve, the equivalent number of devices, and the current operating frequency of the target simulated component.

[0042] The rated flow rate is the sum of the rated flow rates of all simulated components in the simulation loop. The target simulated component is the specific simulated component selected as the benchmark in the simulation loop, such as a pipeline device with the highest rated flow rate. The equivalent device quantity is the number of equivalent devices that convert all simulated components in the simulation loop into the same type of target simulated component. The equivalent device quantity is used to simplify heterogeneous and complex equipment types into homogeneous equipment to reduce computational load. The equipment characteristic curve is a performance curve describing the relationship between the operating frequency, output flow rate, and head provided by a specific pipeline device, such as a water pump. The equipment characteristic curve exemplifies that at a fixed speed, the higher the flow rate, the lower the head that the pipeline device can provide. The system resistance curve is a curve showing the relationship between the total resistance of the simulation loop and the flow rate through the simulation loop. The system resistance curve is used to represent the resistance characteristics of the simulation loop to flow. The system resistance curve indicates that the higher the flow rate, the higher the total resistance that the simulation loop needs to overcome.

[0043] For example, the total water flow can be calculated using the following formula: Specifically, regarding the number of equivalent equipment: The numerator is the sum of the rated flow rates of each simulated component in any branch of the simulated loop, and the denominator is the rated flow rate of the target simulated component. Therefore... The target simulation component is the number of simulated components after all simulated components in any branch of the simulated loop are replaced with the target simulation component.

[0044] Equipment characteristic curves: ; System resistance curve: ; in, , and The regression coefficients are known. , and Given the known rated frequency, rated flow rate, and rated head of the target simulation component. Z is the error coefficient, representing the static pressure term corresponding to the height of the cooling tower.

[0045] Specifically, this can be achieved by obtaining the current operating frequency. By combining the equations corresponding to the equipment characteristic curves and the equations corresponding to the system resistance curves, the total water flow of any branch of the simulated loop is calculated. Then, the total water flow of each branch of the simulated loop is summed to obtain the total main flow of the simulated loop, which is the total water flow of the simulated loop.

[0046] It should be noted that for the first type of loop, there is no additional internal nesting. The flow rate can be calculated directly based on the above formula and the operating information and attribute information of the pipeline equipment, which will not be elaborated here.

[0047] Step 250: Determine the equivalent resistance of each simulation component based on the rated flow rate and target rated flow rate of each simulation component in the simulation loop.

[0048] Step 260: Determine the resistance of the pipeline loop corresponding to the simulated loop based on the equivalent resistance of each simulated component in the simulated loop.

[0049] Specifically, since a branch in a pipeline loop may include various types of equipment with different resistance characteristics, this embodiment only needs to calculate the flow rate of the branch. Therefore, to simplify the calculation, various types of equipment can be approximated by pipeline equipment of the target type; the target type pipeline equipment can be the pipeline equipment with the largest rated flow rate. Therefore, the equivalent resistance of each simulated component in the branch can be calculated by the difference between the rated flow rate of each pipeline equipment and the rated flow rate of the target type pipeline equipment, thus obtaining the equivalent resistance of the branch.

[0050] For example, the equivalent resistance corresponding to the simulated component can be determined by the following formula; in, The target rated flow rate of the target simulated component, The resistance of the target simulated component is given by the rated flow rate of each simulated component. Therefore, the equivalent resistance of each simulated component relative to the target simulated component can be determined by the rated flow rate of each simulated component. For example, simulated component A is equivalent to the resistance of 0.5 target simulated components.

[0051] Furthermore, by analyzing the resistance of each target simulation component in each branch and their series-parallel relationships, the resistance of the corresponding pipeline loop in the simulation loop can be determined.

[0052] Step 270: Determine the water flow rate of each simulated component and pipeline equipment in the branch of the pipeline loop based on the total water flow of the pipeline loop, the series and parallel connection relationship between the simulated components in the pipeline loop, and the resistance of the pipeline loop.

[0053] Specifically, the sum of resistances in a pipe loop can be determined by simulating the series and parallel relationships between components and their equivalent resistances. Then, based on the proportion of each branch in the sum of resistances and the principle of resistance-flow diversion, the flow rate of each branch is calculated. It should be noted that the calculation can proceed step-by-step from the highest-level pipe loop to the lowest-level loop, ultimately determining the flow rate of all branches; the lowest-level pipe loop is the first type of loop.

[0054] For example, Figure 3 The diagram illustrates a pipeline topology provided in this embodiment of the invention. As shown, the pipeline topology includes multiple nested pipeline loops. Specifically, inner loop A and inner loop B together form a higher-level inner loop F; inner loop C and inner loop D together form a higher-level inner loop G. From the overall system perspective, the input end, inner loop F, inner loop G, inner loop E, output end, and independent pipeline equipment are connected to form the largest and most complete pipeline loop S1. Within pipeline loop S1, there are two parallel branch loops: branch loop S2 and branch loop S3. The path of branch loop S2 is: input end, inner loop F, inner loop G, output end, and pipeline equipment; the path of branch loop S3 is: input end, inner loop E, output end, and pipeline equipment.

[0055] Based on this topology, the steps for calculating branch flow are as follows: The first step is to determine the resistance of the lowest-level inner loop. Inner loops A, B, C, and D are all Class I loops, containing only piping and equipment. Based on the attribute and operational information of each piping and equipment, the equivalent resistance of each Class I loop is determined.

[0056] The second step is to calculate the resistance of the inner loop layer by layer upwards. Treating inner loops A and B as simulated components, the equivalent resistance of inner loop F is calculated based on their equivalent resistance and connection relationship. Similarly, the equivalent resistances of inner loops G and E are calculated.

[0057] The third step is to construct and calculate the simulated loop of the maximum loop S1. When calculating the pipeline loop S1, the inner loops F, G, and E, as well as the pipeline equipment, are all considered as simulated components in the simulated loop S1. The pipeline equipment is selected as the target simulated component, and the number of equivalent equipment is calculated based on the rated flow rate of each simulated component.

[0058] The fourth step is to calculate the branch flow distribution. By combining the equipment characteristic curves of the target simulation components with the system resistance curve of the simulation loop S1, and considering the current operating frequency, the total main flow (i.e., total water flow) of the simulation loop S1 can be calculated. Subsequently, based on the proportions of branch loops S2 and S3 in the total resistance of the simulation loop S1, and according to the principle of resistance and flow diversion, the total flow is distributed to branch loops S2 and S3, thus completing the calculation of the flow of each branch.

[0059] It should be noted that the resistance calculation and flow rate determination follow a step-by-step decomposition process from the highest-level pipe circulation to the lowest-level pipe loop, ultimately determining the flow rate of all branches. Specifically, based on the proportion of branch loop S2 (including inner loops F and G) and branch loop S3 (including inner loop E) in the total resistance of simulated loop S1, and according to the principle of resistance and flow rate diversion, the total main flow rate of S1 is allocated to branch loops S2 and S3, thus obtaining the flow rate of each branch loop. The flow rate allocated to branch loop S2 is further allocated to inner loops F and G based on the resistance relationship between them. Subsequently, the flow rate of inner loop F is allocated based on the resistance of inner loops A and B; the flow rate of inner loop G is allocated based on the resistance of inner loops C and D. Through this top-down hierarchical decomposition, the specific water flow rate of each branch can be determined from the highest-level pipeline loop S1 down to the lowest-level first-class loop.

[0060] This invention establishes a pipeline loop model with nested relationships, decomposing complex pipe networks into multiple levels of pipeline loops (such as first-type loops and second-type loops), and using simulated loops and simulated components to abstract and represent the actual system. This method, through layer-by-layer decomposition and calculation, unifies heterogeneous pipeline equipment as target simulated components for calculation, and significantly simplifies the hydraulic calculation process by combining equipment characteristic curves and system resistance curves. This invention can efficiently and accurately analyze the flow rate of each branch and the total flow rate of the loop, and is particularly suitable for large-scale pipe network systems containing numerous parallel and nested structures, significantly reducing computational complexity while ensuring calculation accuracy.

[0061] Example 3 Figure 4 This is a schematic diagram of a device for determining the flow rate of water in a pipeline, provided in Embodiment 3 of the present invention. Figure 4 As shown, the device includes: The acquisition module 310 is used to acquire pipeline topology information of the target area and the operation and attribute information of each pipeline device. The loop determination module 320 is used to determine multiple nested pipe loops from the pipe topology information based on the connection relationship of each of the pipe devices. The pipe loop is either a first type loop or a second type loop. The first type loop includes at least two parallel branches, each branch including at least one of the pipe devices. The second type loop includes at least one first type loop. The loop flow determination module 330 is used to determine the total water flow of the multiple nested pipe loops based on the operation information and the attribute information and operation information of the pipeline equipment. The resistance determination module 340 is used to determine the resistance of the pipeline loop based on the attribute information.

[0062] The branch flow determination module 350 is used to determine the water flow rate of the branch in the pipeline loop based on the total water flow and the resistance of the pipeline loop. Optionally, the loop determination module 320 includes: The node determination unit is used to identify the connection nodes corresponding to each pipeline device based on the connection relationship of each pipeline device; A loop determination unit is used to determine a pipeline loop if at least two pipeline devices are connected end to end through a connection node to form a closed path. The nesting determination unit is used to determine the nesting relationship between pipeline loops based on the inclusion relationship between pipeline equipment in each pipeline loop.

[0063] Optionally, the nesting determination unit is specifically used to determine that the first pipeline loop is nested in the second pipeline loop if all pipeline devices included in the first pipeline loop belong to the device set of the second pipeline loop, and at least one pipeline device in the device set of the second pipeline loop does not belong to the first pipeline loop.

[0064] Optionally, the loop flow determination module 330 includes: The component generation unit is used to generate multiple nested simulated loops and simulated components in the simulated loops based on the multiple nested pipe loops. The simulated components in the simulated loops corresponding to the second type of loop are the first type of loop and pipe equipment. The simulated components in the simulated loops corresponding to the first type of loop are pipe equipment. The operation information of the simulated components is associated with the pipe equipment of the inner loop corresponding to the simulated components. The flow rate determination unit is used to determine the total water flow of the pipeline loop corresponding to the simulated loop based on the attribute information and operation information of the simulated components in the simulated loop.

[0065] Optionally, the flow determination unit includes: The information determination subunit is used to determine the operation information and attribute information of the simulation component corresponding to the first type of loop based on the operation information and attribute information of each pipeline device in the first type of loop in the simulation loop corresponding to the second type of loop; and to determine the operation information and attribute information of the simulation component corresponding to the pipeline device based on the operation information and attribute information of the pipeline device in the simulation loop. The second type of flow determination unit is used to determine the total water flow of the second type of loop corresponding to the simulated loop based on the attribute information and operation information of the simulated components in the second type of loop. The first type of flow determination unit is used to determine the total water flow of the first type of loop corresponding to the simulated loop based on the attribute information and operation information of the pipeline equipment in the first type of loop.

[0066] Optionally, the second type of flow determination unit includes: The flow determination subunit is used to determine the rated flow of each simulation component in the simulation loop of the second type of loop, as well as the target rated flow of the target simulation component; The quantity determination subunit is used to determine the equivalent number of devices in the simulation loop based on the sum of the rated flow rates of each simulation component and the target rated flow rate, wherein the equivalent number of devices is the equivalent number of the target simulation components in the simulation loop; The first acquisition unit is used to acquire the equipment characteristic curve of the target simulation component, wherein the equipment characteristic curve represents the corresponding relationship between the operating frequency, loop flow rate and head of the pipeline equipment. The second acquisition unit is used to acquire the system resistance curve of the simulated loop, wherein the system resistance curve represents the correspondence between the number of devices, the loop flow rate and the head in the simulated loop; The calculation unit is used to determine the total water flow of the second type of loop corresponding to the simulated loop based on the equipment characteristic curve, system resistance curve, number of equivalent equipment and current operating frequency of the target simulation component.

[0067] Optionally, the resistance determination module 340 includes: The equivalent determination unit is used to determine the equivalent resistance of each simulated component based on the rated flow rate and the target rated flow rate of each simulated component in the simulated loop. The summation unit is used to determine the resistance of the pipeline loop corresponding to the simulation loop based on the equivalent resistance of each simulation component in the simulation loop.

[0068] Optionally, the branch flow determination module 350 is specifically used to determine the water flow of each simulated component and pipeline equipment in the branch of the pipeline loop based on the total water flow of the pipeline loop, the series and parallel connection relationship between the simulated components in the pipeline loop, and the resistance of the pipeline loop.

[0069] The pipe water flow determination device provided in the embodiments of the present invention can execute the pipe water flow determination method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0070] Example 4 Figure 5 A schematic diagram of an electronic device 10, which can be used to implement embodiments of the present invention, is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0071] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0072] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0073] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as methods for determining the flow rate of water in a pipe.

[0074] In some embodiments, the method for determining the pipe water flow rate may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the method for determining the pipe water flow rate described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the method for determining the pipe water flow rate by any other suitable means (e.g., by means of firmware).

[0075] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include: implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0076] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0077] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0078] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0079] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0080] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0081] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0082] This disclosure also provides a computer program product, including a computer program and / or instructions, which, when executed by a processor, implements the method for determining pipeline water flow as provided in any embodiment of this application.

[0083] In implementing a computer program product, computer program code for performing the operations of the embodiments of this disclosure can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0084] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for determining the flow rate of water in a pipeline, characterized in that, include: Obtain pipeline topology information, operational information, and attribute information of each pipeline device in the target area; Based on the connection relationship of each of the pipeline devices, multiple nested pipeline loops are determined from the pipeline topology information. The pipeline loop is either a first type of loop or a second type of loop. The first type of loop includes at least two parallel branches, each branch including at least one of the pipeline devices. The second type of loop includes at least one of the first type of loops. Based on the operational information and the attribute and operational information of the pipeline equipment, the total water flow of the multiple nested pipeline loops is determined; The resistance of the pipeline loop is determined based on the attribute information; Based on the total water flow and the resistance of the pipe loop, the water flow rate of the branch in the pipe loop is determined.

2. The method according to claim 1, characterized in that, The step of determining multiple nested pipeline loops from the pipeline topology information based on the connection relationships of each of the pipeline devices includes: Based on the connection relationships of each pipeline device, identify the connection nodes corresponding to each pipeline device; If at least two pipeline devices are connected end-to-end through a connection node to form a closed path, then the closed path is defined as a pipeline loop. The nesting relationship between pipeline loops is determined based on the inclusion relationship of pipeline equipment between each pipeline loop.

3. The method according to claim 2, characterized in that, Determining the nesting relationship between pipeline loops based on the inclusion relationship of pipeline equipment between each pipeline loop includes: If all the pipeline equipment included in the first pipeline loop belongs to the equipment set of the second pipeline loop, and at least one pipeline equipment in the equipment set of the second pipeline loop does not belong to the first pipeline loop, then the first pipeline loop is determined to be nested in the second pipeline loop.

4. The method according to claim 1, characterized in that, The determination of the total water flow of the multiple nested pipeline loops based on the operational information and the attribute and operational information of the pipeline equipment includes: Based on the multiple nested pipe loops, multiple nested simulated loops and simulated components in the simulated loops are generated, where the simulated components in the simulated loops corresponding to the second type of loops are the first type of loops and pipe equipment, and the simulated components in the simulated loops corresponding to the first type of loops are pipe equipment. The operating information of the simulated components is associated with the pipe equipment of the inner loop corresponding to the simulated components. Based on the attribute information and operating information of the simulated components in the simulated loop, the total water flow of the pipeline loop corresponding to the simulated loop is determined.

5. The method according to claim 4, characterized in that, The step of determining the total water flow of the pipeline loop corresponding to the simulated loop based on the attribute information and operating information of the simulated components in the simulated loop includes: For the simulated loop corresponding to the second type of loop, the operating information and attribute information of the simulated components corresponding to the first type of loop are determined based on the operating information and attribute information of each pipeline equipment in the first type of loop in the simulated loop. The operating information and attribute information of the simulated components corresponding to the pipeline equipment are determined based on the operating information and attribute information of the pipeline equipment in the simulated loop. Based on the attribute information and operation information of the simulated components in the second type of loop, the total water flow of the second type of loop corresponding to the simulated loop is determined; Based on the attribute information and operation information of the pipeline equipment in the first type of loop, the total water flow of the first type of loop corresponding to the simulated loop is determined.

6. The method according to claim 5, characterized in that, The step of determining the total water flow of the second type of loop corresponding to the simulated loop based on the attribute information and operation information of the simulated components in the second type of loop includes: Determine the rated flow rate of each simulation component in the simulation loop of the second type of loop, and the target rated flow rate of the target simulation component; Based on the rated flow rate of each simulation component and the target rated flow rate, the number of equivalent devices in the simulation loop is determined, wherein the number of equivalent devices is the equivalent number of the target simulation components in the simulation loop; Obtain the equipment characteristic curve of the target simulation component, wherein the equipment characteristic curve represents the corresponding relationship between the operating frequency, loop flow rate and head of the pipeline equipment; Obtain the system resistance curve of the simulated loop, wherein the system resistance curve characterizes the relationship between the number of devices, the loop flow rate and the head in the simulated loop; Based on the equipment characteristic curve, system resistance curve, number of equivalent equipment, and current operating frequency of the target simulation component, the total water flow of the second type of loop corresponding to the simulation loop is determined.

7. The method according to claim 4, characterized in that, Determining the resistance of the pipeline loop based on the attribute information includes: Based on the rated flow rate and target rated flow rate of each simulated component in the simulation loop, determine the equivalent resistance of each simulated component. The resistance of the pipeline loop corresponding to the simulated loop is determined based on the equivalent resistance of each simulated component in the simulated loop.

8. The method according to claim 7, characterized in that, Determining the water flow rate of the branch in the pipeline loop based on the total water flow and the resistance of the pipeline loop includes: Based on the total water flow in the pipeline loop, the series and parallel connections between the simulated components in the pipeline loop, and the resistance of the pipeline loop, the water flow rate of each simulated component and pipeline equipment in the branch of the pipeline loop is determined.

9. A device for determining the flow rate of water in a pipeline, characterized in that, include: The acquisition module is used to acquire pipeline topology information, as well as the operation and attribute information of each pipeline device in the target area. The loop determination module is used to determine multiple nested pipe loops from the pipe topology information based on the connection relationship of each of the pipe devices. The pipe loop is either a first type loop or a second type loop. The first type loop includes at least two parallel branches, each branch including at least one of the pipe devices. The second type loop includes at least one first type loop. The loop flow determination module is used to determine the total water flow of the multiple nested pipe loops based on the operation information and the attribute information and operation information of the pipeline equipment. A resistance determination module is used to determine the resistance of the pipeline loop based on the attribute information; The branch flow determination module is used to determine the water flow rate of the branch in the pipeline loop based on the total water flow and the resistance of the pipeline loop.

10. An electronic device, characterized in that, The electronic device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, which enables the at least one processor to perform the method for determining the pipe water flow rate according to any one of claims 1-8.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the method for determining the water pipe flow rate as described in any one of claims 1-8.