An Automatic Modeling Method for Gravity Flow Underground Pipeline Networks for Water Supply and Drainage

By importing 3D models into 2D drawing software and automatically constructing well topology relationships, the problem of time-consuming manual modeling in existing technologies is solved. This enables the rapid and accurate construction of 3D models of underground water supply and drainage networks, ensuring data consistency and design efficiency in digital delivery.

CN116432325BActive Publication Date: 2026-05-26SINOPEC NINGBO ENG +2

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SINOPEC NINGBO ENG
Filing Date
2022-09-09
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

Existing methods for constructing underground water supply and drainage pipe network models rely on manual operation, which is time-consuming and difficult, leading to a large number of modifications required in the later stages of construction, affecting design efficiency and potentially causing inconsistencies between CAD drawings and 3D models.

Method used

Two-dimensional drawing software is used to draw construction drawings and import three-dimensional models. Well topology relationships are automatically constructed through well mapping relationships and rotation processing to generate three-dimensional models of wells and pipelines. The Smart3D software component library is used to complete automatic modeling.

Benefits of technology

It enables rapid and accurate 3D model construction, ensuring consistency between the model and construction drawings, reducing manual modification workload, and improving design efficiency and data consistency in digital delivery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116432325B_ABST
    Figure CN116432325B_ABST
Patent Text Reader

Abstract

This invention relates to an automatic modeling method for underground water supply and drainage gravity flow pipeline networks. After drawing a construction drawing of the underground water supply and drainage gravity flow pipeline network with pipeline system information using 2D drawing software, the pipeline system information is imported into a 3D model of the underground water supply and drainage gravity flow pipeline network. A well mapping relationship list is formed using the well table information read from each pipeline system, further generating well topology relationships. Then, the two-way and three-way wells in the 3D model of the underground water supply and drainage gravity flow pipeline network are rotated until the pipe openings between the required wells are aligned. Finally, the well types and pipes are retrieved from the Smart3D software's pipe component library until all 3D models of the wells and pipes are drawn. This method facilitates and quickly completes 3D modeling and allows for changes to construction drawings based on previous construction milestones, ensuring consistency between the final 3D model and the construction drawings drawn by the 2D drawing software, and meeting the data uniqueness requirements of digital delivery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of underground pipe networks, and more particularly to an automatic modeling method for underground pipe networks using gravity flow for water supply and drainage. Background Technology

[0002] Digital delivery has become a new requirement for current underground pipeline network (IPN) engineering projects. Current water supply and drainage underground pipeline network design typically involves designers first using CAD software to create construction drawings, followed by manual modeling to create a 3D model. In the early stages of construction, CAD-based construction drawings are provided, and later, the corresponding 3D model is submitted to simultaneously meet the requirements of project construction and digital delivery. In the later stages of construction, based on the construction milestones and changes in upstream conditions, the CAD drawings and the 3D model of the water supply and drainage underground pipeline network are manually modified to correspond to the current construction milestones, ensuring the digital delivery of the entire project upon completion.

[0003] However, existing methods for constructing underground water supply and drainage pipe network models have shortcomings: Since the 3D models of these networks (including gravity flow pipes) are based on early-stage CAD drawings, relying entirely on manual model building, the lack of upstream technical expertise in the early stages leads to extensive CAD drawing modifications and consequently, significant model alterations. Furthermore, manually building the 3D underground pipe network model is extremely time-consuming, and the sloping nature of gravity flow pipes further complicates and complicates modifications. Manual model building is not only time-consuming, but once 3D software is used, significant work is required later in the construction phase to modify or adjust the model, reducing design efficiency. Moreover, manual modeling can result in inconsistencies between the CAD construction drawings and the constructed 3D model of the underground water supply and drainage pipe network. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to provide an automatic modeling method for underground pipeline networks of water supply and drainage gravity flow, which is in contrast to the above-mentioned prior art.

