A method, device, electronic device and storage medium for calculating fluid direction

By acquiring and processing the digital information of the pipeline system, determining the supply of multi-port fittings and regressing multi-port fittings, and performing traversal calculations, the problem of complex and low efficiency calculation of the fluid flow direction is solved, and automated calculations and efficiency improvements are achieved.

CN117763868BActive Publication Date: 2025-02-11PERSAGY TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311862808.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2025-02-11
Estimated Expiration
2043-12-29

AI Technical Summary

Technical Problem

After building a pipeline system, the process of calculating the flow direction of the fluid is complicated and inefficient.

Method used

By obtaining the digital information of the pipeline system in the target area, determining the supply of multi-port pipe fittings and regressing multi-port pipe fittings in the digital information, obtaining the target digital information, and traversing the fluid direction in the fluid pipeline based on the target digital information, and determining the composition The target fluid direction under the influence of the equipment.

Benefits of technology

It realizes automated calculation of the direction of fluid, lowers the threshold for digitalization, improves processing efficiency, and is suitable for preventive maintenance, problem investigation, and system diagram drawing scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117763868B_ABST
    Figure CN117763868B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, electronic device and storage medium for calculating the direction of fluid to obtain digital information of a pipe network system in a target area; wherein the digital information is determined at least by the topological structure of the pipe network system and the component equipment of the pipe network system; the supply multi-port pipe fittings and the regression multi-port pipe fittings in the digital information are determined to obtain target digital information; the regression multi-port pipe fittings are pipes for realizing fluid recovery from multiple pipes according to the digital information; according to the target digital information, the fluid direction in the fluid pipe is traversed and calculated to determine the target digital target fluid direction under the influence of the component equipment. The technical solution of the present application makes it possible to automatically calculate the fluid direction after obtaining the digital information of the pipe network model, which is convenient for scene requirements such as preventive maintenance, problem troubleshooting and system diagram drawing, reduces the threshold of digitalization and improves processing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of regional digital engineering technology, and in particular to a method, device, electronic equipment and storage medium for calculating fluid direction. Background Art

[0002] In recent years, the wave of digitalization in all walks of life has been in full swing. Practice has proved that the application of software engineering technology to digitize the region can greatly improve the efficiency of regional asset management, business management, equipment and facility management and other fields.

[0003] However, digital solutions for fluid pipeline networks in the target industry often focus on modeling, and often do not involve the specific flow direction of the fluid in the fluid pipeline. In addition, since the fluid pipeline network has a network structure, the relationship information between objects is numerous and complex, and the overall judgment process is complex and inefficient. Summary of the invention

[0004] The present invention provides a method, device, electronic device and storage medium for calculating the flow direction of a fluid, so as to solve the problem that the process of calculating the flow direction of a fluid is complicated and inefficient after a pipe network system is constructed.

[0005] According to one aspect of the present invention, a method for calculating a fluid direction is provided, the method comprising:

[0006] Acquire digital information of the pipe network system in the target area; wherein the digital information is determined at least by the topological structure of the pipe network system and the components of the pipe network system;

[0007] Determine the supply multi-port pipe fitting and the return multi-port pipe fitting in the digital information to obtain the target digital information; wherein the supply multi-port pipe fitting is a pipe in the digital information for realizing fluid supply to multiple pipes; and the return multi-port pipe fitting is a pipe in the digital information for realizing fluid recovery from multiple pipes;

[0008] According to the target digital information, the fluid direction in the fluid pipeline is traversed and calculated to determine the target fluid direction of the target digital information under the influence of the component equipment.

[0009] According to another aspect of the present invention, there is provided a device for calculating a fluid direction, the device comprising:

[0010] A digital information acquisition module is used to acquire digital information of the pipe network system in the target area; wherein the digital information is at least determined by the topological structure of the pipe network system and the components of the pipe network system;

[0011] The target model acquisition module is used to determine the supply multi-port pipe fitting and the return multi-port pipe fitting in the digital information to obtain the target digital information; wherein the supply multi-port pipe fitting is a pipe used to supply fluid to multiple pipes in the digital information; the return multi-port pipe fitting is a pipe used to recover fluid from multiple pipes in the digital information;

[0012] The fluid direction determination module is used to perform traversal calculation on the fluid direction in the fluid pipeline according to the target digital information, and determine the target fluid direction of the target digital information under the influence of the component equipment.

