A method, device and storage medium for quickly updating SWMM drainage network model based on survey data

By converting survey data from SHP format to geojson format and automatically setting SWMM model parameters, the problem of manual dependence in traditional SWMM model updates is solved, and fast and accurate model updates and multi-model merging are achieved, thereby improving work efficiency.

CN116305943BActive Publication Date: 2025-09-12BEIJING YINGTELIWEI ENVIRONMENTAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310271671.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-20
Publication Date
2025-09-12
Estimated Expiration
2043-03-20

AI Technical Summary

Technical Problem

Traditional SWMM model updating methods rely on manual operations, resulting in incomplete information transmission, large amounts of repetitive work, low work efficiency, and difficulty in updating multiple models in parallel.

Method used

By converting the survey data from SHP format to geojson format, extracting the data numbers of existing and newly added pipe networks, and automatically setting the SWMM model parameters in the GIS environment, a new pipe network model geojson file is generated to reduce manual intervention.

Benefits of technology

It achieves rapid updates of SWMM models, improves model accuracy and work efficiency, reduces manual repetitive operations, and supports multi-model merging and progressive construction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116305943B_ABST
    Figure CN116305943B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device and storage medium for quickly updating a SWMM drainage network model based on survey data, and belongs to the field of hydrological and water quality simulation of urban pipe networks. The method comprises: obtaining an inp file of an existing SWMM drainage network model and converting it into a file a in geojson format; obtaining an SHP layer file containing updated pipe network data information after the survey and converting it into a file b in geojson format; merging file a and file b into a file c in geojson format, and marking the existing pipe network and the newly added pipe network in file c respectively; updating the parameter settings of the SWMM model elements in file c; saving file c as an inp file format of the SWMM model to complete the update of the model. The method proposed in the present application can help technicians to quickly update the pipe network survey data to the existing SWMM drainage network model in an automated manner, thereby greatly improving the work efficiency when updating the pipe network model, significantly reducing the chance of human error, and improving the accuracy of the update results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of hydrological and water quality simulation of urban pipe networks, and in particular to a method, device and storage medium for rapidly updating a SWMM drainage pipe network model based on survey data. Background Art

[0002] SWMM (Storm Water Management Model) is a world-leading drainage network simulation model. Based on the motion wave or dynamic wave method, the model continuously simulates the generation, confluence and evolution of rainwater runoff in the pipe network. It is mainly used for urban storm-runoff simulation and the planning, design and evaluation of urban drainage systems.

[0003] In the traditional SWMM modeling approach, technicians first divide subcatchments based on ground elevation. Then, during a field survey, they confirm the relationship between the subcatchments and the pipe network, the upstream and downstream topological connections of pipe segments, node elevations, pipe segment shapes, and pipe segment dimensions. This information is then entered into a geographic information system (GIS) tool and stored in a single-layered map (SHP) file format. The SWMM model then manually constructs the pipe network topological connections using model elements, entering relevant data one by one. Finally, the model's overall operating parameters, such as start and end times, simulation step size, and input and output file paths, are set. After saving, the SWMM model input file (inp file) is generated and used to conduct simulation analysis. The SWMM model update process is similar to the above process. Based on the results of the field survey, the SWMM model elements are checked and manually updated based on the SHP file. After saving, the SWMM model corresponding to the survey results is obtained.

[0004] This SWMM update method that relies heavily on manual operations has serious flaws: 1) Since the personnel for field surveys and SWMM model updates usually do not overlap, and may even come from different companies or departments, the information in the SHP file may not be fully and accurately reflected in the SWMM model, which will bring difficulties to subsequent model testing and troubleshooting; 2) When conducting modeling and analysis of a large study area, several teams are often required to conduct field surveys and modeling in parallel. However, under traditional methods, the SWMM model cannot be updated based on survey data in a parallel manner. Instead, all surveys must be completed before unified modeling can be performed in SWMM, and models in different partitions need to be moved and aligned, which seriously restricts work efficiency; 3) When maintaining the SWMM model based on the latest situation of regional pipeline network construction, duplicate records of pipeline network data in different versions of the model need to be manually deleted one by one. If the survey is carried out in stages, the workload is huge and errors are prone to occur.

