Method and device for creating horizontal same-pass pipe section route of air conditioner water system
By creating end equipment elements in the air-conditioning water system and updating the parameter information of the branch pipe section and the main pipe section in real time, the problem of difficult parameter information in traditional design is solved, the design efficiency is improved and the maximum resistance loop is automatically detected.
Patent Information
- Application Number
- CN202411292646.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2024-12-31
AI Technical Summary
In the design of horizontal and synchronous pipe sections of traditional air-conditioning water systems, it is difficult for software to directly assign pipe section parameter information while drawing pipe sections, resulting in inconvenience to designers.
By creating end device elements and recording their interface coordinates, device number and flow information, the parameter information of branch pipe sections and main pipe sections is updated in real time as the pipe section draw process, including recommended pipe diameters and water resistance, and automatically calculate and highlight the system The largest resistance loop.
It improves the work efficiency of designers, realizes real-time update of pipe segment parameter information and automatic detection and display of maximum resistance loops, simplifying the design process.
Smart Images

Figure CN119227284A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of air conditioning water system design, and more specifically, to a method and device for creating horizontal same-length pipe segment routing for an air conditioning water system. Background Art
[0002] In the design process of horizontal pipe segments of traditional air-conditioning water systems, the pipe segments drawn by most software often do not come with parameter information. Although some software has the relevant functions of adding parameter information to pipe segments, there are many pre-conditions for use, and it is not possible to directly assign the corresponding parameter information (such as pipe segment flow, pipe segment water resistance, equipment number information of terminal equipment, etc.) to the corresponding pipe segment during the water pipe drawing process, which brings inconvenience to the work of designers. Summary of the invention
[0003] The purpose of this application is to provide a method and device for creating horizontal same-length pipe segment routing for an air-conditioning water system, so as to update corresponding parameter information in real time during the pipe segment drawing process, thereby improving the work efficiency of designers.
[0004] In a first aspect of the present application, a method for creating a horizontal same-length pipe segment route for an air conditioning water system is provided, the method comprising:
[0005] Create a terminal device graphic element of the air conditioning water system; wherein the terminal device graphic element carries the interface coordinate information, device number information and flow information of the corresponding terminal device;
[0006] Taking the interface coordinate information of the terminal device element as the starting point, multiple branch pipe segment elements connected to the terminal device element are created; wherein the branch pipe segment element carries the starting point coordinate information and the end point coordinate information of the corresponding branch pipe segment;
[0007] When it is detected that the starting point coordinate information of the branch pipe segment element is consistent with the interface coordinate information of a terminal device element, the flow information and device number information of the terminal device are transmitted to the branch pipe segment element, and the first configuration parameter of the branch pipe segment element is calculated according to the flow information to complete the routing and information creation of all branch pipe segment elements; wherein the first configuration parameter includes the recommended pipe diameter and water resistance of the branch pipe segment.
[0008] In one implementation, after completing the routing and information creation of all branch segment graphics elements, the method further includes:
[0009] Based on the coordinate information of the end point of the branch pipe section and the coordinate information of the water pipe riser, the relative distance relationship between the branch pipe section and the water pipe riser is determined, and multiple main pipe section elements connected to the branch pipe section element are created in sequence from far to near based on the relative distance relationship; wherein the starting point coordinates of any one of the multiple main pipe section elements can be connected to the ending point coordinates of one to three branch pipe section elements or the remaining main pipe section elements, and the main pipe section element carries the starting point coordinate information and the ending point coordinate information of the main pipe section.
[0010] In one implementation, the method further includes:
[0011] A first flow information set and a first equipment number information set are respectively created, the initial contents of which are empty; wherein the first flow information set is used for the subsequent temporary storage of pipe segment flow information, and the first equipment number information set is used for the subsequent temporary storage of pipe segment burden equipment number information;
[0012] Traverse the end point coordinate information of all branch pipe segments and the created main pipe segment graphics;
[0013] Determine whether the end point coordinate information of the branch / main section element is consistent with the start point coordinate information of the newly created main section element. If consistent, add the device number information and flow information carried by the corresponding branch / main section element to the first device number information set and the first flow information set to obtain the second device number information set and the second flow information set;
[0014] Calculate the flow information in the second flow information set to obtain the total flow information;
[0015] Removing the overlapping device number information in the second device number information set to obtain a second device number information set after removing the duplicates;
[0016] The total flow information and the device number information of the second device number information set after deduplication are added to the newly created main pipe section element, and the second configuration parameters of the main pipe section element are calculated based on the total flow information to complete the routing and information creation of all main pipe section elements; wherein the second configuration parameters include the recommended pipe diameter and pipe section water resistance of the main pipe section.
[0017] In one implementation, after completing the routing and information creation of all the principal segment primitives, the method further includes:
[0018] Creating an empty first set for each terminal device primitive, and naming the first set with the device number information corresponding to each terminal device primitive, to obtain a plurality of renamed first sets;
[0019] According to the correspondence between the equipment number information carried by the branch pipe segment graphics element and the main pipe segment graphics element and the name of the renamed first set, the pipe segment water resistance information of the branch pipe segment graphics element and the main pipe segment graphics element is added to the corresponding renamed first set, so as to obtain a plurality of second sets carrying the pipe segment water resistance information of the branch pipe segment graphics element and the main pipe segment graphics element; wherein the name of the second set is the terminal equipment number;
[0020] Sum up the water resistance of each pipe section of the second set to obtain the total water resistance of the pipe section corresponding to each terminal device, replace the original set name of the second set with the total water resistance of the pipe section corresponding to each terminal device, and store the water resistance value in the newly created third set;
[0021] The maximum value in the third set is determined, and based on the correspondence between the maximum value and all the renamed second set names, the corresponding second set is traced back to highlight the branch pipe segment graphics and the main pipe segment graphics in the second set corresponding to the maximum value in the third set. The highlighted pipe segment combination is the loop pipe segment with the largest water resistance in the horizontal same-length pipe segment route of the air-conditioning water system.
[0022] In a second aspect of the present application, a device for creating a horizontal same-length pipe segment route for an air conditioning water system is provided, the device comprising:
[0023] The terminal device primitive creation module is used to create the terminal device primitive of the air conditioning water system, which carries the interface coordinate information, device number information and flow information of the corresponding terminal device;
[0024] The branch pipe segment primitive routing creation module is used to create multiple branch pipe segment primitives connected to the terminal device primitive using the interface coordinate information of the terminal device primitive as the starting point; wherein the branch pipe segment primitive carries the starting point coordinate information and the end point coordinate information of the corresponding branch pipe segment;
[0025] The branch pipe segment element information transmission module is used to transmit the flow information and device number information of the terminal device to the branch pipe segment element when it is detected that the starting point coordinate information of the branch pipe segment element is consistent with the interface coordinate information of a terminal device element, and calculate the first configuration parameter of the branch pipe segment element according to the flow information to complete the routing and information creation of all branch pipe segment elements; wherein the first configuration parameter includes the recommended pipe diameter and pipe segment water resistance of the branch pipe segment.
[0026] In one implementation, the device further includes:
[0027] The main pipe segment element routing creation module is used to determine the relative distance relationship between the branch pipe segment and the water pipe riser based on the end point coordinate information of the branch pipe segment and the coordinate information of the water pipe riser, and to create multiple main pipe segment elements connected to the branch / main pipe segment elements in sequence from far to near based on the relative distance relationship; wherein the starting point coordinates of any one of the multiple main pipe segment elements can be connected to the end point coordinates of one to three branch pipe segment elements or the remaining main pipe segment elements, and the main pipe segment element carries the starting point coordinate information and the end point coordinate information of the main pipe segment.
[0028] In one implementation, the device further includes:
[0029] The main pipe segment element information transmission module is used to create a first flow information set and a first equipment number information set with empty initial content respectively; the first flow information set is used for the subsequent temporary storage of pipe segment flow information, and the first equipment number information set is used for the subsequent temporary storage of pipe segment burden equipment number information; traverse the end point coordinate information of all branch pipe segments and the created main pipe segment elements; determine whether the end point coordinate information of the branch / main pipe segment element is consistent with the starting point coordinate information of the newly created main pipe segment element, and if consistent, add the equipment number information and flow information carried by the corresponding branch / main pipe segment element to the first equipment number information set and the first flow information set to obtain a second device number information set and a second flow information set; calculate and obtain the flow information in the second flow information set to obtain the total flow information; remove the overlapping device number information in the second device number information set to obtain the de-duplicated second device number information set; add the total flow information and the device number information of the de-duplicated second device number information set to the newly created main pipe segment primitive, and calculate the second configuration parameter of the main pipe segment primitive based on the total flow information to complete the routing and information creation of all main pipe segment primitives; wherein the second configuration parameter includes the recommended pipe diameter and pipe segment water resistance of the main pipe segment.
[0030] In one implementation, the device further includes:
[0031] The maximum resistance loop pipe segment determination module is used to create a first set with empty initial content for each terminal device graphic element, and name the first set with the device number information corresponding to each terminal device graphic element, to obtain multiple renamed first sets; according to the correspondence between the device number information carried by the branch pipe segment graphic element and the main pipe segment graphic element and the name of the renamed first set, the pipe segment water resistance information of the branch pipe segment graphic element and the main pipe segment graphic element is added to the corresponding renamed first set, to obtain multiple second sets carrying the pipe segment water resistance information of the branch pipe segment graphic element and the main pipe segment graphic element; wherein the name of the second set is the terminal device graphic element. equipment number; sum up the water resistance of each pipe segment of the second set to obtain the total water resistance of the pipe segment corresponding to each terminal device, replace the original set name of the second set with the total water resistance of the pipe segment corresponding to each terminal device, and store the water resistance value in the newly created third set; determine the maximum value in the third set, and trace back to the corresponding second set based on the correspondence between the maximum value and all the renamed second set names, and highlight the branch pipe segment graphics and main pipe segment graphics in the second set corresponding to the maximum value in the third set. The highlighted pipe segment combination is the loop pipe segment with the largest water resistance in the horizontal same-course pipe segment route of the air-conditioning water system.
[0032] The third aspect of the present application provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of a method for creating horizontal same-length pipe segment routing for an air-conditioning water system as provided in the first aspect of the present application are implemented.
[0033] The fourth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of a method for creating horizontal same-length pipe segment routing for an air-conditioning water system as provided in the first aspect of the present application are implemented.
[0034] Compared with the prior art, this application has the following beneficial effects:
[0035] 1. In a method for creating horizontal same-course pipe segment routing for an air-conditioning water system provided in the present application, first, a terminal device primitive is created, and the interface coordinate information, device number information and flow information of the terminal device are recorded on each primitive; secondly, multiple branch pipe segment primitives connected to the primitive are created with the interface coordinates of the terminal device primitive as the starting point, and the starting point coordinate information and the end point coordinate information of the branch pipe segment primitive are recorded on each branch pipe segment primitive; the coordinate information of the terminal device primitive and the branch pipe segment primitive is combined to determine whether the branch pipe segment is connected to the terminal device, that is, whether the starting point coordinate information of a branch pipe segment primitive is consistent with the interface coordinate information of a terminal device primitive; if consistent, the flow information and device number information of the terminal device are transmitted to the corresponding branch pipe segment primitive, and the first configuration parameters of the branch pipe segment primitive (including the recommended pipe diameter and pipe segment water resistance of the branch pipe segment) are calculated according to the flow information, and the creation of all branch pipe segment primitives is completed in the same way. Correspondingly, these branch pipe sections automatically carry relevant information such as flow rate, water resistance, and the element number of the terminal equipment they bear. Therefore, the corresponding parameter information can be directly assigned to the corresponding pipe sections during the water pipe drawing process, thereby improving the efficiency of designers.
[0036] 2. In a method for creating horizontal same-length pipe segment routing for an air-conditioning water system provided in the present application, after the branch segment graphic element and the main segment graphic element are created, the maximum resistance loop of the air-conditioning water system can be automatically calculated and the pipeline route can be automatically displayed based on the parameter information configured by the branch segment graphic element and the main segment graphic element themselves, so as to guide the subsequent design work of the designers. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The drawings described herein are used to provide a further understanding of the embodiments of the present application, constitute a part of the present application, and do not constitute a limitation on the embodiments of the present application. In the drawings:
[0038] Figure 1 A first flow chart of a method for creating horizontal same-length pipe segment routing for an air-conditioning water system provided in an embodiment of the present application;
[0039] Figure 2 A second flow chart of a method for creating horizontal same-length pipe segment routing for an air-conditioning water system provided in an embodiment of the present application;
[0040] Figure 3 A third flow chart of a method for creating horizontal same-length pipe segment routing for an air-conditioning water system provided in an embodiment of the present application;
[0041] Figure 4 A functional block diagram of a device for creating horizontal same-length pipe segment routing for an air-conditioning water system provided in an embodiment of the present application;
[0042] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with examples and drawings. The illustrative implementation scheme of the present application and its description are only used to explain the present application and are not intended to limit the present application.
[0044] It should be noted that the terms "include" or "may include" used in various embodiments of the present application indicate the presence of the function, operation or element applied for, and do not limit the addition of one or more functions, operations or elements. In addition, as used in various embodiments of the present application, the terms "include", "have" and their cognates are only intended to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the presence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or the possibility of adding one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items.
[0045] It should be understood that terms such as "first", "second", and "third" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, a feature defined as "first", "second", and "third" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0046] Please refer to Figure 1 , Figure 1 A first flow chart of a method for creating a horizontal same-length pipe segment route for an air conditioning water system provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method includes:
[0047] S101, creating a terminal device graphic element of an air conditioning water system; wherein the terminal device graphic element carries interface coordinate information, device number information and flow information of the corresponding terminal device.
[0048] In this embodiment, the terminal equipment element of the air-conditioning water system can be created according to the design principles in the field of HVAC professional technology. Based on the current composition architecture of the air-conditioning water system, its terminal equipment includes but is not limited to fan coil units, combined air-conditioning units, fresh air units, etc. The types of terminal equipment are common knowledge in the field of technology, and this embodiment does not make unnecessary elaboration. It is understood here that the number of different types of terminal equipment in the entire air-conditioning water system can be the same or different. For example, a certain level of the same-path system of an air-conditioning water system contains 3 fan coil units, which are numbered as fan coil units A1-A3, then A1-A3 is the equipment number information of the terminal equipment described in this embodiment, and for another example, it contains 4 combined air-conditioning units, which are numbered as combined air-conditioning units B1-B4, and B1-B4 is also the equipment number information of the terminal equipment. Until all types of terminal equipment elements are created.
[0049] Secondly, this embodiment is based on the graphics created by engineering software installed in the computer, such as CAD drawing software well known to those skilled in the art. Therefore, the terminal device interface coordinate information is also the interface coordinate information of the terminal device graphics, and the interface coordinate information can be a coordinate point on a two-dimensional plane or a coordinate point on a three-dimensional plane.
[0050] S102, using the interface coordinate information of the terminal device primitive as a starting point, creating a plurality of branch pipe segment primitives connected to the terminal device primitive; wherein the branch pipe segment primitive carries the starting point coordinate information and the end point coordinate information of the corresponding branch pipe segment.
[0051] In this embodiment, taking the device number information A1 as an example, a branch pipe segment graphic element connected to the terminal device graphic element interface is created, and its actual starting point coordinate information is the interface coordinate information of the terminal device.
[0052] S103, when it is detected that the starting point coordinate information of the branch pipe segment element is consistent with the interface coordinate information of a terminal device element, the flow information and device number information of the terminal device are transmitted to the branch pipe segment element, and the first configuration parameter of the branch pipe segment element is calculated according to the flow information, so as to complete the creation of the routing information of all branch pipe segment elements; wherein the first configuration parameter includes the recommended pipe diameter and water resistance of the branch pipe segment.
[0053] After all terminal device primitives are traversed, if the starting coordinate information of the newly created branch pipe segment primitive is consistent with the interface coordinate information of a terminal device primitive, it means that the connection object of the branch pipe segment primitive is the terminal device. On this basis, the flow information of the corresponding terminal device can be attached to the branch pipe segment primitive, and then the first configuration parameter of the branch pipe segment primitive is calculated based on the flow information. It can be understood that the first configuration parameter of the branch pipe segment, such as the recommended pipe diameter and pipe segment water resistance, is calculated based on the flow information. This is common knowledge in the art, and this embodiment does not make redundant descriptions. At the same time, the corresponding terminal device flow information and device number information are added to the branch pipe segment primitive. Similarly, the route creation of all branch pipe segment primitives is completed, so that each branch pipe segment primitive carries the device number information and flow information carried by the terminal device primitive to which it is connected. The related information can be displayed one by one after clicking the branch pipe segment primitive. Therefore, the corresponding parameter information of the corresponding pipe segment can be directly assigned during the water pipe drawing process, thereby improving the efficiency of designers.
[0054] In some embodiments, based on step 103 provided in the above embodiment, after the creation of the routing information of all branch segment graphics elements is completed, please refer to Figure 2 , Figure 2 A second flow chart of a method for creating a horizontal same-length pipe segment route for an air conditioning water system provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the method also includes:
[0055] S201, based on the coordinate information of the end point of the branch pipe segment and the coordinate information of the water pipe riser, determine the relative distance relationship between the branch pipe segment and the water pipe riser, and create multiple main pipe segment graphics elements connected to the branch pipe segment graphics element in sequence from far to near based on the relative distance relationship; wherein the starting point coordinates of any one of the multiple main pipe segment graphics elements can be connected to the ending point coordinates of one to three branch pipe segment graphics elements or the remaining main pipe segment graphics elements, and the main pipe segment graphics element carries the starting point coordinate information and the ending point coordinate information of the main pipe segment.
[0056] In this embodiment, the coordinates of the water pipe riser can be used as a reference point, and the relative distance relationship between the two can be determined based on the coordinate information of the end points of each branch pipe segment and the coordinate information of the reference point. The distance between the two coordinates determines the distance, and the calculation of the distance is common knowledge, so no unnecessary explanation is given. In combination with the distance relationship, multiple main pipe segment primitives connected to the branch / main pipe segment primitives are sequentially created. For example, assuming that the end point coordinates of the branch pipe segment primitive connected to the terminal device A1 are the farthest from the reference point, the end point coordinates of the branch pipe segment primitive connected to the terminal device A3 are the closest to the reference point, and the end point coordinates of the branch pipe segment primitive connected to the terminal device A2 are between the reference point and the first two. Thus, the order of creating the main pipe segment route is obtained: first, create the main pipe segment between the branch pipe segment of the terminal device A1 and the branch pipe segment of the terminal device A2, which is recorded as the main pipe segment a1; secondly, create the main pipe segment between the main pipe segment a1, the branch pipe segment of the terminal device A2 and the branch pipe segment of the terminal device A3, which is recorded as the main pipe segment a2; finally, create the main pipe segment between the branch pipe segment a2 and the branch pipe segment of the terminal device A3, which is recorded as the main pipe segment a3. It is understandable that each time a main section element is created in the engineering software, the engineering software can automatically record the starting point coordinate information and the end point coordinate information of the main section element. It should be noted here that this embodiment only takes one type of terminal device as an example, and when it involves different numbers of different types of terminal devices, the above principle is the same.
[0057] S202, respectively creating a first flow information set and a first device number information set with empty initial contents; wherein the first flow information set is used for subsequent temporary storage of pipe segment flow information, and the first device number information set is used for subsequent temporary storage of pipe segment burden device number information;
[0058] S203, traversing the end point coordinate information of all branch pipe segments and the created main pipe segment graphic elements; determining whether the end point coordinate information of the branch / main pipe segment graphic element is consistent with the start point coordinate information of the newly created main pipe segment graphic element; if consistent, adding the device number information and flow information carried by the corresponding branch / main pipe segment graphic element to the first device number information set and the first flow information set, to obtain the second device number information set and the second flow information set;
[0059] S204, calculating the flow information in the second flow information set to obtain total flow information; removing the overlapping device number information in the second device number information set to obtain a second device number information set after deduplication;
[0060] S205, adding the total flow information and the device number information of the second device number information set after deduplication to the newly created main pipe segment element, and calculating the second configuration parameters of the main pipe segment element based on the total flow information, to complete the creation of routing information of all main pipe segment elements; wherein the second configuration parameters include the recommended pipe diameter and pipe segment water resistance of the main pipe segment.
[0061] In some embodiments, after executing step 205, that is, after completing the creation of the horizontal same-distance pipe segment routing and information of the air-conditioning water system, this embodiment also provides a method after completing the creation of the horizontal same-distance pipe segment routing and information input of the air-conditioning water system, that is, after the system is drawn, the maximum resistance loop of the horizontal same-distance pipe segment routing of the air-conditioning water system can be automatically calculated based on the existing information and the pipeline routing can be automatically highlighted, so as to guide the subsequent design work of the designer. Please refer to Figure 3 , Figure 3 A third flow chart of a method for creating a horizontal same-length pipe segment route for an air conditioning water system provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the method also includes:
[0062] S301, creating an empty first set for each terminal device primitive, and naming the first set with the device number information corresponding to each terminal device primitive, to obtain a plurality of renamed first sets;
[0063] S302, according to the correspondence between the equipment number information carried by the branch pipe segment element and the main pipe segment element and the name of the renamed first set, the pipe segment water resistance information of the branch pipe segment element and the main pipe segment element is added to the corresponding renamed first set, so as to obtain a plurality of second sets carrying the pipe segment water resistance information of the branch pipe segment element and the main pipe segment element; wherein the name of the second set is the terminal equipment number;
[0064] S303, summing up the pipe section water resistance of each second set to obtain the total pipe section water resistance corresponding to each terminal device, replacing the original set name of the second set with the total pipe section water resistance corresponding to each terminal device, and storing the total water resistance value in the newly created third set;
[0065] S304, determine the maximum value in the third set, trace back to the corresponding second set based on the correspondence between the maximum value and all the renamed second set names, highlight the branch pipe segment graphics and the main pipe segment graphics in the second set corresponding to the maximum value in the third set, and the highlighted pipe segment combination is the loop pipe segment with the largest water resistance in the horizontal same-length pipe segment route of the air-conditioning water system.
[0066] In this embodiment, the purpose of steps S301-S304 provided in this embodiment is to automatically calculate the maximum resistance loop of the air conditioning water system and highlight the pipeline route based on the above steps S101-S103 and S201-S205.
[0067] Specifically, step S301: create an empty first set for each terminal device primitive, and name the first set with the device number information corresponding to each terminal device primitive, to obtain multiple renamed first sets. For example: suppose there are three air-conditioning terminal devices numbered A1, A2, and A3, and there are three pipe sections numbered 1, 2, and 3, and the water resistance values of each pipe section are 5, 3, and 2, respectively. The terminal device carried by pipe section 1 is numbered A1; the terminal devices carried by pipe section 2 are numbered A1 and A2; the terminal devices carried by pipe section 3 are numbered A1, A2, and A3. Then, three empty sets named A1, A2, and A3 are created for each terminal device according to the terminal device number name.
[0068] Step S302: Based on the principle of matching the equipment number information carried by the pipe segment primitive (branch pipe segment primitive, main pipe segment primitive) with the terminal equipment information, the resistance information in the corresponding pipe segment is added to the set corresponding to step 301 (matching equipment number). For example, the A1 set contains: water resistance information and starting point coordinate information of pipe segments 1, 2 and 3; the A2 set contains: water resistance information and starting point coordinate information of pipe segments 2 and 3; the A3 set contains: water resistance information and starting point coordinate information of pipe segment 3.
[0069] Step S303: Sum the water resistance of each pipe section of the second set to obtain the total water resistance of the pipe section corresponding to each terminal device, replace the original set name of the second set with the total water resistance of the pipe section corresponding to each terminal device, and store the total water resistance value in the newly created third set. For example: the sum of the water resistance of each pipe section in the A1 set is 10, and the name of the A1 set is changed to 10; the sum of the water resistance of each pipe section in the A2 set is 5, and the name of the A2 set is changed to 5; the sum of the water resistance of each pipe section in the A3 set is 2, and the name of the A3 set is changed to 2; the three total water resistance values of 10, 5, and 2 are put into the third set.
[0070] Step S304: Determine the maximum value in the third set, and trace back to the corresponding second set according to the correspondence between the maximum value and all the renamed second set names, and highlight the branch pipe segment graphics element and the main pipe segment graphics element in the second set corresponding to the maximum value in the third set. The highlighted pipe segment combination is the loop pipe segment with the largest water resistance in the horizontal same-distance pipe segment routing of the air conditioning water system. For example, comparing the three water resistance numbers (10, 5, 2) in the third set, 10 is the largest in the set, and correspondingly highlight all pipe segments (i.e., pipe segment 1, pipe segment 2, and pipe segment 3) in the set whose second set name (after modification) is 10, which is the loop pipeline with the largest water resistance.
[0071] The present application also provides a device for creating a horizontal same-length pipe segment route for an air-conditioning water system, which can be used to execute each step of a method for creating a horizontal same-length pipe segment route for an air-conditioning water system described in the above embodiment. Figure 4 , Figure 4 The principle block diagram of a device for creating a horizontal same-length pipe segment route for an air conditioning water system provided in an embodiment of the present application is as follows: Figure 4 As shown, the device comprises:
[0072] The terminal device primitive creation module 410 is used to create a terminal device primitive of the air conditioning water system, which carries the interface coordinate information, device number information and flow information of the corresponding terminal device;
[0073] The branch segment primitive routing creation module 420 is used to create multiple branch segment primitives connected to the terminal device primitive using the interface coordinate information of the terminal device primitive as the starting point; wherein the branch segment primitive carries the starting point coordinate information and the end point coordinate information of the corresponding branch segment;
[0074] The branch pipe segment element information transmission module 430 is used to transmit the flow information and device number information of the terminal device to the branch pipe segment element when it is detected that the starting point coordinate information of the branch pipe segment element is consistent with the interface coordinate information of a terminal device element, and calculate the first configuration parameter of the branch pipe segment element based on the flow information to complete the routing and information creation of all branch pipe segment elements; wherein the first configuration parameter includes the recommended pipe diameter and pipe segment water resistance of the branch pipe segment.
[0075] It can be seen that in the horizontal same-course pipe segment routing creation device for an air-conditioning water system provided in this embodiment, first, the present application creates a terminal device element of the air-conditioning water system, which carries the interface coordinate information, device number information and flow information of the terminal device; secondly, multiple branch pipe segment elements connected to the terminal device element are sequentially created with the interface coordinates of the terminal device element as the starting point; wherein the branch pipe segment element carries the starting point coordinate information and the end point coordinate information of the branch pipe segment. When it is detected that the starting point coordinate information of the branch pipe segment element just created is consistent with the interface coordinate information of any terminal device element, the flow information and device number information of the terminal device are transmitted to the branch pipe segment element, and the first configuration parameter of the branch pipe segment element is calculated according to the flow information, so as to complete the routing and information creation of all branch pipe segment elements; wherein the first configuration parameter includes the recommended pipe diameter and pipe segment water resistance of each branch pipe segment.
[0076] In some embodiments, the apparatus further comprises:
[0077] The main pipe segment element routing creation module is used to determine the relative distance relationship between the branch pipe segment and the water pipe riser based on the end point coordinate information of the branch pipe segment and the coordinate information of the water pipe riser, and to create multiple main pipe segment elements connected to the branch pipe segment element in sequence from far to near based on the relative distance relationship; wherein the starting point coordinates of any one of the multiple main pipe segment elements can be connected to the end point coordinates of one to three branch pipe segment elements or the remaining main pipe segment elements, and the main pipe segment element carries the starting point coordinate information and the end point coordinate information of the main pipe segment.
[0078] In some embodiments, the apparatus further comprises:
[0079] The main pipe segment element information transmission module is used to create a first flow information set and a first equipment number information set with empty initial content; the first flow information set is used for the subsequent temporary storage of pipe segment flow information, and the first equipment number information set is used for the subsequent temporary storage of pipe segment burden equipment number information; traverse the end point coordinate information of all branch pipe segments and the created main pipe segment elements; determine whether the end point coordinate information of the branch / main pipe segment element is consistent with the start point coordinate information of the newly created main pipe segment element, and if consistent, add the equipment number information and flow information carried by the corresponding branch / main pipe segment element to the first equipment number information set and The first flow information set is used to obtain the second device number information set and the second flow information set; the flow information in the second flow information set is calculated to obtain the total flow information; the overlapping device number information in the second device number information set is removed to obtain the deduplicated second device number information set; the total flow information and the device number information of the deduplicated second device number information set are added to the newly created main pipe segment element, and the second configuration parameter of the main pipe segment element is calculated according to the total flow information to complete the creation of the routing and information of all main pipe segment elements; wherein the second configuration parameter includes the recommended pipe diameter and pipe segment water resistance of the main pipe segment.
[0080] In some embodiments, the apparatus further comprises:
[0081] The maximum resistance loop pipe segment determination module is used to create an empty first set for each terminal device graphic element, and name the first set with the device number information corresponding to each terminal device graphic element, to obtain multiple renamed first sets; according to the correspondence between the device number information carried by the branch pipe segment graphic element and the main pipe segment graphic element and the name of the renamed first set, the pipe segment water resistance information of the branch pipe segment graphic element and the main pipe segment graphic element is added to the corresponding renamed first set, to obtain multiple second sets carrying the pipe segment water resistance information of the branch pipe segment graphic element and the main pipe segment graphic element; wherein the name of the second set is the terminal device number ; Sum the pipe segment water resistance of each second set to obtain the total pipe segment water resistance corresponding to each terminal device, replace the original set name of the second set with the total pipe segment water resistance corresponding to each terminal device, and store the total water resistance value in the newly created third set; determine the maximum value in the third set, and trace back to the corresponding second set based on the correspondence between the maximum value and all the renamed second set names, and highlight the branch pipe segment graphics and main pipe segment graphics in the second set corresponding to the maximum value in the third set. The highlighted pipe segment combination is the loop pipe segment with the largest water resistance in the horizontal same-course pipe segment route of the air-conditioning water system.
[0082] The present application also provides an electronic device. Figure 5 , Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the electronic device 500 includes a processor 510, a memory 520, a communication interface 530, and at least one communication bus for connecting the processor 510, the memory 520, and the communication interface 530. The memory 520 includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (PROM), or a portable CD-ROM.
[0083] The communication interface 530 is used to receive and send data. The processor 510 can be one or more CPUs. When the processor 510 is a CPU, the CPU can be a single-core CPU or a multi-core CPU. The processor 510 in the electronic device 500 is used to read one or more programs 521 stored in the memory 520, and perform the following operations: create a terminal device element of the air conditioning water system; wherein the terminal device element carries the interface coordinate information, device number information and flow information of the corresponding terminal device; create multiple branch pipe segment elements connected to the terminal device element with the interface coordinate information of the terminal device element as the starting point; wherein the branch pipe segment element carries the starting point coordinate information and the end point coordinate information of the corresponding branch pipe segment; when it is detected that the starting point coordinate information of the branch pipe segment element is consistent with the interface coordinate information of a terminal device element, the flow information and device number information of the terminal device are transmitted to the branch pipe segment element, and the first configuration parameter of the branch pipe segment element is calculated according to the flow information, and the creation of the routing information of all branch pipe segment elements is completed; wherein the first configuration parameter includes the recommended pipe diameter and pipe segment water resistance of the branch pipe segment.
[0084] It should be noted that the specific implementation of each operation can refer to the above Figure 1 to Figure 3 The corresponding description of the method embodiment shown, the electronic device 500 can be used to execute a method for creating horizontal same-length pipe segment routing for an air-conditioning water system in the above method embodiment of the present application, which will not be described in detail here.
[0085] The embodiment of the present application also provides a computer-readable storage medium, which is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both built-in storage media in a computer device and, of course, extended storage media supported by the computer device. The computer-readable storage medium provides a storage space that stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the horizontal same-course pipe segment routing creation method for an air conditioning water system in the above embodiment. It should be understood by those skilled in the art that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0086] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only the specific implementation method of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A method for creating horizontal same-length pipe segment routing for an air conditioning water system, characterized in that: include: Create terminal equipment elements of the air conditioning water system; The terminal device graphic element carries the interface coordinate information, device number information and flow information of the corresponding terminal device; Taking the interface coordinate information of the terminal device element as a starting point, multiple branch pipe segment elements connected to the terminal device element are created; The branch pipe segment graphic element carries the starting point coordinate information and the end point coordinate information of the corresponding branch pipe segment; When it is detected that the starting point coordinate information of the branch pipe segment element is consistent with the interface coordinate information of a terminal device element, the flow information and device number information of the terminal device are transmitted to the branch pipe segment element, and the first configuration parameter of the branch pipe segment element is calculated according to the flow information to complete the routing and information creation of all branch pipe segment elements; wherein the first configuration parameter includes the recommended pipe diameter and water resistance of the branch pipe segment.
2. A method for creating horizontal same-length pipe segment routing for an air conditioning water system according to claim 1, characterized in that: After completing the creation of routing information of all branch segment graphics elements, the method further includes: Based on the coordinate information of the end point of the branch pipe section and the coordinate information of the water pipe riser, the relative distance relationship between the branch pipe section and the water pipe riser is determined, and multiple main pipe section elements connected to the branch pipe section element are created in sequence from far to near based on the relative distance relationship; wherein the starting point coordinates of any one of the multiple main pipe section elements can be connected to the ending point coordinates of one to three branch pipe section elements or the remaining main pipe section elements, and the main pipe section element carries the starting point coordinate information and the ending point coordinate information of the main pipe section.
3. A method for creating horizontal same-length pipe segment routing for an air conditioning water system according to claim 2, characterized in that: The method further comprises: A first flow information set and a first equipment number information set are respectively created, the initial contents of which are empty; wherein the first flow information set is used for the subsequent temporary storage of pipe segment flow information, and the first equipment number information set is used for the subsequent temporary storage of pipe segment burden equipment number information; Traverse the end point coordinate information of all branch pipe segments and the created main pipe segment graphics; Determine whether the end point coordinate information of the branch / main section element is consistent with the start point coordinate information of the newly created main section element. If consistent, add the device number information and flow information carried by the corresponding branch / main section element to the first device number information set and the first flow information set to obtain the second device number information set and the second flow information set; Calculate the flow information in the second flow information set to obtain the total flow information; Removing the overlapping device number information in the second device number information set to obtain a second device number information set after removing the duplicates; The total flow information and the device number information of the second device number information set after deduplication are added to the newly created main pipe segment element, and the second configuration parameter of the main pipe segment element is calculated according to the total flow information to complete the creation of routing information of all main pipe segment elements; wherein the second configuration parameter includes the recommended pipe diameter and pipe segment water resistance of the main pipe segment.
4. A method for creating horizontal same-length pipe segment routing for an air conditioning water system according to claim 3, characterized in that: After completing the creation of routing information of all principal segment primitives, the method further includes: Creating a first set with empty initial content for each terminal device primitive, and naming the first set with device number information corresponding to each terminal device primitive, to obtain a plurality of renamed first sets; According to the correspondence between the equipment number information carried by the branch pipe segment graphics element and the main pipe segment graphics element and the name of the renamed first set, the pipe segment water resistance information of the branch pipe segment graphics element and the main pipe segment graphics element is added to the corresponding renamed first set, so as to obtain a plurality of second sets carrying the pipe segment water resistance information of the branch pipe segment graphics element and the main pipe segment graphics element; wherein the name of the second set is the terminal equipment number; Sum up the water resistance of each pipe section of the second set to obtain the total water resistance of the pipe section corresponding to each terminal device, store the water resistance value in the newly created third set, and replace the original set name of the second set with the total water resistance of the pipe section corresponding to each terminal device; The maximum value in the third set is determined, and based on the correspondence between the maximum value and all the renamed second set names, the corresponding second set is traced back to highlight the branch pipe segment graphics and the main pipe segment graphics in the second set corresponding to the maximum value in the third set. The highlighted pipe segment combination is the loop pipe segment with the largest water resistance in the horizontal same-length pipe segment route of the air-conditioning water system.
5. A device for creating horizontal same-length pipe segment routing for an air conditioning water system, characterized in that: The device includes: The terminal device element creation module is used to create the terminal device element of the air conditioning water system; The terminal device graphic element carries the interface coordinate information, device number information and flow information of the corresponding terminal device; A branch pipe segment graphic element routing creation module is used to create multiple branch pipe segment graphic elements connected to the terminal device graphic element with the interface coordinate information of the terminal device graphic element as the starting point; The branch pipe segment graphic element carries the starting point coordinate information and the end point coordinate information of the corresponding branch pipe segment; The branch pipe segment element information transmission module is used to transmit the flow information and device number information of the terminal device to the branch pipe segment element when it is detected that the starting point coordinate information of the branch pipe segment element is consistent with the interface coordinate information of a terminal device element, and calculate the first configuration parameter of the branch pipe segment element according to the flow information to complete the routing and information creation of all branch pipe segment elements; wherein the first configuration parameter includes the recommended pipe diameter and pipe segment water resistance of the branch pipe segment.
6. A device for creating horizontal same-length pipe segment routing for an air conditioning water system according to claim 5, characterized in that: The device also includes: The main pipe segment element routing creation module is used to determine the relative distance relationship between the branch pipe segment and the water pipe riser based on the end point coordinate information of the branch pipe segment and the coordinate information of the water pipe riser, and to create multiple main pipe segment elements connected to the branch pipe segment element in sequence from far to near based on the relative distance relationship; wherein the starting point coordinates of any one of the multiple main pipe segment elements can be connected to the end point coordinates of one to three branch pipe segment elements or the remaining main pipe segment elements, and the main pipe segment element carries the starting point coordinate information and the end point coordinate information of the main pipe segment.
7. A device for creating horizontal same-length pipe segment routing for an air conditioning water system according to claim 6, characterized in that: The device also includes: The main pipe segment element information transmission module is used to create a first flow information set and a first equipment number information set with empty initial content respectively; the first flow information set is used for the subsequent temporary storage of pipe segment flow information, and the first equipment number information set is used for the subsequent temporary storage of pipe segment burden equipment number information; traverse the end point coordinate information of all branch pipe segments and the created main pipe segment elements; determine whether the end point coordinate information of the branch / main pipe segment element is consistent with the starting point coordinate information of the newly created main pipe segment element, and if consistent, add the equipment number information and flow information carried by the corresponding branch / main pipe segment element to the first equipment number information set and the first flow information set to obtain a second device number information set and a second flow information set; calculate and obtain the flow information in the second flow information set to obtain the total flow information; remove the overlapping device number information in the second device number information set to obtain the de-duplicated second device number information set; add the total flow information and the device number information of the de-duplicated second device number information set to the newly created main pipe segment primitive, and calculate the second configuration parameter of the main pipe segment primitive according to the total flow information to complete the creation of the routing information of all main pipe segment primitives; wherein the second configuration parameter includes the recommended pipe diameter and pipe segment water resistance of the main pipe segment.
8. The device for creating horizontal same-length pipe segment routing for an air conditioning water system according to claim 7, characterized in that: The device also includes: The maximum resistance loop pipe segment determination module is used to create a first set with empty initial content for each terminal device graphic element, and name the first set with the device number information corresponding to each terminal device graphic element, to obtain multiple renamed first sets; according to the correspondence between the device number information carried by the branch pipe segment graphic element and the main pipe segment graphic element and the name of the renamed first set, the pipe segment water resistance information of the branch pipe segment graphic element and the main pipe segment graphic element is added to the corresponding renamed first set, to obtain multiple second sets carrying the pipe segment water resistance information of the branch pipe segment graphic element and the main pipe segment graphic element; wherein the name of the second set is the terminal device graphic element. equipment number; sum up the water resistance of each pipe segment of the second set to obtain the total water resistance of the pipe segment corresponding to each terminal device, replace the original set name of the second set with the total water resistance of the pipe segment corresponding to each terminal device, and store the water resistance value in the newly created third set; determine the maximum value in the third set, and trace back to the corresponding second set based on the correspondence between the maximum value and all the renamed second set names, and highlight the branch pipe segment graphics and main pipe segment graphics in the second set corresponding to the maximum value in the third set. The highlighted pipe segment combination is the loop pipe segment with the largest water resistance in the horizontal same-course pipe segment route of the air-conditioning water system.
9. An electronic device, characterized in that: The electronic device includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of a method for creating horizontal same-course pipe segment routing for an air-conditioning water system as described in any one of claims 1 to 4 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of a method for creating horizontal same-length pipe segment routing for an air-conditioning water system according to any one of claims 1 to 4 are implemented.