[0005] The technical solution adopted by this invention to solve the above-mentioned technical problems is: an automatic modeling method for underground pipeline networks of water supply and drainage gravity flow, characterized by comprising the following steps S1 to S9:

[0006] Step S1: Draw a construction drawing of the underground pipeline network for water supply and drainage gravity flow with pipeline system information, and import the pipeline system information into the three-dimensional model of the underground pipeline network for water supply and drainage gravity flow; wherein, the pipeline system information includes pipeline information and well surface information, the pipeline information includes pipeline length, pipeline diameter and pipeline grade, and the well surface information includes national standard drawing number, well number, wellhead elevation, well ground elevation, well coordinates and well type;

[0007] Step S2: Read the well table information from the pipeline system information, and based on the well table information and the selected coordinate system, read the three-dimensional modeling coordinates of the well within the selected coordinate system.

[0008] Step S3: The wells corresponding to the read well table information are taken as target wells, and the wells located around each target well and connected to the corresponding target wells are taken as surrounding connected wells, forming a well mapping relationship between each target well and the surrounding connected wells; wherein, each well mapping relationship is the correspondence between the target well and its connected surrounding wells.

[0009] Step S4: Form a well mapping relationship list based on all the formed well mapping relationships, and generate well topology relationships based on the well mapping relationship list;

[0010] Step S5: Rotate the two-way manholes so that the manhole openings of each two-way manhole in the three-dimensional model of the underground pipeline network for water supply and drainage gravity flow can be connected to the manhole openings of the surrounding connecting manholes; wherein, each two-way manhole corresponds to at least one surrounding connecting manhole.

[0011] Step S6: Based on the generated well topology, select the well type of the tee well and perform rotation processing on the selected tee well so that the wellhead of each tee well in the three-dimensional model of the underground pipeline network of water supply and drainage gravity flow can be connected to the wellhead of its surrounding connecting well; wherein, each tee well corresponds to at least one surrounding connecting well.

[0012] Step S7: Reposition and rotate the pipe openings of each well in the three-dimensional model of the underground pipeline network of water supply and drainage gravity flow to ensure that the pipe openings of the wells that need to be connected are aligned, so that the pipelines can be successfully connected.

[0013] Step S8: Based on the well table information of the imported pipeline system information, retrieve the corresponding well type from the Smart3D well component library and create a three-dimensional model of the well at the corresponding coordinates. Repeat steps S3 to S7 in sequence until the three-dimensional models of all wells are drawn in sequence.

[0014] Step S9: Based on the pipeline information of the imported pipeline network system information, retrieve the pipeline from the pipeline component library of the Smart3D software, and locate the coordinates of both ends of the retrieved pipeline according to the coordinates of the pipe openings between wells. Then, draw a three-dimensional pipeline model based on the located coordinates of both ends of the pipeline until the three-dimensional pipeline models of all wells are drawn.

[0015] Improvedly, in the automatic modeling method for underground pipeline networks of water supply and drainage gravity flow, in step S1, a construction drawing of the underground pipeline network of water supply and drainage gravity flow is drawn using CAD software or other two-dimensional software.

[0016] In a further improvement, the automatic modeling method for underground pipeline networks using gravity flow for water supply and drainage includes the following steps a1 to a3 in step S5:

[0017] Step a1: Based on the connection relationship between wells, the coordinate orientation of the wells, and the generated well topology, obtain the well-to-well connection line between the two-way well and the connecting well, as well as the extension line of the wellhead of the two-way well; wherein, the well-to-well connection line is the line connecting the center point of the cross section of the two-way well and the center point of the cross section of the connecting well, and the extension line of the wellhead of the two-way well is a straight line perpendicular to the central axis of the two-way well and passing through the center of the wellhead of the two-way well;

[0018] Step a2: Calculate the angle between the obtained inter-well connection line and the corresponding wellhead extension line;