[0005] In view of this, the present invention proposes a method, device and storage medium for quickly updating the SWMM drainage network model based on survey data. Its purpose is to reduce the manual repetitive operations in the updating process of the SWMM drainage network model as much as possible through an automated and standardized process, improve the accuracy and reliability of the model, and improve the efficiency of modeling work. Summary of the Invention

[0006] To help technicians quickly update the SWMM model based on network survey data, improve modeling efficiency and model reliability, and reduce human errors, this application example provides a method, device, and storage medium for quickly updating the SWMM drainage network model based on survey data.

[0007] First, this example provides a method for quickly updating the SWMM drainage network model based on survey data, using the following technical solutions:

[0008] The method includes: obtaining an inp file of a SWMM drainage network model constructed before the investigation, and generating a geojson file a of the constructed SWMM network model;

[0009] Based on the survey results, updated pipe network information is obtained and summarized into a SHP format layer file in the GIS environment. The pipe network information includes pipeline numbers and pipeline association information, node numbers and node association information, and subcatchment numbers and subcatchment association information;

[0010] Convert the SHP file of the updated pipe network information based on the survey data to obtain the geojson file b of the updated pipe network information;

[0011] Based on the geojson file a of the existing SWMM pipe network model and the geojson file b of the updated pipe network information, extract the existing pipe network data number and the newly added pipe network data number and compare them. The part that does not belong to the newly added pipe network data number is recorded as the existing pipe network number, and a new blank SWMM pipe network model geojson file c is created;

[0012] In the new pipe network model geojson file c, set the pipe network-related SWMM model parameters for the existing pipe network part and the newly added pipe network part based on the existing pipe network data number and the newly added pipe network data number respectively;

[0013] Set global operation parameters in the new pipe network model geojson file c;

[0014] Save the modified new pipe network model geojson file c as an inp file.

[0015] Through the above technical solution, based on the existing SWMM pipe network model inp file and the SHP file updated after the pipe network survey, the existing SWMM pipe network model can be quickly updated, saving a lot of manpower and time with high accuracy.

[0016] Preferably, the updated pipe network information is obtained based on the survey results and summarized into an SHP format file under the GIS environment. The pipe network information includes pipeline numbers and pipeline association information, node numbers and node association information, and subcatchment area numbers and subcatchment area association information, specifically including:

[0017] According to the survey results, the newly added pipe network information found during the survey process is updated into the SHP format file in the GIS environment to form an SHP file of the updated associated information of the pipe network;

[0018] The pipeline association information includes the type, shape, shape size, length, upstream node number and downstream node number of the pipeline;

[0019] The node association information includes the type, maximum depth and bottom elevation of the node;

[0020] The sub-catchment associated information includes the area, hydraulic width, outlet node number, slope, proportion of impervious area, water storage depth of permeable ground in depression water storage, water storage depth of impervious ground in depression water storage and rain gauge name of the sub-catchment.

[0021] Through the above technical solution, an SHP file of the updated pipe network association information is generated according to the survey results, and the specific data information contained in the pipe network association information is determined.

[0022] Preferably, the step of converting the SHP file of the updated pipe network information based on the survey data to obtain the geojson file b of the updated pipe network information specifically includes:

[0023] Use the GeoTools tool for processing spatial data to parse the updated SHP file into a corresponding GeoJSON file. GeoJSON is a geospatial information data exchange format based on JavaScript Object Notation (JSON), which can express the physical information of point, line, and surface geometric objects in the form of feature sets.

[0024] Through the above technical solution, the SHP file is converted into a geojson file using the tool geotools, making the extraction of pipe network information more convenient.

[0025] Preferably, the geojson file a based on the built SWMM pipe network model and the geojson file b with updated pipe network information extracts the built pipe network data number and the newly added pipe network data number and compares them, records the part that does not belong to the newly added pipe network data number as the built pipe network number, and creates a new blank SWMM pipe network model geojson file c, specifically including:

[0026] Extract the pipeline, node, and sub-catchment numbers from the updated pipe network information geojson file b and record them as the newly added pipe network data numbers; compare all numbers in the existing SWMM pipe network model geojson file a with the newly added pipe network data numbers, and record the numbers that do not belong to the newly added pipe network data as the existing pipe network numbers. Then create a new blank geojson file as the new SWMM pipe network model geojson file c;

[0027] Through the above technical solution, the data numbers of the existing pipeline network and the newly added pipeline network were extracted, and a new SWMM pipeline network model geojson file c was created.

[0028] Preferably, in the new pipe network model geojson file c, pipe network-related SWMM model parameters are set for the existing pipe network part and the newly added pipe network part based on the existing pipe network data number and the newly added pipe network data number, specifically including:

[0029] For the existing pipe network, set the SWMM model parameters related to the existing pipe network in the new pipe network model geojson file c according to the corresponding pipeline number, node number and catchment area number by "keeping the original data mode" or "using the default parameter mode";

[0030] The "retain original data mode" refers to extracting the corresponding numbered parameters from the existing SWMM pipe network model geojson file a according to the pipeline number, node number, and sub-catchment number of the existing pipe network data and copying them to the new pipe network model geojson file c to set the SWMM model parameters related to the newly added pipe network;

[0031] The "default parameter mode" mentioned above means that all SWMM model parameters related to pipeline numbers, node numbers, and subcatchment numbers of the built pipe network data are set using the system default parameter values;

[0032] For the newly added pipe network, extract the pipeline-related parameters, node-related parameters, and sub-catchment-related parameters from the updated pipe network information geojson file b according to the corresponding pipeline number, node number, and catchment number, and copy them to the new pipe network model geojson file c to generate the SWMM model parameters related to the newly added pipe network.

[0033] Through the above technical solution, the SWMM network model geojson file a generates SWMM model parameters related to the existing network for the existing network part by "keeping the original data method" or "using the default parameter method", and generates model parameters related to the new network for the new network part.

[0034] Preferably, the setting of parameters in the new pipe network model geojson file c specifically includes:

[0035] Extract global operating parameters from the existing SWMM pipe network model geojson file a as the global operating parameters used by the new pipe network model. The global operating parameters include the simulation start date and time, simulation end date and time, flood evolution calculation time step, pipe network hydraulic calculation time step, regional monthly average evapotranspiration, and the storage location of the rain gauge file.

[0036] Through the above technical solution, the global operating parameters of the model are set, including the simulation start date and time, simulation end date and time, flood evolution calculation time step, pipe network hydraulic calculation time step, regional monthly average evapotranspiration and the storage location of the rain gauge file.

[0037] In a second aspect, the present application provides a computer device that adopts the following technical solution: it includes a memory and a processor, and the memory stores a computer program that can be loaded by the processor and execute any of the above-mentioned methods for quickly updating the SWMM drainage network model based on survey data.

[0038] Through the above technical solution, based on the existing SWMM pipe network model geojson file a and the updated pipe network information geojson file b, the existing pipe network data number and the newly added pipe network data number are extracted, and then a new SWMM pipe network model geojson file c is created, and the SWMM model parameters and global operation parameters are set for the existing pipe network part and the newly added pipe network part respectively. Finally, the inp file of the updated pipe network model is generated, which can be used to quickly update the pipe network model at different stages of pipe network survey data accumulation, reduce the workload of reconfiguring the model when updating the model and save the time required, so that modelers can focus more on model verification and application.

[0039] In a third aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: storing a computer program that can be loaded by a processor and execute any of the above-mentioned methods for quickly updating the SWMM drainage network model based on survey data.