[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to at least one processor; wherein,

[0016] The memory stores a computer program executable by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute a method for calculating a fluid direction according to any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to implement a method for calculating a fluid direction according to any embodiment of the present invention when executed by a processor.

[0018] The technical solution of the embodiment of the present invention obtains the digital information of the pipe network system in the target area, determines the supply multi-port pipe fittings and the regression multi-port pipe fittings in the digital information, obtains the target digital information, and traverses and calculates the fluid direction in the fluid pipeline according to the target digital information to determine the target digital target fluid direction under the influence of the component equipment. After the digital information of the pipe network model is obtained, the fluid direction can be automatically calculated, which is convenient for scenario requirements such as preventive maintenance, problem troubleshooting, and system diagram drawing, thereby lowering the digital threshold and improving processing efficiency.

[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 is a flow chart of a method for calculating a fluid direction provided according to Embodiment 1 of the present invention;

[0022] Figure 2 is a flow chart of another method for calculating the direction of a fluid provided according to the second embodiment of the present invention;

[0023] Figure 3 is a schematic diagram of the structure of a fluid direction calculation device provided in accordance with Embodiment 3 of the present invention;

[0024] Figure 4 It is a structural schematic diagram of an electronic device for implementing a method for calculating a fluid direction according to an embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] Embodiment 1

[0028] Figure 1A flow chart of a method for calculating the direction of a fluid is provided for the first embodiment of the present invention. This embodiment is applicable to the case where the flow direction of a fluid in a pipe network system is automatically calculated based on the construction of digital information of the pipe network system. The method can be executed by a fluid direction calculation device, which can be implemented in the form of hardware and / or software, and can be configured in an electronic device with data processing capabilities. Figure 1 As shown, the method includes:

[0029] S110, obtaining digital information of the pipe network system in the target area.

[0030] The digital information is determined at least by the topological structure of the pipe network system and the components of the pipe network system.

[0031] The target area may be an area where the pipe network system is installed. The pipe network system may be a facility that completes the distribution of cold and heat energy or fluid resources in the target area. The digital information may be the topological structure and component equipment information of the pipe network system that retains the entity, generated by digitally constructing the pipe network system. The component equipment may be equipment installed in the pipe network system.

[0032] The digitization of fluid pipelines in the target industry often focuses on establishing digital information of the pipeline system. Therefore, this application does not limit the method of obtaining digital information.

[0033] S120, determining the supply multi-port pipe fittings and the return multi-port pipe fittings in the digital information to obtain target digital information.

[0034] Among them, the supply multi-port pipe fitting is a pipe used to realize fluid supply to multiple pipes in the digital information; the return multi-port pipe fitting is a pipe used to realize fluid recovery from multiple pipes in the digital information.

[0035] In traditional pipeline networks, the flow of fluids often starts from the source and is then distributed to users. After use, the fluids are recycled. Therefore, for the flow process of the fluid, it is necessary to determine the supply multi-port pipe fittings and return multi-port pipe fittings in the digital information to determine whether the fluid is in the supply process or the recycling process in the pipeline network. Therefore, it is necessary to determine the supply multi-port pipe fittings and return multi-port pipe fittings in the digital information, and after determination, calibrate the supply multi-port pipe fittings and return multi-port pipe fittings in the digital information to obtain the target digital information.

[0036] S130. According to the target digital information, the fluid direction in the fluid pipeline is traversed and calculated to determine the target digital fluid direction under the influence of the component equipment.

[0037] After obtaining the target digital information, the fluid direction of the fluid in the fluid pipeline can be traversed and calculated according to the function of the component equipment to determine the direction of movement of the fluid in each section of the pipeline, thereby determining the target digital target fluid direction under the influence of the component equipment.

[0038] According to the technical solution of the embodiment of the present invention, by acquiring the digital information of the pipe network system in the target area, the supply multi-port pipe fittings and the regression multi-port pipe fittings in the digital information are determined to obtain the target digital information. According to the target digital information, the fluid direction in the fluid pipeline is traversed and calculated to determine the target digital target fluid direction under the influence of the component equipment. After the digital information of the pipe network model is obtained, the fluid direction can be automatically calculated, which is convenient for scene requirements such as preventive maintenance, problem troubleshooting and system diagram drawing, reduces the digital threshold and improves processing efficiency.

[0039] Embodiment 2

[0040] Figure 2 The present invention provides a flowchart of another method for calculating the direction of a fluid. Based on the above embodiment, this embodiment further optimizes the process of traversing and calculating the direction of the fluid in the fluid pipeline according to the target digital information and determining the target digital direction of the target fluid under the influence of the component equipment. This embodiment can be combined with various optional solutions in one or more of the above embodiments. Figure 2 As shown, the method for calculating the fluid direction of this embodiment may include the following steps:

[0041] S210, obtaining digital information of the pipe network system in the target area.

[0042] S220, determining the supply multi-port pipe fittings and the return multi-port pipe fittings in the digital information to obtain target digital information.

[0043] S230. Generate a target digital model corresponding to the pipe network system according to the target digital information.

[0044] S240. Divide the target digital information according to the distribution of at least one power device, and determine a fluid supply model and a fluid convergence model.

[0045] Among them, the component equipment of the pipeline network system includes at least at least one power equipment and at least one auxiliary equipment; wherein the power equipment is a device for driving the flow of fluid; and the auxiliary equipment is a device for assisting the flow of fluid.

[0046] The fluid supply model may be a model part used in the target digital information to supply fluid to a plurality of pipelines. The fluid convergence model may be a model part used in the target digital information to realize fluid recovery from a plurality of pipelines.

[0047] After determining the target digital information, it is necessary to determine the portion of the target digital information used for fluid supply and the portion of the fluid convergence. To this end, the direction in which the power equipment will drive the fluid flow can be determined based on the distribution of the power equipment in the pipeline system, thereby dividing the target digital information and determining the fluid supply model and the fluid convergence model.

[0048] S250. Divide the fluid supply model according to the distribution of at least one auxiliary device to obtain a main network fluid supply model and an auxiliary network fluid supply model.

[0049] For the pipe network system, in addition to building a main network from the source device to the terminal device, it often includes auxiliary pipe networks in which auxiliary devices are connected in series or in parallel to the main network to help the main network clean and stabilize the pressure. Among them, the source device can be a device that produces fluid. The terminal device can be a device that finally recovers the fluid in the pipe network system. The auxiliary device can be a device that assists the flow of fluid.

[0050] According to the distribution of auxiliary equipment, the part of the fluid supply model belonging to the auxiliary pipe network and the part belonging to the main pipe network can be determined, so as to divide the fluid supply model into the main pipe network fluid supply model and the auxiliary pipe network fluid supply model.

[0051] S260. Divide the fluid convergence model according to the distribution of at least one auxiliary device to obtain a main pipe network fluid convergence model and an auxiliary pipe network fluid convergence model.

[0052] Similar to S250, the fluid convergence model can also be divided to obtain the main network fluid convergence model and the auxiliary network fluid convergence model.

[0053] S270, based on the main network fluid supply model, the auxiliary network fluid supply model, the main network fluid convergence model and the auxiliary network fluid convergence model, perform traversal calculation on the fluid direction in the fluid pipeline to determine the target fluid direction under the influence of the component equipment.

[0054] After respectively obtaining the main network fluid supply model, the auxiliary network fluid supply model, the main network fluid convergence model and the auxiliary network fluid convergence model, each model can be traversed one by one with the original equipment as the starting point to determine the fluid direction in each model, and based on the fluid direction in each model, determine the target fluid direction in the target digital information.

[0055] In an optional solution, according to the main network fluid supply model, the auxiliary network fluid supply model, the main network fluid convergence model and the auxiliary network fluid convergence model, the fluid direction in the fluid pipeline is traversed and calculated to determine the target fluid direction under the influence of the component equipment, which may include steps A1-A5:

[0056] Step A1: According to the main network fluid supply model, the fluid direction of the fluid pipeline in the main network fluid supply model is traversed and calculated to determine the main network fluid supply direction.

[0057] Step A2: According to the main network fluid convergence model, the fluid direction of the fluid pipeline in the main network fluid convergence model is traversed and calculated to determine the main network fluid convergence direction.

[0058] Step A3: According to the auxiliary pipe network fluid supply model, the fluid direction of the fluid pipeline in the auxiliary pipe network fluid supply model is traversed and calculated to determine the auxiliary pipe network fluid supply direction.

[0059] Step A4: According to the auxiliary pipe network fluid convergence model, the fluid direction of the fluid pipeline in the auxiliary pipe network fluid convergence model is traversed and calculated to determine the auxiliary pipe network convergence fluid direction.

[0060] Step A5: Determine the target fluid direction according to the fluid supply direction of the main pipe network, the fluid convergence direction of the main pipe network, the fluid supply direction of the auxiliary pipe network, and the fluid convergence direction of the auxiliary pipe network.

[0061] After obtaining the main network fluid supply model, the auxiliary network fluid supply model, the main network fluid convergence model and the auxiliary network fluid convergence model, each model is traversed separately to determine the fluid direction of the fluid pipeline in each model, and the main network fluid supply direction, the main network convergence fluid direction, the auxiliary network fluid supply direction and the auxiliary network convergence fluid direction are obtained respectively, and the main network fluid supply direction, the main network convergence fluid direction, the auxiliary network fluid supply direction and the auxiliary network convergence fluid direction are integrated to obtain the target fluid direction of the target digital information.

[0062] In an optional solution, according to the main network fluid supply model, the fluid direction of the fluid pipeline in the main network fluid supply model is traversed and calculated to determine the main network fluid supply direction, which may include steps B1-B5:

[0063] Step B1, taking at least one power device closest to at least one source device as the starting point, traverse according to the main network fluid supply model and the fluid driving direction of at least one power device as the initial traversal direction, and when encountering a multi-port supply pipe fitting during the traversal process, assign a direction to the path pipe passed through, and continue traversing according to any direction of the multi-port supply pipe fitting encountered, until the main network fluid supply model is fully traversed, and the first traversal result is obtained.

[0064] Step B2: if the first stop condition is met, stop traversing the pipeline path, assign a direction to the passed pipeline, and return to the previous supply multi-port pipe fitting for re-traversal; wherein the first stop condition is encountering a return multi-port pipe fitting or encountering a power device that is not the starting point.

[0065] Step B3: If the first stop condition is still not met after the pipeline path traversal is completed, the traversal of the pipeline path is stopped, the pipeline path is given a direction, and the pipeline path is returned to the previous multi-port pipe fitting for re-traversal.

[0066] Step B4: If the first discarding condition is met, the pipeline path is discarded and the previous multi-port pipe fitting is returned to for re-traversal; wherein the first discarding condition is opposite to the fluid driving direction of other power equipment, passing through two source devices in succession, encountering auxiliary equipment, or encountering a pipeline path traversed during this traversal.

[0067] Step B5: Determine the direction in which the fluid is supplied by the main network according to the first traversal result.

[0068] The component device further comprises at least one source device; wherein the at least one source device represents a device that generates fluid. The fluid supply direction of the main network may be the flow direction of the fluid under the influence of the component device in the main network fluid supply model.

[0069] For the traversal process of the fluid direction in the main network fluid supply model, the traversal will be performed starting from at least one power device closest to at least one source device, so as to ensure that there is no lack of pipelines required for traversal during the traversal process. The traversal is performed according to the fluid driving direction of at least one power device as the initial traversal direction. The traversal method can adopt a depth-first search method. When encountering a multi-port supply pipe fitting, the pipeline passed by the traversal process will be assigned according to the traversal direction of the traversal process, and a direction will be randomly selected from the multi-port supply pipe fittings to continue the traversal.

[0070] During the traversal process, if the first stop condition is met, the traversed pipeline is given a direction, and the previous supply multi-port pipe is returned to change other directions to continue traversal. The first stop condition may be encountering a return multi-port pipe or encountering a non-starting power device.

[0071] When traversing a pipeline, if the first discard condition is encountered, the traversal result of this time is discarded, and the previous multi-port pipe fitting is returned to, the traversal direction is changed, and the traversal is repeated. The first discard condition is that the fluid driving direction is opposite to that of other power equipment, two source equipments are passed continuously, auxiliary equipment is encountered, or the pipeline path traversed during this traversal is encountered.

[0072] After the main network fluid supply model is traversed, a first traversal result is obtained, thereby generating and determining the main network fluid supply direction.

[0073] In an optional solution, according to the main network fluid convergence model, the fluid direction of the fluid pipeline in the main network fluid convergence model is traversed and calculated to determine the main network fluid convergence direction, which may include steps C1-C5:

[0074] Step C1, taking at least one power device shown that is closest to at least one terminal device as the starting point, traverse according to the main network fluid convergence model and the opposite direction of the fluid driving direction of at least one power device as the initial traversal direction, and when encountering a regressive multi-port pipe fitting during the traversal process, assign a direction to the path pipe passed through, and return to the previous regressive multi-port pipe fitting for re-traversal until the main network fluid convergence model is fully traversed to obtain a second traversal result.

[0075] Step C2: if the second stop condition is met, stop traversing the pipeline path, assign a direction to the passed path pipeline, and return to the previous multi-port pipe fitting for re-traversal; wherein the second stop condition is encountering a multi-port pipe fitting or a power device that is not the starting point.

[0076] Step C3: If the pipeline path traversal is completed and the first stop condition is not met, the pipeline path traversal is stopped, the passed path pipeline is given a direction, and the previous regressive multi-port pipe fitting is returned to for re-traversal.

[0077] Step C4: If the second discarding condition is met, the pipeline path is discarded and the previous regressive multi-port pipe fitting is returned to for re-traversal; wherein the second discarding condition is opposite to the fluid driving direction of other power equipment, passing through two source devices in succession, encountering auxiliary equipment, or encountering a pipeline path traversed during this traversal.

[0078] Step C5: mirror the second traversal result to obtain the direction of fluid convergence in the main network.

[0079] Among them, the constituent devices of the pipe network system also include at least one terminal device; wherein, at least one terminal device is a device for a user to consume resources generated by at least one source device.

[0080] When traversing the main network fluid convergence model, due to the characteristics of the pipe network system, the convergence process and the dispersion process can be traversed as mirror images. Therefore, for the traversal process of the fluid direction in the main network fluid convergence model, the traversal is performed starting from at least one power device shown that is closest to at least one terminal device, so as to ensure that there is no lack of required traversed pipes during the traversal process, and the traversal is performed according to the reverse direction of the fluid driving direction of at least one power device as the initial traversal direction. The traversal method can adopt a depth-first search method. When encountering a regressive multi-port pipe fitting, the pipe passed by the traversal process will be assigned the reverse direction of the traversal direction of the traversal process, and a direction will be randomly selected in the regressive multi-port pipe fitting to continue the traversal.

[0081] During the traversal process, if the second stop condition is met, the traversed pipeline is given a direction, and the previous recursive multi-port pipe is returned to change other directions to continue traversal. The second stop condition may be encountering a recursive multi-port pipe or encountering a power device that is not the starting point.

[0082] When traversing a certain pipeline, if the second discard condition is encountered, the traversal result of this time is discarded, and the previous regression multi-port pipe fitting is returned to change the traversal direction and traverse again. The second discard condition is that the fluid driving direction is opposite to that of other power equipment, passes through two source equipments continuously, encounters auxiliary equipment, or encounters the pipeline path traversed during this traversal process.

[0083] After the main network fluid convergence model is traversed, a second traversal result is obtained, thereby determining the main network fluid convergence direction.

[0084] In an optional solution, according to the auxiliary pipe network fluid supply model, the fluid direction of the fluid pipeline in the auxiliary pipe network fluid supply model is traversed and calculated to determine the auxiliary pipe network fluid supply direction, which may include steps D1-D5:

[0085] Step D1, taking the auxiliary equipment closest to the fluid inflow point in the auxiliary pipe network fluid supply model as the starting point, traverse according to the auxiliary pipe network fluid supply model and the fluid inflow direction of the auxiliary pipe network fluid supply model, when encountering a supply multi-port pipe fitting or a return multi-port pipe fitting during the traversal, assign a direction to the path pipe passed through, and continue traversing in any direction of the supply multi-port pipe fitting or the return multi-port pipe fitting until the auxiliary pipe network fluid supply model is completely traversed to obtain the third traversal result.

[0086] Step D2: If the third stop condition is met, stop traversing the pipeline path, assign a direction to the passed path pipeline, and return to the previous supply multi-port pipe fitting or return multi-port pipe fitting for re-traversal; wherein the third stop condition is encountering a fluid inflow point in the auxiliary pipe network fluid supply model, encountering a supply multi-port pipe fitting or return multi-port pipe fitting in the auxiliary pipe network fluid convergence model, or encountering a supply multi-port pipe fitting or return multi-port pipe fitting in the auxiliary pipe network fluid supply model.

[0087] Step D3: If the pipeline path traversal is completed and meets the third stop condition, the pipeline path traversal is stopped, the passed path pipeline is given a direction, and the previous supply multi-port pipe fitting or return multi-port pipe fitting is returned to be traversed again.

[0088] Step D4: if the third discarding condition is met, the pipeline path is discarded and the pipeline is returned to the previous supply multi-port pipe fitting or return multi-port pipe fitting for re-traversal; wherein the third discarding condition is encountering another auxiliary device, encountering a pipeline traversed during the traversal process, or encountering a non-auxiliary device.

[0089] Step D5: Determine the direction of fluid supply through the auxiliary pipe network according to the third traversal result.

[0090] Similar to the traversal method of the main network fluid supply model, for the traversal process of the fluid direction in the auxiliary network fluid supply model, the traversal is performed starting from the auxiliary equipment closest to the fluid inflow point in the auxiliary network fluid supply model, so as to ensure that the required traversed pipes are not lacking in the traversal process, and the traversal is performed according to the fluid inflow direction of the auxiliary network fluid supply model. The traversal method can adopt the depth-first search method. When encountering a supply multi-port pipe fitting or a return multi-port pipe fitting, the pipe passed by the traversal process will be assigned according to the traversal direction of the traversal process, and the traversal will continue in any direction of the supply multi-port pipe fitting or the return multi-port pipe fitting.

[0091] During the traversal process, if the third stop condition is met, the traversed pipe is given a direction, and the previous supply multi-port pipe fitting or return multi-port pipe fitting is returned to change other directions to continue traversing. Among them, the third stop condition is encountering the fluid inflow point in the auxiliary pipe network fluid supply model, encountering the supply multi-port pipe fitting or return multi-port pipe fitting in the auxiliary pipe network fluid convergence model, or encountering the supply multi-port pipe fitting or return multi-port pipe fitting in the auxiliary pipe network fluid supply model.

[0092] When traversing a certain pipeline, if the third discard condition is encountered, the traversal result of this time is discarded, and the previous supply multi-port pipe fitting or return multi-port pipe fitting is returned, the traversal direction is changed, and the traversal is re-traversed. Among them, the third discard condition is encountering another auxiliary device, encountering a pipeline traversed during the traversal process, or encountering a non-auxiliary device.

[0093] After the auxiliary pipe network fluid supply model is traversed, a third traversal result is obtained, thereby determining the auxiliary pipe network fluid supply direction.

[0094] In an optional solution, according to the auxiliary pipe network fluid convergence model, the fluid direction of the fluid pipeline in the auxiliary pipe network fluid convergence model is traversed and calculated to determine the auxiliary pipe network convergence fluid direction, which may include steps E1-E5:

[0095] Step E1, taking the auxiliary equipment closest to the fluid outflow point in the auxiliary pipe network fluid convergence model as the starting point, traverse according to the auxiliary pipe network fluid convergence model and the direction opposite to the fluid outflow direction of the auxiliary pipe network fluid convergence model, when encountering a multi-port convergence pipe or a return multi-port pipe fitting during the traversal process, assign a direction to the path pipe passed through, and continue to traverse in any direction of the multi-port convergence pipe or the return multi-port pipe fitting until the auxiliary pipe network fluid convergence model is completely traversed to obtain the fourth traversal result.

[0096] Step E2: If the fourth stop condition is met, stop traversing the pipeline path, assign a direction to the passed path pipeline, and return to the previous multi-port converging pipe or regression multi-port pipe fitting for re-traversal; wherein the fourth stop condition is encountering a fluid inflow point in the auxiliary pipe network fluid convergence model, encountering a multi-port converging pipe or regression multi-port pipe fitting in the auxiliary pipe network fluid convergence model, or encountering a multi-port converging pipe or regression multi-port pipe fitting in the auxiliary pipe network fluid convergence model.

[0097] Step E3: If the pipeline path traversal is completed and meets the fourth stop condition, the pipeline path traversal is stopped, the passed path pipeline is given a direction, and the previous multi-port converging pipe or the return multi-port pipe fitting is returned to be traversed again.

[0098] Step E4: if the fourth discarding condition is met, the pipeline path is discarded and the pipeline is returned to the previous multi-port converging pipe or the regressive multi-port pipe fitting for re-traversal; wherein the fourth discarding condition is encountering another auxiliary device, encountering a pipeline traversed during the traversal process, or encountering a non-auxiliary device.

[0099] Step E5: Determine the direction of the auxiliary pipe network converging fluid according to the fourth traversal result.

[0100] When traversing the auxiliary pipe network fluid convergence model, due to the characteristics of the pipe network system, the convergence process and the dispersion process can be traversed as mirror images. Therefore, for the traversal process of the fluid direction in the auxiliary pipe network fluid convergence model, the auxiliary equipment closest to the fluid outflow point in the auxiliary pipe network fluid convergence model is taken as the starting point, so as to ensure that there is no lack of required traversed pipes during the traversal process. The traversal is performed according to the auxiliary pipe network fluid convergence model and the reverse direction of the fluid outflow direction of the auxiliary pipe network fluid convergence model. The traversal method can adopt a depth-first search method. When encountering a multi-port convergence pipe or a regressive multi-port pipe fitting, the pipe passed by the traversal process will be assigned the reverse direction of the traversal direction of the traversal process, and a direction is randomly selected in the multi-port convergence pipe or the regressive multi-port pipe fitting to continue the traversal.

[0101] During the traversal process, if the fourth stop condition is met, the traversed pipe is given a direction, and the previous multi-port converging pipe or return multi-port pipe fitting is returned to change other directions to continue traversing. Among them, the fourth stop condition is encountering a fluid inflow point in the auxiliary pipe network fluid convergence model, encountering a multi-port converging pipe or return multi-port pipe fitting in the auxiliary pipe network fluid convergence model, or encountering a multi-port converging pipe or return multi-port pipe fitting in the auxiliary pipe network fluid convergence model.

[0102] When traversing a certain pipeline, if the fourth discard condition is encountered, the traversal result of this time is discarded, and the previous multi-port converging pipe or multi-port regressing pipe is returned to, the traversal direction is changed, and the traversal is re-traversed. The fourth discard condition is encountering another auxiliary device, encountering a pipeline traversed during the traversal process, or encountering a non-auxiliary device.

[0103] After the auxiliary pipe network fluid convergence model is traversed, a fourth traversal result is obtained, thereby determining the direction in which the auxiliary pipe network converges the fluid.

[0104] According to the technical solution of the embodiment of the present invention, the target digital information is divided according to the distribution of at least one power equipment to determine the fluid supply model and the fluid convergence model. The fluid supply model is divided according to the distribution of at least one auxiliary equipment to obtain the main network fluid supply model and the auxiliary network fluid supply model. The fluid convergence model is divided according to the distribution of at least one auxiliary equipment to obtain the main network fluid convergence model and the auxiliary network fluid convergence model. According to the main network fluid supply model, the auxiliary network fluid supply model, the main network fluid convergence model and the auxiliary network fluid convergence model, the fluid direction in the fluid pipeline is traversed and calculated to determine the target fluid direction under the influence of the component equipment, so that when the target fluid direction under the influence of the component equipment is determined by traversal, the fluid direction in the target digital information can be quickly traversed, thereby improving the determination efficiency and reducing the determination difficulty.

[0105] Embodiment 3

[0106] Figure 3 The present invention provides a structural block diagram of a fluid direction calculation device. This embodiment can be applied to the situation where the flow direction of the fluid in the pipe network system is automatically calculated based on the digital information of the pipe network system. The fluid direction calculation device can be implemented in the form of hardware and / or software, and the fluid direction calculation device can be configured in an electronic device with data processing capabilities. Figure 3 As shown, the fluid direction calculation device of this embodiment may include: a digital information acquisition module 310 , a target model acquisition module 320 and a fluid direction determination module 330 .

[0107] in:

[0108] The digital information acquisition module 310 is used to acquire the digital information of the pipe network system in the target area; wherein the digital information is determined at least by the topological structure of the pipe network system and the components of the pipe network system;

[0109] The target model acquisition module 320 is used to determine the supply multi-port pipe fitting and the return multi-port pipe fitting in the digital information to obtain the target digital information; wherein the supply multi-port pipe fitting is a pipe used to supply fluid to multiple pipes in the digital information; and the return multi-port pipe fitting is a pipe used to recover fluid from multiple pipes in the digital information;

[0110] The fluid direction determination module 330 is used to perform traversal calculations on the fluid direction in the fluid pipeline according to the target digital information, and determine the target digital target fluid direction under the influence of the component equipment.

[0111] Optionally, the components of the pipe network system include at least one power device and at least one auxiliary device; wherein the power device is a device that drives the flow of fluid; and the auxiliary device is a device that assists the flow of fluid;

[0112] Accordingly, based on the above embodiment, optionally, the fluid direction determination module 330 includes:

[0113] A target model division unit, used to divide the target digital information according to the distribution of at least one power device, and determine the fluid supply model and the fluid convergence model;

[0114] A fluid supply model division unit, used to divide the fluid supply model according to the distribution of at least one auxiliary device to obtain a main network fluid supply model and an auxiliary network fluid supply model;

[0115] A fluid convergence model division unit, used to divide the fluid convergence model according to the distribution of at least one auxiliary device, to obtain a main pipe network fluid convergence model and an auxiliary pipe network fluid convergence model;

[0116] The fluid direction determination unit is used to traverse and calculate the fluid direction in the fluid pipeline according to the main network fluid supply model, the auxiliary network fluid supply model, the main network fluid convergence model and the auxiliary network fluid convergence model, and determine the target fluid direction under the influence of the component equipment.

[0117] Based on the above embodiment, optionally, the fluid direction determining unit includes:

[0118] The main network supply direction determination subunit is used to perform traversal calculation on the fluid direction of the fluid pipeline in the main network fluid supply model according to the main network fluid supply model, and determine the main network fluid supply direction;

[0119] The main network convergence direction determination subunit is used to perform traversal calculation on the fluid direction of the fluid pipeline in the main network fluid convergence model according to the main network fluid convergence model, and determine the main network convergence fluid direction;

[0120] The auxiliary pipe network supply direction determination subunit is used to perform traversal calculation on the fluid direction of the fluid pipeline in the auxiliary pipe network fluid supply model according to the auxiliary pipe network fluid supply model, and determine the auxiliary pipe network fluid supply direction;

[0121] The auxiliary pipe network convergence direction determination subunit is used to perform traversal calculation on the fluid direction of the fluid pipeline in the auxiliary pipe network fluid convergence model according to the auxiliary pipe network fluid convergence model, and determine the auxiliary pipe network convergence fluid direction;

[0122] The fluid direction acquisition subunit is used to determine the target fluid direction according to the fluid supply direction of the main network, the fluid convergence direction of the main network, the fluid supply direction of the auxiliary network and the fluid convergence direction of the auxiliary network.

[0123] Optionally, the component device further comprises at least one source device; wherein the at least one source device represents a device for generating a fluid;

[0124] Accordingly, based on the above embodiment, optionally, the main network supply direction determination subunit includes:

[0125] The first result acquisition sub-sub-unit is used to take at least one power device closest to at least one source device as a starting point, perform traversal according to the main network fluid supply model and the fluid driving direction of at least one power device as an initial traversal direction, and when a supply multi-port pipe fitting is encountered during the traversal process, assign a direction to the passed path pipe, and continue traversing according to any direction of the supply multi-port pipe fitting encountered, until the main network fluid supply model is completely traversed, and a first traversal result is obtained;

[0126] The first stop judgment sub-subunit is used to stop the traversal of the pipeline path if the first stop condition is met, assign a direction to the passed pipeline, and return to the previous supply multi-port pipe fitting for re-traversal; wherein the first stop condition is encountering a return multi-port pipe fitting or encountering a power device that is not the starting point;

[0127] The first traversal return sub-sub-unit is used to stop the traversal of the pipeline path if the pipeline path traversal is completed and the first stop condition is not met, and to assign a direction to the pipeline path and return to the previous supply multi-port pipe fitting for re-traversal;

[0128] A first discarding sub-subunit is used to discard the pipeline path if a first discarding condition is met, and return to the previous supply multi-port pipe fitting for re-traversal; wherein the first discarding condition is opposite to the fluid driving direction of other power equipment, continuously passing through two source equipment, encountering auxiliary equipment or encountering a pipeline path traversed during this traversal process;

[0129] The main network fluid supply direction determination sub-subunit is used to determine the main network fluid supply direction according to the first traversal result.

[0130] Optionally, the component devices further include at least one terminal device; wherein the at least one terminal device is a device for a user to consume resources generated by at least one source device;

[0131] Based on the above embodiment, optionally, the main network convergence direction determination subunit includes:

[0132] The second traversal result determination sub-sub-unit is used to take the at least one power device closest to the at least one terminal device as the starting point, and perform traversal according to the main network fluid convergence model and the opposite direction of the fluid driving direction of the at least one power device as the initial traversal direction. When a regressive multi-port pipe fitting is encountered during the traversal, the passed path pipe is given a direction, and the previous regressive multi-port pipe fitting is returned to re-traverse until the main network fluid convergence model is completely traversed to obtain the second traversal result;

[0133] The second stop judgment sub-subunit is used to stop the traversal of the pipeline path if the second stop condition is met, assign a direction to the pipeline along the path, and return to the last multi-port supply pipe fitting for re-traversal; wherein the second stop condition is encountering a multi-port supply pipe fitting or encountering a power device that is not the starting point;

[0134] The second re-traversal sub-sub-unit is used to stop the traversal of the pipeline path if the pipeline path traversal is completed and the second stop condition is not met, give directions to the passed path pipeline, and return to the previous regressive multi-port pipe fitting for re-traversal;

[0135] The second discard judgment sub-subunit is used to discard the pipeline path if the second discard condition is met, and return to the previous regressive multi-port pipe fitting for re-traversal; wherein the second discard condition is opposite to the fluid driving direction of other power equipment, continuously passing through two source equipment, encountering auxiliary equipment or encountering the pipeline path traversed during this traversal process;

[0136] The main network converged fluid direction determination sub-subunit is used to perform mirror processing on the second traversal result to obtain the main network converged fluid direction.

[0137] Based on the above embodiment, optionally, the auxiliary pipe network supply direction determination subunit includes:

[0138] The third traversal result determination sub-sub-unit is used to take the auxiliary equipment closest to the fluid inflow point in the auxiliary pipe network fluid supply model as the starting point, traverse according to the auxiliary pipe network fluid supply model and the fluid inflow direction of the auxiliary pipe network fluid supply model, and when encountering a supply multi-port pipe fitting or a return multi-port pipe fitting during the traversal process, assign a direction to the path pipe passed through, and continue to traverse in any direction of the supply multi-port pipe fitting or the return multi-port pipe fitting until the auxiliary pipe network fluid supply model is fully traversed to obtain the third traversal result;

[0139] The third stop judgment sub-subunit is used to stop the traversal of the pipeline path if the third stop condition is met, and give the passed path pipeline a direction, and return to the previous supply multi-port pipe fitting or return multi-port pipe fitting for re-traversal; wherein the third stop condition is encountering a fluid inflow point in the auxiliary pipe network fluid supply model, encountering a supply multi-port pipe fitting or return multi-port pipe fitting in the auxiliary pipe network fluid convergence model, or encountering a supply multi-port pipe fitting or return multi-port pipe fitting in the auxiliary pipe network fluid supply model;

[0140] The third re-traversal sub-sub-unit is used to stop the traversal of the pipeline path if the pipeline path traversal is completed and meets the third stop condition, and to assign directions to the passed path pipelines, and to return to the last supply multi-port pipe fitting or return multi-port pipe fitting for re-traversal;

[0141] The third discard judgment sub-subunit is used to discard the pipeline path if the third discard condition is met, and return to the previous supply multi-port pipe fitting or return multi-port pipe fitting for re-traversal; wherein the third discard condition is encountering another auxiliary device, encountering a pipeline traversed during the traversal process, or encountering a non-auxiliary device;

[0142] The auxiliary pipe network fluid supply direction determination sub-subunit is used to determine the auxiliary pipe network fluid supply direction according to the third traversal result.

[0143] Based on the above embodiment, optionally, the auxiliary pipe network convergence direction determination subunit includes:

[0144] The third traversal result determination sub-sub-unit is used to take the auxiliary equipment closest to the fluid outflow point in the auxiliary pipe network fluid convergence model as the starting point, traverse according to the auxiliary pipe network fluid convergence model and the reverse direction of the fluid outflow direction of the auxiliary pipe network fluid convergence model, and when encountering a multi-port convergence pipe or a return multi-port pipe fitting during the traversal process, the passed path pipe is given a direction, and the traversal is continued in any direction of the multi-port convergence pipe or the return multi-port pipe fitting until the auxiliary pipe network fluid convergence model is completely traversed to obtain a fourth traversal result;

[0145] The third stop judgment sub-subunit is used to stop the traversal of the pipeline path if the fourth stop condition is met, and give the passed path pipeline a direction, and return to the previous multi-port converging pipe or regressive multi-port pipe fitting for re-traversal; wherein the fourth stop condition is encountering a fluid inflow point in the auxiliary pipe network fluid convergence model, encountering a multi-port converging pipe or regressive multi-port pipe fitting in the auxiliary pipe network fluid convergence model, or encountering a multi-port converging pipe or regressive multi-port pipe fitting in the auxiliary pipe network fluid convergence model;

[0146] The third re-traversal sub-sub-unit is used to stop the traversal of the pipeline path if the pipeline path traversal is completed and the fourth stop condition is met, and to assign directions to the passed path pipelines, and to return to the previous multi-port converging pipe or the regressive multi-port pipe fitting for re-traversal;

[0147] The third discard judgment sub-subunit is used to discard the pipeline path if the fourth discard condition is met, and return to the previous multi-port converging pipe or the return multi-port pipe fitting for re-traversal; wherein the fourth discard condition is encountering another auxiliary device, encountering a pipeline traversed during the traversal process, or encountering a non-auxiliary device;

[0148] The auxiliary pipe network convergence fluid direction determination sub-subunit is used to determine the auxiliary pipe network convergence fluid direction according to the fourth traversal result.

[0149] The fluid direction calculation device provided in the embodiment of the present invention can execute the fluid direction calculation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0150] Embodiment 4