[0019] Step a3: Make a judgment based on the calculated included angle:

[0020] When the included angle is greater than 45 degrees, it means that the current wellhead and the wellhead of the corresponding connected well do not meet the connection conditions. In this case, the two-way well is rotated multiple times in the same rotation direction with a single rotation amplitude of 90 degrees until the wellhead of the two-way well corresponds to the wellhead of the corresponding connected well. Otherwise, it means that the current wellhead and the wellhead of the corresponding connected well meet the connection conditions, and the two-way well is not rotated.

[0021] Improvedly, in the automatic modeling method for underground pipeline networks of water supply and drainage gravity flow, the process of rotating the tee well in step S6 includes the following steps b1 to b3:

[0022] Step b1: Process to obtain the well-to-well connection line between the tee well and the connecting well connected to the tee well, as well as the wellhead extension line of the tee well; wherein, the well-to-well connection line is the line connecting the center point of the cross section of the tee well and the center point of the corresponding connecting well cross section, and the wellhead extension line of the tee well is a straight line perpendicular to the central axis of the tee well and passing through the center of the wellhead of the tee well;

[0023] Step b2: Calculate the angle between the obtained inter-well line and the corresponding wellhead extension line;

[0024] Step b3: Make a judgment based on the calculated included angle:

[0025] When the included angle is less than or equal to 45 degrees, it indicates that the well and the corresponding connected well meet the connection conditions, and the tee well should not be rotated; otherwise, proceed with the following steps b31 to b33:

[0026] Step b31: Rotate the tee well multiple times in the same direction of rotation with a single rotation of 90 degrees.

[0027] Step b32: Make a judgment and process based on the results of multiple rotations:

[0028] If the connecting wells corresponding to the tee well meet the connection conditions before the tee well is rotated to 360 degrees, then the rotation of the tee well ends; otherwise, proceed to step b33.

[0029] Step b33: Change the type of the current tee well, replacing the tee well in steps b31 and b32 with the well of the changed type, until the well of the changed type meets the connection conditions with the corresponding connected well, and then end the rotation for the well of the changed type.

[0030] Further improvements include the following steps in the automatic modeling method for underground pipeline networks of water supply and drainage gravity flow, specifically in step S7, where the pipe openings of each well within the three-dimensional model of the underground pipeline network of water supply and drainage gravity flow are rotated:

[0031] Step c1, pipe opening angle calculation: Obtain the line connecting the two wells that need to be connected and the extension line of the pipe opening, and calculate the angle between the line connecting the two wells and the extension line of the pipe opening on the same plane;

[0032] Step c2, Vertical positioning calculation of pipe opening: Determine the vertical height of the pipe opening of each well based on the bottom elevation of the pipe at the well wall of each of the two interconnected wells.

[0033] Step c3: Based on the included angle obtained in step c1 and the vertical height obtained in step c2, determine the rotation angle of the well openings of the two wells, and rotate the corresponding wells according to the rotation angle so that the well openings of the two wells that need to be connected are connected.

[0034] Compared with the prior art, the advantages of this invention are as follows: In the automatic modeling method for underground water supply and drainage gravity flow pipeline networks of this invention, after drawing a construction drawing of the underground water supply and drainage gravity flow pipeline network with pipeline system information using two-dimensional drawing software such as CAD, the pipeline system information is imported into the three-dimensional model of the underground water supply and drainage gravity flow pipeline network. Then, well mapping relationships are formed by reading the well table information in the pipeline system information, and a well mapping relationship list is formed with all well mapping relationships. Based on the well mapping relationship list, well topology relationships are generated. Then, the two-way wells and three-way wells in the three-dimensional model of the underground water supply and drainage gravity flow pipeline network are rotated until the pipe openings between the wells that need to be connected are aligned. Finally, the well type in the pipeline component library of Smart3D software is retrieved accordingly. The process involves sequentially drawing 3D models of all wells and pipelines, facilitating the rapid and efficient creation of a 3D model for the underground gravity flow pipeline network for water supply and drainage. Furthermore, the initial use of 2D drawing software for the construction drawings allows for adjustments to the drawings based on early construction milestones, eliminating the need for subsequent manual modifications to the 3D model. Moreover, the automated modeling method ensures that the 3D software accurately replicates the information from the 2D drawing software, guaranteeing consistency between the final 3D model and the 2D construction drawings. This ensures data uniqueness and consistency during the digital delivery process, avoids manual modifications to the 3D model, and significantly improves design efficiency. Attached Figure Description

