A method for calculating hydraulic power of water pumps based on BIM
Through the use of Dynamo and Python in the Revit API, the water supply system paths are automatically analyzed and hydraulic calculations are performed, which solves the problem that Revit software cannot meet the design requirements in water pump hydraulic calculation, and realizes the forward design and detailed water pump hydraulic calculation in the BIM model. Calculation book output.
Patent Information
- Application Number
- CN202411357991.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2044-09-27
AI Technical Summary
In the field of electromechanical and mechanical Revit software, the hydraulic calculation module of the water pump cannot meet the design requirements of the circular pipeline water supply system, and the output results cannot be used as a design calculation book, resulting in the separation of the hydraulic calculation and construction process of the water pump in the BIM model, and the forward design feedback cannot be achieved. .
Calling the Revit API through Dynamo visual programming and Python language, obtain the water supply system path connection in the BIM model, calculate the longest combined path, perform hydraulic calculations, and output hydraulic calculation process templates to meet design requirements.
The forward design of water pump hydraulic calculation based on BIM is realized, and the water supply system path is automatically analyzed, the design feedback problem caused by manual calculation is solved, and a detailed hydraulic calculation book is provided.
Smart Images

Figure CN118886105B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of BIM models of electromechanical engineering, and in particular to a BIM-based water pump hydraulic calculation method. Background Art
[0002] With the gradual development of the engineering industry, BIM (Building Information Modeling) has been gradually applied on a large scale in various fields of the engineering industry. As the mainstream software in BIM (Building Information Modeling), Revit has also been gradually applied from the construction field to other fields of the engineering industry. However, some functions in Revit have limitations in the design process of other fields and cannot meet the needs of actual design.
[0003] For the calculation and selection of water pumps in the field of electromechanical engineering, that is, the hydraulic calculation process of water pumps, there are certain limitations in implementing this process in Revit. Although Revit contains a hydraulic calculation module, the function of this calculation module cannot fully meet the design requirements. The first is that it is impossible to calculate the design water supply system of the ring pipe network. The water supply of the ring pipe network is safer and more stable, and is often used in fire protection, reclaimed water, drinking water and other water supply systems in engineering plants and building units. The second is that the calculation results output by the software cannot be used as the calculation book of the design process, because the output results hide the main calculation process, cannot reach the depth of the hydraulic calculation book, and cannot adjust the format; the design calculation book is the basis for the selection of water pumps and is also an important data in the design process. The above conditions separate the hydraulic calculation process of the water pump in the BIM model from the construction process of the BIM model. It can only be manually calculated and compiled first, and then the BIM model can be constructed and modified. In the calculation process, it is necessary to manually calculate and compare the hydraulic calculation results of multiple paths to find the most unfavorable point of the water supply system before selecting according to the calculation results. Therefore, it is impossible to bring positive design feedback through the BIM model. Summary of the invention
[0004] The purpose of the present invention is to provide a water pump hydraulic calculation method based on BIM, which utilizes visual programming nodes in Dynamo and programming nodes compiled in Python language in Dynamo, through the program programming interface of Revit software, to solve the problems that Revit software cannot perform water pump hydraulic calculation of a ring water supply system and the design process calculation book cannot meet the design requirements, and realizes the forward design of water pump hydraulic calculation based on BIM.
[0005] The present invention is achieved through the following technical solutions:
[0006] A water pump hydraulic calculation method based on BIM, characterized by comprising:
[0007] Obtain a target BIM model; the target BIM model is used to represent a building information model of a water supply system to which a water pump to be subjected to hydraulic calculation belongs;
[0008] Based on the target BIM model, valve connection lines, common pipe connection lines, reducer connection lines and pipe segment connection lines are calculated to obtain all path connections in the water supply system; wherein common pipe fittings are used to represent other pipe fittings except reducers;
[0009] Based on all the path connections in the water supply system, all the combined paths in the water supply system are calculated, and the longest combined path is determined from all the combined paths; wherein the combined paths do not include paths that form loops;
[0010] Based on the longest combined path in the water supply system, hydraulic calculation of the most unfavorable point in the water supply system is performed to obtain a hydraulic calculation result.
[0011] In a possible implementation, it further includes:
[0012] Editing the hydraulic calculation process, and outputting the hydraulic calculation process in a character format, and finally obtaining a process template;
[0013] Write the obtained process template into an Excel table and output it.
[0014] In a possible implementation, based on the target BIM model, valve connection lines, common pipe connection lines, reducer connection lines, and pipe segment connection lines are calculated to obtain all path connections in the water supply system, including:
[0015] Based on the target BIM model, determine the placement point corresponding to the pipe connector corresponding to the valve, and obtain the valve connection line according to the placement point corresponding to the pipe connector corresponding to the valve;
[0016] Based on the target BIM model, determine the center placement point corresponding to the common pipe fitting and the placement point corresponding to the pipe connector corresponding to the common pipe fitting, and obtain the common pipe fitting connection line according to the center placement point corresponding to the common pipe fitting and the placement point corresponding to the pipe connector corresponding to the common pipe fitting;
[0017] Determine the placement point corresponding to the pipe connector corresponding to the reducer, and obtain the reducer connection line according to the placement point corresponding to the pipe connector corresponding to the reducer;
[0018] Based on the target BIM model, the placement points corresponding to the pipe connectors corresponding to the pipe segments are determined, and the pipe segment connection lines are obtained according to the placement points corresponding to the pipe connectors corresponding to the pipe segments;
[0019] The valve connection lines, common pipe connection lines, reducer connection lines and pipe segment connection lines are combined to obtain all path connections in the water supply system.
[0020] In a possible implementation, based on the target BIM model, determining the placement point corresponding to the pipe connector corresponding to the valve, and obtaining the valve connection line according to the placement point corresponding to the pipe connector corresponding to the valve, including:
[0021] Based on the target BIM model, all valve graphics are screened out and recorded as set U1;
[0022] The valve graphics elements in the set U1 are classified and sorted according to the valve types, and the obtained results are recorded as the set U2;
[0023] Obtain the pipe connector corresponding to each valve in set U2, and the obtained result is recorded as set U3;
[0024] Obtain the placement point of each pipe connector in the set U3, and the obtained point set is recorded as U4;
[0025] The elements in the point set U4 are grouped, and every two adjacent elements form a sublist. The two elements corresponding to each sublist are the placement points of the pipe connectors at both ends of the corresponding valve, which are recorded as point set U5;
[0026] Taking each sublist in the point set U5 as an object, the connection line between the placement point of the starting end pipe connector and the placement point of the terminal end pipe connector corresponding to each valve is calculated to obtain the valve connection line set U9.
[0027] In a possible implementation, based on the target BIM model, determining the center placement point corresponding to the common pipe fitting and the placement point corresponding to the pipe connector corresponding to the common pipe fitting, and obtaining the common pipe fitting connection line according to the center placement point corresponding to the common pipe fitting and the placement point corresponding to the pipe connector corresponding to the common pipe fitting, including:
[0028] Based on the target BIM model, all pipe fittings are screened out and recorded as a set M1;
[0029] The pipe fittings in set M1 are classified and sorted according to the type of pipe fittings, and the result is recorded as set M2;
[0030] Obtain the pipe connectors corresponding to all pipe fittings under each pipe fitting type in set M2, and the obtained result is recorded as set M4;
[0031] After querying the classified and sorted pipe fitting family types, the pipe connectors corresponding to the reducer pipe fittings are excluded from the set M4 to obtain the set M6; wherein the pipe fitting family types include elbow pipe fittings, reducer pipe fittings, T-type three-way pipe fittings and four-way pipe fittings; the number of pipe connectors contained in pipe fittings of different family types is different, the elbow pipe fittings contain 2 pipe connectors; the T-type three-way pipe fittings contain 3 pipe connectors; the four-way pipe fittings contain 4 pipe connectors;
[0032] According to the characteristics of different numbers of pipe connectors contained in different types of pipe fittings, the pipe connectors belonging to the same common pipe fitting in the set M6 are divided into a group, and the final set is recorded as M7;
[0033] Obtain the placement points of the pipe connectors to which each common pipe fitting belongs in the set M7, and after the dimensionality reduction process of the list, obtain a point set recorded as M8;
[0034] Obtain the center placement point of each common pipe fitting to obtain a point set M9; wherein the center placement point of the pipe fitting is the intersection point of the normal lines corresponding to the center points of all the connection interface circles of the common pipe fitting;
[0035] Taking each common pipe fitting as an object, calculate the connection lines between the corresponding common pipe fitting center placement point in point set M9 and the placement points of each pipe connector of the corresponding common pipe fitting in set M8, and obtain the common pipe fitting connection line set M13
[0036] In a possible implementation, determining a placement point corresponding to a pipe connector corresponding to the reducer, and acquiring a reducer connection line according to the placement point corresponding to the pipe connector corresponding to the reducer, includes:
[0037] After querying the classified and sorted pipe fitting family types, the pipe connectors to which the reducer pipe fittings belong are selected from the set M4 to obtain the set E1;
[0038] Get the placement point of each pipe connector in set E1 to obtain point set E2;
[0039] Divide every two elements in the point set E2 into a group to obtain a point set E3; wherein the point set E3 is a secondary sublist, and the two elements of each sublist represent the placement points of the two pipe connectors to which the corresponding diameter-changing pipe fitting belongs;
[0040] Taking each sublist in the point set E3 as an object, the connection lines between the placement points of the two pipe connectors to which each reducer belongs are calculated to obtain the reducer connection line set E7.
[0041] In a possible implementation, based on the target BIM model, determining the placement points corresponding to the pipe connectors corresponding to the pipe segments, and obtaining the pipe segment connection lines according to the placement points corresponding to the pipe connectors corresponding to the pipe segments, including:
[0042] Based on the target BIM model, all pipe segment elements are screened out and recorded as a set F1;
[0043] Get the two pipe connectors to which each pipe segment primitive in set F1 belongs, and obtain set F2;
[0044] Obtain the placement point of each pipe connector primitive in the set F2 to obtain a point set F3;
[0045] Each pipe segment primitive is taken as an object, and the connection lines between the placement points corresponding to the two pipe connectors corresponding to each pipe segment primitive are respectively calculated according to the point set F3 to obtain the pipe segment connection line set F7.
[0046] In a possible implementation, based on the longest combined path in the water supply system, hydraulic calculation of the most unfavorable point of the water supply system is performed to obtain a hydraulic calculation result, including:
[0047] According to the longest combined path of the water supply system, the target valve and the target pipe fitting on the longest combined path are found, and based on the target valve and the target pipe fitting, the local hydraulic loss on the longest combined path is calculated according to the hydraulic calculation formula;
[0048] According to the longest combined path of the water supply system, the target pipe section on the longest combined path is found, and the hydraulic loss along the longest combined path is calculated based on the target pipe section and according to the hydraulic calculation formula;
[0049] Get the static head of the water pump;
[0050] The calculated values of local hydraulic loss, hydraulic loss along the way and static head of the pump are summed to obtain the hydraulic calculation result of the pump.
[0051] In a possible implementation, according to the longest combined path of the water supply system, the target valve and the target pipe fitting on the longest combined path are found, and based on the target valve and the target pipe fitting, the local hydraulic loss on the longest combined path is calculated according to the hydraulic calculation formula, including:
[0052] According to the longest combined path of the water supply system, find the target valve and target pipe fitting on the longest combined path;
[0053] Obtain the pipe diameters corresponding to the target valve and the target pipe fitting respectively; wherein the pipe diameter is used to represent the nominal diameter;
[0054] Obtain the family categories corresponding to the target valve and the target pipe fitting respectively;
[0055] According to the pre-made local loss coefficient EXCEL table, calculate the loss coefficients of target valves and target pipe fittings of different families under different pipe diameters;
[0056] Input the loss coefficient into the hydraulic calculation formula to obtain the local hydraulic loss of the water supply system on the longest combined path.
[0057] In a possible implementation, according to the longest combined path of the water supply system, a target pipe section on the longest combined path is found, and based on the target pipe section, the hydraulic loss along the longest combined path is calculated according to a hydraulic calculation formula, including:
[0058] According to the longest combined path of the water supply system, find the target pipe section on the longest combined path;
[0059] Get the inner diameter and length of the target pipe segment;
[0060] The inner diameter and length corresponding to the target pipe section on the longest combined path are input into the hydraulic calculation formula to obtain the hydraulic loss along the longest combined path.
[0061] The present invention provides a water pump hydraulic calculation method based on BIM, which can automatically analyze valve connection lines, common pipe connection lines, reducer connection lines and pipe section connection lines, so as to obtain all path connections in the water supply system, and then obtain all combined paths based on all path connections in the water supply system, and then determine the longest combined path therefrom, and finally perform hydraulic calculation of the most unfavorable point in the water supply system based on the longest combined path in the water supply system, thereby realizing automatic acquisition of water supply system paths and automatic calculation of water pump hydraulics based on BIM, and solving the problem that the prior art cannot bring positive design feedback through the BIM model due to manual calculation. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope. For those of ordinary skill in the art, other relevant drawings can be obtained based on these drawings without creative work. In the drawings:
[0063] Figure 1 A flow chart of a pump hydraulic calculation method based on BIM provided in an embodiment of the present invention.
[0064] Figure 2 An example diagram of a calculation valve connection line provided in an embodiment of the present invention.
[0065] Figure 3 An example diagram of the calculated pipe fitting (except reducer) connection lines provided in an embodiment of the present invention.
[0066] Figure 4 An example diagram of calculating the reducer connection line provided in an embodiment of the present invention.
[0067] Figure 5 An example diagram of calculating pipe segment connection lines provided in an embodiment of the present invention.
[0068] Figure 6 An exemplary diagram of the principle of excluding a combination path that forms a loop provided by an embodiment of the present invention: the intersection result (two intersections) of the last segment of path connecting lines in a certain combination path and all the path connecting lines G9 after preprocessing.
[0069] Figure 7 An exemplary diagram of the principle of excluding the combined paths that form loops provided by an embodiment of the present invention: the intersection results (three intersections) of the last segment of path connecting lines in a certain combined path and all the preprocessed path connecting lines G9. DETAILED DESCRIPTION
[0070] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.
[0071] like Figure 1 As shown, an embodiment of the present invention provides a water pump hydraulic calculation method based on BIM, which may include:
[0072] S1. Calculate all path connection lines of the water supply system.
[0073] Before completing the hydraulic calculation of the most unfavorable point of the water supply system, it is first necessary to calculate the longest combined path of the water supply system (that is, the path of the most unfavorable point of the water supply system). Before calculating the longest combined path of the water supply system, all combined paths of the water supply system must be calculated first. Before calculating all combined paths of the water supply system, all path connection lines of the water supply system must be calculated first. On the path of the water supply system, pipe fittings and pipe accessories (valves) divide the pipeline into multiple pipe sections, causing discontinuity of the pipeline. Therefore, it is necessary to calculate the connection lines of the paths where the pipe fittings and valves are located, and then integrate them with the connection lines of the paths where the pipe sections are located to form all path connection lines of the water supply system.
[0074] S1.1. Calculate valve connection line
[0075] like Figure 2As shown in the figure, based on the BIM model, all the pipe accessories (valves) elements in the Revit project are screened out and recorded as set U1. Then the valve elements in set U1 are classified and sorted according to the type of valve, and the result is recorded as set U2. Then the Revit API (application programming interface) interface is called by Python language, and the pipeline connectors are queried according to the ConnectorManager.Connectors method in the Revit API interface, so as to compile a Python program to calculate the pipeline connector corresponding to each valve in set U2, and the result is recorded as set U3. Then the placement point of each pipeline connector in set U3 is calculated, and the obtained point set is recorded as U4. Then the elements in point set U4 are grouped, and every two adjacent elements form a sublist. The two elements corresponding to each sublist are the placement points of the pipeline connectors at both ends of the corresponding valve, which are recorded as point set U5. Point set U5 is transposed to obtain point set U6, where point set U6 contains two sublists. Then, the first sublist in the point set U6 is obtained, and the obtained point set is recorded as U7, which is the placement point of the pipe connector at the starting end of each valve; then the second sublist in the point set U6 is obtained, and the obtained point set is recorded as U8, which is the placement point of the pipe connector at the end of each valve. Finally, the connection line between the placement point of the pipe connector at the starting end of each valve and the corresponding end end is calculated, which is recorded as set U9, which is the valve connection line.
[0076] In this embodiment, the placement point of the pipeline connector is the center of the connection interface between the valve and the pipe section, the pipe section and the pipe section, the pipe section and the pipe fitting, and the pipe fitting and the valve.
[0077] As a further example, use the Categories node to select the pipe accessories in the Revit project, and use the AllElements of Category node to filter out all the pipe accessories (valves) elements in the project, which are recorded as set U1. Use the FamilyInstance.GetFamily node to calculate the family type of each element in set U1, and then use the List.GroupByKey node to classify and sort the elements in set U1 according to the family type. Finally, use the List.Flatten node to downgrade the sorted list, and finally get set U2. Use the Python language to call the RevitAPI interface, and query the pipe connectors according to the ConnectorManager.Connectors method in the Revit API, so as to compile a Python program to calculate the pipe connector corresponding to each valve in set U2, and the result is recorded as set U3. Use the Connectors.Location node to calculate the placement point of each pipe connector in set U3, and the resulting point set is recorded as U4. Then use the List.Chop node to split the point set U4, and every two elements form a nested sublist. The final nested list is recorded as point set U5. Then use the List.Transpose node to transpose the point set U5, and the resulting point set is recorded as U6. Then use the List.FirstItem node to obtain the first sublist in the point set U6, and the resulting point set is recorded as U7. Then use the List.LastItem node to obtain the second sublist in the point set U6, and the resulting point set is recorded as U8. Finally, use the Line.ByStartPointEndPoint node to construct the valve connection line with each element in the point set U7 as the starting point of the valve connection line and each corresponding element in the corresponding point set U8 as the end point of the valve connection line. The resulting line segment set is recorded as set U9, which is the valve connection line.
[0078] S1.2. Calculate the connection lines of common pipe fittings (except reducers).
[0079] like Figure 3As shown in the figure, all the pipe fittings in the Revit project are filtered out and recorded as set M1. Then the pipe fittings in set M1 are classified and sorted according to the type of pipe fittings, and the result is recorded as set M2. The Revit API interface is called by Python language, and the pipe connectors are queried according to the ConnectorManager.Connectors method in the Revit API interface, so as to compile a Python program to calculate the pipe connectors corresponding to each pipe fitting in set M2, and the result is recorded as set M4. After querying the pipe fitting family type after classification and sorting, the pipe connectors belonging to the pipe fittings with the family type name "transition piece-general" are excluded from set M4, and set M6 is obtained. The number of pipe connectors contained in pipe fittings of different family types is different. For elbows, it contains 2 pipe connectors; for T-type tees, it has 3 pipe connectors; for crosses, it has 4 pipe connectors. Therefore, a Python program was compiled to divide the pipe connectors belonging to the same common pipe fitting in set M6 into a group according to the different numbers of pipe connectors contained in different types of pipe fittings. The final set was recorded as M7. Then the placement points of the pipe connector primitives belonging to each pipe fitting in set M7 were calculated, and after the dimensionality reduction processing of the list, the point set was recorded as M8.
[0080] Then, it is necessary to calculate the center placement point corresponding to each pipe fitting in the M7 set, and then calculate the connection lines between the center placement point of each pipe fitting and the placement points of each pipe connector of the pipe fitting in turn: calculate the center placement point of each pipe fitting to obtain the point set M9; then classify and sort the center placement points of the point set M9 according to the type of pipe fitting family to which they belong, and divide the center placement points of each family type of pipe fittings into a sublist, and finally record the result obtained after list dimensionality reduction as set M10; use Python nodes to compile a program to respectively list the elements of each sublist in the point set M10 The number of copies is the number of pipe connectors corresponding to the pipe fitting type to which the sublist belongs, and the point set M11 is obtained; then the elements of each sublist of the point set M11 are grouped, and the grouping step of each sublist is the number of pipe connectors corresponding to the pipe fitting type to which the sublist belongs. Finally, the result obtained after list dimensionality reduction is recorded as set M12; then the lines with the points in the point set M8 as the starting points and the points in the point set M12 as the corresponding end points are calculated, and the obtained line segment set is recorded as set M13, which is the connecting line of the pipe fittings (except the reducer).
[0081] As a further example, use the Categories node to select pipe fittings in the Revit project, and then use the AllElements of Category node to filter out all pipe fitting elements in the project, which are recorded as set M1. Use the FamilyInstance.GetFamily node to calculate the family type of each element in set M1, and then use the List.GroupByKey node to sort the elements in set M1 by family type. Finally, use the List.Flatten node to reduce the sorted list to a secondary list, and finally get set M2; at the same time, calculate the family type corresponding to each nested sublist in set M2, which is recorded as set M3. Use the Python language to call the Revit API interface, and query the pipe connector according to the ConnectorManager.Connectors method in the Revit API, so as to compile a Python program to calculate the pipe connector corresponding to each pipe fitting in set M2, and the result is recorded as set M4. Use the Family.Name node to output the name of each family type in set M3, and get set M5. Then use the List.IndexOf node to find the family type name "Transition piece - General" in the set M5, and then use the List.RemoveItemAtIndex node to exclude the pipe connectors of the pipe fittings with the family type name "Transition piece - General" in the set M4, and obtain the set M6. Then use the List.Chop node to group the elements of each sublist in the set M6; the grouping is determined by the type of the pipe fitting, and the Python node is used to compile a program to calculate the grouping step of the pipe fittings of different family types. If the family type of the sublist is "Elbow - General", then the sublist is divided into a group of every 2 elements (the step length is 2); if the family type of the sublist is "T-shaped Tee - General", then the sublist is divided into a group of every 3 elements (the step length is 3); if the family type of the sublist is "Cross - General", then the sublist is divided into a group of every 4 elements (the step length is 4); after the elements of each sublist in the set M6 are grouped, the obtained set is recorded as M7. Then use the Connectors.Location node to calculate the placement point of each pipe connector in the set M7, and then use the List.Flatten node to downgrade to a first-level list to obtain the point set M8. Use the Element.GetLocation node to calculate the center position point of each pipe element in the set M1 to obtain the point set M9.Using List.GroupByKey and FamilyInstance.GetFamily nodes, point set M9 is sorted by family type. The central position points of the pipe elements of the same family type form a sublist. Finally, List.Flatten node is used to downgrade to a secondary list to obtain point set M10. Python node is used to compile a program to copy the elements of each sublist in point set M10. The number of copies is the above grouping step corresponding to the family type to which the sublist belongs, and point set M11 is obtained. Then, List.Chop node is used to group the elements of each sublist of point set M11. The grouping step of each sublist is the above grouping step corresponding to the family type to which the sublist belongs. Then, List.Flatten node is used to downgrade the result to a primary list to obtain point set M12. Using Line.ByStartPointEndPoint node, a line segment is created with the point in point set M8 as the starting point and the point in point set M12 as the end point. The obtained line segment set is recorded as set M13, which is the connecting line of pipe fittings (except reducers).
[0082] S1.3. Calculate the reducer connection line.
[0083] like Figure 4 As shown, the reducer ("transition piece - conventional") has two pipe placement points, and they are on the same line, so the connection line between the two pipe placement points corresponding to each reducer is calculated, which is the reducer connection line: after querying the classified and sorted pipe fitting family types, the pipe connectors to which the pipe fittings with the family type name "transition piece - conventional" belong are selected from the set M4 to obtain the set E1; then the placement point of each pipe connector in the set E1 is calculated to obtain the point set E2; then every two elements in the point set E2 are divided into a group to obtain the point set E3 (the point set E3 is a secondary sublist, and the two elements of each sublist represent the placement points of the two pipe connectors to which the corresponding reducer fittings belong); then the list of the point set E3 is transposed to obtain the point set E4; then the two sublists in the point set E4 are calculated respectively to obtain the point set E5 and the point set E6 respectively; finally, the connection line with the point set E5 as the starting point and the point set E6 as the end point is calculated to obtain the line segment set E7, which is the reducer connection line.
[0084] As a further example, the List.IndexOf node is used to find the family type name "Transition piece - General" in the collection M5, and then the List.GetItemAtIndex node is used to filter out the pipe connectors to which the pipe fittings with the family type name "Transition piece - General" belong in the collection M4, and the collection E1 is obtained. The Connectors.Location node is used to calculate the placement points of the pipe connectors in the collection E1, and the obtained point set is recorded as E2. Then, the List.Chop node is used to divide every two elements in the collection E2 into a sublist, and the point set E3 is obtained. Then, the List.Transpose node is used to transpose the point set E3, and the obtained point set is recorded as E4. Then, the List.FirstItem node is used to extract the first sublist in the point set E4, and the obtained point set is recorded as E5. Then, the List.LastItem node is used to extract the second sublist in the point set E4, and the obtained point set is recorded as E6. Finally, the Line.ByStartPointEndPoint node is used to create a line with the point in the point set E5 as the starting point and the corresponding point in the point set E6 as the end point. The resulting line segment set is recorded as E7.
[0085] S1.4. Calculate the connecting lines of the pipe sections.
[0086] like Figure 5 As shown, a pipe segment element contains two pipe connector elements, and the connection line between the placement points corresponding to the two pipe connector elements is the corresponding pipe segment connection line. Therefore, the specific steps are as follows: filter out all pipe segment elements in the Revit project, recorded as set F1; then calculate the two pipe connector elements to which each pipe segment element in set F1 belongs, and obtain set F2; then calculate the placement point of each pipe connector element in set F2, and obtain point set F3; then transpose the list of point set F3 to obtain point set F4; then extract the two sublists in point set F4 respectively, and obtain point sets F5 and F6 respectively; finally, create a connection line with the point in point set F5 as the starting point and the point in point set F6 as the corresponding end point, and obtain the line segment set F7, which is the pipe segment connection line.
[0087] As a further example, use the Categories node to select the pipe segment in the Revit project, and then use the AllElements of Category node to filter out all the pipe segment elements in the project, recorded as set F1. Then use the Element.Connectors node to calculate the two pipe connector elements corresponding to each pipe segment element in set F1, and get set F2. Then use the Connectors.Location node to calculate the placement point of each pipe connector in set F2, and get point set F3. Then use the List.Transpose node to transpose the point set F3, and get point set F4. Then use the List.FirstItem node to calculate the first sublist in point set F4, and get point set F5. Then use the List.LastItem node to calculate the second sublist in point set F4, and get point set F6. Finally, use the Line.ByStartPointEndPoint node to calculate the line starting from point set F5 and ending at the corresponding point in point set F6, and get line segment set F7.
[0088] S1.5. Pretreatment of water supply system path connection lines.
[0089] Before calculating the longest combined path of the water supply system (calculating the path of the most unfavorable point of the water supply system), it is necessary to first calculate all the path connection lines of the water supply system: merge the valve connection line set U9, the pipe fitting (except reducer) connection line set M13, the reducer connection line set E7, and the pipe section connection line set F7 to obtain all the paths of the water supply system, and then after list dimensionality reduction processing, obtain the set G2.
[0090] Before calculating the longest combined path of the water supply system (calculating the path of the most unfavorable point of the water supply system), it is also necessary to select the path of the starting pipe section of the water pump to be calculated in the water supply system as the starting point based on all the path connecting lines of the water supply system, and remove the path of the pipe section from all the path connecting lines of the water supply system, as described below:
[0091] The water supply system is equipped with a backup pump, so the water supply system has multiple starting pipe sections. Therefore, it is necessary to first select the starting pipe section corresponding to the water pump to be calculated, and then remove the path where the pipe section is located from all the path connection lines of the water supply system: select the starting pipe section element G3 of the water pump in the water supply pipeline system in the Revit project; calculate the center line G4 of the pipe section element G3; then calculate the intersection of the center line G4 and all the path connection lines in the set G2. There are three types of intersections: "empty set", "point", and "line". If the intersection result is "empty set", it means that the center line G4 is not adjacent to the path. If the intersection result is "point", it means that the center line G4 is adjacent to the path. If the intersection result is "line", it means that the center line G4 is the path.
[0092] First exclude the path corresponding to the "point" result from the intersection result, then exclude the path corresponding to the "empty set" result from the intersection result, and finally find the path corresponding to the "line" result; finally exclude it from set G2 to obtain set G9.
[0093] As a further example, the List Create node is used to merge the segments of the segment set U9, the segment set M13, the segment set E7, and the segment set F7 into a list to obtain the set G1. Then, the List.Flatten node is used to perform list dimensionality reduction processing on the set G1 to obtain the segment set G2.
[0094] Use the Select Model Element node to select the starting pipe segment of the water pump in the water supply system in the Revit project, and record it as pipe segment G3. Then use the Element.GetLocation node to calculate the center line of pipe segment G3 to obtain line segment G4. Use the Geometry.Intersect node to calculate the intersection of line segment G4 and each line segment in the line segment G2 set, and the resulting set is recorded as G5. Then use the String from Object node to calculate the name of each intersection in set G5 to obtain the intersection name set G6. Then use the String.Contains node to calculate whether each intersection name in set G6 contains the "line" field. For the intersection names that do not contain the "line" field, use the List.FilterByBoolMask node to clear the elements corresponding to the intersection name in set G5 to an empty set, and obtain set G7. Then use the List.IsEmpty node to calculate whether each list element in set G7 is an empty set, and then use the List.IndexOf node to calculate the list index corresponding to the element in G7 that is not an empty set, recorded as index G8. Then use the List.RemoveItemAtIndex node to remove the element with index G8 from the line segment set G2, and obtain the line segment set G9.
[0095] S2. Calculate the longest combined path of the water supply system (calculate the path of the most unfavorable point of the water supply system).
[0096] like Figure 6 to Figure 7As shown in the figure, first find all the combined paths from all the path connecting lines of the preprocessed water supply system, then exclude the combined paths that form loops, and finally find the longest one from the remaining combined paths: use Python nodes to compile a program, and according to the recursive and iterative methods, calculate all the combined paths in the water supply system in the line segment set G9 to obtain the set M1; then calculate the last segment of each combined path, and calculate the intersection of the path and the line segment set G9. There are two cases for the intersection results: one is that the intersection geometric primitive is a line segment, a point, and the rest is an empty set, with a total of two intersections; the other is that the intersection geometric primitive is one There are three intersections: line segments, two points, and the rest is an empty set; the first case represents that the last segment of the combined path does not form a loop, and the second case represents that the last segment of the combined path forms a loop; then the combined paths that do not form a loop are screened out to obtain set M5; then set M5 is downgraded to a list, and the resulting secondary list is recorded as set M6; then a program is compiled using Python nodes to calculate the sum of the lengths of the line segments contained in each sublist in set M6, and the sublist with the largest sum of the lengths of the line segments contained in the sublist is calculated; finally, the line segments contained in the sublist are combined into polylines, recorded as polyline M7.
[0097] As a further example, a program is compiled using Python nodes. According to the recursive and iterative methods, all combined paths in the water supply system are calculated in the line segment set G9 to obtain a set M1. Then the List.LastItem node is used to calculate the last path in each combined path in the set M1 to obtain a set M2. Then the Geometry.Intersect node is used to calculate the intersection of each element in the set M2 and each element in the line segment set G9, and the obtained intersection result is recorded as a set M3. Then the List.IsEmpty node is used to calculate whether the intersection result in the set M3 is an empty set, and the obtained Boolean value set is recorded as M4. Then the List.CountFalse node is used to calculate the number of Boolean values of "false" contained in each sublist in the set M4. If the number of Boolean values of "false" contained in the sublist is 2, then the List.FilterByBoolMask node is used to filter out the elements in the set M1 corresponding to the sublist to obtain a set M5. Then the List.Flatten node is used to downgrade the set M5 to a list, and the obtained secondary list is recorded as a set M6. Then, a program is compiled using Python nodes to calculate the total length of the line segments contained in each sublist in the set M6, and the sublist with the largest total length of the line segments contained in the sublist is calculated. Finally, the PolyCurve.ByJoinedCurves node is used to combine the line segments contained in the sublist into a polyline, which is recorded as polyline M7.
[0098] S3. Calculation and selection of water pumps (hydraulic calculation at the most unfavorable point in the water supply system).
[0099] According to the longest combined path of the water supply system, find the pipe accessories (valves) and pipe fittings on the combined path, and calculate the local hydraulic loss on the longest combined path according to the hydraulic calculation formula; according to the longest combined path of the water supply system, find the pipe sections on the combined path, and calculate the hydraulic loss along the longest combined path according to the hydraulic calculation formula; calculate the static head of the water pump; sum the calculated values of local hydraulic loss, hydraulic loss along the path, and static head of the water pump to obtain the design head of the water pump and assign it to the water pump graphic element.
[0100] S3.1. Calculate the local hydraulic losses along the longest combined path of the water supply system.
[0101] To calculate the local hydraulic loss on the longest combined path of the water supply system, we must first find the valves and pipe fittings on the longest combined path. If the placement points of some valve and pipe fitting instance families in the project intersect with the longest combined path, it means that these valve and pipe fitting instance families are on the longest combined path; if the placement points of some valve and pipe fitting instance families in the project do not intersect with the longest combined path, it means that these valve and pipe fitting instance families are not on the longest combined path. Therefore, select the valve family instances and pipe fitting family instances whose placement points of the valve instance family and the pipe fitting instance family intersect with the longest combined path. Then calculate the type parameter of these valve family instances and pipe fitting family instances - "nominal diameter" respectively; calculate the family categories of these valve family instances and pipe fitting family instances respectively; then calculate the loss coefficients of valves (pipe fittings) of different family categories under different pipe diameters according to the pre-made valve (pipe fitting) local loss coefficient EXCEL table; finally, bring the loss coefficient into the hydraulic calculation formula to obtain the local hydraulic loss on the longest combined path of the water supply system.
[0102] As a further example, the Element.GetLocation node is used to calculate the placement points of the pipe fittings (valves) graphics in the set U1, which is recorded as the point set Q1. Then the Geometry.DoesIntersect node is used to calculate whether each placement point in the point set Q1 intersects with the polyline M7, and the resulting Boolean value set is recorded as the set Q2. Then the List.FilterByBoolMask node is used to filter out the elements of the set U1 corresponding to the Boolean value of "true" in the set Q2, and the resulting graphics set is recorded as Q3. Then the Element.ElementType node is used to calculate the family type to which each graphics element in the set Q3 belongs, and the resulting set is recorded as Q4. Then the Element.GetParameterValueByName node is used to calculate the "nominal diameter" parameter of each family type in the set Q4, and the resulting parameter value set is recorded as Q5. The FamilyInstance.GetFamily node is used to calculate the family category of each graphics element in the set Q3, and the resulting set is recorded as Q6. According to the pre-made EXCEL table of valve local loss coefficients, the table data is imported using the Data.ImportExcel node to calculate the loss coefficients of valves of different families in set Q6 under different pipe diameters in set Q5, and obtain the loss coefficient set Q7. Finally, the Code Block node is used to directly edit the calculation formula, and the loss coefficient in set Q7 is used as a variable for calculation to obtain the local hydraulic loss values of all valves on the longest combined path.
[0103] The calculation method of the local hydraulic loss value of pipe fittings (including reducers) is the same as that of the local hydraulic loss value of the above valves. Finally, the local hydraulic loss values of all pipe fittings (except reducers) and all reducers are obtained respectively.
[0104] S3.2. Calculate the hydraulic losses along the longest combined path of the water supply system.
[0105] To calculate the hydraulic loss along the longest combined path of the water supply system, we must first find the pipe segments on the longest combined path. If the center lines of some pipe segments in the project intersect with the longest combined path, it means that these pipe segments are on the longest combined path. Therefore, select the pipe segments whose center lines intersect with the longest combined path. Then calculate the instance parameters of these pipe segments - "inner diameter"; calculate the instance parameters of these pipe segments - "length". Finally, bring the "inner diameter" value and "length" value corresponding to the pipe segment on the longest combined path into the hydraulic calculation formula to obtain the hydraulic loss along the longest combined path.
[0106] As a further example, use the Categories node to select the pipe segments in the Revit project, and then use the AllElements of Category node to filter out all the pipe segment entities in the project, which are recorded as set N1. Then use the Element.GetLocation node to calculate the center line of each pipe segment in set N1, and obtain the line segment set N2. Then use the Geometry.Intersect node to calculate whether the line segment in set N2 intersects with the polyline M7, and the obtained intersection result set is recorded as N3. Then use the List.IsEmpty node to calculate whether each intersection result in set N3 is an empty set, and the obtained Boolean value set is recorded as N4. Then use the List.FilterByBoolMask node to filter out the pipe segment entities in set N1 corresponding to the Boolean value of "false" in set N4, and the obtained pipe segment entity set is recorded as N5. Then use the Element.GetParameterValueByName node to calculate the "inner diameter" parameter of each pipe segment entity in set N5, and the obtained parameter set is recorded as N6. Then use the Element.GetParameterValueByName node to calculate the "length" parameter of each pipe segment in set N5, and the obtained parameter set is recorded as N7. Finally, use the Code Block node to directly edit the hydraulic calculation formula, and bring in the "inner diameter" value of each pipe segment in set N6 and the "length" value of each pipe segment corresponding to set N7 to calculate the hydraulic loss value along the longest combined path.
[0107] S3.3. Calculate the static head of the pump.
[0108] The static head of the water pump is equal to the elevation of the end point of the water supply system minus the elevation of the lowest liquid level of the water pump. Therefore, the terminal pipe segment primitive on the longest combined path of the water supply system can be found, thereby calculating the elevation of the end point of the water supply system, and finally calculating the static head. The specific method is as follows: first find the path segment of the terminal pipe segment primitive on the longest combined path of the water supply system, that is, find the sublist with the maximum sum of segment lengths in the set M6, and then calculate the last segment element in the sublist to obtain segment P1; then calculate the center line of each pipe segment primitive in the set F1 to obtain the center line set P2; then Find the center line of the straight line whose intersection with line segment P1 is found in set P2, and then find the pipe segment element P6 corresponding to the center line in set F1, which is the end point pipe segment element on the longest combined path; then calculate the elevation value P8 of the reference elevation of the pipe segment element P6; then calculate the parameter value P9 of the "offset" of the pipe segment element P6; then calculate the sum P10 of the elevation value P8 and the offset parameter value P9; finally, use the lowest liquid level elevation value of the pump as the input condition, and calculate the difference P11 between the value P10 and the lowest liquid level elevation value of the pump, which is the static head of the pump.
[0109] As a further example, the List.LastItem node is used to select the last line segment element in the sublist whose total line segment length is the maximum value in the set M6, which is recorded as line segment P1. Then the Element.GetLocation node is used to calculate the center line of each pipe segment primitive in the set F1, and the obtained center line set is recorded as P2. Then the Geometry.Intersect node is used to calculate the intersection result of the line segment P1 and each center line in the set P2, and the obtained intersection result set is recorded as P3. Then the String.Contains node and the String from Object node are used to calculate whether each intersection result in the set P3 is a straight line type, and the obtained Boolean value set is recorded as P4. Then the List.IndexOf node is used to calculate the sequence number of the Boolean value "true" in the set P4, which is recorded as sequence number P5. Then the List.GetItemAtIndex node is used to extract the pipe segment primitive corresponding to sequence number P5 in the set F1, which is recorded as pipe segment primitive P6. Then the Element.GetParameterValueByName node is used to calculate the reference elevation where the pipe segment primitive P6 is located, which is recorded as reference elevation P7. Then use the Level.Elevation node to calculate the elevation value of the reference elevation P7, recorded as the elevation value P8. Then use the Element.GetParameterValueByName node to calculate the parameter value of the "offset" of the pipe segment element P6, recorded as P9. Finally, use the summation operation node to calculate the sum of the elevation value P8 and the offset parameter value P9, recorded as P10. Finally, use the minimum liquid level elevation value of the water pump as the input condition, and use the subtraction operation node to calculate the difference between the value P10 and the minimum liquid level elevation value of the water pump, recorded as P11.
[0110] S3.4. Calculate the design head of the water pump and assign a value.
[0111] Calculate the sum of the local hydraulic loss values of all valves on the longest combined path, all pipe fittings (except reducers), the local hydraulic loss values of all reducers, the hydraulic loss values along the path, and the static head of the pump to obtain the design head of the pump selection, and then assign it to the corresponding pump graphic element.
[0112] As a further example, the sum of the local hydraulic loss values of all valves on the longest combined path, all pipe fittings (except reducers), the local hydraulic loss values of all reducers, the hydraulic loss values along the path, and the static head of the pump is calculated using the sum node to obtain the design head of the pump selection. Then, the Element.SetParameterByName node is used to assign the value of the design head to the corresponding pump element.
[0113] S4. Prepare the calculation form and output the calculation process.
[0114] Edit the hydraulic calculation process, including the local hydraulic loss calculation process on the longest combined path, the loss calculation process along the path, the pump static head calculation process, and the pump design head calculation process. The calculation process is output in character format and the process template is finally obtained. Then write the edited process template into an Excel table and output it.
[0115] As a further example, the Code Block node is used to edit the hydraulic calculation process, including the local hydraulic loss calculation process on the longest combined path, the loss calculation process along the path, the pump static head calculation process, and the pump design head calculation process. The calculation process is output in character format to finally obtain a process template. Then the Data.ExportExcel node is used to write the edited process template into an Excel table and output it.
[0116] Therefore, the embodiment of the present invention, while additionally considering the design of the ring water supply system, automatically completes the hydraulic calculation of the most unfavorable point of the water supply system through methods such as the Dynamo visualization program, the program compiled in the Python language, and the Python language calling the Revit API interface, thereby realizing the automatic hydraulic calculation and selection of the water pump in the BIM model and outputting the calculation book that meets the design requirements.
[0117] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A water pump hydraulic calculation method based on BIM, characterized in that: include: Obtain the target BIM model; The target BIM model is used to represent the building information model of the water supply system to which the water pump to be hydraulically calculated belongs; Based on the target BIM model, calculate valve connection lines, common pipe connection lines, reducer connection lines, and pipe segment connection lines to obtain all path connections in the water supply system, including: Based on the target BIM model, determine the placement points corresponding to the pipe connectors corresponding to the valves, and obtain the valve connection lines according to the placement points corresponding to the pipe connectors corresponding to the valves; based on the target BIM model, determine the center placement points corresponding to ordinary pipe fittings and the placement points corresponding to the pipe connectors corresponding to ordinary pipe fittings, and obtain the ordinary pipe fitting connection lines according to the center placement points corresponding to ordinary pipe fittings and the placement points corresponding to the pipe connectors corresponding to ordinary pipe fittings; determine the placement points corresponding to the pipe connectors corresponding to the reducers, and obtain the reducer connection lines according to the placement points corresponding to the pipe connectors corresponding to the reducers; based on the target BIM model, determine the placement points corresponding to the pipe connectors corresponding to the pipe sections, and obtain the pipe section connection lines according to the placement points corresponding to the pipe connectors corresponding to the pipe sections; merge the valve connection lines, ordinary pipe fitting connection lines, reducer connection lines and pipe section connection lines to obtain all path connections in the water supply system; wherein ordinary pipe fittings are used to characterize other pipe fittings except reducers; Based on all the path connections in the water supply system, all the combined paths in the water supply system are calculated, and the longest combined path is determined from all the combined paths; wherein the combined paths do not include paths that form loops; Based on the longest combined path in the water supply system, hydraulic calculation of the most unfavorable point in the water supply system is performed to obtain a hydraulic calculation result.
2. The BIM-based water pump hydraulic calculation method according to claim 1, characterized in that: Also includes: Editing the hydraulic calculation process, and outputting the hydraulic calculation process in a character format, and finally obtaining a process template; Write the obtained process template into an Excel table and output it.
3. The BIM-based water pump hydraulic calculation method according to claim 1 is characterized in that: Based on the target BIM model, the placement point corresponding to the pipe connector corresponding to the valve is determined, and the valve connection line is obtained according to the placement point corresponding to the pipe connector corresponding to the valve, including: Based on the target BIM model, all valve graphics are screened out and recorded as set U1; The valve graphics elements in the set U1 are classified and sorted according to the valve types, and the obtained results are recorded as the set U2; Obtain the pipe connector corresponding to each valve in set U2, and the obtained result is recorded as set U3; Obtain the placement point of each pipe connector in the set U3, and the obtained point set is recorded as U4; The elements in the point set U4 are grouped, and each two adjacent elements form a sublist. The two elements corresponding to each sublist are the placement points of the pipe connectors at both ends of the corresponding valve, which are recorded as point set U5; Taking each sublist in the point set U5 as an object, the connection line between the placement point of the starting end pipe connector and the placement point of the terminal end pipe connector corresponding to each valve is calculated to obtain the valve connection line set U9.
4. The BIM-based water pump hydraulic calculation method according to claim 1, characterized in that: Based on the target BIM model, the center placement point corresponding to the common pipe fitting and the placement point corresponding to the pipe connector corresponding to the common pipe fitting are determined, and the common pipe fitting connection line is obtained according to the center placement point corresponding to the common pipe fitting and the placement point corresponding to the pipe connector corresponding to the common pipe fitting, including: Based on the target BIM model, all pipe fittings are screened out and recorded as a set M1; The pipe fittings in set M1 are classified and sorted according to the type of pipe fittings, and the result is recorded as set M2; Obtain the pipe connectors corresponding to all pipe fittings under each pipe fitting type in set M2, and the obtained result is recorded as set M4; After querying the classified and sorted pipe fitting family types, the pipe connectors corresponding to the reducer pipe fittings are excluded from the set M4 to obtain the set M6; wherein the pipe fitting family types include elbow pipe fittings, reducer pipe fittings, T-type three-way pipe fittings and four-way pipe fittings; the number of pipe connectors contained in pipe fittings of different family types is different, the elbow pipe fittings contain 2 pipe connectors; the T-type three-way pipe fittings contain 3 pipe connectors; the four-way pipe fittings contain 4 pipe connectors; According to the characteristics of different numbers of pipe connectors contained in different types of pipe fittings, the pipe connectors belonging to the same common pipe fitting in the set M6 are divided into a group, and the final set is recorded as M7; Obtain the placement points of the pipe connectors to which each common pipe fitting belongs in the set M7, and after the dimensionality reduction process of the list, obtain a point set recorded as M8; Obtain the center placement point of each common pipe fitting to obtain a point set M9; wherein the center placement point of the pipe fitting is the intersection point of the normal lines corresponding to the center points of all the connection interface circles of the common pipe fitting; Taking each common pipe fitting as an object, the connection lines between the corresponding common pipe fitting center placement point in the point set M9 and the placement points of each pipeline connector of the corresponding common pipe fitting in the set M8 are calculated respectively to obtain the common pipe fitting connection line set M13.
5. The BIM-based water pump hydraulic calculation method according to claim 4 is characterized in that: Determining the placement point corresponding to the pipe connector corresponding to the reducer, and obtaining the reducer connection line according to the placement point corresponding to the pipe connector corresponding to the reducer, including: After querying the classified and sorted pipe fitting family types, the pipe connectors to which the reducer pipe fittings belong are selected from the set M4 to obtain the set E1; Get the placement point of each pipe connector in set E1 to obtain point set E2; Divide every two elements in the point set E2 into a group to obtain a point set E3; wherein the point set E3 is a secondary sublist, and the two elements of each sublist represent the placement points of the two pipe connectors to which the corresponding diameter-changing pipe fitting belongs; Taking each sublist in the point set E3 as an object, the connection lines between the placement points of the two pipe connectors to which each reducer belongs are calculated to obtain the reducer connection line set E7.
6. The water pump hydraulic calculation method based on BIM according to claim 1 is characterized in that: Based on the target BIM model, the placement points corresponding to the pipe connectors corresponding to the pipe segments are determined, and the pipe segment connection lines are obtained according to the placement points corresponding to the pipe connectors corresponding to the pipe segments, including: Based on the target BIM model, all pipe segment elements are screened out and recorded as a set F1; Get the two pipe connectors to which each pipe segment primitive in set F1 belongs, and obtain set F2; Obtain the placement point of each pipe connector primitive in the set F2 to obtain a point set F3; Each pipe segment primitive is taken as an object, and the connection lines between the placement points corresponding to the two pipe connectors corresponding to each pipe segment primitive are respectively calculated according to the point set F3 to obtain the pipe segment connection line set F7.
7. The water pump hydraulic calculation method based on BIM according to claim 1 is characterized in that: Based on the longest combined path in the water supply system, hydraulic calculation of the most unfavorable point of the water supply system is performed to obtain hydraulic calculation results, including: According to the longest combined path of the water supply system, the target valve and the target pipe fitting on the longest combined path are found, and based on the target valve and the target pipe fitting, the local hydraulic loss on the longest combined path is calculated according to the hydraulic calculation formula; According to the longest combined path of the water supply system, the target pipe section on the longest combined path is found, and the hydraulic loss along the longest combined path is calculated based on the target pipe section and according to the hydraulic calculation formula; Get the static head of the water pump; The calculated values of local hydraulic loss, hydraulic loss along the way and static head of the pump are summed to obtain the hydraulic calculation result of the pump.
8. The BIM-based water pump hydraulic calculation method according to claim 7 is characterized in that: According to the longest combined path of the water supply system, the target valve and the target pipe fitting on the longest combined path are found, and the local hydraulic loss on the longest combined path is calculated based on the target valve and the target pipe fitting according to the hydraulic calculation formula, including: According to the longest combined path of the water supply system, find the target valve and target pipe fitting on the longest combined path; Obtain the pipe diameters corresponding to the target valve and the target pipe fitting respectively; wherein the pipe diameter is used to represent the nominal diameter; Obtain the family categories corresponding to the target valve and the target pipe fitting respectively; According to the pre-made local loss coefficient EXCEL table, calculate the loss coefficients of target valves and target pipe fittings of different families under different pipe diameters; Input the loss coefficient into the hydraulic calculation formula to obtain the local hydraulic loss of the water supply system on the longest combined path.
9. The BIM-based water pump hydraulic calculation method according to claim 8, characterized in that: According to the longest combined path of the water supply system, find the target pipe section on the longest combined path, and calculate the hydraulic loss along the longest combined path based on the target pipe section and the hydraulic calculation formula, including: According to the longest combined path of the water supply system, find the target pipe section on the longest combined path; Get the inner diameter and length of the target pipe segment; The inner diameter and length corresponding to the target pipe section on the longest combined path are input into the hydraulic calculation formula to obtain the hydraulic loss along the longest combined path.