[0151] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment 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 processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0152] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

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

[0154] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for calculating the direction of the fluid.

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

[0156] 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 chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0157] Computer programs for implementing 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, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0158] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0159] To provide interaction with a user, the systems and techniques described herein may 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 a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0160] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0161] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0162] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0163] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for calculating the direction of a fluid, characterized in that: include: Acquire digital information of the pipe network system in the target area; wherein the digital information is determined at least by the topological structure of the pipe network system and the components of the pipe network system; Determine the supply multi-port pipe fitting and the return multi-port pipe fitting in the digital information to obtain target digital information; wherein the supply multi-port pipe fitting is a pipe in the digital information used to supply fluid to multiple pipes; and the return multi-port pipe fitting is a pipe in the digital information used to recover fluid from multiple pipes; According to the target digital information, a traversal calculation is performed on the fluid direction in the fluid pipeline to determine the target fluid direction of the target digital information under the influence of the component device; The components of the pipe network system include at least one power device and at least one auxiliary device; wherein the power device is a device for driving the flow of fluid; and the auxiliary device is a device for assisting the flow of fluid; Accordingly, according to the target digital information, the fluid direction in the fluid pipeline is traversed and calculated to determine the target fluid direction of the target digital information under the influence of the component device, including: Generating a target digital model corresponding to the pipe network system according to the target digital information; According to the distribution of the at least one power device, the target digital model is divided to determine a fluid supply model and a fluid convergence model; According to the distribution of the at least one auxiliary device, the fluid supply model is divided to obtain a main pipe network fluid supply model and an auxiliary pipe network fluid supply model; According to the distribution of the at least one auxiliary device, the fluid convergence model is divided to obtain a main pipe network fluid convergence model and an auxiliary pipe network fluid convergence model; According to the main network fluid supply model, the auxiliary network fluid supply model, the main network fluid convergence model and the auxiliary network fluid convergence model, the fluid direction in the fluid pipeline is traversed and calculated to determine the target fluid direction under the influence of the component equipment.