[0035] Figure 1 This is a schematic diagram of the automatic modeling method for underground pipeline networks using gravity flow for water supply and drainage in an embodiment of the present invention.

[0036] Figure 2 This is a schematic diagram showing the state of the two-way well and the corresponding surrounding connecting wells in this embodiment when they are rotated. Detailed Implementation

[0037] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments.

[0038] This embodiment provides an automatic modeling method for underground pipeline networks using gravity flow for water supply and drainage. Specifically, see [link to relevant documentation]. Figure 1 As shown, the automatic modeling method for underground pipeline networks using gravity flow for water supply and drainage in this embodiment includes the following steps S1 to S9:

[0039] Step S1: Draw a construction drawing of the underground water supply and drainage gravity flow pipeline network with pipeline system information, and import the pipeline system information into the three-dimensional model of the underground water supply and drainage gravity flow pipeline network. Here, the construction drawing of the underground water supply and drainage gravity flow pipeline network is drawn using CAD software or other two-dimensional software. For example, the construction drawing of the underground water supply and drainage gravity flow pipeline network drawn by CAD software is the CAD construction drawing of the underground pipeline network. The pipeline system information includes pipeline information and manhole information. The pipeline information includes pipeline length, pipeline diameter and pipeline grade. The manhole information includes national standard drawing number, manhole number, manhole elevation, manhole ground elevation, manhole coordinates and manhole type.

[0040] Step S2: Read the well table information from the pipeline system information, and based on the well table information and the selected coordinate system, read the three-dimensional modeling coordinates of the well within the selected coordinate system.

[0041] Step S3: The wells corresponding to the read well table information are taken as target wells, and the wells located around each target well and connected to the corresponding target wells are taken as surrounding connected wells, forming a well mapping relationship between each target well and the surrounding connected wells; wherein, each well mapping relationship is the correspondence between the target well and its connected surrounding wells.

[0042] Step S4: Form a well mapping relationship list based on all the formed well mapping relationships, and generate well topology relationships based on the well mapping relationship list;

[0043] Step S5 involves rotating the two-way manholes so that the manhole openings of each two-way manhole in the 3D model of the underground water supply and drainage gravity flow pipeline network can be connected to the manhole openings of their surrounding connecting manholes; wherein each two-way manhole corresponds to at least one surrounding connecting manhole; specifically in this embodiment, see Figure 2 As shown, the center point of the cross-section of the two-way well is marked as A, the pipe opening of the two-way well is marked as C, and the center point of the cross-section of the surrounding connecting well corresponding to the two-way well is marked as B; the process of rotating the two-way well includes the following steps a1 to a3:

[0044] Step a1: Based on the connection relationship between wells, the coordinate orientation of the wells, and the generated well topology, obtain the inter-well connection line between the two-way well and the connecting well, as well as the extension line of the wellhead of the two-way well; wherein, the inter-well connection line is the line connecting the center point of the cross-section of the two-way well and the center point of the cross-section of the connecting well, and the extension line of the wellhead of the two-way well is a straight line perpendicular to the central axis of the two-way well and passing through the center of the wellhead; for example, in Figure 2 In the diagram, line AB is the connection between wells, and straight line L is the extension line of the wellhead of the two-way well.

