Pipeline connection method and computer program product
By automatically determining the pipe connection nodes and their positions, and using a computer program to select target pipe fittings for connection, the problem of low pipe connection efficiency in existing technologies is solved, and efficient and accurate pipe connection is achieved.
Patent Information
- Application Number
- CN202511070911.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-31
- Publication Date
- 2025-11-14
AI Technical Summary
Existing pipe connection software requires users to manually select pipe fittings, resulting in low design efficiency and easy human error.
By obtaining the number of pipes to be connected, the connection nodes and their location relationships are automatically determined, the pipe connection path is generated, and the target pipe fittings are automatically selected for connection using a computer program.
It improves the efficiency of pipe connections, saves users time in selecting pipe fittings, avoids errors caused by human negligence, and ensures the accuracy of connections.
Smart Images

Figure CN120951568A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of pipeline engineering technology, specifically to pipeline connection methods and computer program products. Background Technology
[0002] In pipe joint design, it is necessary to design the pipe fitting connections at the joints before generating drawings to guide construction. Currently, relevant pipe connection software requires users to create a pipe fitting library (a collection of various commonly used pipe fitting symbols), and then select appropriate pipe fittings for each joint and arrange them sequentially to draw the joint diagram. This approach requires manual splicing of each pipe fitting, which is time-consuming, labor-intensive, and prone to errors and omissions due to human negligence, resulting in low design efficiency. Summary of the Invention
[0003] In view of this, this application provides a pipe connection method and a computer program product to solve the problem of low efficiency in pipe connections.
[0004] In a first aspect, this application provides a pipe connection method, comprising: obtaining a first target pipe to be connected; determining a connection node corresponding to the number of pipes in the first target pipe; determining at least one first target fitting based on the positional relationship between the connection node and the first target pipe; and using at least one first target fitting to connect each first target pipe at the connection node to generate a pipe connection path.
[0005] Secondly, this application provides a computer program product, including computer instructions for causing a computer to execute the pipe connection method described in the first aspect or any corresponding embodiment thereof.
[0006] This solution, after obtaining the first target pipeline to be connected, can determine the connection nodes corresponding to the number of pipelines in the first target pipeline. Then, based on the positional relationship between the connection nodes and the first target pipelines, at least one first target pipe fitting is determined. Finally, using this at least one first target pipe fitting, the various first target pipelines are connected at the connection nodes to generate pipeline connection paths. Therefore, this solution can automatically determine at least one first target pipe fitting based on the number of pipelines and connect various first target pipelines using this at least one first target pipe fitting, eliminating the need for the user to manually select one or more first target pipe fittings from the fitting library. This ensures high efficiency in pipeline connection, saves the user time in selecting first target pipe fittings, and avoids errors caused by human negligence. Attached Figure Description
[0007] To more clearly illustrate the technical solutions in the specific embodiments of this application or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0008] Figure 1 This is a schematic diagram of an application scenario provided according to an embodiment of this application;
[0009] Figure 2 This is a schematic flowchart of a pipe connection method provided according to an embodiment of this application;
[0010] Figure 3 This is a schematic diagram of a connection node provided according to an embodiment of this application;
[0011] Figure 4 This is a schematic flowchart of another pipe connection method provided according to an embodiment of this application;
[0012] Figure 5 This is a schematic diagram illustrating the determination of turning angle values according to an embodiment of this application;
[0013] Figure 6 This is a schematic diagram illustrating the determination of at least one first target pipe fitting when the first connecting pipe and the second connecting pipe are coplanar and collinear according to the embodiments of this application;
[0014] Figure 7 This is a schematic diagram illustrating the determination of at least one first target pipe fitting when the turning angle value is 90 degrees, according to an embodiment of this application.
[0015] Figure 8 This is a schematic diagram illustrating the determination of at least one first target pipe fitting when the turning angle value provided in the embodiments of this application is not 90 degrees;
[0016] Figure 9 This is a schematic diagram illustrating the determination of at least one first target pipe fitting when the first connecting pipe and the second connecting pipe are not coplanar or collinear, according to an embodiment of this application.
[0017] Figure 10 This is a schematic flowchart of another pipe connection method provided according to an embodiment of this application;
[0018] Figure 11 This is a schematic diagram illustrating the determination of the inflow pipe, outflow pipe, and branch pipe according to an embodiment of this application;
[0019] Figure 12 This is a flowchart illustrating the target placement method of the tee when determining three first target pipes according to the embodiments of this application;
[0020] Figure 13 This is a flowchart illustrating the target placement method of a tee or cross when determining four first target pipes according to the embodiments of this application;
[0021] Figure 14 This is a flowchart illustrating the method of adding a reducer according to an embodiment of this application;
[0022] Figure 15 This is a structural block diagram of a pipe connection device according to an embodiment of this application;
[0023] Figure 16 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of this application. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0025] First, the terminology used in one or more embodiments of this application will be introduced.
[0026] Connection node: A connection point in a piping system used to connect two or more pipe components to ensure the connectivity and integrity of the piping system. Fitting: A component in a piping system used for connection, turning, diameter change, branching, etc. Fitting connection: In a piping system, various pipe fittings are used to connect different pipe components to achieve the integrity and functionality of the piping system.
[0027] Secondly, considering the application scenarios upon which the pipeline connection method depends, the application scenarios are described here.
[0028] In pipe joint design, it is necessary to design the pipe fitting connections at the joints before generating drawings to guide construction. Currently, relevant pipe connection software requires users to create a pipe fitting library (a collection of various commonly used pipe fitting symbols), and then select appropriate pipe fittings for each joint and arrange them sequentially to draw the joint diagram. This approach requires manual splicing of each pipe fitting, which is time-consuming, labor-intensive, and prone to errors and omissions due to human negligence, resulting in low design efficiency.
[0029] In view of this, this application provides a pipe connection method and a computer program product. The method includes: obtaining a first target pipe to be connected; determining a connection node corresponding to the number of pipes in the first target pipe; determining at least one first target pipe fitting based on the positional relationship between the connection node and the first target pipe; and using the at least one first target pipe fitting, connecting each first target pipe at the connection node to generate a pipe connection path.
[0030] The pipe connection method of this application, after obtaining the first target pipe to be connected, can determine the connection node corresponding to the number of pipes in the first target pipe; then, based on the positional relationship between the connection node and the first target pipe, it determines at least one first target pipe fitting; and then, using at least one first target pipe fitting, it connects each first target pipe at the connection node to generate a pipe connection path. Therefore, this solution can automatically determine at least one first target pipe fitting based on the number of pipes and connect each first target pipe using at least one first target pipe fitting, eliminating the need for the user to manually select one or more first target pipe fittings from a fitting library. This ensures high efficiency in pipe connection, saves the user's time in selecting first target pipe fittings, and avoids errors caused by human negligence.
[0031] like Figure 1 As shown, the pipe connection software can be deployed in electronic devices. This software has an interactive interface. Users can design at least two pipes and select the corresponding connection points for at least two pipes on this interface. Simultaneously, users issue pipe connection commands to the software by operating the "Pipe Connection" control located on the interface. Responding to the user's pipe connection commands, the software obtains the first target pipe to be connected, determines the connection nodes corresponding to the number of pipes in the first target pipe, then determines at least one first target pipe fitting based on the positional relationship between the connection nodes and the first target pipe, and finally uses at least one first target pipe fitting to connect the various first target pipes at the connection nodes to generate the pipe connection path.
[0032] According to an embodiment of this application, a pipe connection method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0033] This embodiment provides a pipe connection method that can be used in computer equipment. Figure 2 This is a flowchart of a pipe connection method according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps:
[0034] Step S201: Obtain the first target pipe to be connected.
[0035] The first target pipeline here refers to two or more pipelines that need to be connected. This first target pipeline can be used to transport oil, natural gas, tap water, etc. The pipeline connection method of this application can be used in the energy sector, such as petrochemical and natural gas pipelines, and also in urban construction, such as water supply networks, heating and cooling pipelines, and building fire protection pipelines.
[0036] Step S202: Based on the number of pipes in the first target pipe, determine the connection nodes corresponding to the number of pipes.
[0037] A connection node is an endpoint in one of the first target pipes that is closest to another first target pipe, and the number of first target pipes to be connected corresponds to the number of connection nodes. For example, such as Figure 3 As shown, the first target pipeline has two pipes, namely the first connecting pipe and the second connecting pipe. At the end of the first connecting pipe and the second connecting pipe that are close to each other, there are two connecting nodes.
[0038] Step S203: Determine at least one first target pipe fitting based on the positional relationship between the connection node and the first target pipe.
[0039] For two primary target pipelines, the positional relationship can be coplanar and collinear, coplanar but not collinear, or neither coplanar nor collinear. For three or more primary target pipelines, the positional relationship can be two pipelines coplanar and collinear, coplanar but not collinear, or neither coplanar nor collinear, or all three pipelines coplanar and collinear, coplanar but not collinear, or neither coplanar nor collinear, etc., which will not be elaborated here.
[0040] Pipe fittings can include tees, crosses, connectors, elbows, valves, fire hydrants, flanges, plugs, reducers, supports, etc. As a specific example, such as... Figure 1 The pipe connection software shown can be configured with a fitting library containing multiple types of fittings. For example, the fitting library supports various types of tees, including full-disc tees, socket-supported single-disc tees, socket-supported single-bearing tees, double-socket single-disc tees, full-socket tees, and sludge-removal tees. It also supports various types of crosses, including full-disc crosses, socket-supported double-disc crosses, socket-supported double-socket crosses, and crosses in general. Supported connectors include disc-socket, disc-socket, double-disc short pipes, socket-supported short pipes, and double-spiked short pipes. Supported elbows include 11.25°, 22.5°, 30°, 45°, 60°, and 90° double-disc elbows, and 11.25°, 22.5°, 30°, 45°, 60°, and 90° double-socket elbows. Supported reducers include double-socket reducers and double-disc reducers.
[0041] As a specific example, based on the positional relationship between the connection node and the first target pipe, the computer device can automatically determine at least one first target pipe fitting corresponding to the positional relationship from the pipe fittings. This eliminates the need for the user to manually select one or more first target pipe fittings from the pipe fitting library, ensuring high efficiency in pipe connection, saving the user time in selecting the first target pipe fitting, and avoiding errors or omissions due to human negligence.
[0042] Step S204: Using at least one first target pipe fitting, connect each first target pipe at the connection node to generate a pipe connection path.
[0043] Pipeline connection paths can be the continuous flow trajectory of a medium (liquid, gas, etc.) from the starting point to the end point through pipes, fittings (such as tees, elbows, connectors), and equipment (such as valves, filters).
[0044] For two primary target pipes, the two primary target pipes can be directly connected using the first or more primary target pipe fittings. For three or more primary target pipes, the placement method of one or more primary target pipe fittings can be determined based on the two, three, or all primary target pipes; then, one or more primary target pipe fittings can be used to connect all primary target pipes, thereby generating a pipe connection path.
[0045] The pipe connection method of this application, after obtaining the first target pipe to be connected, can determine the connection node corresponding to the number of pipes in the first target pipe; then, based on the positional relationship between the connection node and the first target pipe, it determines at least one first target pipe fitting; and then, using at least one first target pipe fitting, it connects each first target pipe at the connection node to generate a pipe connection path. Therefore, this solution can automatically determine at least one first target pipe fitting based on the number of pipes and connect each first target pipe using at least one first target pipe fitting, eliminating the need for the user to manually select one or more first target pipe fittings from a fitting library. This ensures high efficiency in pipe connection, saves the user's time in selecting first target pipe fittings, and avoids errors caused by human negligence.
[0046] This embodiment provides a pipe connection method that can be used in computer equipment. Figure 4 This is a flowchart of a pipe connection method according to an embodiment of this application, such as... Figure 4 As shown, the process includes the following steps:
[0047] Step S401: Obtain the first target pipe to be connected. See details below. Figure 2 Step S201 of the illustrated embodiment will not be described again here.
[0048] Step S402: Based on the number of pipes in the first target pipe, determine the connection nodes corresponding to the number of pipes.
[0049] Step S403: Determine at least one first target pipe fitting based on the positional relationship between the connection node and the first target pipe.
[0050] Specifically, step S403 includes:
[0051] Step S4031: If the first connecting pipe and the second connecting pipe are coplanar, then determine the turning angle value between the first connecting pipe and the second connecting pipe, and determine at least one first target pipe fitting based on the turning angle value.
[0052] Coplanarity indicates that the first connecting pipe and the second connecting pipe are in the same plane. If the first connecting pipe and the second connecting pipe are in the same plane, there are two possibilities: the first connecting pipe and the second connecting pipe are collinear or non-collinear.
[0053] The turning angle value is the angle corresponding to the turning angle. The process of determining the turning angle can be as follows: First, project the first and second connecting pipes onto the plane; the angle between one of the connecting pipes and the horizontal line is the turning angle. Figure 5 The second connecting pipe shown represents the turning angle formed between itself and the horizontal line. To calculate the angle value corresponding to the turning angle, the included angle between the first and second connecting pipes can be calculated first. Figure 5 As shown in Figure A; since the sum of the included angle between the first connecting pipe and the second connecting pipe and the turning angle is 180°, the turning angle can be derived in reverse, that is, the turning angle is 180° minus A.
[0054] In addition, the turning angle value can be used to quickly determine whether the first and second connecting pipes are collinear. If the turning angle value is 0°, the first and second connecting pipes are collinear; if the turning angle value is not 0°, the first and second connecting pipes are non-collinear.
[0055] Step S4032: If the first connecting pipe and the second connecting pipe are not parallel, then determine the elbow and connector according to the joint type of the first connecting pipe and the joint type of the second connecting pipe.
[0056] The first and second connecting pipes are on opposite planes, meaning they are not on the same plane. This indicates that the first and second connecting pipes are not collinear. In this case, elbows and connectors are needed to connect the first and second connecting pipes.
[0057] In some optional implementations, step S4031 above includes:
[0058] Step a1: If the turning angle value is the first preset angle value, then the connector is determined according to the joint type of the first connecting pipe and the joint type of the second connecting pipe.
[0059] Step a2: If the turning angle value is the second preset angle value, then the elbow is determined according to the joint type of the first connecting pipe and the joint type of the second connecting pipe.
[0060] Step a3: If the turning angle value is not the second preset angle value, then determine the elbow or elbow and connector based on the joint type of the first connecting pipe and the joint type of the second connecting pipe.
[0061] Pipes and fittings have joints at their ends, and these joints have different types and orientations. Connecting pipes is essentially the same as connecting pipes and fittings. Joint types can include flanges, sockets, spigots, and other similar interfaces. Joint orientations can be based on a world coordinate system, specifically the X-axis, Y-axis, and Z-axis.
[0062] As a specific example, the first preset angle value can be 0°; the second preset angle value can be 90°; and the third preset angle value can be any angle value other than 90°.
[0063] If the turning angle is 0°, it indicates that the first and second connecting pipes are collinear, and they can be connected using a connector. If the turning angle is 90°, it indicates that the first and second connecting pipes are not collinear and are perpendicular to each other, and they can be connected using a standard angle elbow, such as 45° or 90°. If the turning angle is not 90°, the angle between the first and second connecting pipes may be between 0° and 90°, or between 90° and 180°, and they can be connected using an elbow or a combination of an elbow and a connector.
[0064] By using the turning angle value, the connectors, elbows, or connectors and elbows connecting the first and second connecting pipes can be determined relatively quickly when the first and second connecting pipes are coplanar. This allows for the rapid and accurate identification of one or more first target pipe fittings. Furthermore, it simplifies the logic for identifying one or more first target pipe fittings.
[0065] In one optional implementation, if the turning angle is a first preset angle value, the connector is determined based on the joint type of the first connecting pipe and the joint type of the second connecting pipe, including: if the joint type of the first connecting pipe is a flange and the joint type of the second connecting pipe is a socket, the connector is determined to be a flange-insertion connector; if the joint type of the first connecting pipe is a flange and the joint type of the second connecting pipe is another type of joint, the connector is determined to be a flange-supplied connector; if the joint type of the first connecting pipe is a socket and the joint type of the second connecting pipe is a flange, the connector is determined to be a flange-insertion connector; if both the joint types of the first and second connecting pipes are sockets, the connector is determined to be a double-insertion short pipe; if the joint type of the first connecting pipe is another type of joint and the joint type of the second connecting pipe is a flange, the connector is determined to be a flange-supplied connector; if both the joint types of the first and second connecting pipes are other types of joints, the connector is determined to be a double-supplied short pipe.
[0066] Here, the flange can be a connector with a flange (disc-shaped edge) fixed at the end; the socket can be a connector with a concave flared structure at one end; the disc socket can be a connector with a flange at one end and a socket at the other end; the disc bearing can be a connector with a flange at one end and a socket at the other end.
[0067] Other joints mentioned here refer to joints other than flanges and sockets, such as spigots and flange connections. A spigot can be a straight, cylindrical section of the pipe end that can be directly inserted into the socket of another pipe. A flange connection is a common detachable connection method in piping systems, where two flanged pipe ends, valves, or equipment are bolted together.
[0068] When the first and second connecting pipes are coplanar and collinear, the connectors can be determined relatively quickly and efficiently by considering the joint types of the first and second connecting pipes.
[0069] As a specific example, such as Figure 6 As shown, when the first connecting pipe and the second connecting pipe are coplanar and collinear, the process of determining the connector may include steps S601 to S615.
[0070] Step S601: Determine the joint type of the first connecting pipe and the second connecting pipe.
[0071] Step S602: Determine whether the connector type of the first connecting pipe is a flange; if the connector type of the first connecting pipe is a flange, proceed to steps S603 to S606; if the connector type of the first connecting pipe is a socket, proceed to steps S608 to S611; if the connector type of the first connecting pipe is neither a flange nor a socket, proceed to steps S612 to S615.
[0072] Step S603: Determine whether the connector type of the second connecting pipe is a coiled type; if the connector type of the second connecting pipe is a coiled type, then directly connect the first connecting pipe and the second connecting pipe; if the connector type of the second connecting pipe is not a coiled type, then proceed to steps S604 to S606.
[0073] Step S604: Determine whether the joint type of the second connecting pipe is a socket; if the joint type of the second connecting pipe is a socket, proceed to step S605; if the joint type of the second connecting pipe is not a socket, proceed to step S606.
[0074] Step S605: Determine that the added connector is a disc plug and use the disc plug to connect the first connecting pipe and the second connecting pipe.
[0075] Step S606: Determine that the added connector is a disc bearing and use the disc bearing to connect the first connecting pipe and the second connecting pipe.
[0076] Step S607: Determine whether the joint type of the first connecting pipe is a socket; if the joint type of the first connecting pipe is a socket, proceed to steps S608 to S611; if the joint type of the first connecting pipe is not a socket, proceed to steps S612 to S615.
[0077] Step S608: Determine whether the connector type of the second connecting pipe is a coiled type; if the connector type of the second connecting pipe is a coiled type, proceed to step S609; if the connector type of the second connecting pipe is not a coiled type, proceed to steps S610 and S611.
[0078] Step S609: Determine that the added connector is a disc bearing and use the disc bearing to connect the first connecting pipe and the second connecting pipe.
[0079] Step S610: Determine whether the joint type of the second connecting pipe is a socket; if the joint type of the second connecting pipe is a socket, proceed to step S611; if the joint type of the second connecting pipe is not a socket, directly connect the first connecting pipe and the second connecting pipe.
[0080] Step S611: Determine that the added connector is a double-insertion short pipe and use the double-insertion short pipe to connect the first connecting pipe and the second connecting pipe.
[0081] Step S612: Determine whether the connector type of the second connecting pipe is a coiled type; if the connector type of the second connecting pipe is a coiled type, proceed to step S613; if the connector type of the second connecting pipe is not a coiled type, proceed to steps S614 and S615.
[0082] Step S613: Determine that the added connector is a disc bearing and use the disc bearing to connect the first connecting pipe and the second connecting pipe.
[0083] Step S614: Determine whether the joint type of the second connecting pipe is a socket; if the joint type of the second connecting pipe is a socket, then directly connect the first connecting pipe and the second connecting pipe; if the joint type of the second connecting pipe is not a socket, then proceed to step S615.
[0084] Step S615: Determine that the added connector is a double-supplied short pipe and use the double-supplied short pipe to connect the first connecting pipe and the second connecting pipe.
[0085] In one optional implementation, if the turning angle value is a second preset angle value, the elbow is determined according to the joint type of the first connecting pipe and the joint type of the second connecting pipe, including: if the number of elbows is 1 and the joint type of the first connecting pipe is a flange, then the elbow is determined to be a first double-flange elbow, and the angle value of the first double-flange elbow is the same as the second preset angle value; if the number of elbows is 1 and the joint type of the first connecting pipe is not a flange, then the elbow is determined to be a first socket elbow, and the angle value of the first socket elbow is the same as the second preset angle value; if the number of elbows is not 1 and the joint type of the first connecting pipe is a flange, then the elbow is determined to be two second double-flange elbows, and the sum of the angle values of the two second double-flange elbows is the same as the second preset angle value; if the number of elbows is not 1 and the joint type of the first connecting pipe is not a flange, then the elbow is determined to be two second socket elbows, and the sum of the angle values of the two second socket elbows is the same as the second preset angle value.
[0086] As a specific example, the first double-disc elbow can be a double-disc 90° elbow; the first socket elbow can be a socket 90° elbow; the second double-disc elbow can be a double-disc 45° elbow; and the second socket elbow can be a socket 45° elbow.
[0087] Standard angles like 90° usually correspond to standard elbows. If the elbow angle value is the same as the turning angle value, first determine if there is a single elbow with the same angle value as 90° and whose joint type can match the joint type of the first and second connecting pipes. If a single elbow cannot be matched, then consider determining two elbows by splicing them together so that the sum of the angle values of the two elbows is the same as 90°. This ensures a good seal when connecting the first and second connecting pipes using the determined elbows, and the structure is good, making it easy to construct and maintain in subsequent actual construction.
[0088] As a specific example, such as Figure 7 As shown, when the first connecting pipe and the second connecting pipe are coplanar but not collinear and the turning angle is 90°, the process of determining the connector may include steps S701 to S708.
[0089] Step S701: Determine the turning angle value. The calculation method for the turning angle value is as described above and will not be repeated.
[0090] Step S702: Determine if the number of bends is 1; if the number of bends is 1, proceed to steps S703 to S705; if the number of bends is 2, proceed to steps S706 to S708.
[0091] Step S703: Determine whether the connector type of the first connecting pipe is a coil; if the connector type of the first connecting pipe is a coil, proceed to step S704; if the connector type of the first connecting pipe is not a coil, proceed to step S705.
[0092] Step S704: Determine that the added elbow is a double-disc 90° elbow and use the double-disc 90° elbow to connect the first connecting pipe and the second connecting pipe.
[0093] Step S705: Determine that the added elbow is a socket 90° elbow and use the socket 90° elbow to connect the first connecting pipe and the second connecting pipe.
[0094] Step S706: Determine whether the connector type of the first connecting pipe is a coil; if the connector type of the first connecting pipe is a coil, proceed to step S707; if the connector type of the first connecting pipe is not a coil, proceed to step S708.
[0095] Step S707: Determine that the added elbows are two double-disc 45° elbows and use the two double-disc 45° elbows to connect the first connecting pipe and the second connecting pipe.
[0096] Step S708: Determine that the added elbows are two socket 45° elbows and use the two socket 45° elbows to connect the first connecting pipe and the second connecting pipe.
[0097] In one optional implementation, if the turning angle value is not a second preset angle value, then the elbow or elbow and connector is determined according to the joint type of the first connecting pipe and the joint type of the second connecting pipe, including: determining whether a single first target elbow with the same angle value as the turning angle value is determined; if a single first target elbow is determined, then the elbow type of the first target elbow is determined according to the joint type of the first connecting pipe and the second connecting pipe; if a single first target elbow is not determined, then at least one first target pipe fitting is determined according to the turning angle value in a combination mode.
[0098] There are usually some non-standard angle elbows, such as the 11.25° and 22.5° double-disc elbows or double-bearing elbows mentioned above. Therefore, we can first determine whether there is a single first target elbow with the same angle value as the turning angle value. If there is, we should give priority to using a single first target elbow to connect the first connecting pipe and the second connecting pipe. If there is no first target elbow, we can then consider determining multiple first target pipe fittings to connect the first connecting pipe and the second connecting pipe by combining them. This can ensure that the connection scheme of the first connecting pipe and the second connecting pipe is relatively simple to the greatest extent, and that subsequent construction and maintenance can be easily carried out based on this connection scheme. This further ensures that the pipe connection method of this application can generate the optimal pipe connection scheme.
[0099] In one optional implementation, determining the elbow type of the first target elbow based on the joint types of the first connecting pipe and the second connecting pipe includes: if the joint type of the first connecting pipe is a flange, then the first target elbow is determined to be a double flange elbow; if the joint type of the first connecting pipe is a socket and the joint type of the second connecting pipe is a flange, then the first target elbow is determined to be a flange-slot elbow; if the joint type of the first connecting pipe is another type and the joint type of the second connecting pipe is a flange, then the first target elbow is determined to be a flange-seat elbow; if the joint types of the first connecting pipe and the joint types of the second connecting pipe are both other types, then the first target elbow is determined to be a socket elbow.
[0100] Since there are various types of elbows, the elbow that can be matched with the first and second connecting pipes can be determined more efficiently and accurately by using the joint type of the first connecting pipe and the joint type of the second connecting pipe.
[0101] In one optional implementation, determining at least one first target pipe fitting based on the turning angle value in a combined manner includes: determining whether two second target elbows are determined, wherein a first difference between the sum of the angle values of the two second target elbows and the turning angle value is less than a preset difference; if two second target elbows are determined, determining the elbow type of the two second target elbows based on the joint type of the first connecting pipe and the joint type of the second connecting pipe; if two second target elbows are not determined, determining a third target elbow and a connector based on the joint type of the first connecting pipe and the joint type of the second connecting pipe.
[0102] This application does not impose any restrictions on the specific value of the preset difference; it can be flexibly set according to the actual situation. For example, the preset difference can be 5°. It should be understood that the first difference between the sum of the angle values of the two second target bends and the turning angle value being less than the preset difference can include two cases: one is that the first difference between the sum of the angle values of the two second target bends and the turning angle value is 0°, that is, the sum of the angle values of the two second target bends is the same as the turning angle value; the other is that the first difference between the sum of the angle values of the two second target bends and the turning angle value is greater than 0° but less than or equal to 5°.
[0103] If it is not possible to connect the first and second connecting pipes using a single first target elbow, then connecting the first and second connecting pipes using two second target elbows can be considered first. If there are no two second target elbows that are compatible with the first and second connecting pipes, then connecting the first and second connecting pipes using a combination of a third target elbow and a connector can be considered. This makes the pipe connection method of this solution applicable to multiple scenarios, further ensuring the success rate of automatically generated pipe connection solutions and the level of intelligence in pipe connection design.
[0104] In one optional implementation, determining the elbow type of the two second target elbows based on the joint type of the first connecting pipe and the joint type of the second connecting pipe includes: if the joint type of the first connecting pipe is a flange, then both second target elbows are determined to be double flange elbows; if the joint type of the first connecting pipe is another type and the joint type of the second connecting pipe is a flange, then both second target elbows are determined to be socket elbows.
[0105] Since there are various types of elbows, the two second target elbows that can be adapted to the first and second connecting pipes can be determined more efficiently and accurately by using the joint type of the first connecting pipe and the joint type of the second connecting pipe.
[0106] In one optional implementation, determining the third target elbow and connector based on the joint type of the first connecting pipe and the joint type of the second connecting pipe includes: if the joint type of the first connecting pipe is a socket and the joint type of the second connecting pipe is a flange, then the third target elbow is determined to be a single first flange elbow and the connector is a flange-type plug, wherein the angle value of the first flange elbow is the same as the turning angle value; if the joint type of the first connecting pipe is a socket and the joint type of the second connecting pipe is another type of joint, then the third target elbow is determined to be a single first socket elbow and the connector is a double-pronged short pipe, wherein the first socket elbow... The first difference between the angle value and the turning angle value is less than the preset difference; if the joint type of the first connecting pipe is socket and the joint type of the second connecting pipe is other joint, then the third target elbow is determined to be two second socket elbows and the connector is a double-inserted short pipe, and the sum of the angle values of the two second socket elbows is the same as the turning angle value; if the joint type of the first connecting pipe is other joint and the joint type of the second connecting pipe is flange, then the third target elbow is determined to be a single second flange elbow and the connector is a flange, and the first difference between the angle value of the second flange elbow and the turning angle value is less than the preset difference.
[0107] When it is not possible to determine elbows and connectors using the same method as the sum of angle values as the turning angle values, a third target elbow and connector can be determined by setting a certain error, which can further improve the success rate of pipeline connection.
[0108] As a specific example, such as Figure 8 As shown, when the first connecting pipe and the second connecting pipe are coplanar but not collinear and the turning angle is not 90°, the process of determining the elbow or elbow and connector may include steps S801 to S825.
[0109] Step S801: Determine the turning angle value.
[0110] Step S802: Determine whether the connector type of the first connecting pipe is a coil; if the connector type of the first connecting pipe is a coil, proceed to steps S803 to S806; if the connector type of the first connecting pipe is not a coil, proceed to steps S807 to S825.
[0111] Step S803: Determine whether a single double-disc bend can be found by angle (the angle at this time is the turning angle value shown above, and will be referred to as angle in the following text); if a single double-disc bend is found, proceed to step S804; if a single double-disc bend is not found, proceed to steps S805 and S806.
[0112] Step S804: Determine to add a single double-disc elbow and use the double-disc elbow to connect the first connecting pipe and the second connecting pipe.
[0113] Step S805: Find the two double-disc elbows to be spliced according to the angle, that is, the sum of the angle values of the double-disc elbows is the same as the turning angle value.
[0114] Step S806: Determine the two double-disc elbows to be added and use the two double-disc elbows to connect the first connecting pipe and the second connecting pipe.
[0115] Step S807: Determine whether the joint type of the first connecting pipe is a socket; if the joint type of the first connecting pipe is a socket, proceed to steps S808 to S816; if the joint type of the first connecting pipe is not a socket, proceed to steps S817 to S825.
[0116] Step S808: Determine whether the connector type of the second connecting pipe is a coil; if the connector type of the second connecting pipe is a coil, proceed to steps S809 to S812; if the connector type of the second connecting pipe is not a coil, proceed to steps S113 to S816.
[0117] Step S809: Check if a single disc plug elbow can be found by angle; if a single disc plug elbow can be found, proceed to step S810; if a single disc plug elbow cannot be found, proceed to steps S811 and S812.
[0118] Step S810: Determine to add a single disc elbow and use the single disc elbow to connect the first connecting pipe and the second connecting pipe.
[0119] Step S811: Locate the disc insert and the first disc bend according to the angle and proceed to step S112.
[0120] Step S812: Determine to add a disc plug and a first disc elbow, and use the disc plug and the first disc elbow to connect the first connecting pipe and the second connecting pipe.
[0121] Step S813: Determine if a single first socket elbow with a near-turning angle value can be found (near-turning angle value means the difference between the corresponding elbow's angle value and the turning angle value is less than a preset difference); if a single first socket elbow with a near-turning angle value can be found, proceed to step S814; if a single first socket elbow with a near-turning angle value cannot be found, proceed to steps S815 and S816.
[0122] Step S814: Determine to add a single first socket elbow and use the single first socket elbow to connect the first connecting pipe and the second connecting pipe.
[0123] In step S815, the two second socket bends can be found by their angles.
[0124] Step S816: Determine to add two second socket elbows and connect the first connecting pipe and the second connecting pipe using double-insertion short pipes and the two second socket elbows.
[0125] Step S817: Determine whether the connector type of the second connecting pipe is a coiled type; if the connector type of the second connecting pipe is a coiled type, proceed to steps S818 to S821; if the connector type of the second connecting pipe is not a coiled type, proceed to steps S822 to S825.
[0126] Step S818: A single disc bearing elbow can be found by angle; if a single disc bearing elbow can be found, proceed to step S819; if a single disc bearing elbow cannot be found, proceed to steps S820 and S821.
[0127] Step S819: Determine to add a single flanged elbow and use the single flanged elbow to connect the first connecting pipe and the second connecting pipe.
[0128] Step S820: Locate the disc bearing with the closest angle and the two second disc bends.
[0129] Step S821: Determine the addition of a flange and two second flange elbows, and use the flange and two second flange elbows to connect the first connecting pipe and the second connecting pipe.
[0130] Step S822: A single socket elbow can be found by angle; if a single socket elbow can be found, proceed to step S823; if a single socket elbow cannot be found, proceed to steps S824 and S825.
[0131] Step S823: Determine to add a single socket elbow and use the single socket elbow to connect the first connecting pipe and the second connecting pipe.
[0132] Step S824: Find two socket elbows with similar angles.
[0133] Step S825: Determine to add two socket elbows and use the two socket elbows to connect the first connecting pipe and the second connecting pipe.
[0134] In some optional implementations, step S4032 above includes:
[0135] Step b1: If the joint type of the first connecting pipe and the joint type of the second connecting pipe are both flanges, then the elbow is determined to be two first double-flange elbows and the connector is a double-flange short pipe.
[0136] Step b2: If the joint type of the first connecting pipe is a flange and the joint type of the second connecting pipe is a socket, then the elbow is determined to be the first double flange elbow and the first socket elbow, and the connector is a flanged short pipe.
[0137] Step b3: If the joint type of the first connecting pipe is a flange and the joint type of the second connecting pipe is another joint, then the elbow is determined to be the first double flange elbow and the first double socket elbow, and the connector is a flanged short pipe.
[0138] Step b4: If the joint type of the first connecting pipe is a spigot and the joint type of the second connecting pipe is a flange, then the elbow is determined to be a first socket elbow and a first double flange elbow, and the connector is a flanged short pipe.
[0139] Step b5: If the joint type of the first connecting pipe is spigot and the joint type of the second connecting pipe is socket, then the elbow is determined to be the first socket elbow and the first socket elbow, and the connector is a socket short pipe.
[0140] Step b6: If the joint type of the first connecting pipe is a spigot and the joint type of the second connecting pipe is another joint, then the elbow is determined to be the first socket elbow and the first double socket elbow, and the connector is a socket short pipe.
[0141] Step b7: If the joint type of the first connecting pipe is other joints and the joint type of the second connecting pipe is a flange, then the elbow is determined to be the first double-insert elbow and the first double-flanged elbow, and the connector is a flanged short pipe.
[0142] Step b8: If the joint type of the first connecting pipe is other joints and the joint type of the second connecting pipe is socket, then the elbow is determined to be two first double-insertion elbows and a double-socket short pipe.
[0143] Step b9: If the joint type of the first connecting pipe and the joint type of the second connecting pipe are both other joints, then the elbow is determined to be two first double-prong elbows and a socket short pipe.
[0144] The first double-bearing elbow here can be a double-bearing 90° elbow; the first double-pronged elbow can be a double-pronged 90° elbow.
[0145] Based on the joint types of the first and second connecting pipes, the required connectors and elbows can be accurately and efficiently determined when the first and second connecting pipes are not coplanar or collinear. Subsequently, the first and second connecting pipes can be connected appropriately using the connectors and elbows.
[0146] As a specific example, such as Figure 9 As shown, when the first connecting pipe and the second connecting pipe are not coplanar or collinear, the process of determining the elbow and connector may include steps S901 to S917.
[0147] Step S901: Determine whether the connector type of the first connecting pipe is a coil; if the connector type of the first connecting pipe is a coil, proceed to steps S902 to S905; if the connector type of the first connecting pipe is not a coil, proceed to steps S907 to S917.
[0148] Step S902: Determine whether the second connecting pipe is a coiled joint; if the connector type of the second connecting pipe is a coiled joint, proceed to step S903; if the connector type of the second connecting pipe is not a coiled joint, proceed to steps S904 to S906.
[0149] Step S903: Determine to add two double-disc 90° elbows and double-disc short pipes, and connect the first connecting pipe and the second connecting pipe in the order of double-disc 90° elbows, double-disc short pipes, and double-disc 90° elbows.
[0150] Step S904: Determine whether the second connecting pipe is a socket; if the joint type of the second connecting pipe is a socket, proceed to step S905; if the joint type of the first connecting pipe is not a socket, proceed to step S906.
[0151] Step S905: Determine the addition of a double-disc 90° elbow, a disc-inserted short pipe, and a socket 90° elbow, and connect the first connecting pipe and the second connecting pipe in the order of the double-disc 90° elbow, the disc-inserted short pipe, and the socket 90° elbow.
[0152] Step S906: Determine the addition of a double-disc 90° elbow, a disc insert short pipe, and a double-socket 90° elbow, and connect the first connecting pipe and the second connecting pipe in the order of the double-disc 90° elbow, the disc insert short pipe, and the double-socket 90° elbow.
[0153] Step S907: Determine whether the first connecting pipe is a socket; if the first connecting pipe is a socket, proceed to steps S908 to S912; if the first connecting pipe is not a socket, proceed to steps S913 to S917.
[0154] Step S908: Determine whether the second connecting pipe is a coiled joint; if the connector type of the second connecting pipe is a coiled joint, proceed to step S909; if the connector type of the second connecting pipe is not a coiled joint, proceed to steps S910 to S912.
[0155] Step S909: Determine the addition of a socket 90° elbow, a flanged short pipe, and a double-flange 90° elbow, and connect the first connecting pipe and the second connecting pipe in the order of the socket 90° elbow, flanged short pipe, and double-flange 90° elbow.
[0156] Step S910: Determine whether the second connecting pipe is a socket; if the joint type of the second connecting pipe is a socket, proceed to step S911; if the joint type of the second connecting pipe is not a socket, proceed to step S912.
[0157] Step S911: Determine the addition of a 90° socket elbow, a short socket pipe, and a 90° socket elbow, and connect the first connecting pipe and the second connecting pipe in the order of the 90° socket elbow, the short socket pipe, and the 90° socket elbow.
[0158] Step S912: Determine the addition of a socketed 90° elbow, a socketed short pipe, and a double-socketed 90° elbow, and connect the first connecting pipe and the second connecting pipe in the order of the socketed 90° elbow, the socketed short pipe, and the double-socketed 90° elbow.
[0159] Step S913: Determine whether the second connecting pipe is a coiled joint; if the connector type of the second connecting pipe is a coiled joint, proceed to step S914; if the connector type of the second connecting pipe is not a coiled joint, proceed to steps S915 to S917.
[0160] Step S914: Determine the addition of a double-insert 90° elbow, a flanged short pipe, and a double-disc 90° elbow, and connect the first connecting pipe and the second connecting pipe in the order of the double-insert 90° elbow, the flanged short pipe, and the double-disc 90° elbow.
[0161] Step S915: Determine whether the second connecting pipe is a socket; if the joint type of the second connecting pipe is a socket, proceed to step S916; if the joint type of the second connecting pipe is not a socket, proceed to step S917.
[0162] Step S916: Determine the addition of a double-inserted 90° elbow, a double-socketed short pipe, and a double-inserted 90° elbow, and connect the first connecting pipe and the second connecting pipe in the order of the double-inserted 90° elbow, the double-socketed short pipe, and the double-inserted 90° elbow.
[0163] Step S917: Determine the addition of a double-inserted 90° elbow, a socketed short pipe, and a double-socketed 90° elbow, and connect the first connecting pipe and the second connecting pipe in the order of the double-inserted 90° elbow, the socketed short pipe, and the double-socketed 90° elbow.
[0164] Step S404: Using at least one first target pipe fitting, connect each first target pipe at the connection node to generate a pipe connection path. See details below. Figure 2 Step S204 of the illustrated embodiment will not be described again here.
[0165] The pipe connection method provided in this embodiment determines one or more first target pipe fittings by whether the first connecting pipe and the second connecting pipe are coplanar. It can determine one or more first target pipe fittings more accurately based on a relatively simple determination logic. Subsequently, a more accurate pipe connection path can be generated through one or more first target pipe fittings.
[0166] This embodiment provides a pipe connection method that can be used in computer equipment. Figure 10 This is a flowchart of a pipe connection method according to an embodiment of this application, such as... Figure 10 As shown, the process includes the following steps:
[0167] Step S205: Obtain the first target pipe to be connected. See details below. Figure 2 Step S201 of the illustrated embodiment will not be described again here.
[0168] Step S206: Based on the number of pipes in the first target pipeline, determine the connection nodes corresponding to that number of pipes. For details, please refer to [link to relevant documentation]. Figure 2 Step S202 of the illustrated embodiment will not be described again here.
[0169] Step S207: Determine at least one first target pipe fitting based on the positional relationship between the connection node and the first target pipe.
[0170] Specifically, step S207 includes:
[0171] Step S2071: If the number of pipes is 3 or 4, determine the inflow pipe, outflow pipe and branch pipe from multiple first target pipes.
[0172] An inflow pipe is a pipe that transports media to a specific pipe node, equipment, or system; it is the source of the media. An outflow pipe is a pipe that outputs media from a specific pipe node, equipment, or system; it is the destination of the media. A branch pipe is a secondary pipe that branches off from the main pipe (inflow or outflow pipe); it is used to transport fluid to a specific area or equipment and can be a branch of the main pipe.
[0173] If the primary target pipeline consists of three or more pipes, it often involves the installation of tees, crosses, combinations of tees, etc. If the inlet and outlet pipes and branch pipes are not determined, it is impossible to accurately determine the number of tees and crosses to be installed and their placement method.
[0174] Step S2072: Determine at least one first target pipe fitting based on the positional relationship between the inflow pipe, the outflow pipe, and the branch pipe.
[0175] After identifying the inlet pipe, outlet pipe, and branch pipe, the positional relationship between them can be determined. Based on this positional relationship, it can be determined whether to place a tee, cross, or other fittings. Thus, at least one first target pipe fitting can be identified through this positional relationship.
[0176] In an optional implementation, step S2071 includes:
[0177] Step c1: Obtain the medium flow direction of each first target pipe and the number of second target pipes whose medium flow direction is inflow direction. The second target pipes are one or more of the first target pipes.
[0178] Step c2: Determine the inflow pipe from multiple first target pipes based on the number of pipes in the second target pipe.
[0179] Step c3: Obtain the angle between the inflow pipe and the other first target pipes, and determine the second difference between each angle value and the preset angle value.
[0180] Step c4: The first target pipe corresponding to the smallest second difference is identified as the outflow pipe, and the first target pipes other than the inflow pipe and the outflow pipe are identified as branch pipes.
[0181] The specific setting of the preset angle value can be flexibly adjusted according to the actual situation. For example, the preset angle value can be 180°. When the preset angle value is 180°, the first target pipe corresponding to the smallest second difference is determined as the outflow pipe. This means that the closer the angle between the inflow pipe and the first target pipe corresponding to the smallest second difference is to 180°, the more collinear the inflow pipe and the outflow pipe are. This makes the medium tend to flow along the path of least resistance, and the directly opposite pipe is often the outflow direction of least resistance, further ensuring that the connection of each first target pipe is more reasonable.
[0182] The inflow pipe is determined by the number of the second target pipes, then the outflow pipe is determined by the inflow pipes, and finally the branch pipes are determined. This hierarchical screening method can reduce computational complexity and improve determination efficiency and accuracy.
[0183] In one optional implementation, if the number of pipes in the second target pipe is 1, then the first target pipe with the largest diameter is determined as the inflow pipe; if the number of pipes in the second target pipe is not 1, then all first target pipes with the medium flowing in the inflow direction are determined as inflow pipes.
[0184] If the number of pipes in the second target pipe is 1, it indicates that there can only be one inflow pipe. Therefore, the first target pipe with the largest diameter should be identified as the inflow pipe, which meets the actual construction requirements. If only the flow direction is considered and pipe diameter is ignored, a smaller diameter pipe that is actually a branch pipe might be mistakenly identified as an inflow pipe. If the number of pipes in the second target pipe is not 1, such as 2, it indicates that there may be multiple inflow pipes. Therefore, the first target pipe with the medium flowing in the inflow direction can be identified as the inflow pipe, regardless of pipe diameter. This preserves all possible inflow paths and avoids missing the true inlet due to pipe diameter filtering.
[0185] As a specific example, such as Figure 11 As shown, the process of determining the inflow pipe, outflow pipe and branch pipe from multiple first target pipes may include steps S1101 to S1107.
[0186] Step S1101: Obtain multiple first target pipes.
[0187] Step S1102: Obtain the medium flow direction of each first target pipe.
[0188] Step S1103: Determine the first target pipe with the medium flow direction as the inflow direction as the second target pipe, and obtain the number of pipes of the second target pipe; determine whether the number of pipes of the second target pipe is one; if the number of pipes of the second target pipe is one, then execute step S1107; if the number of pipes of the second target pipe is not one, then execute steps S1104 to S1106.
[0189] In step S1104, all pipes with the medium flowing in the inflow direction are designated as inflow pipes. In other words, all second target pipes are designated as inflow pipes.
[0190] In step S1105, the pipe with an angle of 180° closest to the inflow pipe is the outflow pipe.
[0191] Step S1106: The remaining pipes are branch pipes, that is, all the first target pipes except for the inflow pipe and the outflow pipe are branch pipes.
[0192] Step S1107: The first target pipe with the largest diameter is determined as the inflow pipe.
[0193] Step S208: Using at least one first target pipe fitting, connect each first target pipe at the connection node to generate a pipe connection path.
[0194] In one optional implementation, determining at least one first target pipe fitting based on the positional relationship between the inlet pipe, the outlet pipe, and the branch pipes includes: if the number of branch pipes is 1, then determining at least one first target pipe fitting includes at least a tee; if the number of branch pipes is 2, the inlet pipe and the outlet pipe are collinear, and the two branch pipes are collinear, then determining at least one first target pipe fitting consists of two tees and a connector.
[0195] If the number of branch pipes is 1, it indicates that the number of first target pipes can be 3. According to the actual construction requirements, it can be determined that at least a tee is needed to connect the 3 first target pipes. This allows for a more accurate and efficient determination of the corresponding first target pipe fittings when there are 3 first target pipes. If the number of branch pipes is 2, it indicates that the number of first target pipes can be 4. When the inflow pipe and outflow pipe are collinear and the two branch pipes are collinear, that is, the inflow pipe and outflow pipe are in one plane and the two branch pipes are in another plane, since two planes are involved, it is not possible to connect these 4 first target pipes using a tee. Therefore, it is relatively simple to determine that the first target pipe fittings include two tees and connectors.
[0196] Specifically, step S208 includes:
[0197] Step S2081: If the number of branch pipes is 1, determine the target placement method of the tee according to the positional relationship between the inflow pipe, the outflow pipe and the branch pipes.
[0198] For inflow pipes, outflow pipes, and branch pipes, there may be various positional relationships, such as inflow pipes and outflow pipes being coplanar and collinear, or inflow pipes and branch pipes being collinear. Therefore, by considering the positional relationships between inflow pipes, outflow pipes, and branch pipes, the target placement method of the tee can be reasonably determined.
[0199] Step S2082: Place the tee according to the target placement method, and determine at least one second target pipe fitting according to the joint type between the tee interface and the corresponding first target pipe.
[0200] After the tee is placed according to the target placement method, the interface of the tee may not match the joint type of the corresponding first target pipe. Therefore, at least one second target pipe can be determined by the aforementioned scheme of determining the first target pipe fitting with two first target pipes, so as to solve the situation where the interface of the tee does not match the joint type of the corresponding first target pipe.
[0201] Step S2083: Using a tee and at least one second target pipe fitting, connect each first target pipe at the connection node to generate a pipe connection path.
[0202] Here, a tee can be placed first, and then the placement method of the second target pipe fitting can be determined according to the interface type of the tee's connector and the corresponding first target pipe. In this way, each first target pipe can be connected at the connection node one by one to generate the pipe connection path.
[0203] In one optional implementation, the target placement method of the tee is determined based on the positional relationship between the inlet pipe, the outlet pipe, and the branch pipe, including: if the inlet pipe and the outlet pipe are coplanar, the target placement method of the tee is determined based on the positional relationship between the inlet pipe, the outlet pipe, and the branch pipe; if the inlet pipe and the outlet pipe are not coplanar and the inlet pipe and the branch pipe are coplanar, the target placement method is to place the tee on the plane where the inlet pipe and the branch pipe are located; if the inlet pipe and the outlet pipe are not coplanar and the inlet pipe and the branch pipe are not coplanar, the target placement method is to place the tee on the plane where the inlet pipe is located, and the branch pipe of the tee is perpendicular to the branch pipe.
[0204] If the inlet pipe and the outlet pipe are coplanar, it is also necessary to consider whether the inlet pipe and the outlet pipe are collinear and whether the inlet pipe and the branch pipe are coplanar. Therefore, it is necessary to further determine the target placement method of the tee based on the positional relationship between the inlet pipe, the outlet pipe, and the branch pipe. If the inlet pipe and the outlet pipe are not coplanar and the inlet pipe and the branch pipe are coplanar, then the tee should be placed according to the plane where the coplanar inlet pipe and the branch pipe are located. This can reduce the addition of other additional pipe fittings such as connectors. If the inlet pipe and the outlet pipe are not coplanar and the inlet pipe and the branch pipe are not coplanar, then the tee should be placed according to the plane where the inlet pipe is located. This makes the placement method of the tee more reasonable.
[0205] In one optional implementation, the target placement method of the tee is determined based on the positional relationship between the inlet pipe, the outlet pipe, and the branch pipe, including: if the inlet pipe and the outlet pipe are collinear and the inlet pipe and the branch pipe are coplanar, the target placement method is to place the tee on the plane containing the inlet pipe, the outlet pipe, and the branch pipe; if the inlet pipe and the outlet pipe are collinear and the inlet pipe and the branch pipe are not coplanar, the target placement method is to place the tee on the plane containing the inlet pipe, and the branch pipe of the tee is perpendicular to the branch pipe; if the inlet pipe and the outlet pipe are not collinear and the inlet pipe and the branch pipe are not coplanar, the target placement method is to place the tee on the plane containing the inlet pipe, the outlet pipe, and the branch pipe; if the inlet pipe and the outlet pipe are not collinear and the inlet pipe and the branch pipe are not coplanar, the target placement method is to place the tee on the plane containing the inlet pipe, and the branch pipe of the tee is perpendicular to the branch pipe.
[0206] The target placement of the tee is determined by the positional relationship between the inlet pipe, outlet pipe, and branch pipe. This allows for a more reasonable determination of the tee placement when the inlet pipe and outlet pipe are coplanar.
[0207] As a specific example, such as Figure 12As shown, when the number of pipes in the first target pipe is 3 and one of the first target pipes is a branch pipe, the process of determining the target placement method of the tee can specifically include steps S1201 to S1213.
[0208] Step S1201: Determine the inlet pipe, outlet pipe, and branch pipes. For detailed determination procedures, please refer to [link to relevant documentation]. Figure 11 .
[0209] Step S1202: Determine whether the inflow pipe and the outflow pipe are coplanar; if the inflow pipe and the outflow pipe are coplanar, proceed to steps S1203 to S1210; if the inflow pipe and the outflow pipe are not coplanar, proceed to steps S1210 to S1213.
[0210] Step S1203: Determine whether the inflow pipe and the outflow pipe are collinear. If the inflow pipe and the outflow pipe are collinear, proceed to steps S1204 to S1206 and step S1210; if the inflow pipe and the outflow pipe are not collinear, proceed to steps S1207 to S1209 and step S1210.
[0211] Step S1204: Determine whether the inflow pipe and the branch pipe are coplanar; if the inflow pipe and the branch pipe are coplanar, proceed to steps S1205 and S1210; if the inflow pipe and the branch pipe are not coplanar, proceed to step S1206.
[0212] Step S1205: Place the tee according to the plane where the inflow pipe, outflow pipe and branch pipe are located.
[0213] Step S1206: Place the tee according to the plane where the inflow pipe is located, and the angle between the branch pipe of the tee and the branch pipe is 90°.
[0214] Step S1207: Determine whether the inflow pipe and the branch pipe are coplanar; if the inflow pipe and the branch pipe are coplanar, then execute steps S1208 and S1210; if the inflow pipe and the branch pipe are not coplanar, then execute steps S1209 to S1210.
[0215] Step S1208: Place the tee according to the plane where the inflow pipe, outflow pipe and branch pipe are located.
[0216] Step S1209: Place the tee according to the inflow pipe, with the branch pipe of the tee forming a 90° angle with the branch pipe.
[0217] Step S1210: The connection scheme between the tee interface and the corresponding first pipe interface can refer to the connection scheme of the two pipes.
[0218] Step S1211: Determine whether the inflow pipe and the branch pipe are coplanar; if the inflow pipe and the branch pipe are coplanar, proceed to step S1212; if the inflow pipe and the branch pipe are not coplanar, proceed to step S1213.
[0219] Step S1212: Place the tee according to the plane where the inflow pipe and the branch pipe are located.
[0220] Step S1213: Place the tee according to the plane where the inflow pipe is located, and the angle between the branch pipe of the tee and the branch pipe is 90°.
[0221] Specifically, step S208 above also includes:
[0222] Step S2084: If the number of branch pipes is 2, determine the target placement method of the tee or cross based on the positional relationship between the inflow pipe, outflow pipe, and branch pipes. Please refer to the description of step S2081 for details.
[0223] Step S2085: Place the tee or cross according to the target placement method, and determine at least one third target pipe fitting according to the type of joint between the tee or cross interface and the corresponding first target pipe. See step S2082 for details.
[0224] Step S2086: Using at least one third target pipe fitting and one of a tee or a cross, connect the various first target pipes at the connection node to generate a pipe connection path. See step S2083 for details.
[0225] In one optional implementation, the target placement method of the tee or cross is determined according to the positional relationship between the inlet pipe, the outlet pipe and the branch pipe, including: if the inlet pipe and the outlet pipe are collinear, the target placement method of the tee or cross is determined according to the positional relationship between the inlet pipe, the outlet pipe and the branch pipe; if the inlet pipe and the outlet pipe are not collinear, the target placement method is to place the cross on the plane where the inlet pipe is located.
[0226] The placement of tees or crosses can be dynamically determined based on the positional relationship between the inflow pipe, outflow pipe, and branch pipes. This can further improve the success rate of connecting each primary target pipe and minimize the need for additional fittings such as connectors. It simplifies the connection scheme for each primary target pipe, and subsequent construction and maintenance can be carried out more easily based on this connection scheme.
[0227] In one optional implementation, the target placement method of the tee or cross is determined based on the positional relationship between the inlet pipe, the outlet pipe, and the branch pipes, including: if the inlet pipe, the outlet pipe, and all the branch pipes are coplanar, the target placement method is to place the cross on the plane containing the inlet pipe, the outlet pipe, and all the branch pipes; if the inlet pipe, the outlet pipe, and one of the branch pipes are coplanar, the target placement method is to place the cross on the plane containing the inlet pipe, the outlet pipe, and one of the branch pipes; if two branch pipes are collinear, the target placement method is to place a tee on the plane containing the inlet pipe and the outlet pipe, and another tee on the plane containing the two branch pipes, with the two tees connected by a short pipe.
[0228] If the inlet pipe, outlet pipe, and all branch pipes are coplanar, then a four-way valve should be placed on the plane containing all the pipes. If the inlet pipe, outlet pipe, and all branch pipes are not coplanar, then a four-way valve should be placed on the plane containing the inlet pipe, outlet pipe, and one of the branch pipes. If the inlet pipe, outlet pipe, and one of the branch pipes are not coplanar, then a tee valve should be placed on the plane containing the inlet pipe and outlet pipe, and another tee valve should be placed on the plane containing the two branch pipes. This approach not only improves the success rate of pipe connections but also minimizes the need for additional fittings such as connectors.
[0229] As a specific example, such as Figure 13 As shown, when the number of pipes in the first target pipe is 4 and two of the first target pipes are branch pipes, the process of determining the target placement method of the tee can specifically include steps S1301 to S1313.
[0230] Step S1301: Determine the inlet pipe, outlet pipe, and branch pipes. For detailed determination procedures, please refer to [link to relevant documentation]. Figure 11Step S1302: Determine whether the inlet pipe and the outlet pipe are collinear; if they are, proceed to steps S1303 to S1309 and S1310; if they are not collinear, proceed to step S1309. Step S1303: Determine whether the inlet pipe, the outlet pipe, and the two branch pipes are coplanar; if they are, proceed to steps S1304 and S1310; if they are not, proceed to steps S1305 to S1308 and S1310. Step S1304: Place the four-way connector according to the plane containing the inlet pipe, the outlet pipe, and the two branch pipes. Step S1305: Determine whether the inlet pipe, outlet pipe, and one of the branch pipes are coplanar. If they are, proceed to steps S1306 and S1310; if they are not, proceed to steps S1307 to S1308 and S1310. Step S1306: Place a four-way connector according to the plane containing the inlet pipe, outlet pipe, and one of the branch pipes. Step S1307: Determine whether the two branch pipes are collinear. If they are, proceed to steps S1308 and S1310; if they are not, proceed to step S1309. Step S1308: Place a tee according to the plane containing the inlet pipe and outlet pipe, and place another tee according to the plane containing the two branch pipes, connecting the two tees with a short pipe. Step S1309: Place a four-way connector according to the plane containing the inlet pipe. Step S1310, for details on the connection scheme between the four-way or three-way interface and the corresponding first target pipe, please refer to the connection scheme of the two pipes.
[0231] The pipe connection method provided in this embodiment can reasonably determine the target placement of tees or crosses based on the positional relationship between the inflow pipe, outflow pipe, and branch pipes; then, according to the joint type between the tee or cross and the corresponding first target pipe, at least one second target pipe fitting or at least one third target pipe fitting is determined; finally, using at least one third target pipe fitting and one of the tee or cross, the first target pipes are connected at the connection node to generate a pipe connection path, which can further improve the success rate of connecting the first target pipes.
[0232] In an optional implementation, the method further includes: obtaining the pipe diameter of each first target pipe and determining the third target pipe with the largest pipe diameter; if the interface type of the third target pipe is a coiled joint, then determining that at least one first target pipe fitting also includes a double-coil tapered pipe; if the interface type of the third target pipe is not a coiled joint, then determining that at least one first target pipe fitting also includes a double-shoulder tapered pipe.
[0233] Determining whether at least one first target pipe fitting includes a double-disc reducer or a double-socket reducer by determining whether the interface type of the third target pipe is a disc type can not only accurately and quickly determine whether it includes a double-disc reducer or a double-socket reducer, but also further improve the connection success rate of each first target pipe.
[0234] As a specific example, such as Figure 14 The diagram shows the process for handling situations where the diameters of two or more first target pipes are different during the connection of various first target pipes, specifically including steps S1401 to S1405.
[0235] Step 1401: Obtain the pipe diameter of each first target pipe. Step 1402: Determine if the pipe diameters of the first target pipes are the same. If they are not the same, determine the first target pipe with the largest diameter as the third target pipe, and proceed to steps S1403 to S1405. Step S1403: Determine if the connector type of the third target pipe is a coiled joint. If the connector type of the third target pipe is a coiled joint, proceed to step S1404; if the connector type of the third target pipe is not a coiled joint, proceed to step S1405. Step S1404: Add a double-coil tapered pipe to the existing connection scheme. Step S1405: Add a double-socket tapered pipe to the existing connection scheme.
[0236] Through the above process, this solution automatically determines at least one first target pipe fitting based on the number of pipes and connects each first target pipe using at least one first target pipe fitting. This eliminates the need for users to manually select one or more first target pipe fittings from the pipe fitting library, achieving automated generation instead of manual operation. This ensures high efficiency in pipe connection, saves users time in selecting first target pipe fittings, and avoids errors and omissions due to human negligence.
[0237] This embodiment also provides a pipe connection device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0238] This embodiment provides a pipe connection device, such as... Figure 15As shown, the system includes: a first acquisition module 1501, used to acquire a first target pipe to be connected; a first determination module 1502, used to determine a connection node corresponding to the number of pipes in the first target pipe; a second determination module 1503, used to determine at least one first target pipe fitting based on the positional relationship between the connection node and the first target pipe; and a connection module 1504, used to connect each first target pipe at the connection node using at least one first target pipe fitting to generate a pipe connection path.
[0239] In some optional embodiments, the second determining module 1503 is further configured to determine the turning angle value between the first connecting pipe and the second connecting pipe if the first connecting pipe and the second connecting pipe are coplanar, and determine at least one first target pipe fitting based on the turning angle value; if the first connecting pipe and the second connecting pipe are not coplanar, determine the elbow and connector based on the joint type of the first connecting pipe and the joint type of the second connecting pipe.
[0240] In some optional embodiments, the second determining module 1503 is further configured to: if the turning angle value is a first preset angle value, determine a connector based on the joint type of the first connecting pipe and the joint type of the second connecting pipe; if the turning angle value is a second preset angle value, determine an elbow based on the joint type of the first connecting pipe and the joint type of the second connecting pipe; if the turning angle value is not a second preset angle value, determine an elbow or an elbow and a connector based on the joint type of the first connecting pipe and the joint type of the second connecting pipe.
[0241] In some optional embodiments, the second determining module 1503 is further configured to: determine the connector as a disc insert if the connector type of the first connecting pipe is a flange and the connector type of the second connecting pipe is a socket; determine the connector as a disc socket if the connector type of the first connecting pipe is a flange and the connector type of the second connecting pipe is another type of connector; determine the connector as a disc insert if the connector type of the first connecting pipe is a socket and the connector type of the second connecting pipe is a flange; determine the connector as a double-insert short pipe if both the connector types of the first and second connecting pipes are sockets; determine the connector as a disc socket if the connector type of the first connecting pipe is another type of connector and the connector type of the second connecting pipe is a flange; and determine the connector as a double-socket short pipe if both the connector types of the first and second connecting pipes are other types of connectors.
[0242] In some optional embodiments, the second determining module 1503 is further configured to: if the number of elbows is 1 and the joint type of the first connecting pipe is a flange, then determine the elbow as a first double-flange elbow, the angle value of the first double-flange elbow being the same as the second preset angle value; if the number of elbows is 1 and the joint type of the first connecting pipe is not a flange, then determine the elbow as a first socket elbow, the angle value of the first socket elbow being the same as the second preset angle value; if the number of elbows is not 1 and the joint type of the first connecting pipe is a flange, then determine the elbow as two second double-flange elbows, the sum of the angle values of the two second double-flange elbows being the same as the second preset angle value; if the number of elbows is not 1 and the joint type of the first connecting pipe is not a flange, then determine the elbow as two second socket elbows, the sum of the angle values of the two second socket elbows being the same as the second preset angle value.
[0243] In some optional implementations, the second determining module 1503 is further configured to determine whether a single first target elbow with the same angle value as the turning angle value has been determined; if a single first target elbow has been determined, the elbow type of the first target elbow is determined according to the joint type of the first connecting pipe and the second connecting pipe; if a single first target elbow has not been determined, at least one first target pipe fitting is determined according to the turning angle value in the combination mode.
[0244] In some optional embodiments, the second determining module 1503 is further configured to: determine the first target elbow as a double-flange elbow if the joint type of the first connecting pipe is a flange; determine the first target elbow as a flange-slot elbow if the joint type of the first connecting pipe is a socket and the joint type of the second connecting pipe is a flange; determine the first target elbow as a flange-seat elbow if the joint type of the first connecting pipe is another type and the joint type of the second connecting pipe is a flange; and determine the first target elbow as a socket elbow if both the joint type of the first connecting pipe and the joint type of the second connecting pipe are other types.
[0245] In some optional implementations, the second determining module 1503 is further configured to determine whether two second target bends are determined, wherein the first difference between the sum of the angle values of the two second target bends and the turning angle value is less than a preset difference; if two second target bends are determined, the bend types of the two second target bends are determined according to the joint type of the first connecting pipe and the joint type of the second connecting pipe; if two second target bends are not determined, a third target bend and connector are determined according to the joint type of the first connecting pipe and the joint type of the second connecting pipe.
[0246] In some optional implementations, the second determining module 1503 is further configured to determine that both second target elbows are double-disc elbows if the joint type of the first connecting pipe is a flange; and to determine that both second target elbows are socket elbows if the joint type of the first connecting pipe is another type of joint and the joint type of the second connecting pipe is a flange.
[0247] In some optional embodiments, the second determining module 1503 is further configured to: if the joint type of the first connecting pipe is a socket and the joint type of the second connecting pipe is a flange, then determine the third target elbow as a single first flange elbow and the connector as a flange plug, wherein the angle value of the first flange elbow is the same as the turning angle value; if the joint type of the first connecting pipe is a socket and the joint type of the second connecting pipe is another type of joint, then determine the third target elbow as a single first socket elbow and the connector as a double-insert short pipe, wherein the angle value of the first socket elbow and the turning angle value are the same as the turning angle value. If the first connecting pipe has a socket joint and the second connecting pipe has another joint, then the third target elbow is determined to be two second socket elbows and the connector is a double-inserted short pipe, and the sum of the angle values of the two second socket elbows is the same as the turning angle value; if the first connecting pipe has another joint and the second connecting pipe has a flange joint, then the third target elbow is determined to be a single second flange elbow and the connector is a flange, and the first difference between the angle value of the second flange elbow and the turning angle value is less than the preset difference.
[0248] In some optional embodiments, the second determining module 1503 is further configured to: if the joint type of the first connecting pipe and the joint type of the second connecting pipe are both flanged, then determine the elbow as two first double-flanged elbows and the connector as a double-flanged short pipe; if the joint type of the first connecting pipe is flanged and the joint type of the second connecting pipe is socketed, then determine the elbow as a first double-flanged elbow and a first socket-joint elbow, and the connector as a flange-joint short pipe; if the joint type of the first connecting pipe is flanged and the joint type of the second connecting pipe is other joints, then determine the elbow as a first double-flanged elbow and a first double-socketed elbow, and the connector as a flange-joint short pipe; if the joint type of the first connecting pipe is spigot and the joint type of the second connecting pipe is flanged, then determine the elbow as a first socket-joint elbow and a first double-flanged elbow, and the connector as a flange-joint short pipe; if the joint type of the first connecting pipe is spigot and the joint type of the second connecting pipe is flanged, then determine the elbow as a first socket-joint elbow and a first double-flanged elbow, and the connector as a flange-joint short pipe; if the joint type of the first connecting pipe is spigot... If the joint type of the first connecting pipe is socket, then the elbow is determined to be a first socket elbow and a first socket elbow, and the connector is a socket short pipe; if the joint type of the first connecting pipe is spigot and the joint type of the second connecting pipe is other joints, then the elbow is determined to be a first socket elbow and a first double socket elbow, and the connector is a socket short pipe; if the joint type of the first connecting pipe is other joints and the joint type of the second connecting pipe is flanged, then the elbow is determined to be a first double spigot elbow and a first double flanged elbow, and the connector is a flanged socket short pipe; if the joint type of the first connecting pipe is other joints and the joint type of the second connecting pipe is socket, then the elbow is determined to be two first double spigot elbows and double socket short pipes; if the joint types of the first and second connecting pipes are both other joints, then the elbow is determined to be two first double spigot elbows and socket short pipes.
[0249] In some optional implementations, the second determining module 1503 is further configured to determine an inflow pipe, an outflow pipe, and a branch pipe from a plurality of first target pipes if the number of pipes is 3 or 4; and to determine at least one first target pipe fitting based on the positional relationship between the inflow pipe, the outflow pipe, and the branch pipe.
[0250] In some optional embodiments, the second determining module 1503 is further configured to obtain the medium flow direction of each first target pipe and the number of second target pipes whose medium flow direction is the inflow direction, wherein the second target pipes are one or more of the first target pipes; determine the inflow pipe from the multiple first target pipes according to the number of second target pipes; obtain the angle value between the inflow pipe and the remaining first target pipes, and determine the second difference between each angle value and a preset angle value; determine the first target pipe corresponding to the smallest second difference as the outflow pipe, and determine the first target pipes other than the inflow pipe and the outflow pipe as branch pipes.
[0251] In some optional implementations, the second determining module 1503 is further configured to determine the first target pipe with the largest diameter as the inflow pipe if the number of pipes in the second target pipe is 1; and to determine all first target pipes with the medium flowing in the inflow direction as inflow pipes if the number of pipes in the second target pipe is not 1.
[0252] In some alternative implementations, the second determining module 1503 is further configured to determine that at least one first target pipe fitting includes at least a tee if the number of branch pipes is 1; and to determine that at least one first target pipe fitting includes two tees and a connector if the number of branch pipes is 2, the inlet pipe and the outlet pipe are collinear and the two branch pipes are collinear.
[0253] In some optional implementations, if the number of branch pipes is 1, the connection module 1504 is further used to determine the target placement method of the tee according to the positional relationship between the inflow pipe, the outflow pipe and the branch pipe; place the tee according to the target placement method, and determine at least one second target pipe fitting according to the joint type between the interface of the tee and the corresponding first target pipe; and connect each first target pipe at the connection node using the tee and at least one second target pipe fitting to generate a pipe connection path.
[0254] In some optional implementations, the connection module 1504 is further configured to determine the target placement method of the tee based on the positional relationship between the inflow pipe, the outflow pipe, and the branch pipe if the inflow pipe and the outflow pipe are coplanar; if the inflow pipe and the outflow pipe are not coplanar and the inflow pipe and the branch pipe are coplanar, the target placement method is to place the tee on the plane where the inflow pipe and the branch pipe are located; if the inflow pipe and the outflow pipe are not coplanar and the inflow pipe and the branch pipe are not coplanar, the target placement method is to place the tee on the plane where the inflow pipe is located, and the branch pipe of the tee is perpendicular to the branch pipe.
[0255] In some optional implementations, the connection module 1504 is further configured to: if the inflow pipe and the outflow pipe are collinear and the inflow pipe and the branch pipe are coplanar, then determine the target placement method as placing a tee on the plane containing the inflow pipe, the outflow pipe, and the branch pipe; if the inflow pipe and the outflow pipe are collinear and the inflow pipe and the branch pipe are not coplanar, then determine the target placement method as placing a tee on the plane containing the inflow pipe, with the branch pipe of the tee perpendicular to the branch pipe; if the inflow pipe and the outflow pipe are not collinear and the inflow pipe and the branch pipe are not coplanar, then determine the target placement method as placing a tee on the plane containing the inflow pipe, the outflow pipe, and the branch pipe; if the inflow pipe and the outflow pipe are not collinear and the inflow pipe and the branch pipe are not coplanar, then determine the target placement method as placing a tee on the plane containing the inflow pipe, with the branch pipe of the tee perpendicular to the branch pipe.
[0256] In some optional implementations, if the number of branch pipes is 2, the connection module 1504 is further used to determine the target placement method of the tee or cross according to the positional relationship between the inflow pipe, the outflow pipe and the branch pipes; place the tee or cross according to the target placement method, and determine at least one third target pipe fitting according to the joint type between the joint of the tee or cross and the corresponding first target pipe; use at least one third target pipe fitting and one of the tee and cross to connect each first target pipe at the connection node to generate a pipe connection path.
[0257] In some optional implementations, the connection module 1504 is also used to determine the target placement method of the tee or cross-junction based on the positional relationship between the inflow pipe, the outflow pipe and the branch pipe if the inflow pipe and the outflow pipe are collinear; if the inflow pipe and the outflow pipe are not collinear, the target placement method is to place the cross-junction on the plane where the inflow pipe is located.
[0258] In some optional implementations, the connection module 1504 is further configured to determine the target placement method as placing a four-way valve on the plane containing the inflow pipe, outflow pipe, and all branch pipes if the inflow pipe, outflow pipe, and all branch pipes are coplanar; if the inflow pipe, outflow pipe, and one of the branch pipes are coplanar, the target placement method is to place a four-way valve on the plane containing the inflow pipe, outflow pipe, and one of the branch pipes; if two branch pipes are collinear, the target placement method is to place a tee valve on the plane containing the inflow pipe and outflow pipe, and another tee valve on the plane containing the two branch pipes, with the two tee valves connected by a short pipe.
[0259] In some optional embodiments, the device further includes a second acquisition module, a third determination module, and a fourth determination module, wherein the second acquisition module is used to acquire the pipe diameter of each first target pipe and determine the first target pipe with the largest pipe diameter as the third target pipe; the third determination module is used to determine that at least one first target pipe fitting further includes a double-disc tapered pipe if the interface type of the third target pipe is a coil; and the fourth determination module is used to determine that at least one first target pipe fitting further includes a double-shoulder tapered pipe if the interface type of the third target pipe is not a coil.
[0260] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0261] In this embodiment, the pipe connection device is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0262] This application also provides a computer device having the above-described features. Figure 16 The pipe connection device shown.
[0263] Please see Figure 16 , Figure 16 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of this application, such as... Figure 16 As shown, the computer device includes one or more processors 1610, memory 1620, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 16 Take the 1610 processor as an example.
[0264] Processor 1610 may be a central processing unit, a network processor, or a combination thereof. Processor 1610 may further include hardware chips. These hardware chips may be application-specific integrated circuits (ASICs), programmable logic devices (PLDs), or combinations thereof. These programmable logic devices may be complex programmable logic devices (CLPs), field-programmable gate arrays (FPGAs), general-purpose array logic (GDAs), or any combination thereof.
[0265] The memory 1620 stores instructions executable by at least one processor 1610 to cause the at least one processor 1610 to perform the method shown in the above embodiments.
[0266] The memory 1620 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device. Furthermore, the memory 1620 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 1620 may optionally include memory remotely located relative to the processor 1610, and this remote memory may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0267] The memory 1620 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 1620 may also include combinations of the above types of memory.
[0268] The computer device also includes an input device 1630 and an output device 1640. The processor 1610, memory 1620, input device 1630, and output device 1640 can be connected via a bus or other means. Figure 16 Taking the example of a connection between China and Israel via a bus.
[0269] Input device 1630 can receive input numerical or character information, and generate key signal inputs related to user settings and function control of the computer device, such as a touchscreen, keypad, mouse, trackpad, touchpad, joystick, one or more mouse buttons, trackball, joystick, etc. Output device 1640 may include display devices, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors). The aforementioned display devices include, but are not limited to, liquid crystal displays, light-emitting diodes, displays, and plasma displays. In some alternative embodiments, the display device may be a touchscreen.
[0270] This application also provides a computer-readable storage medium. The methods described in this application can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code downloaded over a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and subsequently stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the methods shown in the above embodiments are implemented.
[0271] A portion of this application can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to this application through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.
[0272] Although embodiments of this application have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of this application, and all such modifications and variations fall within the scope defined by the appended claims.
Claims
1. A pipe connection method, characterized in that, include: Obtain the first target pipe to be connected; Based on the number of pipes in the first target pipeline, determine the connection nodes corresponding to the number of pipes; At least one first target pipe fitting is determined based on the positional relationship between the connection node and the first target pipe; Using the at least one first target pipe fitting, each of the first target pipes is connected at the connection node to generate a pipe connection path.
2. The method according to claim 1, characterized in that, If the number of pipes is 2, the first target pipe includes a first connecting pipe and a second connecting pipe. At least one first target pipe fitting is determined based on the positional relationship between the connecting node and the first target pipe, including: If the first connecting pipe and the second connecting pipe are coplanar, then the turning angle value between the first connecting pipe and the second connecting pipe is determined, and the at least one first target pipe fitting is determined based on the turning angle value; If the first connecting pipe and the second connecting pipe are not parallel, then the elbow and connector are determined according to the joint type of the first connecting pipe and the joint type of the second connecting pipe.
3. The method according to claim 2, characterized in that, Determining the at least one first target pipe fitting based on the turning angle value includes: If the turning angle value is a first preset angle value, then the connector is determined according to the joint type of the first connecting pipe and the joint type of the second connecting pipe; If the turning angle value is a second preset angle value, then the elbow is determined according to the joint type of the first connecting pipe and the joint type of the second connecting pipe; If the turning angle value is not the second preset angle value, then the elbow or the elbow and the connector are determined according to the joint type of the first connecting pipe and the joint type of the second connecting pipe, and the first preset angle value is less than the second preset angle value.
4. The method according to claim 3, characterized in that, If the turning angle value is a first preset angle value, then the connector is determined according to the joint type of the first connecting pipe and the joint type of the second connecting pipe, including: If the connector type of the first connecting pipe is a flange and the connector type of the second connecting pipe is a socket, then the connector is determined to be a flange plug. If the connector type of the first connecting pipe is the flange and the connector type of the second connecting pipe is another connector, then the connector is determined to be a flange bearing. If the connector type of the first connecting pipe is the socket and the connector type of the second connecting pipe is the flange, then the connector is determined to be the flange. If the joint type of the first connecting pipe and the joint type of the second connecting pipe are both the socket type, then the connector is determined to be a double-inserted short pipe. If the joint type of the first connecting pipe is the other joint and the joint type of the second connecting pipe is the flange, then the connecting component is determined to be the flange bearing. If the joint type of the first connecting pipe and the joint type of the second connecting pipe are both of the other joints, then the connector is determined to be a double-socket short pipe.
5. The method according to claim 3, characterized in that, If the turning angle value is a second preset angle value, then the elbow is determined according to the joint type of the first connecting pipe and the joint type of the second connecting pipe, including: If the number of elbows is 1 and the joint type of the first connecting pipe is a disc, then the elbow is determined to be a first double disc elbow, and the angle value of the first double disc elbow is the same as the second preset angle value. If the number of elbows is 1 and the joint type of the first connecting pipe is not the flange, then the elbow is determined to be a first socket elbow, and the angle value of the first socket elbow is the same as the second preset angle value. If the number of elbows is not 1 and the joint type of the first connecting pipe is the disc, then the elbow is determined to be two second double disc elbows, and the sum of the angle values of the two second double disc elbows is the same as the second preset angle value. If the number of elbows is not 1 and the joint type of the first connecting pipe is not the flange, then the elbow is confirmed to be two second socket elbows, and the sum of the angle values of the two second socket elbows is the same as the second preset angle value.
6. The method according to claim 3, characterized in that, If the turning angle value is not the second preset angle value, then the elbow or the elbow and the connector are determined according to the joint type of the first connecting pipe and the joint type of the second connecting pipe, including: Determine whether a single first target bend with the same angle value as the turning angle value has been identified; If a single first target elbow is identified, the elbow type of the first target elbow is determined based on the joint type of the first connecting pipe and the second connecting pipe; If a single first target bend is not identified, then at least one first target pipe fitting is identified in combination based on the turning angle value.
7. The method according to claim 6, characterized in that, The elbow type of the first target elbow is determined based on the joint types of the first connecting pipe and the second connecting pipe, including: If the joint type of the first connecting pipe is a flange, then the first target elbow is determined to be a double flange elbow; If the joint type of the first connecting pipe is a socket and the joint type of the second connecting pipe is a flange, then the first target elbow is determined to be a flange elbow. If the joint type of the first connecting pipe is another joint and the joint type of the second connecting pipe is the flange, then the first target elbow is determined to be a flange elbow. If the joint type of the first connecting pipe and the joint type of the second connecting pipe are both of the other joints, then the first target elbow is determined to be a socket elbow.
8. The method according to claim 6, characterized in that, Determining the at least one first target pipe fitting based on the turning angle value in a combined manner includes: Determine whether two second target bends have been identified, and the first difference between the sum of the angle values of the two second target bends and the turning angle value is less than a preset difference; If two second target bends are identified, the bend types of the two second target bends are determined according to the joint type of the first connecting pipe and the joint type of the second connecting pipe. If two second target elbows are not identified, then a third target elbow and the connector are determined based on the joint type of the first connecting pipe and the joint type of the second connecting pipe.
9. The method according to claim 8, characterized in that, The elbow types of the two second target elbows are determined based on the joint type of the first connecting pipe and the joint type of the second connecting pipe, including: If the joint type of the first connecting pipe is a flange, then both second target elbows are determined to be double flange elbows; If the joint type of the first connecting pipe is another joint and the joint type of the second connecting pipe is the flange, then both second target elbows are determined to be socket elbows.
10. The method according to claim 8, characterized in that, Determining the third target elbow and the connector based on the joint type of the first connecting pipe and the joint type of the second connecting pipe includes: If the joint type of the first connecting pipe is a socket and the joint type of the second connecting pipe is a flange, then the third target elbow is determined to be a single first flange elbow and the connector is a flange plug, and the angle value of the first flange elbow is the same as the turning angle value. If the joint type of the first connecting pipe is the socket and the joint type of the second connecting pipe is another joint, then the third target elbow is determined to be a single first socket elbow and the connector is a double-insert short pipe, and the first difference between the angle value of the first socket elbow and the turning angle value is less than the preset difference. If the joint type of the first connecting pipe is the socket and the joint type of the second connecting pipe is the other joint, then the third target elbow is determined to be two second socket elbows and the connector is the double-insert short pipe, and the sum of the angle values of the two second socket elbows is the same as the turning angle value. If the joint type of the first connecting pipe is the other joint and the joint type of the second connecting pipe is the disc, then the third target elbow is determined to be a single second disc elbow and the connector is a disc bearing, and the first difference between the angle value of the second disc elbow and the turning angle value is less than the preset difference.
11. The method according to claim 2, characterized in that, If the first connecting pipe and the second connecting pipe are not parallel, then the elbow and connector are determined according to the joint type of the first connecting pipe and the joint type of the second connecting pipe, including: If the joint type of the first connecting pipe and the joint type of the second connecting pipe are both flanges, then the elbow is determined to be two first double-flange elbows and the connector is a double-flange short pipe. If the joint type of the first connecting pipe is the flange and the joint type of the second connecting pipe is the socket, then the elbow is determined to be the first double flange elbow and the first socket elbow, and the connector is a flange short pipe. If the joint type of the first connecting pipe is the flange and the joint type of the second connecting pipe is another joint, then the elbow is determined to be the first double-flange elbow and the first double-bearing elbow, and the connector is a disc-inserted short pipe. If the joint type of the first connecting pipe is a spigot and the joint type of the second connecting pipe is a flange, then the elbow is determined to be the first socket elbow and the first double flange elbow, and the connector is a flanged short pipe. If the joint type of the first connecting pipe is the spigot and the joint type of the second connecting pipe is the socket, then the elbow is determined to be the first socket elbow and the first socket elbow, and the connector is a socket short pipe. If the joint type of the first connecting pipe is the spigot and the joint type of the second connecting pipe is the other joint, then the elbow is determined to be the first socket elbow and the first double socket elbow, and the connector is the socket short pipe; If the joint type of the first connecting pipe is the other joint and the joint type of the second connecting pipe is the flange, then the elbow is determined to be the first double-insert elbow and the first double-flanged elbow, and the connector is the flanged short pipe; If the joint type of the first connecting pipe is the other joint and the joint type of the second connecting pipe is the socket, then the elbow is determined to be two first double-insertion elbows and a double-socket short pipe. If the joint type of the first connecting pipe and the joint type of the second connecting pipe are both of the other joints, then the elbow is determined to be two of the first double-prong elbows and the socket short pipe.
12. The method according to claim 1, characterized in that, If the number of pipes is 3 or 4, at least one first target pipe fitting is determined based on the positional relationship between the connection node and the first target pipe, including: Identify the inflow pipe, outflow pipe, and branch pipe from among the multiple first target pipes; The at least one first target pipe fitting is determined based on the positional relationship between the inflow pipe, the outflow pipe, and the branch pipe.
13. The method according to claim 12, characterized in that, Identifying inflow pipes, outflow pipes, and branch pipes from a plurality of first target pipes includes: Obtain the medium flow direction of each of the first target pipes, and the number of second target pipes whose medium flow direction is the inflow direction, wherein the second target pipes are one or more of the first target pipes; The inflow pipe is determined from a plurality of first target pipes based on the number of pipes in the second target pipe; Obtain the angle value between the inflow pipe and the other first target pipes, and determine the second difference between each angle value and a preset angle value; The first target pipe corresponding to the smallest second difference is identified as the outflow pipe, and the first target pipe other than the inflow pipe and the outflow pipe is identified as the branch pipe.
14. The method according to claim 13, characterized in that, Determining the inflow pipe from a plurality of first target pipes based on the number of pipes in the second target pipe includes: If the number of pipes in the second target pipe is 1, then the first target pipe with the largest diameter is determined as the inflow pipe; If the number of pipes in the second target pipe is not 1, then all first target pipes in which the medium flows in the inflow direction are determined as the inflow pipes.
15. The method according to claim 12, characterized in that, Determining the at least one first target pipe fitting based on the positional relationship between the inflow pipe, the outflow pipe, and the branch pipe includes: If the number of branch pipes is 1, then the at least one first target pipe fitting is determined to include at least a tee. If the number of branch pipes is 2, the inflow pipe and the outflow pipe are collinear, and the two branch pipes are collinear, then the at least one first target pipe fitting is determined to include two tees and connectors.
16. The method according to any one of claims 12 to 15, characterized in that, If the number of branch pipes is 1, the at least one first target pipe fitting is used to connect each of the first target pipes at the connection node to generate a pipe connection path, including: The target placement method of the tee is determined based on the positional relationship between the inflow pipe, the outflow pipe, and the branch pipe. The tee is placed according to the target placement method, and at least one second target pipe fitting is determined according to the type of joint between the interface of the tee and the corresponding first target pipe. Using the tee and the at least one second target pipe fitting, the first target pipes are connected at the connection node to generate the pipe connection path.
17. The method according to claim 16, characterized in that, Based on the positional relationship between the inflow pipe, the outflow pipe, and the branch pipe, the target placement method of the tee is determined, including: If the inflow pipe and the outflow pipe are coplanar, the target placement method of the tee is determined according to the positional relationship between the inflow pipe, the outflow pipe and the branch pipe. If the inflow pipe and the outflow pipe are not on the same plane and the inflow pipe and the branch pipe are on the same plane, then the target placement method is determined to be to place the tee on the plane where the inflow pipe and the branch pipe are located; If the inflow pipe and the outflow pipe are on opposite sides and the inflow pipe and the branch pipe are on opposite sides, then the target placement method is determined to be to place the tee on the plane where the inflow pipe is located, and the branch pipe of the tee is perpendicular to the branch pipe.
18. The method according to claim 17, characterized in that, Based on the positional relationship between the inflow pipe, the outflow pipe, and the branch pipe, the target placement method of the tee is determined, including: If the inflow pipe and the outflow pipe are collinear and the inflow pipe and the branch pipe are coplanar, then the target placement method is determined to be to place the tee on the plane containing the inflow pipe, the outflow pipe and the branch pipe; If the inflow pipe and the outflow pipe are collinear and the inflow pipe and the branch pipe are on opposite sides, then the target placement method is determined to be to place the tee on the plane where the inflow pipe is located, and the branch pipe of the tee is perpendicular to the branch pipe. If the inflow pipe and the outflow pipe are on opposite lines and the inflow pipe and the branch pipe are on opposite surfaces, then the target placement method is determined to be to place the tee on the plane where the inflow pipe, the outflow pipe and the branch pipe are located. If the inflow pipe and the outflow pipe are on opposite lines and the inflow pipe and the branch pipe are on opposite planes, then the target placement method is determined to be to place the tee on the plane where the inflow pipe is located, and the branch pipe of the tee is perpendicular to the branch pipe.
19. The method according to any one of claims 12 to 15, characterized in that, If the number of branch pipes is 2, the at least one first target pipe fitting is used to connect each of the first target pipes at the connection node to generate a pipe connection path, including: Based on the positional relationship between the inflow pipe, the outflow pipe, and the branch pipe, determine the target placement method for the tee or cross; The tee or cross is placed according to the target placement method, and at least one third target pipe fitting is determined according to the joint type between the tee or cross and the corresponding first target pipe. Using at least one third target pipe fitting and one of the tee and the four-way fitting, the first target pipes are connected at the connection node to generate the pipe connection path.
20. The method according to claim 19, characterized in that, Based on the positional relationship between the inflow pipe, the outflow pipe, and the branch pipe, determine the target placement method for the tee or cross, including: If the inflow pipe and the outflow pipe are collinear, the target placement method of the tee or the cross is determined according to the positional relationship between the inflow pipe, the outflow pipe and the branch pipe. If the inflow pipe and the outflow pipe are on different lines, then the target placement method is determined to be to place the four-way valve on the plane where the inflow pipe is located.
21. The method according to claim 20, characterized in that, Based on the positional relationship between the inflow pipe, the outflow pipe, and the branch pipe, the target placement method of the tee or the cross is determined, including: If the inflow pipe, the outflow pipe, and all the branch pipes are coplanar, then the target placement method is determined to be to place the four-way valve on the plane containing the inflow pipe, the outflow pipe, and all the branch pipes. If the inlet pipe, the outlet pipe, and one of the branch pipes are coplanar, then the target placement method is determined to be to place the four-way valve on the plane containing the inlet pipe, the outlet pipe, and one of the branch pipes. If the two branch pipes are collinear, the target placement method is determined to be to place the tee on the plane where the inflow pipe and the outflow pipe are located, place another tee on the plane where the two branch pipes are located, and connect the two tee pipes through a short pipe.
22. The method according to claim 1, characterized in that, The method further includes: Obtain the pipe diameter of each of the first target pipes and determine the first target pipe with the largest pipe diameter as the third target pipe; If the interface type of the third target pipe is a disc, then it is determined that the at least one first target pipe fitting also includes a double disc tapered pipe. If the interface type of the third target pipe is not a flange, then it is determined that the at least one first target pipe fitting also includes a double-bearing tapered pipe.
23. A computer program product, characterized in that, Includes computer instructions for causing a computer to perform the pipe connection method according to any one of claims 1 to 22.