[0040] Through the above technical solution, based on the existing SWMM pipe network model geojson file a and the updated pipe network information geojson file b, the existing pipe network data number and the newly added pipe network data number are extracted, and then a new SWMM pipe network model geojson file c is created, and the SWMM model parameters and global operation parameters are set for the existing pipe network part and the newly added pipe network part respectively. Finally, the inp file of the updated pipe network model is generated, which can be used to quickly update the pipe network model at different stages of pipe network survey data accumulation, reduce the workload of reconfiguring the model when updating the model and save the time required, so that modelers can focus more on model verification and application.

[0041] In summary, this application includes at least one of the following beneficial technical effects:

[0042] 1. Automatically update the network data in the existing SWMM drainage network model, thereby realizing the progressive construction of the model, that is, first build a rough model and then refine the model area by area;

[0043] 2. Ability to merge multiple SWMM drainage network models;

[0044] 3. It can reduce the workload of reconfiguring the model when updating the SWMM drainage network model, save the required time, and allow modelers to focus more on model verification and application. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 This is a flow chart of a method for quickly updating a SWMM drainage network model based on survey data in an embodiment of the present application.

[0046] Figure 2 This is a diagram of the existing pipeline network and the newly added pipeline network in S13 in the embodiment of the present application. DETAILED DESCRIPTION

[0047] The following is combined with Figure 1-2 This application is described in further detail.

[0048] The present application embodiment discloses a method for quickly updating a SWMM drainage network model based on survey data. The method is based on the existing SWMM network model geojson file a and the geojson file b generated by the updated network association information, extracting the existing network data number and the newly added network data number, and then creating a new SWMM network model geojson file c. SWMM model parameters and global operating parameters are set for the existing network part and the newly added network part respectively to distinguish the relevant network parts before and after the update, and the network-related parameters and model global operating parameters are set respectively. Finally, an inp file of the updated SWMM drainage network model is generated. This technology can be used to quickly update the network model at different stages of the accumulation of network survey data, reducing the workload of reconfiguring the model when updating the model and saving the time required, so that modelers can focus more on model verification and application.

[0049] like Figure 1 As shown, the method includes the following steps:

[0050] S10, obtain the built pipe network model inp file, and then convert it into the built SWMM pipe network model geojson file a.

[0051] Specifically, based on the SWMM drainage network model constructed before the investigation, the inp file of the model is obtained, and the geojson file a of the constructed SWMM network model is generated.

[0052] S11, obtaining the updated SHP diagram of the pipe network.

[0053] Specifically, based on the survey results, updated pipe network information was obtained and compiled into a SHP file within the GIS environment. This pipe network information includes pipeline numbers and associated information, node numbers and associated information, and subcatchment numbers and associated information. For more detailed pipeline association information, see Table 1, including pipeline type, shape, shape dimensions, length, upstream node number, and downstream node number. For more detailed node association information, see Table 2, including node type, maximum depth, and bottom elevation. For more detailed subcatchment association information, see Table 3, including subcatchment area, hydraulic width, outlet node number, slope, percentage of impervious area, permeable ground storage depth within depression storage, impervious ground storage depth within depression storage, and rain gauge name.

[0054] Table 1 Pipeline related information

[0055]

[0056]

[0057] Table 2 Node association information

[0058]

[0059]

[0060] Table 3 Subcatchment association information

[0061]

[0062] S12, converting into geojson file b for updating pipe network information.

[0063] Specifically, a third-party GIS data processing tool called geotools for processing spatial data is used to parse the SHP file containing the updated pipeline network information into a corresponding geojson file.

[0064] S13, extract the data number of the existing pipe network and the data number of the newly added pipe network, and then create a new SWMM pipe network model geojson file c.

[0065] Specifically, from the geojson file b of the updated pipe network information, extract the pipeline, node, and sub-catchment numbers in the file and record them as the new pipe network data numbers, see Tables 4 to 6; extract the pipeline, node, and sub-catchment numbers in the geojson file a of the existing SWMM pipe network model and compare them with the new pipe network data numbers. The parts that do not belong to the new pipe network data numbers are recorded as the existing pipe network data numbers, see Tables 7 to 9. Figure 2 The data numbers of the existing pipeline network and the newly added pipeline network are used to mark and distinguish the existing pipeline network part before the update and the newly added pipeline network part after the investigation. The yellow part is the newly added pipeline network part, and the gray part is the existing pipeline network part.