[0045] Step a2: Calculate the angle θ1 between the obtained inter-well connection line and the corresponding wellhead extension line; in this embodiment, see... Figure 2 As shown, the included angle θ1 is the angle between the line AB connecting the wells and the corresponding extension line L of the wellhead.

[0046] Step a3: Make a judgment based on the calculated included angle:

[0047] When the included angle θ1 is greater than 45 degrees, it means that the current wellhead and the wellhead of the corresponding connected well do not meet the connection conditions. In this case, the two-way well is rotated multiple times along the same rotation direction with a single rotation amplitude of 90 degrees until the wellhead of the two-way well corresponds to the wellhead of the corresponding connected well. Otherwise, it means that the current wellhead and the wellhead of the corresponding connected well meet the connection conditions, and the two-way well is not rotated.

[0048] For example, when the included angle θ1 is greater than 45 degrees, it means that the current wellhead and the wellhead it is connected to do not meet the connection conditions. At this time, the two-way well is rotated 90 degrees in one direction, and then the included angle θ2 between the line connecting the two wells and the line connecting the corresponding wellhead is obtained according to steps a1 to a2. If the included angle θ2 is less than or equal to 45 degrees, it means that the current wellhead and the wellhead it is connected to meet the connection conditions, and the two-way well is no longer rotated. Otherwise, the wellhead is rotated 90 degrees in the above direction at the current position. This process is repeated until the wellhead of the two-way well corresponds to the wellhead of the corresponding connected well.

[0049] Step S6: Based on the generated well topology, select the well type of the tee well and perform rotation processing on the selected tee well, so that the wellhead of each tee well in the three-dimensional model of the underground pipeline network of water supply and drainage gravity flow can be connected to the wellhead of its surrounding connecting well; wherein, each tee well corresponds to at least one surrounding connecting well; in this embodiment, the process of rotating the tee well includes the following steps b1 to b3:

[0050] Step b1: Process to obtain the well-to-well connection line between the tee well and the connecting well connected to the tee well, as well as the wellhead extension line of the tee well; wherein, the well-to-well connection line is the line connecting the center point of the cross section of the tee well and the center point of the corresponding connecting well cross section, and the wellhead extension line of the tee well is a straight line perpendicular to the central axis of the tee well and passing through the center of the wellhead of the tee well;

[0051] Step b2: Calculate the angle β1 between the obtained inter-well connection line and the corresponding wellhead extension line;

[0052] Step b3: Make a judgment based on the calculated included angle:

[0053] When the included angle β1 is less than or equal to 45 degrees, it indicates that the well and the corresponding connected well meet the connection conditions, and the tee well is not rotated; otherwise, proceed with the following steps b31 to b33:

[0054] Step b31: Rotate the tee well multiple times in the same direction of rotation with a single rotation of 90 degrees.

[0055] Step b32: Make a judgment and process based on the results of multiple rotations:

[0056] If the connecting wells corresponding to the tee well meet the connection conditions before the tee well is rotated to 360 degrees, then the rotation of the tee well ends; otherwise, proceed to step b33.

[0057] Step b33: Change the type of the current tee well, replacing the tee well in steps b31 and b32 with the well of the changed type, until the well of the changed type meets the connection conditions with the corresponding connected well, and then end the rotation for the well of the changed type.

[0058] Step S7: The pipe openings of each well in the 3D model of the underground water supply and drainage gravity flow pipeline network are repositioned and rotated to ensure that the pipe openings of the wells to be connected are aligned, thus ensuring successful pipeline connection. In this embodiment, the process of rotating the pipe openings of each well in the 3D model of the underground water supply and drainage gravity flow pipeline network includes the following steps c1 to c3:

[0059] Step c1, pipe opening angle calculation: Obtain the line connecting the two wells that need to be connected and the extension line of the pipe opening, and calculate the angle between the line connecting the two wells and the extension line of the pipe opening on the same plane;