2. The method according to claim 1, characterized in that According to the main network fluid supply model, the auxiliary network fluid supply model, the main network fluid convergence model and the auxiliary network fluid convergence model, a traversal calculation is performed on the fluid direction in the fluid pipeline to determine the target fluid direction under the influence of the component equipment, including: According to the main network fluid supply model, traverse and calculate the fluid direction of the fluid pipeline in the main network fluid supply model to determine the main network fluid supply direction; According to the main network fluid convergence model, traverse and calculate the fluid direction of the fluid pipeline in the main network fluid convergence model to determine the main network fluid convergence direction; According to the auxiliary pipe network fluid supply model, a traversal calculation is performed on the fluid direction of the fluid pipeline in the auxiliary pipe network fluid supply model to determine the auxiliary pipe network fluid supply direction; According to the auxiliary pipe network fluid convergence model, traversing and calculating the fluid direction of the fluid pipeline in the auxiliary pipe network fluid convergence model to determine the auxiliary pipe network convergence fluid direction; The target fluid direction is determined according to the fluid supply direction of the main pipe network, the fluid convergence direction of the main pipe network, the fluid supply direction of the auxiliary pipe network, and the fluid convergence direction of the auxiliary pipe network.

3. The method according to claim 2, characterized in that The component device further comprises at least one source device; wherein the at least one source device represents a device for generating a fluid; Correspondingly, according to the main network fluid supply model, the fluid direction of the fluid pipeline in the main network fluid supply model is traversed and calculated to determine the main network fluid supply direction, including: Taking the at least one power device closest to the at least one source device as a starting point, traversing according to the main network fluid supply model and the fluid driving direction of the at least one power device as an initial traversal direction, when encountering the supply multi-port pipe fitting during the traversal process, assigning a direction to the passed pipeline path, and continuing to traverse according to any direction of the supply multi-port pipe fitting encountered, until the main network fluid supply model is completely traversed, and a first traversal result is obtained; If the first stop condition is met, the traversal of the pipeline path is stopped, the passed pipeline path is given a direction, and the previous supply multi-port pipe fitting is returned to for re-traversal; wherein the first stop condition is encountering the return multi-port pipe fitting or encountering the power equipment that is not the starting point; If the pipeline path traversal is completed and the first stop condition is not met, the traversal of the pipeline path is stopped, the pipeline path is given a direction, and the pipeline path is returned to the previous multi-port pipe fitting for re-traversal; If the first discarding condition is met, the pipeline path is discarded and the previous supply multi-port pipe is returned to be traversed again; wherein the first discarding condition is opposite to the fluid driving direction of other power devices, continuously passing through two source devices, encountering the auxiliary device or encountering the pipeline path traversed during this traversal process; The direction in which the main network supplies fluid is determined according to the first traversal result.