[0066] Table 4 Newly added pipeline data numbers

[0067] Pipeline number p12 P32 P41 p44 P81 P82 P94 P99 P117 P120 P121 P122 P123 P124 P125

[0068] Table 5 Newly added node data numbers

[0069]

[0070]

[0071] Table 6 New subcatchment data numbers

[0072]

[0073] Table 7 Data number of constructed pipelines

[0074] Pipeline number p1 p2 p3 p4 p5 p6 p7 p11 p15 p66 p67 p68 p69 p70 p73 p74 p75

[0075] Table 8 Data number of built nodes

[0076] Node number n1 n2 n3 n4 n5 n6 n7 n12 n13 n15 n60 n61 n83 n84 n85 n86 n87 n88 n89 n90 n91 n96

[0077] Table 9 Data number of built sub-catchments

[0078]

[0079]

[0080] S14, set SWMM model parameters for the existing pipe network and the newly added pipe network respectively.

[0081] Specifically, for the existing pipe network, the relevant SWMM model parameters for the existing pipe network are generated based on the corresponding pipeline numbers, node numbers, and catchment numbers using either the "Retain Original Data" method or the "Use Default Parameters" method. The "Retain Original Data" method extracts the corresponding parameters from the existing pipe network model geojson file a and copies them to the new model geojson file c for model parameter settings. The "Use Default Parameters" method uses the system default values ​​for all parameters associated with the existing pipe network data pipeline numbers, node numbers, and subcatchment numbers.

[0082] For the newly added pipe network, according to the corresponding pipeline number, node number and catchment area number, the pipeline association parameters, node association parameters and sub-catchment area association parameters in the geojson file b after the updated pipe network are extracted to generate the new pipe network related parameters of the new model.

[0083] S15, set global operating parameters.

[0084] Specifically, global operating parameters are extracted from the existing SWMM network model (genjson file a) as global operating parameters for the new network model. These parameters include the simulation start date and time, simulation end date and time, flood evolution calculation time step, network hydraulic calculation time step, regional monthly average evapotranspiration, and the storage location of the rain gauge file.

[0085] S16, generating an updated pipe network model inp file.

[0086] Specifically, the updated and modified new model geojson file c is saved as the new pipe network model inp file.

[0087] The implementation principle of this embodiment is as follows: Based on the existing SWMM pipe network model geojson file a and the updated pipe network information geojson file b, the existing pipe network data number and the newly added pipe network data number are extracted. Then, a new SWMM pipe network model geojson file c is created. SWMM model parameters and global operating parameters are set for the existing pipe network and the newly added pipe network respectively. Finally, an inp file for the updated pipe network model is generated. This technology can be used to quickly update the pipe network model at different stages of pipe network survey data accumulation, reducing the workload and time required to reconfigure the model during the update, allowing modelers to focus more on model verification and application.

[0088] The embodiment of the present application also discloses a computer device.

[0089] Specifically, the computer device includes a memory and a processor, and the memory stores a computer program that can be loaded by the processor and execute the above-mentioned method for quickly updating the SWMM drainage network model based on survey data.

[0090] The embodiment of the present application also discloses a computer-readable storage medium.

[0091] Specifically, the computer-readable storage medium stores a computer program that can be loaded by a processor and execute a method for quickly updating the SWMM drainage network model based on survey data, such as the above-mentioned method. The computer-readable storage medium includes, for example: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0092] This specific embodiment is merely an explanation of the present invention and is not intended to limit the present invention. After reading this specification, those skilled in the art may make non-creative modifications to this embodiment as needed. However, as long as such modifications are within the scope of the claims of the present invention, they are protected by patent law.

Claims