[0060] Step c2, Vertical positioning calculation of pipe opening: Determine the vertical height of the pipe opening of each well based on the bottom elevation of the pipe at the well wall of each of the two interconnected wells.

[0061] Step c3: Based on the included angle obtained in step c1 and the vertical height obtained in step c2, determine the rotation angle of the well openings of the two wells, and rotate the corresponding wells according to the rotation angle so that the well openings of the two wells that need to be connected are connected.

[0062] Step S8: Based on the well table information of the imported pipeline system information, retrieve the corresponding well type from the Smart3D well component library and create a three-dimensional model of the well at the corresponding coordinates. Repeat steps S3 to S7 in sequence until the three-dimensional models of all wells are drawn in sequence.

[0063] Step S9: Based on the pipeline information of the imported pipeline network system information, retrieve the pipeline from the pipeline component library of the Smart3D software, and locate the coordinates of both ends of the retrieved pipeline according to the coordinates of the pipe openings between wells. Then, draw a three-dimensional pipeline model based on the located coordinates of both ends of the pipeline until the three-dimensional pipeline models of all wells are drawn.

[0064] It should be noted that in this embodiment, because the 3D model of the underground pipeline network for water supply and drainage gravity flow can be automatically modeled, the 3D model can be automatically modified accordingly regardless of any changes made to the previously drawn CAD construction drawings. Even if it is the first time building a 3D model from scratch, the automatic model building can be completed efficiently and quickly based on the CAD construction drawings. This not only ensures data consistency but also greatly improves drawing efficiency.