4. The method according to claim 3, characterized in that The component devices further include at least one terminal device; wherein the at least one terminal device is a device for a user to consume the resources generated by the at least one source device; According to the main network fluid convergence model, traversing and calculating the fluid direction of the fluid pipeline in the main network fluid convergence model to determine the main network fluid convergence direction, including: Taking the at least one power device closest to the at least one terminal device as the starting point, traversing according to the main network fluid convergence model and the reverse direction of the fluid driving direction of the at least one power device as the initial traversal direction, when encountering the regressive multi-port pipe fitting during the traversal process, assigning a direction to the passed pipeline path, and returning to the previous regressive multi-port pipe fitting for re-traversal until the main network fluid convergence model is fully traversed to obtain a second traversal result; If the second stop condition is met, the traversal of the pipeline path is stopped, the passed pipeline path is given a direction, and the previous return multi-port pipe fitting is returned to for re-traversal; wherein the second stop condition is encountering the return multi-port pipe fitting or encountering the power equipment that is not the starting point; If the pipeline path traversal is completed and the second stop condition is not met, the traversal of the pipeline path is stopped, the traversal of the pipeline path is given a direction, and the previous regressive multi-port pipe fitting is returned to for re-traversal; If the second discarding condition is met, the pipeline path is discarded and the previous regressive multi-port pipe is returned to for re-traversal; wherein the second discarding condition is opposite to the fluid driving direction of other power devices, continuously passing through two source devices, encountering the auxiliary device, or encountering the pipeline path traversed during this traversal process; The second traversal result is mirrored to obtain the direction in which the fluid converges in the main network.

