CN104156514A - INP (input) file-based rapid generation method of water supply network topological structure - Google Patents
INP (input) file-based rapid generation method of water supply network topological structure Download PDFInfo
- Publication number
- CN104156514A CN104156514A CN201410361033.9A CN201410361033A CN104156514A CN 104156514 A CN104156514 A CN 104156514A CN 201410361033 A CN201410361033 A CN 201410361033A CN 104156514 A CN104156514 A CN 104156514A
- Authority
- CN
- China
- Prior art keywords
- inp
- file
- water supply
- supply network
- coord
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses an INP (input) file-based rapid generation method of a water supply network topological structure. The method includes the steps of 1, converting a CAD (computer-aided design) drawing of a water supply network in a whole area into a network model topological structure and generating a target INP file; 2, converting pipeline diameter layers of the CAD drawing of the water supply network in the whole area into another network model topological structure, and generating INP source files; 3, opening the target INP file, loading programming software to write codes, acquiring coordinates (X1-Coord, Y1-Coord) and (X2-Coord, Y2-Coord) of upstream and downstream nodes Node1 and Node2 of each pipeline in each INP source file, finding the nodes with the same coordinates from the target INP files by the traversing method, finding the corresponding pipelines through the found nodes, and assigning values of pipeline diameters to the pipelines in the target INP files.
Description
Technical field
The present invention relates to the water supply network method for establishing model of Water and Waste Water Engineering, being particularly applicable to derives that network topology carries out pipe net modeling and without modeling and the generation method of pipeline section attribute problem by CAD.
Background technology
Water supply network is a topological structure complexity, network system in large scale.Network topology to set up workload huge.In addition, the correctness of network topology will directly affect the accuracy of simulation.For large and medium-sized water supply network modeling, only depend on the topological structure of artificial input almost to become not achievable task.For the foundation of pipe network model, generally adopt in the pipeline configuration ingress pipe pessimistic concurrency control in existing CAD, form network topology.But, from the topological structure of CAD ingress pipe pessimistic concurrency control, lack pipe diameter attribute, and it is very big that every pipeline is carried out to diameter input service amount, restriction water supply network modeling efficiency.
Summary of the invention
The object of the invention is to deficiency and defect for existing water supply network modeling disappearance pipe diameter attribute, provide a kind of water supply network topological structure rapid generation based on INP file, to address the above problem.
Technical matters solved by the invention can realize by the following technical solutions:
Water supply network topological structure rapid generation based on INP file, is characterized in that, comprises the following steps:
(1) the water supply network CAD figure in whole region is converted to pipe network model topology structure, and generates INP file, set it as target INP file;
(2) each pipe diameter figure layer in the water supply network CAD figure in whole region is converted to pipe network model topology structure, and generates respectively INP file, set it as INP source file;
(3) in target INP file, open data, carrying out code by loading programming software writes, in each INP source file, for upstream and downstream node Node1, the Node2 of each pipeline, obtain the coordinate (X1-Coord of its node, Y1-Coord), (X2-Coord, Y2-Coord), by the method for traversal, in target INP file, find the node with same coordinate, and find out corresponding pipeline by place node, pipe diameter assignment, in the pipeline of target INP file, is completed to the pipe diameter assignment to target INP file.
In a preferred embodiment of the invention, in step (3) afterwards, delete the caliber assignment data of the INP source file in this target INP file, and preserve.
In a preferred embodiment of the invention, the programming software in described step (3) is Visual Basic for Application or Visual C++.
Owing to having adopted technical scheme as above, simple operation of the present invention, practical, Diameter of Feed Water Pipe attribute be can input quickly and accurately, thereby high efficiency and the accuracy of water supply network modeling greatly strengthened.Reduce hand labor intensity, increase work efficiency, along with urban water supply is information-based and the continuous popularization of feedwater modeling, the present invention can be more widely used.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the principle flow chart of an embodiment of the present invention.
Embodiment
For technological means, creation characteristic that the present invention is realized, reach object and effect is easy to understand, below in conjunction with concrete diagram, further set forth the present invention.
Shown in Figure 1, the water supply network topological structure rapid generation based on INP file comprises the following steps:
(1) whole region pipe network CAD figure is converted to pipe network model topology structure, and generates INP file, set it as target INP file.
(2) each caliber figure layer (as DN300, DN400 etc.) in the water supply network CAD figure in whole region is converted to respectively to pipe network model topology structure, and generates respectively each caliber INP file, set it as caliber assignment INP source file.
(3) target INP file and caliber assignment INP source file are opened by EXCEL, and the data Replica in each caliber assignment INP source file is arrived to the blank space of target INP file.Load program by Visual Basic for Application or Visual C++, and write code, operation, thus realize the assignment of each pipe diameter.The network topology of deriving for same cad file, each pipe network node coordinate X, Y are identical.In caliber assignment INP source file, for upstream and downstream node di_node1, the di_node2 of each pipeline, obtain coordinate (X1-Coord, Y1-Coord), (X2-Coord, the Y2-Coord) of its node; By the method for traversal, in target INP file, find and there is same coordinate (X1-Coord, Y1-Coord), (X2-Coord, Y2-Coord) node all_node1, all_node2, and find out place pipeline section by node, its pipeline section is the corresponding pipeline that need to give diameter of caliber assignment INP source file, and gives this pipeline at Diameter place by diameter value.
(4) in target INP file by after all pipe diameter assignment, delete the caliber assignment INP source file data in this file, and preserve.When occur inquiry whether remove after incompatible form, then preserve dialog box time, click "Yes".
Simple operation of the present invention, practical, Diameter of Feed Water Pipe attribute be can input quickly and accurately, thereby high efficiency and the accuracy of water supply network modeling greatly strengthened.Reduce hand labor intensity, increase work efficiency, along with urban water supply is information-based and the continuous popularization of feedwater modeling, the present invention can be more widely used.
More than show and described ultimate principle of the present invention and principal character and advantage of the present invention.The technician of the industry should understand; the present invention is not restricted to the described embodiments; that in above-described embodiment and instructions, describes just illustrates principle of the present invention; without departing from the spirit and scope of the present invention; the present invention also has various changes and modifications, and these changes and improvements all fall in the claimed scope of the invention.The claimed scope of the present invention is defined by appending claims and equivalent thereof.
Claims (3)
1. the water supply network topological structure rapid generation based on INP file, is characterized in that, comprises the following steps:
(1) the water supply network CAD figure in whole region is converted to pipe network model topology structure, and generates INP file, set it as target INP file;
(2) each pipe diameter figure layer in the water supply network CAD figure in whole region is converted to pipe network model topology structure, and generates respectively INP file, set it as INP source file;
(3) in target INP file, open data, carrying out code by loading programming software writes, in each INP source file, for upstream and downstream node Node1, the Node2 of each pipeline, obtain the coordinate (X1-Coord of its node, Y1-Coord), (X2-Coord, Y2-Coord), by the method for traversal, in target INP file, find the node with same coordinate, and find out corresponding pipeline by place node, pipe diameter assignment, in the pipeline of target INP file, is completed to the pipe diameter assignment to target INP file.
2. the water supply network topological structure rapid generation based on INP file as claimed in claim 1, is characterized in that, in step (3) afterwards, deletes the caliber assignment data of the INP source file in this target INP file, and preserves.
3. the water supply network topological structure rapid generation based on INP file as claimed in claim 1, is characterized in that, the programming software in described step (3) is Visual Basic for Application or Visual C++.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410361033.9A CN104156514A (en) | 2014-07-25 | 2014-07-25 | INP (input) file-based rapid generation method of water supply network topological structure |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410361033.9A CN104156514A (en) | 2014-07-25 | 2014-07-25 | INP (input) file-based rapid generation method of water supply network topological structure |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104156514A true CN104156514A (en) | 2014-11-19 |
Family
ID=51882012
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410361033.9A Pending CN104156514A (en) | 2014-07-25 | 2014-07-25 | INP (input) file-based rapid generation method of water supply network topological structure |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104156514A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107194056A (en) * | 2017-05-18 | 2017-09-22 | 四川电力设计咨询有限责任公司 | The method that system diagram is verified with threedimensional model Auto-matching in pipe design |
CN110941888A (en) * | 2019-12-16 | 2020-03-31 | 苏州嘉燃科技有限公司 | Urban gas pipe network topology data file generation method based on pipe network simulation |
-
2014
- 2014-07-25 CN CN201410361033.9A patent/CN104156514A/en active Pending
Non-Patent Citations (3)
Title |
---|
张莹 等: "EPANET在供水管网平差计算中的应用", 《山西建筑》 * |
王永 等: "应用EXCEL的VBA宏功能实现EPANET中的用水量自动分配", 《给水排水》 * |
袁文麒 等: "运用VBA实现EPANET管网拓扑结构的应用", 《河南科学》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107194056A (en) * | 2017-05-18 | 2017-09-22 | 四川电力设计咨询有限责任公司 | The method that system diagram is verified with threedimensional model Auto-matching in pipe design |
CN107194056B (en) * | 2017-05-18 | 2020-09-15 | 四川电力设计咨询有限责任公司 | Method for automatically matching and checking system diagram and three-dimensional model in pipeline design |
CN110941888A (en) * | 2019-12-16 | 2020-03-31 | 苏州嘉燃科技有限公司 | Urban gas pipe network topology data file generation method based on pipe network simulation |
CN110941888B (en) * | 2019-12-16 | 2023-08-04 | 苏州嘉燃科技有限公司 | Urban gas pipe network topology data file generation method based on pipe network simulation |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Sonaje et al. | A review of modeling and application of water distribution networks (WDN) softwares | |
CN109359351B (en) | Three-dimensional modeling method for pipeline and pipeline design method | |
CN103440364B (en) | Based on the method and system of BIM auto-building model WBS node | |
CN105117573A (en) | Automatic hydraulic model establishment method based on CAD drainage network drawing information | |
CN101981575B (en) | Method and apparatus for copying objects in an object-oriented environment using a multiple-transaction technique | |
CN105117572A (en) | Automatic SWMM hydraulic model building method based on rainwater pipe network design computation sheet | |
KR101409250B1 (en) | Piping element fitting type computer aided design method for pipe system | |
CN111950105B (en) | Depth-first traversal-based three-dimensional model conversion method for thermal power plant pipeline | |
CN105468869A (en) | Topological relation analysis method of PDS (Plant Design System) model | |
CN104156514A (en) | INP (input) file-based rapid generation method of water supply network topological structure | |
CN111143921A (en) | Method for automatically designing digital space derivative structure | |
CN104318501A (en) | Pipeline network topological relation establishment method, device and system | |
Mair et al. | Improving incomplete water distribution system data | |
CN107391136A (en) | A kind of programing system and method based on streaming | |
CN116090048A (en) | Dynamo-based pipe gallery tunnel engineering equipment layout modeling method | |
Barros | A modular representation of fluid stochastic petri nets. | |
CN110390725B (en) | Pipeline completion map generation method, device and system | |
CN109767104B (en) | Engineering test task starting method based on WBS division and computer equipment | |
CN103853862A (en) | Templated design method for cannon parts | |
CN110298913A (en) | Auto-drainage pipe net leakage rate data transfer device based on drainage pipeline networks planning drawing information | |
CN110287532A (en) | Drainage pipeline networks based on ArcGIS+InfoWorks ICM plans the information modelling processing method of drawing | |
CN117240305B (en) | Pipe network topology data compression method, device and equipment and readable storage medium | |
CN110427679A (en) | A kind of gas ductwork online editing method and pipe network online editing system | |
Zischg et al. | Stochastic performance assessment and optimization strategies of the water supply network transition of Kiruna during city relocation | |
KR101834448B1 (en) | A method of 3D volume based automatically work order system using 3D modeling |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20141119 |
|
RJ01 | Rejection of invention patent application after publication |