[0065] Although preferred embodiments of the present invention have been described in detail above, it should be clearly understood that various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. An automatic modeling method for underground pipeline networks using gravity flow for water supply and drainage, characterized in that, Includes the following steps S1 to S9: Step S1: Draw a construction drawing of the underground pipeline network for water supply and drainage gravity flow with pipeline system information, and import the pipeline system information into the three-dimensional model of the underground pipeline network for water supply and drainage gravity flow; wherein, the pipeline system information includes pipeline information and well surface information, the pipeline information includes pipeline length, pipeline diameter and pipeline grade, and the well surface information includes national standard drawing number, well number, wellhead elevation, well ground elevation, well coordinates and well type; Step S2: Read the well table information from the pipeline system information, and based on the well table information and the selected coordinate system, read the three-dimensional modeling coordinates of the well within the selected coordinate system. Step S3: The wells corresponding to the read well table information are taken as target wells, and the wells located around each target well and connected to the corresponding target wells are taken as surrounding connected wells, forming a well mapping relationship between each target well and the surrounding connected wells; wherein, each well mapping relationship is the correspondence between the target well and its connected surrounding wells. Step S4: Form a well mapping relationship list based on all the formed well mapping relationships, and generate well topology relationships based on the well mapping relationship list; Step S5: Rotate the two-way manholes so that the manhole openings of each two-way manhole in the three-dimensional model of the underground pipeline network for water supply and drainage gravity flow can be connected to the manhole openings of the surrounding connecting manholes; wherein, each two-way manhole corresponds to at least one surrounding connecting manhole. Step S6: Based on the generated well topology, select the well type of the tee well and perform rotation processing on the selected tee well so that the wellhead of each tee well in the three-dimensional model of the underground pipeline network of water supply and drainage gravity flow can be connected to the wellhead of its surrounding connecting well; wherein, each tee well corresponds to at least one surrounding connecting well. Step S7: Reposition and rotate the pipe openings of each well in the three-dimensional model of the underground pipeline network of water supply and drainage gravity flow to ensure that the pipe openings of the wells that need to be connected are aligned, so that the pipelines can be successfully connected. Step S8: Based on the well table information of the imported pipeline system information, retrieve the corresponding well type from the Smart3D well component library and create a three-dimensional model of the well at the corresponding coordinates. Repeat steps S3 to S7 in sequence until the three-dimensional models of all wells are drawn in sequence. Step S9: Based on the pipe information imported from the pipeline network system information, retrieve the pipes from the Smart3D software pipe component library. Then, based on the pipe opening coordinates between manholes, locate the coordinates of both ends of the retrieved pipe. Finally, draw a 3D pipe model based on the located coordinates of both ends of the pipe, continuing until the 3D pipe models for all manholes are completed. Wherein: In step S5, the process of rotating the two-way well includes the following steps a1 to a3: Step a1: Based on the connection relationship between wells, the coordinate orientation of the wells, and the generated well topology, obtain the well-to-well connection line between the two-way well and the connecting well, as well as the extension line of the wellhead of the two-way well; wherein, the well-to-well connection line is the line connecting the center point of the cross section of the two-way well and the center point of the cross section of the connecting well, and the extension line of the wellhead of the two-way well is a straight line perpendicular to the central axis of the two-way well and passing through the center of the wellhead of the two-way well; Step a2: Calculate the angle between the obtained inter-well connection line and the corresponding wellhead extension line; Step a3: Make a judgment based on the calculated included angle: When the included angle is greater than 45 degrees, it means that the current wellhead and the wellhead of the corresponding connected well do not meet the connection conditions. Then, rotate the two-way well multiple times in the same rotation direction with a single rotation amplitude of 90 degrees until the wellhead of the two-way well corresponds to the wellhead of the corresponding connected well. Otherwise, it means that the current wellhead and the wellhead of the corresponding connected well meet the connection conditions, and the two-way well is not rotated. In step S6, the process of rotating the three-way well includes the following steps b1 to b3: Step b1: Process to obtain the well-to-well connection line between the tee well and the connecting well connected to the tee well, as well as the wellhead extension line of the tee well; wherein, the well-to-well connection line is the line connecting the center point of the cross section of the tee well and the center point of the corresponding connecting well cross section, and the wellhead extension line of the tee well is a straight line perpendicular to the central axis of the tee well and passing through the center of the wellhead of the tee well; Step b2: Calculate the angle between the obtained inter-well line and the corresponding wellhead extension line; Step b3: Make a judgment based on the calculated included angle: When the included angle is less than or equal to 45 degrees, it indicates that the well and the corresponding connected well meet the connection conditions, and the tee well should not be rotated; otherwise, proceed with the following steps b31~b33: Step b31: Rotate the tee well multiple times in the same direction of rotation with a single rotation of 90 degrees. Step b32: Make a judgment and process based on the results of multiple rotations: If the connecting wells corresponding to the tee well meet the connection conditions before the tee well is rotated to 360 degrees, then the rotation of the tee well ends; otherwise, proceed to step b33. Step b33: Change the type of the current tee well, replacing the tee well in steps b31 and b32 with the well of the changed type, until the well of the changed type meets the connection conditions with the corresponding connected well, and then end the rotation for the well of the changed type. In step S7, the process of rotating the pipe openings of each well in the three-dimensional model of the underground pipeline network for water supply and drainage gravity flow includes the following steps: Step c1, pipe opening angle calculation: Obtain the line connecting the two wells that need to be connected and the extension line of the pipe opening, and calculate the angle between the line connecting the two wells and the extension line of the pipe opening on the same plane; Step c2, Vertical positioning calculation of pipe opening: Determine the vertical height of the pipe opening of each well based on the bottom elevation of the pipe at the well wall of each of the two interconnected wells. Step c3: Based on the included angle obtained in step c1 and the vertical height obtained in step c2, determine the rotation angle of the well openings of the two wells, and rotate the corresponding wells according to the rotation angle so that the well openings of the two wells that need to be connected are connected.

2. The automatic modeling method for underground pipeline networks using gravity flow for water supply and drainage according to claim 1, characterized in that, In step S1, a construction drawing of the underground pipeline network for water supply and drainage gravity flow is drawn using CAD software or other two-dimensional software.