5. The method according to claim 4, characterized in that According to the auxiliary pipe network fluid supply model, a traversal calculation is performed on the fluid direction of the fluid pipeline in the auxiliary pipe network fluid supply model to determine the auxiliary pipe network fluid supply direction, including: Taking the auxiliary equipment closest to the fluid inflow point in the auxiliary pipe network fluid supply model as the starting point, traversing is performed according to the auxiliary pipe network fluid supply model and the fluid inflow direction of the auxiliary pipe network fluid supply model. When the supply multi-port pipe fitting or the return multi-port pipe fitting is encountered during the traversal, the passed pipeline path is assigned a direction, and the traversal is continued along any direction of the supply multi-port pipe fitting or the return multi-port pipe fitting until the auxiliary pipe network fluid supply model is completely traversed, thereby obtaining a third traversal result; If the third stop condition is met, the traversal of the pipeline path is stopped, the traversal of the traversed pipeline path is assigned a direction, and the traversal is returned to the previous supply multi-port pipe fitting or the return multi-port pipe fitting for re-traversal; wherein the third stop condition is encountering the fluid inflow point in the auxiliary pipe network fluid supply model, encountering the supply multi-port pipe fitting or the return multi-port pipe fitting in the auxiliary pipe network fluid convergence model, or encountering the supply multi-port pipe fitting or the return multi-port pipe fitting in the auxiliary pipe network fluid supply model; If the pipeline path traversal is completed and meets the third stop condition, the pipeline path traversal is stopped, the passed pipeline path is given a direction, and the pipeline path is returned to the previous supply multi-port pipe fitting or the return multi-port pipe fitting for re-traversal; If the third discarding condition is met, the pipeline path is discarded, and the previous supply multi-port pipe fitting or the return multi-port pipe fitting is returned to be re-traversed; wherein the third discarding condition is encountering another auxiliary device, encountering a pipeline traversed during the traversal process, or encountering a non-auxiliary device; The direction in which the auxiliary pipe network supplies fluid is determined according to the third traversal result.

