Three-dimensional pipe network initial flow distribution method, system, storage medium and electronic equipment
By constructing a three-dimensional pipe network and performing intersection numbering, matrix construction and flow correction, the problem of initial flow distribution in the three-dimensional pipe network is solved, accurate automatic distribution of flow and flow conservation are achieved, and the inability to apply the two-dimensional method in the existing technology is solved. problem.
Patent Information
- Application Number
- CN202311722732.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-15
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2043-12-15
AI Technical Summary
Existing pipe network flow initialization methods are mainly limited to two dimensions and cannot effectively solve the initial flow distribution problem in three-dimensional pipe networks, which greatly increases the difficulty of flow initialization and cannot meet the technical needs of three-dimensional pipe network structures.
By constructing a three-dimensional pipe network, numbering intersections, constructing an intersection relationship matrix, performing flow predistribution and correction, establishing a pipe segment flow matrix and a direction matrix, determining the correction sequence of intersections to be corrected, and performing corrections according to the flow redistribution rules to ensure the accuracy of each intersection. The inflow flow is equal to the outflow flow.
It achieves accurate and automatic distribution of flow in the three-dimensional pipe network, satisfies the principle of flow conservation, solves the flow initialization problem in the optimization of the three-dimensional annular pipe network, and ensures the accuracy of flow distribution.
Smart Images

