Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides an automatic urban water flow process coupling model parameter adaptation method which improves the full life cycle of the necessary technical support capacity in the application process of an urban rainfall flood process coupling model.
The technical scheme for solving the technical problems is as follows: a full-life-cycle urban water flow process coupling model parameter automatic adaptation method comprises the following steps:
s1, constructing urban hydrological element and attribute semantic library
Describing basic information and attributes of the urban hydrological elements by natural language, converting the urban hydrological elements into a semantic library based on geographic semantic description and rule constraint, and storing the semantic library in a structured document;
s2, structured organization and management of original data
Initializing an element name, an element source file path and a data type of an element when initializing an object, storing the element by using a specific variable type according to the attribute property of the element, wherein each type of element comprises a function and is used for loading data according to the initialized element name, the initialized element file path and the initialized element type;
s3, preprocessing the standardized data adaptive to the orientation data
Processing single element data to enable the element data to be more suitable for generating a space discrete grid, processing topological adjacency relations among multiple elements, ensuring correct topological adjacency relations among the elements, enabling the discrete space to be completely covered and one or more planar geometric objects without overlapping, processing data of surface water flow and underground drainage pipe network water flow coupling simulation, and processing data of buildings and underground drainage pipe networks or surface water flow;
s4, generating a data format of the urban water flow process coupling model suitable for the full life cycle
Generating a triangular discrete grid under the constraint of a multi-element object, mapping pixel hydrological parameters to vertexes and central points of the triangular grid, facilitating the acquisition of parameters during the operation of a physical process model, and converting basic geographic data into a data format supported by an underground drainage pipe network model;
and S5, outputting parameters of the urban water flow process coupling model suitable for the full life cycle, wherein the parameters are initial condition parameters, boundary condition parameters and operation parameter parameters.
As a preferable technical solution, in step S1, the urban hydrological elements are divided into 14 hydrological element types, which are respectively buildings, roads, rivers, terrains, ponds and lakes, land utilization types, soil types, pipe sections, tunnels, pumps, weirs, drainage pipe network nodes, storage tanks, open channels and ditches, and the elements included in each hydrological element type are used as independent entity objects.
As a preferable technical solution, the organization elements of the structured document in step S1 include a unique code, an element name, an element type, an element original file storage path, an element attribute number, an element attribute name, an element attribute type, and an element attribute value.
As a preferred technical solution, the processing of the data of the surface water flow and underground drainage pipe network water flow coupling simulation in step S3 specifically includes: the types and functions of the underground drainage pipe network nodes are distinguished, the nodes needing to be coupled are extracted, and a data coupling logic object is established and used for organizing and managing water flow exchange-oriented attribute data and spatial data.
The invention also provides a full life cycle urban water flow process coupling model parameter automatic adaptation system, which comprises: the system comprises a city hydrological element and attribute semantic library, an original data structured organization and management module, a data adaptation-oriented standardized data preprocessing module, a model-oriented data format generation module and a parameter output module suitable for a model;
the city hydrological element and attribute semantic library converts the city hydrological element into a semantic library based on geographic semantic description and rule constraint, and stores the semantic library in a structured document;
the original data structured organization and management module is used for analyzing and reading data into a computer memory, storing and organizing the data, and providing a specific function for supporting the operation of the element logic model;
the data adaptation-oriented standardized data preprocessing module is used for improving the accuracy and completeness of data so that the data can better meet the requirements of space discrete execution and model modeling and simulation;
the model-oriented data format generation module is used for converting the input and processed data into parameters which can be directly used by the model;
the parameter output module suitable for the model is used for the model to conveniently and efficiently acquire parameters.
As a preferred technical solution, the original data structured organization and management module is provided with a corresponding data parsing and loading module for each element type, and a functional module capable of dynamically interacting data is provided for the relevant requirements of the elements during simulation of the water flow process.
As a preferred technical solution, the standardized data preprocessing module facing data adaptation comprises a single-element data processor facing space discrete grid generation, a multi-element topological relation processor facing space discrete grid generation, and a data processor facing surface water flow and underground drainage pipe network water flow coupling simulation;
the single-element data processor for generating the space discrete grid is used for improving the data quality required by the single element for generating the space discrete grid, so that the data can be more suitable for generating the space discrete grid;
the processor for generating the multi-element topological relation facing the space discrete grid is used for processing the topological adjacency relation among the multi-elements, ensuring the correct topological adjacency relation among the elements and enabling the discrete space to be completely covered and have no overlapped one or more planar geometric objects;
the data processor for the surface water flow and underground drainage pipe network water flow coupling simulation is composed of a data preprocessing module for coupling the underground drainage pipe network nodes and the surface water flow and a data preprocessing module for coupling the building and the drainage pipe network nodes or the surface water flow, and is used for providing required spatial data and attribute data for the coupling simulation.
As a preferred technical scheme, the model-oriented data format generation module comprises a triangular mesh automatic generator, an element hydrological parameter and discrete mesh fusion device and an underground drainage pipe network data automatic converter under the constraint of a multi-element object;
the automatic triangular mesh generator under the constraint of the multi-element object is used for executing a triangular mesh generation algorithm on the spatial data of each element object and outputting related information of a triangular mesh vertex, a triangle and inner and outer boundaries;
the element hydrological parameter and discrete grid fusion device is used for mapping the element hydrological parameter to the vertex and the central point of the triangular grid;
the automatic converter of the underground drainage pipe network data is used for automatically converting the basic geographic data into the data format supported by the model.
The invention has the following beneficial effects:
the invention can realize the automatic input of model support data and parameters under different simulation situations by a method based on geographic semantic description in a customizable and configurable mode, realize the structured organization and management of the original data of coupling simulation facing to the urban water flow process, analyze the data quality requirement required by the coupling model facing to the data input and structured optimization management, realize corresponding modules for automatically improving the data quality required by the coupling model simulation, construct a model-facing data format automatic generation module for automatically generating data suitable for model modeling and operation simulation on the basis of completing the configured input, structured management and data quality improvement of the data and parameters, construct a parameter output module suitable for the model aiming at the operation characteristics of the model at different stages, so that the model can more quickly and flexibly acquire the required initial conditions, boundary conditions and other parameters at different stages. In summary, on the basis of analyzing the characteristics of different stages in the full life cycle of converting the original basic geographic elements into the model parameters, the invention adopts the corresponding technical strategies and methods to realize the automatic processing methods required by the different stages in the data conversion and adaptation process, thereby realizing the automatic adaptation method of the model parameters in the urban water flow process under the full life cycle strategy. The parameter automatic adaptation module constructed by the invention can automatically and dynamically convert the original basic geographic data into parameters required by the model, and each geographic element is taken as an independent entity to be considered independently, so that the spatial heterogeneity entity characteristics of the elements can be fully reserved.
Detailed Description
The present invention will be described in further detail below with reference to the drawings and examples, but the present invention is not limited to the embodiments described below.
In fig. 1, the system for automatically adapting parameters of a full-life-cycle coupled model of a municipal water flow process in this embodiment includes: the system comprises a city hydrological element and attribute semantic library 1, an original data structured organization and management module 2, a data adaptation-oriented standardized data preprocessing module 3, a model-oriented data format generating module 4 and a parameter output module 5 suitable for the model. Each module is described in detail below.
The city hydrology element and attribute semantic library 1 converts city hydrology elements into a semantic library based on geographic semantic description and rule constraint, and stores the semantic library in a structured document, wherein the module specifically comprises a city hydrology element objectification information module 11, a semantic conversion module 12 and an input data semantic library 13. The city hydrology element objectification information module 11 is used for describing basic information and attributes of city hydrology elements through natural language, the semantic conversion module 12 is used for converting contents described and organized by the city hydrology element objectification information module into a semantic library based on geographic semantic description and rule constraint, and the semantic library is input into the data semantic library 13 and used for storing the city hydrology element objectification information in a structured document.
The raw data structured organization and management module 2 is a logical storage structure of a data model, and is used for parsing and reading data into a computer memory, storing and organizing the data, and providing a specific function for operating an element logical model, and specifically comprises a data structured storage and organization module 21 and a data parsing and interoperation module 22. A data structured storage and organization module 21, configured to initialize, when initializing an object, an element name, an element source file path, and a data type included in the logical class data corresponding to each element; the organization module and the data analysis and interoperation module 22 are used for storing the elements by using specific variable types, each type of element corresponds to one data analysis and loading module and is used for loading data according to the initialized element name, the element file path and the element type, and each type of element data corresponds to a function module capable of dynamically interacting data and is used for supporting modification of the elevation value of some areas.
The data-adaptation-oriented standardized data preprocessing module 3 is used for improving the accuracy and completeness of data and enabling the data to better meet the requirements of space discrete execution and model modeling and simulation, and specifically comprises a single-element data processor 31 oriented to space discrete grid generation, a multi-element topological relation processor 32 oriented to space discrete grid generation and a data processor 33 oriented to surface water flow and underground drainage pipe network water flow coupling simulation. The single-element data processor 31 for generating the space discrete grid is used for improving the data quality required by a single element for generating the space discrete grid, so that the data can be more suitable for generating the space discrete grid, has the specific functions of keeping the shape of the boundary of a building unchanged, maintaining the correct topological relation between the single element and a pipe network node, controlling and judging the grid resolution characteristic of the terrain, meeting the requirement of a model, controlling the boundary range of an element object when extracting attributes such as terrain data, land utilization data, soil type data and the like, applying an independent planar element to express an internal block contained in a road network, setting discrete parameters of the element object in a supporting way, regarding the element as a discrete processing object, and performing element expression on a tunnel-shaped river network planar element such as an island or a continent forming a hole; dynamically matching the dynamic water level change characteristics of the pond and the lake; the method comprises the steps of performing time scale conversion on rainfall data and meteorological data abnormal value detection, storing special data of a drainage system in a special data format, and meeting the requirements of model simulation on the integrity and effectiveness of the data on the premise of meeting the special data organization mode; a multi-element topological relation processor 32 generated by facing the space discrete grid, which is used for processing the topological adjacency relation among the multi-elements, ensuring the correct topological adjacency relation among the elements and enabling the discrete space to be completely covered and one or more planar geometric objects without overlapping; the data processor 33 for the surface water flow and underground drainage pipe network water flow coupling simulation is used for providing required spatial data and attribute data for the coupling simulation, and specifically comprises a data preprocessing module for coupling underground drainage pipe network nodes and surface water flow and a data preprocessing module for coupling building and drainage pipe network nodes or surface water flow, wherein the data preprocessing module for coupling underground drainage pipe network nodes and surface water flow is used for distinguishing the types and functions of drainage pipe network nodes, extracting the nodes needing coupling, establishing a data coupling logic object and organizing and managing the attribute data and the spatial data facing water flow exchange, and the data preprocessing module for coupling building and drainage pipe network nodes or surface water flow is used for directly collecting rainwater on the roof of the building into the auxiliary drainage nodes or the drainage nodes contained in the roof of the building or directly discharging the rainwater to the ground.
The model-oriented data format generation module 4 is configured to convert the input and processed data into parameters that can be directly used by the model, and specifically includes a triangular mesh automatic generator 41, an element hydrological parameter and discrete mesh fusion device 42, and an underground drainage pipe network data automatic converter 43 under the constraint of a multi-element object. The automatic triangle mesh generator 41 under the constraint of the multi-element object is used for executing a triangle mesh generation algorithm on the spatial data of each element object and outputting relevant information of vertices, triangles and inner and outer boundaries of the triangle mesh, the element hydrological parameters and discrete mesh fusion device 42 is used for mapping the element hydrological parameters to the vertices and central points of the triangle mesh so as to support parameter acquisition during the operation of a physical process model, and the automatic underground drainage pipe network data converter 43 is used for automatically converting basic geographic data into a data format supported by the model.
The parameter output module 5 is suitable for a model, is used for the model to conveniently and efficiently obtain parameters, and specifically comprises a model initial condition output interface 51, a model boundary condition output interface 52 and a model operation parameter output interface 53. The model initial condition output interface 51 is used for outputting the initial water quantity of the earth surface, the initial loss coefficient of the pipe network model, the initial space discrete grid and the initial drainage pipe network data; the model boundary condition output interface 52 is used for outputting different boundary grid water flow processing modes and dynamically setting the inlet and outlet flow rate and the speed of the inlet and outlet flow boundary; and the output interface 53 of the model operation parameters is used for outputting elevation data of different grid nodes, Manning coefficients of different grid nodes, infiltration parameters of different grid nodes and coupling simulation oriented topology parameters.
In fig. 2, the method for automatically adapting parameters of a full-life-cycle city water flow process coupling model according to the embodiment includes the following steps:
s1, constructing urban hydrological element and attribute semantic library
The urban hydrological elements are divided into 14 hydrological element types which are respectively buildings, roads, rivers, terrains, ponds, lakes, land utilization types, soil types, pipe sections, tunnels, water pumps, weirs, drainage pipe network nodes, regulation pools, open channels and ditches, the elements contained in each hydrological element type are used as independent entity objects, the basic information and the attributes of the urban hydrological elements are described in natural language, the attributes of the urban hydrological elements are three types which are respectively storage types, identifications and space coordinates, the urban hydrological elements are converted into semantic libraries based on geographic semantic description and rule constraint, the semantic libraries are stored in structured documents, and the organization elements of the structured documents comprise unique codes, element names, element types, element original document storage paths, element attribute numbers, element attribute names, The basic organization of the element attribute type and the element attribute value, taking one building element as an example, is as follows:
{“code:01”,“name:building”,“type:shape file”,“data source:D:\Urban flood\data\vector data\xabuidlings.shp”,“attributenum:7”,“valuetype:str,str,str,double,int,double,str”,“storagetype:shp”,“identify:”01-78”,“coordinates:103.32,31.13……”,“area:0.004”,“rooftype:2”,“height:5”,“affiliatenum:S76,S78…”}
semantic description contents of other elements are also carried out according to the organization mode of the building, each element corresponds to one semantic description record, a semantic library comprises the semantic description records of any plurality of elements, the semantic description records are organized and stored according to categories, and finally a semantic library file is formed, wherein the file extension name of the semantic library file is 'usl';
s2, structured organization and management of original data
Initializing element names, element source file paths and data types contained in logic class data corresponding to each element when an object is initialized, storing the elements by using specific variable types, wherein each type of element corresponds to a data analysis and loading module, loading data according to the initialized element names, element file paths and element types, and dynamically interacting a functional module of data corresponding to each type of element type data, which supports modification of elevation values of certain areas, for example, the water level of a lake is a process of dynamic change, and a specific digital elevation model is difficult to directly reflect the previous lake level, so that modification can be performed through the functional module;
s3, preprocessing the standardized data adaptive to the orientation data
Processing single element data to enable the element data to be more suitable for generation of a space discrete grid, processing topological adjacency relations among multiple elements, ensuring correct topological adjacency relations among the elements, enabling a discrete space to be completely covered and one or more planar geometric objects without overlapping, processing data of surface water flow and underground drainage pipe network water flow coupling simulation, processing data of buildings and underground drainage pipe networks or surface water flow, and providing required space data and attribute data for coupling simulation;
the data processing method for the surface water flow and underground drainage pipe network water flow coupling simulation comprises the following steps:
a. the model building underground drainage pipe network node type and function distinguishing information table, the underground drainage pipe network node type includes water inlet, detecting point, rain grate, rain well, water outlet, reserved port, gate valve, water pump, weir, regulation pool, etc. during the model building process, the factors belonging to the water flow exchange in the underground drainage pipe network system include water pump, weir and underground regulation pool, these three factors are all the water flow operation based on the discrete mode of node pipe section in the underground drainage pipe network system, do not participate in the model coupling operation, belong to the pipe network internal connection node, the factors not participating in the surface water flow exchange include reserved port, gate valve, detecting point, the node factors needing to participate in the surface water flow calculation include water inlet, rain grate, rain well, water outlet, wherein the water inlet is used for connecting with open channel or sewer, the water flow for open channel or sewer is gathered into the drainage system through the water inlet, the rainwater grate is a node where surface water flow mainly converges into a pipe network system, the rainwater well has a small inflow and overflow function, and the water outlet is a node where water is drained from the underground drainage pipe network to the surface drainage receptor;
b. constructing a coupling node logic object, wherein the logic object class comprises 6 basic attributes which are respectively a node index number for assisting in node identification, a node logic object in a data model, an input flow passing through the node at each simulation time, an output flow passing through the node at each simulation time, a total input flow of the node, a total output flow of the node or an overflow quantity, the node logic object in the data model is used for acquiring parameters required during coupling simulation, such as node coordinates, size parameters and the like, and four parameters of the input flow passing through the node at each simulation time, the output flow passing through the node at each simulation time, the total input flow of the node, the total output flow of the node or the overflow quantity are used for important parameters of simulation result analysis; the logic object class comprises a function and is used for binding a node logic object with water flow exchange, and when the simulation initialization is carried out, the node type is judged by traversing the node logic object, and the nodes needing water flow exchange sequentially generate coupling node logic objects;
s4, generating a data format of the urban water flow process coupling model suitable for the full life cycle
Generating a triangular discrete grid under the constraint of a multi-element object, as shown in fig. 3, mapping element hydrological parameters to vertexes and center points of the triangular grid, as shown in fig. 4, facilitating the acquisition of parameters during the operation of a physical process model, wherein the element hydrological parameters comprise terrain elevation, boundary information for distinguishing the element object, surface roughness of different elements, different land utilization types and soil types, and converting basic geographic data into a data format supported by an underground drainage pipe network model, as shown in fig. 5;
and S5, outputting parameters of the urban water flow process coupling model suitable for the full life cycle, wherein the parameters are initial condition parameters, boundary condition parameters and operation parameters.
The coupling simulation effect diagram of the present embodiment is shown in fig. 6.