6. The method according to claim 5, characterized in that According to the auxiliary pipe network fluid convergence model, traversing and calculating the fluid direction of the fluid pipeline in the auxiliary pipe network fluid convergence model to determine the auxiliary pipe network convergence fluid direction, including: Taking the auxiliary equipment closest to the fluid outflow point in the auxiliary pipe network fluid convergence model as the starting point, traversing is performed according to the auxiliary pipe network fluid convergence model and in the opposite direction of the fluid outflow direction of the auxiliary pipe network fluid convergence model. When the supply multi-port pipe fitting or the return multi-port pipe fitting is encountered during the traversal process, the passed pipeline path is given a direction, and the traversal is continued in any direction of the supply multi-port pipe fitting or the return multi-port pipe fitting until the auxiliary pipe network fluid convergence model is completely traversed, thereby obtaining a fourth traversal result; If the fourth stop condition is met, the traversal of the pipeline path is stopped, the passed pipeline path is given a direction, and the previous supply multi-port pipe fitting or the return multi-port pipe fitting is returned to for re-traversal; wherein the fourth stop condition is encountering the fluid outflow point in the auxiliary pipe network fluid convergence model, encountering the supply multi-port pipe fitting or the return multi-port pipe fitting in the auxiliary pipe network fluid convergence model, or encountering the supply multi-port pipe fitting or the return multi-port pipe fitting in the auxiliary pipe network fluid supply model; If the pipeline path traversal is completed and meets the fourth stop condition, the traversal of the pipeline path is stopped, the passed pipeline path is given a direction, and the pipeline path is returned to the previous supply multi-port pipe fitting or the return multi-port pipe fitting for re-traversal; If the fourth discarding condition is met, the pipeline path is discarded, and the previous supply multi-port pipe fitting or the return multi-port pipe fitting is returned to be re-traversed; wherein the fourth discarding condition is encountering another auxiliary device, encountering a pipeline traversed during the traversal process, or encountering a non-auxiliary device; According to the fourth traversal result, the direction in which the auxiliary pipe network converges the fluid is determined.