Figure CN117408007B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of hydraulic calculation of three-dimensional annular pipe networks, and in particular to a three-dimensional pipe network initial flow distribution method, system, storage medium and electronic equipment. Background Art
[0002] Hydraulic mathematical simulation and calculation for pipe networks is an important means of pipe network optimization. To calculate various fluid indicators (especially flow) in the pipe network, the initial flow in each pipe in the loop is corrected based on the principle of loop closure error to make the closure error equal to zero or converge within the specified allowable range. Therefore, determining the initial flow of each pipeline and ensuring that the sum of the flow at each node (that is, the sum of the flow at the inflow node and the outflow node) is equal to zero has become a prerequisite for conducting loop pipe network simulation calculations.
[0003] At present, there have been many mature studies on the initialization of two-dimensional pipe network flow, however, the research on the initial flow distribution of three-dimensional pipe network is still in the exploratory stage. The three-dimensional pipe network is more complex than the two-dimensional pipe network, and the pipe network loop forms are diverse and difficult to determine. There are not only plane loops, but also three-dimensional loops in three-dimensional space. Moreover, the direction of the flow is also difficult to determine, which greatly increases the difficulty of initializing the pipe network flow. The current pipe network flow initialization method is limited to two dimensions and cannot solve the technical problems in three dimensions. The present invention aims to provide a fast and effective method for solving the initial flow distribution problem in a three-dimensional pipe network structure. Summary of the invention
[0004] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a three-dimensional pipe network initial flow distribution method, aiming to solve the technical problem that the current pipe network flow initialization method in the prior art is limited to two dimensions and cannot solve the technical problems in three dimensions.
[0005] In order to achieve the above object, the present invention is implemented by the following technical solutions:
[0006] A three-dimensional pipe network initial flow distribution method comprises the following steps:
[0007] Construct a three-dimensional pipe network, find all intersections of the three-dimensional pipe network, and number each intersection of the three-dimensional pipe network according to the intersection numbering rule, where the smallest number is the flow input point and the largest number is the flow output point;
[0008] Constructing an intersection relationship matrix according to the connectivity between the intersections of the three-dimensional pipe network;
[0009] The intersection relationship matrix is used to pre-allocate the flow according to the order of the intersection numbers from small to large, so as to obtain the pipe section flow matrix and the pipe section flow direction matrix, and then establish a mathematical model;
[0010] Find all the intersection points to be corrected in the three-dimensional pipe network, and determine the correction order of the intersection points to be corrected according to the step size rule;
[0011] The pre-distributed flow is corrected according to the flow redistribution law to calculate the final initial flow of the pipe section.
[0012] Furthermore, the specific steps of using the intersection relationship matrix to pre-allocate flow according to the order of intersection numbers from small to large to obtain a pipe section flow matrix and a pipe section flow direction matrix, and then establishing a mathematical model include:
[0013] Enter the starting flow rate into the flow input point , and taking the flow input point as the starting intersection, obtaining the adjacent intersection s connected to the starting intersection pipeline according to the intersection relationship matrix, and taking it as the first adjacent intersection, wherein the intersection number of the first adjacent intersection is greater than the intersection number of the starting intersection;
[0014] The starting flow at the starting intersection Evenly distributed to all the pipe segments formed between the first adjacent intersection and the starting intersection, the flow rate of each pipe segment is / s;
[0015] The starting intersection is updated, and the intersection with the smallest number that has only input traffic and has not yet been allocated traffic is used as the new starting intersection to continue allocating traffic until all intersections are allocated;
[0016] When no branch pipe segment exists at the updated starting intersection, the allocation continues until a branch pipe segment appears at the next starting intersection;
[0017] Wherein, each time the flow is distributed, the flow value of the pipe section is recorded in the pipe section flow matrix, and the flow direction of the pipe section is recorded in the pipe section flow direction matrix.
[0018] Further, the intersection relationship matrix is represented as Q1( i , j , x ), the pipe flow matrix is expressed as Q2( i , j , y ), the pipe flow direction matrix is expressed as Q3( i , j , z );
[0019] in i and j Both represent the intersection of the three-dimensional pipe network, and the intersection i Towards the intersectionj Allocate traffic;
[0020] When the intersection i and intersection j When the pipelines are connected, x =1, otherwise x =0;
[0021] y Indicates intersection i Flow direction intersection j Flow rate in the pipe section;
[0022] When the intersection i Flow direction intersection j When the pipe section has flow z =1, otherwise z =0.
[0023] Furthermore, the specific steps of finding all the intersections to be corrected in the three-dimensional pipe network and determining the correction order of the intersections to be corrected according to the step size rule include:
[0024] According to the pipeline flow direction matrix, when the intersection i All corresponding intersection points j When both are 0, the intersection point is the intersection point to be corrected;
[0025] Calculate the minimum step length from each of the intersection points to be corrected to the flow output point;
[0026] The intersection points to be corrected are corrected in descending order of priority according to the step length. If the step lengths of multiple intersection points to be corrected are equal, one is selected for correction first.
[0027] Furthermore, the specific steps of calculating the minimum step length from each of the intersection points to be corrected to the flow output point include:
[0028] Establishing a dendrogram, and placing the intersection point to be corrected in the first layer of the dendrogram;
[0029] Find the adjacent intersections of the intersection to be corrected according to the intersection relationship matrix and place them in the second layer of the dendrogram;
[0030] And so on, until the flow output point appears in the tree diagram;
[0031] The number of layers of the dendrogram where the flow output point will appear minus 1 is the step size.
[0032] Furthermore, the specific steps of correcting the pre-distributed flow according to the flow redistribution law to calculate the final initial flow of the pipe section include:
[0033] Find the adjacent intersection point of the intersection point to be corrected with the largest step length, and use it as the second adjacent intersection point, calculate the step length from the second adjacent intersection point to the flow output point, and select the second adjacent intersection point with the smallest step length as the inverted intersection point;
[0034] Using the inverted intersection point as the starting intersection point, correcting the pre-distributed flow of the three-dimensional pipe network according to the flow redistribution rule;
[0035] According to the above steps, the flow is redistributed for each intersection to be corrected in order of step size from large to small, and the final initial flow of the pipe section is obtained, so that the inflow flow of each intersection in the three-dimensional pipe network is Equal to outflow flow ;
[0036] The traffic redistribution rule is:
[0037] Calculate the flow of the inverted intersection point according to the pipe section flow matrix and the pipe section flow direction matrix;
[0038] Find the adjacent intersection point connected to the inverted intersection point pipeline according to the intersection point relationship matrix, and use it as the third adjacent intersection point;
[0039] Evenly distribute the flow at the negated intersection to all pipe sections formed between the third adjacent intersection and the negated intersection;
[0040] Update the inverted intersection point, and continue to distribute the flow according to the above steps until all outflow pipe sections are fully distributed;
[0041] During the flow redistribution process, the flow is only distributed to the outflow pipe section that does not interfere with or reflux the intersection point to be corrected this time.
[0042] Furthermore, the formula for calculating the inverse intersection flow is:
[0043]
[0044] In the formula, It represents the flow rate of the inverted intersection after inversion, represents the flow rate flowing into the intersection to be corrected before negation, represents the flow rate of the negated intersection point flowing into the intersection point to be corrected before negation;
[0045] The formula for calculating the flow rate allocated to the outflow pipe section is:
[0046]
[0047] In the formula, represents the flow rate allocated to the outflow pipe section, represents the flow rate flowing into the negated intersection before negation, represents the flow rate of the intersection to be corrected into the inverted intersection after inversion, represents the flow rate from the inverted intersection to the outflow pipe section where no flow distribution is performed next, a Indicates the number of outflow pipe sections to which flow will be distributed next.
[0048] The present invention also provides a three-dimensional pipe network initial flow distribution system, comprising:
[0049] Numbering module: used to construct a three-dimensional pipe network, find all the intersections of the three-dimensional pipe network, and number each intersection of the three-dimensional pipe network according to the intersection numbering rule, where the smallest number is the flow input point and the largest number is the flow output point;
[0050] The first construction module is used to construct an intersection relationship matrix according to the connectivity between the intersections of the three-dimensional pipe network;
[0051] Allocation module: used to pre-allocate traffic according to the order of intersection numbers from small to large using the intersection relationship matrix;
[0052] The allocation module is specifically used for:
[0053] Enter the starting flow rate into the flow input point , and taking the flow input point as the starting intersection, obtaining the adjacent intersection s connected to the starting intersection pipeline according to the intersection relationship matrix, and taking it as the first adjacent intersection, wherein the intersection number of the first adjacent intersection is greater than the intersection number of the starting intersection;
[0054] The starting flow at the starting intersection Evenly distributed to all the pipe segments formed between the first adjacent intersection and the starting intersection, the flow rate of each pipe segment is / s;
[0055] The starting intersection is updated, and the intersection with the smallest number that has only input traffic and has not yet been allocated traffic is used as the new starting intersection to continue allocating traffic until all intersections are allocated;
[0056] When no branch pipe segment exists at the updated starting intersection, the allocation continues until a branch pipe segment appears at the next starting intersection;
[0057] The second building block is used to obtain the pipe section flow matrix and the pipe section flow direction matrix;
[0058] The second building block is specifically used for:
[0059] Each time the flow is distributed, the flow value of the pipe section is recorded in the pipe section flow matrix, and the flow direction of the pipe section is recorded in the pipe section flow direction matrix;
[0060] The intersection relationship matrix is represented as Q1( i , j , x ), the pipe flow matrix is expressed as Q2( i , j , y ), the pipe flow direction matrix is expressed as Q3( i , j , z );
[0061] in i and j Both represent the intersection of the three-dimensional pipe network, and the intersection i Towards the intersection j Allocate traffic;
[0062] When the intersection i and intersection j When the pipelines are connected, x =1, otherwise x =0;
[0063] y Indicates intersection i Flow direction intersection j Flow rate in the pipe section;
[0064] When the intersection i Flow direction intersection j When the pipe section has flow z =1, otherwise z =0;
[0065] Query module: used to find all the intersection points to be corrected in the three-dimensional pipe network, and determine the correction order of the intersection points to be corrected according to the step length rule;
[0066] The query module is specifically used for:
[0067] According to the pipeline flow direction matrix, when the intersection i All corresponding intersection points j When both are 0, the intersection point is the intersection point to be corrected;
[0068] Calculate the minimum step length from each of the intersection points to be corrected to the flow output point;
[0069] Correcting each of the intersections to be corrected according to the priority order of step length from large to small, if the step lengths of multiple intersections to be corrected are equal, one is selected for priority correction;
[0070] The specific steps of calculating the minimum step length from each intersection point to be corrected to the flow output point include:
[0071] Establishing a dendrogram, and placing the intersection point to be corrected in the first layer of the dendrogram;
[0072] Find the adjacent intersections of the intersection to be corrected according to the intersection relationship matrix and place them in the second layer of the dendrogram;
[0073] And so on, until the flow output point appears in the tree diagram;
[0074] The number of layers of the dendrogram where the flow output point appears minus 1 is the step length;
[0075] Correction module: used to correct the pre-distributed flow according to the flow redistribution law to calculate the final initial flow of the pipe section;
[0076] The correction module is specifically used for:
[0077] Find the adjacent intersection point of the intersection point to be corrected with the largest step length, and use it as the second adjacent intersection point, calculate the step length from the second adjacent intersection point to the flow output point, and select the second adjacent intersection point with the smallest step length as the inverted intersection point;
[0078] Using the inverted intersection point as the starting intersection point, correcting the pre-distributed flow of the three-dimensional pipe network according to the flow redistribution rule;
[0079] According to the above steps, the flow is redistributed for each intersection to be corrected in order of step size from large to small, and the final initial flow of the pipe section is obtained, so that the inflow flow of each intersection in the three-dimensional pipe network is Equal to outflow flow ;
[0080] The traffic redistribution rule is:
[0081] Calculate the flow of the inverted intersection point according to the pipe section flow matrix and the pipe section flow direction matrix;
[0082] Find the adjacent intersection point connected to the inverted intersection point pipeline according to the intersection point relationship matrix, and use it as the third adjacent intersection point;
[0083] Evenly distribute the flow at the negated intersection to all pipe sections formed between the third adjacent intersection and the negated intersection;
[0084] Update the inverted intersection point, and continue to distribute the flow according to the above steps until all outflow pipe sections are fully distributed;
[0085] During the flow redistribution process, the flow is only distributed to the outflow pipe section that does not interfere with or reflux the intersection point to be corrected this time;
[0086] The formula for calculating the inverse intersection flow is:
[0087]
[0088] In the formula, It represents the flow rate of the inverted intersection after inversion. represents the flow rate flowing into the intersection to be corrected before negation, represents the flow rate of the negated intersection point flowing into the intersection point to be corrected before negation;
[0089] The formula for calculating the flow rate allocated to the outflow pipe section is:
[0090]
[0091] In the formula, represents the flow rate allocated to the outflow pipe section, represents the flow rate flowing into the negated intersection before negation, represents the flow rate of the intersection to be corrected into the inverted intersection after inversion, represents the flow rate from the inverted intersection to the outflow pipe section where no flow distribution is performed next, a Indicates the number of outflow pipe sections to which flow will be distributed next.
[0092] The present invention also provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the three-dimensional pipe network initial flow distribution method as described above.
[0093] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the three-dimensional pipe network initial flow distribution method as described above when executing the computer program.
[0094] Compared with the prior art, the present invention has the following beneficial effects:
[0095] Firstly, all the intersections of the three-dimensional pipe network are numbered according to a preset rule, and an intersection relationship matrix is constructed according to the numbering. Then, the flow is pre-allocated through the intersection relationship matrix, and a pipe segment flow matrix and a pipe segment flow direction matrix are established. Then, the intersections to be corrected are found, and the pre-allocated flow is corrected according to the flow redistribution rule to obtain the final pipe segment initial flow. The automatic allocation of the initial flow of the three-dimensional pipe network is realized through a computer program to solve the flow initialization problem in the optimization of the three-dimensional ring pipe network, which can ensure the accuracy of flow distribution and meet the principle of flow conservation. BRIEF DESCRIPTION OF THE DRAWINGS
[0096] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0097] Figure 1 It is a flow chart of the initial flow distribution method of the three-dimensional pipe network in the first embodiment of the present invention;
[0098] Figure 2 A schematic diagram of setting intersection numbers of a three-dimensional pipe network in the first embodiment of the present invention;
[0099] Figure 3 A schematic diagram of constructing an intersection relationship matrix of a three-dimensional pipe network in the first embodiment of the present invention;
[0100] Figure 4 A schematic diagram of constructing a pipe segment flow matrix of a three-dimensional pipe network in the first embodiment of the present invention;
[0101] Figure 5 A schematic diagram of constructing a pipe segment flow direction matrix of a three-dimensional pipe network in the first embodiment of the present invention;
[0102] Figure 6 It is a schematic diagram of the principle of flow correction of a pipe section of a three-dimensional pipe network in the first embodiment of the present invention;
[0103] Figure 7 A tree diagram of calculating the step length in the first embodiment of the present invention;
[0104] FIG8( a ) is a schematic diagram of a local correction result of a pipe segment flow matrix of a three-dimensional pipe network in the first embodiment of the present invention;
[0105] FIG8( b ) is a schematic diagram of a local correction result of a flow direction matrix of a pipe segment of a three-dimensional pipe network in the first embodiment of the present invention;
[0106] Fig. 9 It is a structural block diagram of the initial flow distribution method of the three-dimensional pipe network in the second embodiment;
[0107] Fig.10 is a structural block diagram of a computer device in a third embodiment;
[0108] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0109] In order to facilitate understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. A plurality of embodiments of the present invention are provided in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.
[0110] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.
[0111] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0112] Embodiment 1
[0113] See also Figure 1 , which shows a three-dimensional pipe network initial flow distribution method in a first embodiment of the present invention, comprising the following steps S101 to S105:
[0114] S101, constructing a three-dimensional pipe network, finding all intersections of the three-dimensional pipe network, and numbering each intersection of the three-dimensional pipe network according to the intersection numbering rule, wherein the smallest number is a flow input point (corresponding to the inflow point in the figure), and the largest number is a flow output point (corresponding to the outflow point in the figure);
[0115] Specifically, in this embodiment, the intersection numbering rule is: the intersection is numbered in the order of the largest X coordinate, the second largest Y coordinate, and the smallest Z coordinate in the spatial rectangular coordinate system. The flow input point and the flow output point are regarded as special intersections, and on the premise of ensuring the node connectivity, the flow input point and the flow output point are equivalently moved so that their numbers are the smallest (numbered 1) and the largest (numbered n), respectively.
[0116] S102, constructing an intersection relationship matrix according to the connectivity between the intersections of the three-dimensional pipe network;
[0117] S103, using the intersection relationship matrix to perform flow pre-allocation according to the order of intersection numbers from small to large, so as to obtain a pipe section flow matrix and a pipe section flow direction matrix, and then establish a mathematical model;
[0118] Exemplarily, in this embodiment, the intersection relationship matrix is represented as Q1( i , j , x ), the pipe flow matrix is expressed as Q2(i , j , y ), the pipe flow direction matrix is expressed as Q3( i , j , z );
[0119] in i and j Both represent the intersection of the three-dimensional pipe network, and the intersection i Towards the intersection j Allocate traffic;
[0120] When the intersection i and intersection j When the pipelines are connected, x =1, otherwise x =0;
[0121] y Indicates intersection i Flow direction intersection j Flow rate in the pipe section;
[0122] When the intersection i Flow direction intersection j When the pipe section has flow z =1, otherwise z =0.
[0123] S104, finding all the intersection points to be corrected in the three-dimensional pipe network, and determining the correction order of the intersection points to be corrected according to a step size rule;
[0124] S105, correcting the pre-distributed flow according to the flow redistribution rule to calculate the final initial flow of the pipe section.
[0125] Furthermore, the specific steps in step S103 include:
[0126] Enter the starting flow rate into the flow input point , and taking the flow input point as the starting intersection, obtaining the adjacent intersection s connected to the starting intersection pipeline according to the intersection relationship matrix, and taking it as the first adjacent intersection, wherein the intersection number of the first adjacent intersection is greater than the intersection number of the starting intersection;
[0127] For example, see Figure 2 The three-dimensional pipe network in this embodiment has 20 intersections. In the intersection relationship matrix, the column number represents i , the line number represents j , so the value of row number 1 and column number 2 is written as 1, and the value of column number 1 and row number 2 is also written as 1, which means that the pipe section between intersection 1 and intersection 2 is connected, indicating that intersection 1 and intersection 2 are adjacent intersections to each other;
[0128] When flow input point 1 is used as the starting intersection, the first adjacent intersection point connected to its pipeline is only 2, and intersection point 2 is connected to intersection point 3, intersection point 4, and intersection point 8 at the same time, and the numbers of intersection point 3, intersection point 4, and intersection point 8 are all larger than intersection point 2. Therefore, intersection point 3, intersection point 4, and intersection point 8 are all the first adjacent intersection points of intersection point 2.
[0129] The starting flow at the starting intersection Evenly distributed to all the pipe segments formed between the first adjacent intersection and the starting intersection, the flow rate of each pipe segment is / s;
[0130] For example, see Figure 3 , assuming the initial flow is 90, and the first adjacent intersection of intersection 1 is only intersection 2, so the flow rate allocated to the pipe segment between intersection 1 and intersection 2 is 90.
[0131] The starting intersection is updated, and the intersection with the smallest number that has only input traffic and has not yet been allocated traffic is used as the new starting intersection to continue allocating traffic until all intersections are allocated;
[0132] Exemplarily, intersection 2 is updated as the starting intersection, and the first adjacent intersections of intersection 2 are intersection 3, intersection 4, and intersection 8. Therefore, the pipe segment formed between intersection 2 and intersection 3, intersection 4, and intersection 8 will evenly distribute 90% of the pipe segment flow between intersection 1 and intersection 2, with each receiving 30% of the flow.
[0133] It should be noted that when there is no branch pipe segment at the updated starting intersection, the allocation continues until a branch pipe segment appears at the next starting intersection;
[0134] For example, after the flow is allocated to the pipe segment between intersection 13 and intersection 19, intersection 19 is updated as the starting intersection. Since there is no branch pipe segment at intersection 19 and there is only one path, the flow is continued to be allocated to intersection 19. If there is a branch pipe segment at intersection 18, the next step is entered until all pipe segments are allocated flow.
[0135] Among them, see Figure 4 and Figure 5 Each time the flow is distributed, the flow value of the pipe section is recorded in the pipe section flow matrix, and the flow direction of the pipe section is recorded in the pipe section flow direction matrix.
[0136] Specifically, since the pipe flow direction matrix can be determined by the first adjacent intersection of each intersection, the first adjacent intersection of intersection 1 is only 2, so in the pipe flow direction matrix, the value at row number 1 and column number 2 is written as 1, and the first adjacent intersection of intersection 2 is intersection 3, intersection 4, and intersection 8, so the values at row number 2 and column numbers 3, 4, and 8 are written as 1;
[0137] At the same time, in the pipe section flow matrix, the value at row number 1 and column number 2 is written as 90, and the value at row number 2 and column numbers 3, 4, and 8 is written as 30.
[0138] Furthermore, the specific steps in step S104 include:
[0139] According to the pipeline flow direction matrix, when the intersection i All corresponding intersection points j When both are 0, the intersection point is the intersection point to be corrected;
[0140] Understandably, when the intersection i All corresponding intersection points j When both are 0, it means that there is only inflow flow and no outflow flow in this pipe section. j Point is defined as the intersection point to be corrected;
[0141] Exemplarily, in this embodiment, intersection point 17 and intersection point 18 are intersection points to be corrected, and there is only inflow flow but no outflow flow.
[0142] Calculate the minimum step length from each of the intersection points to be corrected to the flow output point;
[0143] For details, please refer to Figure 7 In this embodiment, the specific steps of determining the minimum step length from the intersection point to be corrected to the flow output point include:
[0144] Establishing a dendrogram, and placing the intersection point to be corrected in the first layer of the dendrogram;
[0145] Exemplarily, the intersection point 19 and the intersection point 17 are placed on the first layer.
[0146] Find the adjacent intersections of the intersection to be corrected according to the intersection relationship matrix and place them in the second layer of the dendrogram;
[0147] For example, regarding the intersection 18, its neighboring intersections are 12, 16 and 19, which are placed in the second layer; regarding the intersection 17, its neighboring intersections are 11, 15 and 15, which are placed in the second layer.
[0148] And so on, until the flow output point appears in the tree diagram;
[0149] The number of layers of the dendrogram where the flow output point will appear minus 1 is the step size.
[0150] For example, regarding the intersection 18, when the flow output point 20 is located at the last layer of the tree diagram, the shortest number of layers is 4, and the number of layers -1 is the step length. Regarding the intersection 17, when the flow output point 20 is located at the last layer of the tree diagram, the shortest number of layers is 4, and the number of layers -1 is the step length.
[0151] The intersection points to be corrected are corrected in descending order of priority according to the step length. If the step lengths of multiple intersection points to be corrected are equal, one is selected for correction first.
[0152] For example, see Figure 6 It can be seen that the minimum step length of intersection point 18 is the same as the minimum step length of intersection point 17, so any one of the intersection points is selected as the most prioritized intersection point to be corrected. In this embodiment, intersection point 18 is selected.
[0153] Furthermore, the specific steps in step S105 include:
[0154] Find the adjacent intersection point of the intersection point to be corrected with the largest step length, and use it as the second adjacent intersection point, calculate the step length from the second adjacent intersection point to the flow output point, and select the second adjacent intersection point with the smallest step length as the inverted intersection point;
[0155] For example, please refer to FIG8 (b). The second adjacent intersections of the intersection 18 to be corrected are 12, 16 and 19. According to the above step length rule, the minimum step length of the intersection 19 is 4, the minimum step length of the intersection 12 is 4, and the minimum step length of the intersection 16 is 2. Therefore, the second adjacent intersection 16 is used as the inverted intersection. After inversion, the flow direction matrix of the pipe section is updated. At this time, Q3 (16, 18, 0) and Q3 (18, 16, 1) are obtained.
[0156] Using the inverted intersection point as the starting intersection point, correcting the pre-distributed flow of the three-dimensional pipe network according to the flow redistribution rule;
[0157] The traffic redistribution rule is:
[0158] Calculate the flow of the inverted intersection point according to the pipe section flow matrix and the pipe section flow direction matrix;
[0159] Generally, the flow rate at the anti-intersection point can be calculated by the following formula:
[0160]
[0161] In the formula, It represents the flow rate of the inverted intersection after inversion. represents the flow rate flowing into the intersection to be corrected before negation, represents the flow rate of the negated intersection point flowing into the intersection point to be corrected before negation;
[0162] Exemplarily, regarding the intersection point 18 to be corrected, The sum of the flow rates from intersections 12, 16, and 19 input to intersection 18, To obtain the flow rate that should flow into the intersection to be corrected at intersection 16.
[0163] Find the adjacent intersection point connected to the inverted intersection point pipeline according to the intersection point relationship matrix, and use it as the third adjacent intersection point;
[0164] Exemplarily, the third adjacent intersection points of the inverted intersection point 16 are 10 , 17 , and 14 .
[0165] Evenly distribute the flow at the negated intersection to all pipe sections formed between the third adjacent intersection and the negated intersection;
[0166] Update the inverted intersection point, and continue to distribute the flow according to the above steps until all outflow pipe sections are fully distributed;
[0167] It should be noted that, in the process of flow redistribution, the flow is only distributed to the outflow pipe section that does not interfere with the intersection point to be corrected this time and does not flow back.
[0168] For example, although the third adjacent intersections of the inverted intersection 16 are 10, 17 and 14, if it is distributed to the intersection 10, it will pass through the intersection 12 in sequence to reach the intersection 18, which will interfere with and reflux with the intersection to be corrected during this redistribution. Therefore, it will only pass through the two paths of intersection 17-15-14-20 and intersection 14-20.
[0169] Generally, the formula for calculating the flow rate allocated to the outflow pipe section is:
[0170]
[0171] In the formula, represents the flow rate allocated to the outflow pipe section, represents the flow rate flowing into the negated intersection before negation, represents the flow rate of the intersection to be corrected into the inverted intersection after inversion, represents the flow rate from the inverted intersection to the outflow pipe section where no flow distribution is performed next, a Indicates the number of outflow pipe sections to which flow will be distributed next.
[0172] According to the above steps, the flow is redistributed for each intersection to be corrected in order of step size from large to small, and the final initial flow of the pipe section is obtained, so that the inflow flow of each intersection in the three-dimensional pipe network is Equal to outflow flow ;
[0173] It can be understood that after the flow distribution at the intersection point 18 to be corrected is completed, the flow redistribution is performed from the intersection point 17 to be corrected according to the above method.
[0174] Specifically, each time the pipe section flow is corrected, the pipe section flow matrix and the pipe section flow direction matrix are updated. As shown in FIG8(a) and FIG8(b), they are schematic diagrams of the partial results of the corrected pipe section flow matrix and the pipe section flow direction matrix, respectively.
[0175] In summary, the three-dimensional pipe network initial flow distribution method in the above-mentioned embodiment of the present invention firstly numbers all the intersections of the three-dimensional pipe network according to a preset rule, and constructs an intersection relationship matrix according to the numbering, then pre-distributes the flow through the intersection relationship matrix, and establishes a pipe segment flow matrix and a pipe segment flow direction matrix, then finds the intersection to be corrected, and corrects the pre-distributed flow according to the flow redistribution rule to obtain the final pipe segment initial flow, and realizes the automatic distribution of the initial flow of the three-dimensional pipe network through a computer program to solve the flow initialization problem in the optimization of the three-dimensional annular pipe network, which can ensure the accuracy of the flow distribution and meet the principle of flow conservation.
[0176] Embodiment 2
[0177] Please refer to Fig. 9 , shown is a three-dimensional pipe network initial flow distribution system 40 in the second embodiment of the present invention, comprising:
[0178] Numbering module 11: used to construct a three-dimensional pipe network, find all the intersections of the three-dimensional pipe network, and number each intersection of the three-dimensional pipe network according to the intersection numbering rule, where the smallest number is the flow input point and the largest number is the flow output point;
[0179] The first construction module 12 is used to construct an intersection relationship matrix according to the connectivity between the intersections of the three-dimensional pipe network;
[0180] Allocation module 13: used to pre-allocate traffic according to the order of intersection numbers from small to large using the intersection relationship matrix;
[0181] The allocation module 13 is specifically used for:
[0182] Enter the starting flow rate into the flow input point , and taking the flow input point as the starting intersection, obtaining the adjacent intersection s connected to the starting intersection pipeline according to the intersection relationship matrix, and taking it as the first adjacent intersection, wherein the intersection number of the first adjacent intersection is greater than the intersection number of the starting intersection;
[0183] The starting flow at the starting intersection Evenly distributed to all the pipe segments formed between the first adjacent intersection and the starting intersection, the flow rate of each pipe segment is / s;
[0184] The starting intersection is updated, and the intersection with the smallest number that has only input traffic and has not yet been allocated traffic is used as the new starting intersection to continue allocating traffic until all intersections are allocated;
[0185] When no branch pipe segment exists at the updated starting intersection, the allocation continues until a branch pipe segment appears at the next starting intersection;
[0186] The second construction module 14 is used to obtain a pipe section flow matrix and a pipe section flow direction matrix;
[0187] The second building module 14 is specifically used for:
[0188] Each time the flow is distributed, the flow value of the pipe section is recorded in the pipe section flow matrix, and the flow direction of the pipe section is recorded in the pipe section flow direction matrix;
[0189] The intersection relationship matrix is represented as Q1( i , j , x ), the pipe flow matrix is expressed as Q2( i , j , y ), the pipe flow direction matrix is expressed as Q3( i , j , z );
[0190] in i and j Both represent the intersection of the three-dimensional pipe network, and the intersection i Towards the intersection j Allocate traffic;
[0191] When the intersection i and intersection j When the pipelines are connected, x =1, otherwise x =0;
[0192] y Indicates intersection i Flow direction intersection j Flow rate in the pipe section;
[0193] When the intersection i Flow direction intersection j When the pipe section has flow z =1, otherwise z=0;
[0194] Query module 15: used to find all the intersection points to be corrected in the three-dimensional pipe network, and determine the correction order of the intersection points to be corrected according to the step size rule;
[0195] The query module 15 is specifically used for:
[0196] According to the pipeline flow direction matrix, when the intersection i All corresponding intersection points j When both are 0, the intersection point is the intersection point to be corrected;
[0197] Calculate the minimum step length from each of the intersection points to be corrected to the flow output point;
[0198] Correcting each of the intersections to be corrected according to the priority order of step length from large to small, if the step lengths of multiple intersections to be corrected are equal, one is selected for priority correction;
[0199] The specific steps of calculating the minimum step length from each intersection point to be corrected to the flow output point include:
[0200] Establishing a dendrogram, and placing the intersection point to be corrected in the first layer of the dendrogram;
[0201] Find the adjacent intersections of the intersection to be corrected according to the intersection relationship matrix and place them in the second layer of the dendrogram;
[0202] And so on, until the flow output point appears in the tree diagram;
[0203] The number of layers of the dendrogram where the flow output point appears minus 1 is the step length;
[0204] Correction module 16: used to correct the pre-distributed flow according to the flow redistribution law to calculate the final initial flow of the pipe section;
[0205] The correction module 16 is specifically used for:
[0206] Find the adjacent intersection point of the intersection point to be corrected with the largest step length, and use it as the second adjacent intersection point, calculate the step length from the second adjacent intersection point to the flow output point, and select the second adjacent intersection point with the smallest step length as the inverted intersection point;
[0207] Using the inverted intersection point as the starting intersection point, correcting the pre-distributed flow of the three-dimensional pipe network according to the flow redistribution rule;
[0208] According to the above steps, the flow is redistributed for each intersection to be corrected in order of step size from large to small, and the final initial flow of the pipe section is obtained, so that the inflow flow of each intersection in the three-dimensional pipe network is Equal to outflow flow ;
[0209] The traffic redistribution rule is:
[0210] Calculate the flow of the inverted intersection point according to the pipe section flow matrix and the pipe section flow direction matrix;
[0211] Find the adjacent intersection point connected to the inverted intersection point pipeline according to the intersection point relationship matrix, and use it as the third adjacent intersection point;
[0212] Evenly distribute the flow at the negated intersection to all pipe sections formed between the third adjacent intersection and the negated intersection;
[0213] Update the inverted intersection point, and continue to distribute the flow according to the above steps until all outflow pipe sections are fully distributed;
[0214] During the flow redistribution process, the flow is only distributed to the outflow pipe section that does not interfere with or reflux the intersection point to be corrected this time;
[0215] The formula for calculating the inverse intersection flow is:
[0216]
[0217] In the formula, It represents the flow rate of the inverted intersection after inversion, represents the flow rate flowing into the intersection to be corrected before negation, represents the flow rate of the negated intersection point flowing into the intersection point to be corrected before negation;
[0218] The formula for calculating the flow rate allocated to the outflow pipe section is:
[0219]
[0220] In the formula, represents the flow rate allocated to the outflow pipe section, represents the flow rate flowing into the negated intersection before negation, represents the flow rate of the intersection to be corrected into the inverted intersection after inversion, represents the flow rate from the inverted intersection to the outflow pipe section where no flow distribution is performed next, a Indicates the number of outflow pipe sections to which flow will be distributed next.
[0221] Embodiment 3
[0222] The present invention also provides a computer device, see Fig.10, shown is a computer device in the third embodiment of the present invention, including a memory 10, a processor 20, and a computer program 30 stored in the memory 10 and executable on the processor 20. When the processor 20 executes the computer program 30, the above-mentioned three-dimensional pipe network initial flow distribution method is implemented.
[0223] The memory 10 includes at least one type of storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 10 may be an internal storage unit of a computer device, such as a hard disk of the computer device. In other embodiments, the memory 10 may also be an external storage device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. Further, the memory 10 may also include both an internal storage unit of a computer device and an external storage device. The memory 10 may be used not only to store application software and various types of data installed in the computer device, but also to temporarily store data that has been output or is to be output.
[0224] Among them, in some embodiments, the processor 20 can be an electronic control unit (Electronic Control Unit, abbreviated as ECU, also known as a vehicle computer), a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run the program code stored in the memory 10 or process data, such as executing access restriction programs, etc.
[0225] It should be pointed out that Fig. 9 The structure shown does not constitute a limitation on the computer device. In other embodiments, the computer device may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0226] The embodiment of the present invention further provides a readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the three-dimensional pipe network initial flow distribution method as described above is implemented.
[0227] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0228] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0229] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0230] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0231] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A three-dimensional pipe network initial flow distribution method, It is characterized in that The steps include: Construct a three-dimensional pipe network, find all intersections of the three-dimensional pipe network, and number each intersection of the three-dimensional pipe network according to the intersection numbering rule, where the smallest number is the flow input point and the largest number is the flow output point; Constructing an intersection relationship matrix according to the connectivity between the intersections of the three-dimensional pipe network; The intersection relationship matrix is used to pre-allocate the flow according to the order of the intersection numbers from small to large, so as to obtain the pipe section flow matrix and the pipe section flow direction matrix, and then establish a mathematical model; Find all the intersection points to be corrected in the three-dimensional pipe network, and determine the correction order of the intersection points to be corrected according to the step size rule; Correct the pre-distributed flow according to the flow redistribution law to calculate the final initial flow of the pipe section; The specific steps of using the intersection relationship matrix to pre-allocate the flow according to the order of the intersection numbers from small to large to obtain the pipe section flow matrix and the pipe section flow direction matrix, and then establishing the mathematical model include: Enter the starting flow rate into the flow input point , and taking the flow input point as the starting intersection, obtaining the adjacent intersection s connected to the starting intersection pipe according to the intersection relationship matrix, and taking it as the first adjacent intersection; The starting flow at the starting intersection Evenly distributed to all the pipe segments formed between the first adjacent intersection and the starting intersection, the flow rate of each pipe segment is / s; The starting intersection is updated, and the intersection with the smallest number that has only input traffic and has not yet been allocated traffic is used as the new starting intersection to continue allocating traffic until all intersections are allocated; When no branch pipe segment exists at the updated starting intersection, the allocation continues until a branch pipe segment appears at the next starting intersection; Wherein, each time the flow is distributed, the flow value of the pipe section is recorded in the pipe section flow matrix, and the flow direction of the pipe section is recorded in the pipe section flow direction matrix; The intersection relationship matrix is represented as Q 1 ( i , j , x ), the pipe flow matrix is represented as Q 2 ( i , j , y ), the pipe flow direction matrix is represented as Q 3 ( i , j , z ); in i and j Both represent the intersection of the three-dimensional pipe network, and the intersection i Towards the intersection j Allocate traffic; When the intersection i and intersection j When the pipelines are connected, x =1, otherwise x =0; y Indicates intersection i Flow direction intersection j Flow rate in the pipe section; When the intersection i Flow direction intersection j When the pipe section has flow z =1, otherwise z =0; The specific steps of finding all the intersection points to be corrected in the three-dimensional pipe network and determining the correction order of the intersection points to be corrected according to the step size rule include: According to the pipeline flow direction matrix, when the intersection i All corresponding intersection points j When both are 0, the intersection point is the intersection point to be corrected; Calculate the minimum step length from each of the intersection points to be corrected to the flow output point; Correcting each of the intersections to be corrected according to the priority order of step length from large to small, if the step lengths of multiple intersections to be corrected are equal, one is selected for priority correction; The specific steps of correcting the pre-distributed flow according to the flow redistribution law to calculate the final initial flow of the pipe section include: Find the adjacent intersection point of the intersection point to be corrected with the largest step length, and use it as the second adjacent intersection point, calculate the step length from the second adjacent intersection point to the flow output point, and select the second adjacent intersection point with the smallest step length as the inverted intersection point; Using the inverted intersection point as the starting intersection point, correcting the pre-distributed flow of the three-dimensional pipe network according to the flow redistribution rule; According to the above steps, the flow is redistributed for each intersection to be corrected in order of step size from large to small, and the final initial flow of the pipe section is obtained, so that the inflow flow of each intersection in the three-dimensional pipe network is Equal to outflow flow ; The traffic redistribution rule is: Calculate the flow of the inverted intersection point according to the pipe section flow matrix and the pipe section flow direction matrix; Find the adjacent intersection point connected to the inverted intersection point pipeline according to the intersection point relationship matrix, and use it as the third adjacent intersection point; Evenly distribute the flow at the negated intersection to all pipe sections formed between the third adjacent intersection and the negated intersection; Update the inverted intersection point, and continue to distribute the flow according to the above steps until all outflow pipe sections are fully distributed; During the flow redistribution process, the flow is only distributed to the outflow pipe section that does not interfere with or reflux the intersection point to be corrected this time; The formula for calculating the inverse intersection flow is: In the formula, It represents the flow rate of the inverted intersection after inversion. represents the flow rate flowing into the intersection to be corrected before negation, represents the flow rate of the negated intersection point flowing into the intersection point to be corrected before negation; The formula for calculating the flow rate allocated to the outflow pipe section is: In the formula, represents the flow rate allocated to the outflow pipe section, represents the flow rate flowing into the negated intersection before negation, represents the flow rate of the intersection to be corrected into the inverted intersection after inversion, represents the flow rate from the inverted intersection to the outflow pipe section where no flow distribution is performed next, a Indicates the number of outflow pipe sections to which flow will be distributed next.
2. The three-dimensional pipe network initial flow distribution method according to claim 1, It is characterized in that The intersection number of the first adjacent intersection is greater than the intersection number of the starting intersection.
3. The three-dimensional pipe network initial flow distribution method according to claim 1, It is characterized in that The specific steps of calculating the minimum step length from each intersection point to be corrected to the flow output point include: Establishing a dendrogram, and placing the intersection point to be corrected in the first layer of the dendrogram; Find the adjacent intersections of the intersection to be corrected according to the intersection relationship matrix and place them in the second layer of the dendrogram; And so on, until the flow output point appears in the tree diagram; The number of layers of the dendrogram where the flow output point will appear minus 1 is the step size.
4. A three-dimensional pipe network initial flow distribution system, It is characterized in that include: Numbering module: used to construct a three-dimensional pipe network, find all the intersections of the three-dimensional pipe network, and number each intersection of the three-dimensional pipe network according to the intersection numbering rule, where the smallest number is the flow input point and the largest number is the flow output point; The first construction module is used to construct an intersection relationship matrix according to the connectivity between the intersections of the three-dimensional pipe network; Allocation module: used to pre-allocate traffic according to the order of intersection numbers from small to large using the intersection relationship matrix; The allocation module is specifically used for: Enter the starting flow rate into the flow input point , and taking the flow input point as the starting intersection, obtaining the adjacent intersection s connected to the starting intersection pipe according to the intersection relationship matrix, and taking it as the first adjacent intersection; The starting flow at the starting intersection Evenly distributed to all the pipe segments formed between the first adjacent intersection and the starting intersection, the flow rate of each pipe segment is / s; The starting intersection is updated, and the intersection with the smallest number that has only input traffic and has not yet been allocated traffic is used as the new starting intersection to continue allocating traffic until all intersections are allocated; When no branch pipe segment exists at the updated starting intersection, the allocation continues until a branch pipe segment appears at the next starting intersection; The second building block is used to obtain the pipe section flow matrix and the pipe section flow direction matrix; The second building block is specifically used for: Each time the flow is distributed, the flow value of the pipe section is recorded in the pipe section flow matrix, and the flow direction of the pipe section is recorded in the pipe section flow direction matrix; The intersection relationship matrix is represented as Q 1 ( i , j , x ), the pipe flow matrix is represented as Q 2 ( i , j , y ), the pipe flow direction matrix is represented as Q 3 ( i , j , z ); in i and j Both represent the intersection of the three-dimensional pipe network, and the intersection i Towards the intersection j Allocate traffic; When the intersection i and intersection j When the pipelines are connected, x =1, otherwise x =0; y Indicates intersection i Flow direction intersection j Flow rate in the pipe section; When the intersection i Flow direction intersection j When the pipe section has flow z =1, otherwise z =0; Query module: used to find all the intersection points to be corrected in the three-dimensional pipe network, and determine the correction order of the intersection points to be corrected according to the step length rule; The query module is specifically used for: According to the pipeline flow direction matrix, when the intersection i All corresponding intersection points j When both are 0, the intersection point is the intersection point to be corrected; Calculate the minimum step length from each of the intersection points to be corrected to the flow output point; Correcting each of the intersections to be corrected according to the priority order of step length from large to small, if the step lengths of multiple intersections to be corrected are equal, one is selected for priority correction; Correction module: used to correct the pre-distributed flow according to the flow redistribution law to calculate the final initial flow of the pipe section; The correction module is specifically used for: Find the adjacent intersection point of the intersection point to be corrected with the largest step length, and use it as the second adjacent intersection point, calculate the step length from the second adjacent intersection point to the flow output point, and select the second adjacent intersection point with the smallest step length as the inverted intersection point; Using the inverted intersection point as the starting intersection point, correcting the pre-distributed flow of the three-dimensional pipe network according to the flow redistribution rule; According to the above steps, the flow is redistributed for each intersection to be corrected in order of step size from large to small, and the final initial flow of the pipe section is obtained, so that the inflow flow of each intersection in the three-dimensional pipe network is Equal to outflow flow ; The traffic redistribution rule is: Calculate the flow of the inverted intersection point according to the pipe section flow matrix and the pipe section flow direction matrix; Find the adjacent intersection point connected to the inverted intersection point pipeline according to the intersection point relationship matrix, and use it as the third adjacent intersection point; Evenly distribute the flow at the negated intersection to all pipe sections formed between the third adjacent intersection and the negated intersection; Update the inverted intersection point, and continue to distribute the flow according to the above steps until all outflow pipe sections are fully distributed; During the flow redistribution process, the flow is only distributed to the outflow pipe section that does not interfere with or reflux the intersection point to be corrected this time; The formula for calculating the inverse intersection flow is: In the formula, It represents the flow rate of the inverted intersection after inversion. represents the flow rate flowing into the intersection to be corrected before negation, represents the flow rate of the negated intersection point flowing into the intersection point to be corrected before negation; The formula for calculating the flow rate allocated to the outflow pipe section is: In the formula, represents the flow rate allocated to the outflow pipe section, represents the flow rate flowing into the negated intersection before negation, represents the flow rate of the intersection to be corrected into the inverted intersection after inversion, represents the flow rate from the inverted intersection to the outflow pipe section where no flow distribution is performed next, a Indicates the number of outflow pipe sections to which flow will be distributed next.
5. A storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the three-dimensional pipe network initial flow distribution method as described in any one of claims 1 to 3 is implemented.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the three-dimensional pipe network initial flow distribution method according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Sensor distribution optimization method in structural health monitoring under multiple working conditions
CN108830407A
Pipe network topological relation checking and repairing method
CN111680374A