1. A method for quickly updating the SWMM drainage network model based on survey data, characterized in that: The method comprises: Based on the SWMM drainage network model constructed before the survey, obtain the model's inp file and generate the constructed SWMM network model geojson file a; Based on the survey results, updated pipe network information is obtained and summarized into a SHP format file in the GIS environment. The pipe network information includes pipeline numbers and pipeline association information, node numbers and node association information, and subcatchment numbers and subcatchment association information; Convert the SHP file of the updated pipe network information based on the survey data to obtain the geojson file b of the updated pipe network information; Based on the geojson file a of the existing SWMM pipe network model and the geojson file b of the updated pipe network information, extract the existing pipe network data number and the newly added pipe network data number and compare them. The part that does not belong to the newly added pipe network data number is recorded as the existing pipe network number, and a new blank SWMM pipe network model geojson file c is created; In the new pipe network model geojson file c, set the pipe network-related SWMM model parameters for the existing pipe network part and the newly added pipe network part based on the existing pipe network data number and the newly added pipe network data number respectively; Set global operation parameters in the new pipe network model geojson file c; Save the modified pipe network model geojson file c as an inp file.

2. The method according to claim 1, characterized in that According to the survey results, the updated pipe network information is obtained and summarized into an SHP format file in the GIS environment. The pipe network information includes pipeline numbers and pipeline association information, node numbers and node association information, and sub-catchment area numbers and sub-catchment area association information, specifically including: According to the survey results, the newly added pipe network information found during the survey process is updated into the SHP format file in the GIS environment to form an SHP file of the updated associated information of the pipe network; The pipeline association information includes the type, shape, shape size, length, upstream node number and downstream node number of the pipeline; The node association information includes the type, maximum depth and bottom elevation of the node; The sub-catchment associated information includes the area, hydraulic width, outlet node number, slope, proportion of impervious area, water storage depth of permeable ground in depression water storage, water storage depth of impervious ground in depression water storage and rain gauge name of the sub-catchment.

3. The method according to claim 1, characterized in that The SHP file of the updated pipe network information based on the survey data is converted to obtain the geojson file b of the updated pipe network information, specifically including: Use the GeoTools tool for processing spatial data to parse the updated pipe network SHP file into the corresponding GeoJSON file.

4. The method according to claim 1, wherein In the new pipe network model geojson file c, the pipe network-related SWMM model parameters are set for the existing pipe network part and the newly added pipe network part based on the existing pipe network data number and the newly added pipe network data number, respectively. Specifically, they include: For the existing pipe network, set the SWMM model parameters related to the existing pipe network in the new pipe network model geojson file c according to the corresponding pipeline number, node number, and catchment area number by "keeping the original data mode" or "using the default parameter mode"; The "retain original data mode" refers to extracting the corresponding numbered parameters from the existing SWMM pipe network model geojson file a according to the pipeline number, node number, and sub-catchment number of the existing pipe network data and copying them to the new pipe network model geojson file c to set the SWMM model parameters related to the newly added pipe network; The "default parameter mode" refers to setting all SWMM model parameters related to pipeline numbers, node numbers, and subcatchment numbers of the existing pipe network data using the system default parameter values. For the newly added pipe network, according to the corresponding pipeline number, node number and catchment area number, the pipeline associated parameters, node associated parameters and sub-catchment area associated parameters in the updated pipe network information geojson file b are extracted and copied to the new pipe network model geojson file c to generate the SWMM model parameters related to the newly added pipe network.

5. The method according to claim 1, characterized in that The global operating parameters are set in the new pipe network model geojson file c, specifically including: Extract global operating parameters from the existing SWMM pipe network model geojson file a as the global operating parameters used by the new pipe network model. The global operating parameters include the simulation start date and time, simulation end date and time, flood evolution calculation time step, pipe network hydraulic calculation time step, regional monthly average evapotranspiration, and the storage location of the rain gauge file.

6. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executes the method according to any one of claims 1 to 5.

7. A computer-readable storage medium, characterized in that A computer program is stored which can be loaded by a processor and executes the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Automatic SWMM hydraulic model building method based on rainwater pipe network design computation sheet

    CN105117572A

  • Urban inland inundation model construction method based on CAD engineering drawing information and computation sheet of pipe network design

    CN105224747A