7. A device for calculating the direction of a fluid, characterized in that: include: A digital information acquisition module, used to acquire digital information of the pipe network system in the target area; wherein the digital information is at least determined by the topological structure of the pipe network system and the components of the pipe network system; The target model acquisition module is used to determine the supply multi-port pipe fitting and the return multi-port pipe fitting in the digital information to obtain the target digital information; wherein the supply multi-port pipe fitting is a pipe used to supply fluid to multiple pipes in the digital information; and the return multi-port pipe fitting is a pipe used to recover fluid from multiple pipes in the digital information; A fluid direction determination module, used to perform traversal calculation on the fluid direction in the fluid pipeline according to the target digital information, and determine the target fluid direction of the target digital information under the influence of the component device; The components of the pipe network system include at least one power device and at least one auxiliary device; wherein the power device is a device that drives the flow of fluid; the auxiliary device is a device that assists the flow of fluid; Correspondingly, the fluid direction determination module includes: A target model division unit, used to divide the target digital information according to the distribution of at least one power device, and determine the fluid supply model and the fluid convergence model; A fluid supply model division unit, used to divide the fluid supply model according to the distribution of at least one auxiliary device to obtain a main network fluid supply model and an auxiliary network fluid supply model; A fluid convergence model division unit, used to divide the fluid convergence model according to the distribution of at least one auxiliary device, to obtain a main pipe network fluid convergence model and an auxiliary pipe network fluid convergence model; The fluid direction determination unit is used to traverse and calculate the fluid direction in the fluid pipeline according to the main network fluid supply model, the auxiliary network fluid supply model, the main network fluid convergence model and the auxiliary network fluid convergence model, and determine the target fluid direction under the influence of the component equipment.

8. An electronic device, characterized in that: The electronic device comprises: 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, and the computer program is executed by the at least one processor so that the at least one processor can execute a method for calculating a fluid direction according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a method for calculating a fluid direction according to any one of claims 1 to 6 when executed.

Citation Information

Patent Citations

  • Method, system and equipment for determining oil moving path in oil conveying pipe network and medium

    CN115964535A

  • Abnormal pressure gauge node determination method and device, electronic equipment and storage medium

    CN117114645A