A method for constructing and querying database of building water supply system

By constructing hydraulic and water quality models, digitizing equipment parameters and real-time detection data, establishing a database system solves the problem of low intelligence in data storage of building water supply systems, achieves reasonable storage and query of static and dynamic information, and supports smart platforms construction and meticulous management.

CN113704231BActive Publication Date: 2024-09-27HARBIN INST OF TECH +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111039722.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-06
Publication Date
2024-09-27
Estimated Expiration
2041-09-06

AI Technical Summary

Technical Problem

The existing data storage methods of building water supply systems are less intelligent and cannot effectively express and process dynamic information.

Method used

Construct the hydraulic and water quality model of the building water supply system, obtain equipment parameters and real-time detection data, establish a model database, equipment attribute database and status database, and store node information, pipeline information, water source information and real-time detection data through the relationship between the master table and the slave table. Realize rational storage and query of static and dynamic information.

Benefits of technology

It realizes intelligent storage and query of static and dynamic information of the building water supply system, supports the construction and fine management of smart platforms, and improves management efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113704231B
    Figure CN113704231B
Patent Text Reader

Abstract

The present invention discloses a method for constructing and querying a database of a building water supply system, the method comprising: constructing a hydraulic and water quality model of a building water supply system, obtaining node information, pipeline information and water source information of the building water supply system after verification based on the hydraulic and water quality model; obtaining equipment parameters of the building water supply system, and obtaining real-time detection data of the building water supply system from a preset cloud storage system; constructing a model database for storing node information and pipeline information, an equipment attribute database for storing water source information and equipment parameters, and a state database for storing real-time detection data. Through this method, simulation analysis of a building water supply system can be realized, and at the same time, the static and dynamic information of the building water supply system can be reasonably stored, so as to realize intelligent management of the building water supply system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of database construction, and in particular to a method for constructing and querying a database of a building water supply system. Background Art

[0002] The construction of hydraulic modeling and database of building water supply system is the basis for refined control of building water supply system. In the daily operation and maintenance process, building water supply system involves a lot of static and dynamic information. Static information mainly includes the components and connection relationships of building water supply system, and dynamic information mainly includes real-time flow, real-time pressure and real-time water tank level in the pipe network. In order to better carry out refined and intelligent control of building water supply system, it is necessary to process and analyze these static and dynamic information.

[0003] The traditional building water supply system pipe network diagram can express some static information well, but cannot express dynamic information and has a low degree of intelligence. Summary of the invention

[0004] The problem solved by the present invention is that the existing data storage method for building water supply system has a low intelligence level.

[0005] The present invention proposes a method for constructing a building water supply system database, comprising:

[0006] Constructing a hydraulic and water quality model of a building water supply system, and obtaining verified node information, pipeline information, and water source information of the building water supply system based on the hydraulic and water quality model;

[0007] Acquire equipment parameters of the building water supply system, and acquire real-time detection data of the building water supply system from a preset cloud storage system;

[0008] A model database for storing the node information and pipeline information, a device attribute database for storing the water source information and device parameters, and a status database for storing the real-time detection data are constructed, wherein a first data table in the device attribute database and a second data table in the model database have a master-slave relationship, and a third data table in the device attribute database and a fourth data table in the status database have a master-slave relationship.

[0009] Optionally, constructing a hydraulic and water quality model of a building water supply system includes:

[0010] Acquire the drawing data and field data of the building water supply system, and obtain the hydraulic and water quality simulation calculation information therefrom, wherein the simulation calculation information includes original node information, pipeline information, water pump information and water source information;

[0011] The building water supply system is divided into zones according to different water supply modes, hydraulic and water quality models are constructed for different zones of the building water supply system respectively, and simulation calculations are performed respectively, wherein the different water supply modes include at least one of different water supply sources or different water supply qualities;

[0012] Obtain measured data of the building water supply system, compare the measured data with the corresponding simulation calculation results, calibrate the hydraulic and water quality models according to the comparison results, and determine the pipeline friction coefficient, node water demand, node water demand pattern, water source initial water quality, water source water quality change pattern, water tank initial water level and water tank water level change pattern.

[0013] Optionally, the model database includes a node table and a pipeline table:

[0014] The attribute fields of the node table include fields such as node number, node water demand, node water demand mode, node leakage coefficient and node elevation;

[0015] The attribute fields of the pipeline table include pipeline number, pipeline upstream node number, pipeline downstream node number, pipeline corresponding building information model component number, pipeline friction coefficient, pipeline diameter and pipeline length.

[0016] Optionally, the equipment attribute database includes a flow meter, a pressure meter, a valve meter, a water pump meter, a water quality detection instrument and a water level detection instrument:

[0017] The attribute fields of the flow meter table include the flow meter number, the building information model component number corresponding to the flow meter, the pipeline number where the flow meter is located, and other flow meter information fields;

[0018] The attribute fields of the pressure gauge table include the pressure gauge number, the building information model component number corresponding to the pressure gauge, the pipeline number where the pressure gauge is located, and other pressure gauge information fields;

[0019] The attribute fields of the valve table include valve number, building information model component number corresponding to the valve, pipeline number where the valve is located, valve opening and closing status and other valve information fields;

[0020] The attribute fields of the water pump table include the water pump number, the building information model component number corresponding to the water pump, the pipeline number where the water pump is located, the flow rate of the water pump characteristic curve, the pressure of the water pump characteristic curve and other water pump information fields;

[0021] The attribute fields of the water level detection instrument include the water tank number corresponding to the water level detection instrument, the building information model component number corresponding to the water tank, the node number where the water tank is located, the initial water level of the water tank, the water level change mode of the water tank and other water level detection instrument information fields;

[0022] The attribute fields of the water quality detection instrument include the node number where the water quality detection instrument is located, the water quality reaction coefficient, the initial water quality of the water source, the water quality change mode of the water source and other water quality detection instrument information fields.

[0023] Optionally, the state database includes: a real-time flow meter, a real-time pressure meter, a real-time water quality meter and a real-time water level meter;

[0024] The attribute fields of the real-time flow table include fields such as flow meter flow value;

[0025] The attribute fields of the real-time pressure gauge include fields such as pressure gauge pressure value;

[0026] The attribute fields of the real-time water quality table include fields such as residual chlorine concentration of the water quality detector;

[0027] The attribute fields of the real-time water level table include fields such as the water level height of the water level detector.

[0028] Optionally, the method for constructing a database of a building water supply system further comprises: constructing a maintenance database for storing the maintenance records; the maintenance database comprises: a water pump maintenance table, a water tank maintenance table, an accident record table and a patrol record table;

[0029] The attribute fields of the water pump maintenance table and the water tank maintenance table include fields such as maintenance record number, maintenance time, equipment location, equipment number, equipment status and operator;

[0030] The attribute fields of the accident record table include fields such as accident record number, accident reporter, accident time, accident location, accident handling and accident analysis;

[0031] The attribute fields of the inspection record table include inspection record number, inspection time, equipment status and inspector and other fields.

[0032] The present invention further proposes a building water supply system database system, which is established based on the above-mentioned building water supply system database construction method, and the building water supply system database system includes:

[0033] A model database for storing the node information and pipeline information;

[0034] A device attribute database for storing the water source information and device parameters;

[0035] A status database for storing the real-time detection data;

[0036] Among them, the first data table in the device attribute database and the second data table in the model database have a master table and slave table relationship, and the third data table in the device attribute database and the fourth data table in the status database have a master table and slave table relationship.

[0037] Optionally, the building water supply system database system further includes: a maintenance database for storing the maintenance records.

[0038] The present invention also provides a method for querying data in a building water supply system database, comprising:

[0039] Get data query command;

[0040] When the data query command is a real-time data query instruction, according to the data query command, query the device attribute database in the building water supply system database system as described above to obtain a corresponding query number;

[0041] According to the query number, a query is made in the status database of the building water supply system database system to obtain corresponding real-time status data.

[0042] Optionally, after obtaining the data query command, the method further includes:

[0043] When the data query command is a pipeline connection relationship query instruction, the name of the pipeline to be checked is obtained according to the data query command, and the device attribute database in the building water supply system database system is searched based on the name of the pipeline to be checked to obtain the corresponding number of the pipeline to be checked;

[0044] Based on the query of the model database of the pipeline number to be checked in the building water supply system database system, the pipeline downstream node number and the pipeline upstream node number of the pipeline number to be checked are obtained, and then the pipelines with the same pipeline downstream node number or pipeline upstream node number as the pipeline number to be checked are queried to generate a query result of the pipeline connection relationship.

[0045] Optionally, after obtaining the data query command, the method further includes:

[0046] When the data query command is a flow meter connection relationship query instruction or a pressure gauge connection relationship query instruction, query the device attribute database in the building water supply system database system according to the data query command to obtain the associated pipeline number where the flow meter to be checked or the pressure gauge to be checked is located;

[0047] Based on the model database query of the associated pipeline number in the building water supply system database system, the pipeline downstream node number and the pipeline upstream node number of the associated pipeline number are obtained, and then the pipeline with the same pipeline downstream node number or pipeline upstream node number as the associated pipeline number is queried to generate the pipeline connection relationship corresponding to the associated pipeline number;

[0048] According to the pipeline connection relationship corresponding to the associated pipeline number, a query result of the flow meter connection relationship or the pressure gauge connection relationship is generated.

[0049] The present invention also proposes a building water supply system database construction device, including a computer-readable storage medium storing a first computer program and a first coding processor. When the first computer program is read and executed by the first coding processor, the building water supply system database construction method as described above is implemented.

[0050] The present invention also proposes a building water supply system data query device, comprising a computer-readable storage medium storing a second computer program and a second coding processor. When the second computer program is read and executed by the second coding processor, the building water supply system database data query method as described above is implemented.

[0051] The present invention digitizes the hydraulic model, equipment parameters and real-time detection data of the building water supply system, generates a water supply system database construction and query method that meets the business needs of the building water supply system intelligent platform construction, and realizes the rational storage and query of static and dynamic information of the building water supply system. The method can be applied to the construction of intelligent platforms for different types of building water supply systems to perform intelligent analysis and fine management of the building water supply system. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 This is a schematic diagram of a process 1 of a method for constructing a database of a building water supply system according to an embodiment of the present invention;

[0053] Figure 2 It is a diagram of the structure of the model database and the equipment attribute database;

[0054] Figure 3 It is a diagram of the structure of the maintenance database and the status database;

[0055] Figure 4 This is an example of real-time traffic data query;

[0056] Figure 5 An example of a flow meter connection relationship query. DETAILED DESCRIPTION

[0057] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0058] like Figure 1 In one embodiment of the present invention, the method for constructing a building water supply system database includes:

[0059] Construct a hydraulic and water quality model of a building water supply system, and obtain node information, pipeline information and water source information of the building water supply system after verification based on the hydraulic and water quality model; obtain equipment parameters of the building water supply system, and obtain real-time detection data of the building water supply system from a preset cloud storage system; construct a model database for storing the node information and pipeline information, a device attribute database for storing the water source information and equipment parameters, and a status database for storing the real-time detection data, wherein a first data table in the device attribute database and a second data table in the model database have a master table and slave table relationship, and a third data table in the device attribute database and a fourth data table in the status database have a master table and slave table relationship.

[0060] Specifically, constructing the hydraulic and water quality model of the building water supply system includes:

[0061] 1. Obtain the drawing data and field data of the building water supply system, and obtain the simulation calculation information of hydraulics and water quality from it, wherein the simulation calculation information includes the original node information, pipeline information, water pump information and water source information; specifically, the node information includes the node design second flow, node water demand mode, node leakage coefficient and node elevation, etc.; the pipeline information includes the pipeline topology, pipeline material, pipeline diameter and pipeline length, etc.; the water pump information includes the flow head curve of the water pump, etc.; the water source information includes water tank water source information, municipal direct supply water source information and other water source information of different water supply methods, such as the initial water level of the water tank, the water level change mode of the water tank, the municipal direct supply water pressure, the initial water quality of the water source, the water quality change mode of the water source and the water quality reaction coefficient, etc.

[0062] 2. Divide the building water supply system according to different water supply methods, construct hydraulic and water quality models for different partitions of the building water supply system, and perform simulation calculations respectively, wherein the different water supply methods include at least one of different water sources or different water qualities. Specifically, according to different water sources, it can be divided into water tank water supply and municipal direct supply, etc., and according to different water qualities, it can be divided into tap water and recycled water, etc. For constructing hydraulic and water quality models, hydraulic models can be constructed for each partition in the modeling software based on the drawing data and field data, and simulation calculations can be performed for different partitions. The modeling software can be selected from EPANET, WATERGEMS, WNW (Water Network Workgroup water supply network information management and analysis system), etc.

[0063] 3. Obtain the measured data of the building water supply system, compare the measured data with the corresponding simulation calculation results, and verify the hydraulic and water quality models according to the comparison results and determine the pipeline friction coefficient, node water demand, node water demand mode, water source initial water quality, water source water quality change mode, water tank initial water level and water tank water level change mode, etc. In the verification process, genetic algorithms, particle swarm algorithms, etc. can be used for optimization solutions or manual verification.

[0064] On the basis of constructing the hydraulic and water quality model of the building water supply system, simulation calculation and verification, the verified node information, pipeline information and water source information of the building water supply system are read from the output INP format file.

[0065] The equipment parameters of the building water supply system, including but not limited to the material, specification, model, characteristic curve, manufacturer and other information of each equipment, are statistically obtained based on the building water supply system drawing data.

[0066] The real-time detection data is real-time online detection data. The detection equipment in the building water supply system, such as flow meters, pressure gauges, etc., can transmit the collected real-time detection data to a preset cloud storage system, and then the building water supply system database can obtain the data from the cloud storage system.

[0067] The above-mentioned building water supply system database can be coded using SQL standard computer language.

[0068] The relationship between some data tables in the model database and some data tables in the device attribute database is the relationship between a slave table and a master table. For the convenience of description, the former is named the second data table and the latter is named the first data table. The two are associated through the node number or pipe number field, such as the foreign key of the second data table of the master table, and the node number or pipe number field is the primary key of the first data table of the slave table.

[0069] The relationship between some data tables in the device attribute database and some data tables in the status database is the relationship between a slave table and a master table. For ease of description, the former is named the third data table and the latter is named the fourth data table. The two are associated through the device number field, such as the foreign key of the third data table of the master table, and the device number field is the primary key of the fourth data table of the slave table.

[0070] By digitizing the hydraulic model, equipment parameters and real-time detection data of the building water supply system, a water supply system database construction and query method that meets the business needs of the construction of China's building water supply system smart platform is generated. This method can be applied to the construction of smart platforms for different types of building water supply systems to conduct intelligent analysis and fine management of building water supply systems.

[0071] Alternatively, if Figure 2, the model database includes but is not limited to a node table and a pipeline table.

[0072] The node table contains the attributes of each node in the building water supply system. The attribute fields of the node table include but are not limited to node number, node water demand, node water demand mode, node leakage coefficient and node elevation.

[0073] The pipe table contains the attributes of each pipe in the building water supply system. The attribute fields of the pipe table include but are not limited to the pipe number, the pipe upstream node number, the pipe downstream node number, the pipe corresponding building information model component number, the pipe friction coefficient, the pipe diameter and the pipe length.

[0074] By setting up node tables and pipe tables, the hydraulic model of the building water supply system is partially stored digitally, which facilitates the implementation of upper-level applications based on the hydraulic model and realizes intelligent and automated management of the building water supply system.

[0075] The building information model can be a BIM model, a BIM&GIS model or other three-dimensional building information model. The building information model is composed of many components, such as pipe components, water pump components and building floor components, etc. These components have their own numbers in the three-dimensional model, and the pipe corresponds to the building information model component number, that is, the component number corresponding to the pipe in the building information model.

[0076] Alternatively, if Figure 2 The equipment attribute database includes but is not limited to flow meters, pressure meters, valve meters, water pump meters, water quality detection instruments and water level detection instruments.

[0077] Specifically, the flow meter table contains records of each flow meter in the building water supply system. The attribute fields of the flow meter table include but are not limited to the flow meter number, the building information model component number corresponding to the flow meter, the pipe number where the flow meter is located, the flow meter manufacturer and the flow meter model.

[0078] The pressure gauge table contains records of each pressure gauge in the building water supply system. The attribute fields of the pressure gauge table include but are not limited to the pressure gauge number, the building information model component number corresponding to the pressure gauge, the pipe number where the pressure gauge is located, the pressure gauge manufacturer and the pressure gauge model.

[0079] The valve table contains records of each valve in the building water supply system. The attribute fields of the valve table include but are not limited to the valve number, the building information model component number corresponding to the valve, the pipe number where the valve is located, the valve opening and closing status, the valve manufacturer and the valve model.

[0080] The water pump table contains records of each water pump in the building water supply system. The attribute fields of the water pump table include but are not limited to the water pump number, the building information model component number corresponding to the water pump, the pipe number where the water pump is located, the water pump characteristic curve flow, the water pump characteristic curve pressure, the water pump manufacturer and the water pump model.

[0081] The water level detection instrument contains records of each water level detection instrument in the building water supply system. The attribute fields of the water level detection instrument include but are not limited to the water tank number corresponding to the water level detection instrument, the building information model component number corresponding to the water tank, the node number where the water tank is located, the initial water level of the water tank, the water level change mode of the water tank, the water level detection instrument manufacturer and the water level detection instrument model.

[0082] The water quality testing instrument contains the records of each water quality testing instrument in the building water supply system. The attribute fields of the water quality testing instrument include but are not limited to the node number where the water quality testing instrument is located, the water quality reaction coefficient, the initial water quality of the water source, the water quality change pattern of the water source, the water quality testing instrument manufacturer and the water quality testing instrument model.

[0083] By establishing corresponding database tables for flow meters, pressure gauges, valves, water pumps, water quality detectors, water level detectors and other equipment in the building water supply system, digital storage of static attribute data of each equipment is realized. By associating the building information model component number where the equipment is located, the location of each equipment is located, providing a basis for collecting water supply status data at each location in the building water supply system, facilitating the intelligent and automated management of the building water supply system and improving management efficiency.

[0084] Alternatively, if Figure 3 , the state database includes but is not limited to: a real-time flow meter, a real-time pressure meter, a real-time water quality meter, a real-time water level meter and a real-time valve meter;

[0085] The attribute fields of the real-time flow table include but are not limited to the flow meter instantaneous flow value and the accumulated flow value;

[0086] The attribute fields of the real-time pressure gauge include but are not limited to the pressure value of the pressure gauge;

[0087] The attribute fields of the real-time water quality table include but are not limited to residual chlorine concentration value, turbidity and water temperature of the water quality detector;

[0088] The attribute fields of the real-time water level table include but are not limited to the water level height of the water level detector;

[0089] The attribute fields of the real-time valve table include but are not limited to valve opening degree.

[0090] By digitally storing real-time detection data, the upper-level applications of the building water supply system database can realize real-time data display, query, detection and other functions of the building water supply system, realize functional diversification, and store real-time flow data, real-time pressure data, real-time water quality data, real-time water level data and real-time valve data separately from equipment parameters, which is also conducive to data management and realizes the rational storage of building water supply system data.

[0091] Alternatively, if Figure 3 , the building water supply system database construction method further includes: constructing a maintenance database for storing the maintenance records; the maintenance database includes: a water pump maintenance table, a water tank maintenance table, an accident record table and a patrol record table;

[0092] The water pump maintenance table includes the maintenance records of each water pump. The attribute fields of the water pump maintenance table include but are not limited to the water pump maintenance record number, maintenance quarter, maintenance date, water pump name, water pump location, water pump number, maintenance nature, water pump safety officer, maintenance operator, maintenance preparation materials, water pump appearance, water pump motor, water pump operating current, water pump operating voltage, water pump damage and insulation condition, water pump corrosion and leakage condition, valve condition, control cabinet condition and operator summary;

[0093] The water tank maintenance table includes the maintenance records of each water tank, and the attribute fields of the water tank maintenance table include but are not limited to the water tank maintenance record number, maintenance quarter, maintenance date, water tank name, water tank location, water tank number, water tank room door lock, lighting, temperature, humidity and sanitation and cleaning conditions, frequency conversion control cabinet conditions, direct drinking water tank water level meter water level record, soft water tank water level record, raw water tank water level record, reverse osmosis device conditions, frequency conversion water supply pump conditions, ozone generator indicator light conditions, fire extinguisher conditions, inspectors and audits;

[0094] The accident record table includes records of each accident. The attribute fields of the accident record table include but are not limited to the accident record number, the name, position and department of the reporter, the time, location and type of the accident, the cause of the accident, the accident handling measures, the accident responsibility analysis, the accident photography, the accident loss, the department manager's opinions and the project manager's instructions;

[0095] The inspection record table includes records of each inspection. The attribute fields of the inspection record table include but are not limited to inspection time, doors and door locks, lighting, temperature, humidity, box, water level of water level meter, operating pump number, electric contact water supply pressure, voltage, indicator light, inverter, ultraviolet disinfector operation, dehumidifier, work summary and inspector.

[0096] By digitally storing the inspection records of the building water supply system, reasonable storage of the inspection records can be achieved, and intelligent inspection management can be realized.

[0097] In another embodiment of the present invention, the building water supply system database system of the present invention is established based on the building water supply system database construction method as described above, and the building water supply system database system includes:

[0098] A model database for storing the node information and pipeline information;

[0099] A device attribute database for storing the water source information and device parameters;

[0100] A status database for storing the real-time detection data;

[0101] Among them, the first data table in the device attribute database and the second data table in the model database have a master table and slave table relationship, and the third data table in the device attribute database and the fourth data table in the status database have a master table and slave table relationship.

[0102] The relationship between some data tables in the model database and some data tables in the device attribute database is the relationship between a slave table and a master table. For the convenience of description, the former is named the second data table and the latter is named the first data table. The two are associated through the node number or pipe number field, such as the foreign key of the second data table of the master table, and the node number or pipe number field is the primary key of the first data table of the slave table.

[0103] The relationship between some data tables in the device attribute database and some data tables in the status database is the relationship between a slave table and a master table. For ease of description, the former is named the third data table and the latter is named the fourth data table. The two are associated through the device number field, such as the foreign key of the third data table of the master table, and the device number field is the primary key of the fourth data table of the slave table.

[0104] Optionally, the building water supply system database system further includes: a maintenance database for storing the maintenance records.

[0105] By digitizing the hydraulic model, equipment parameters, real-time detection data and maintenance records of the building water supply system, a water supply system database construction and query method that meets the business needs of the construction of China's building water supply system smart platform is generated. This method can be applied to the construction of smart platforms for different types of building water supply systems to conduct intelligent analysis and fine management of building water supply systems.

[0106] In another embodiment of the present invention, the data query method of the building water supply system database of the present invention includes:

[0107] Get data query command.

[0108] When the data query command is a real-time data query instruction, according to the data query command, the equipment attribute database in the building water supply system database system as described above is queried to obtain the corresponding query number; wherein, the real-time data query instruction includes but is not limited to real-time flow query, real-time pressure query, real-time water quality query and real-time water level query.

[0109] According to the query number, a query is made in the status database of the building water supply system database system to obtain corresponding real-time status data.

[0110] When querying, first query the device number field in the device attribute database to find the number corresponding to the name of the device to be queried, and then query the real-time data record of the device to be queried in the status database of the database according to the number.

[0111] For example, Figure 4 , in the upper-level application building water supply system smart platform of the building water supply system database, a real-time flow query command is generated, and the device attribute database is queried based on the flow meter name in the real-time flow query command to obtain the corresponding flow meter number, and then based on the data table associated with the device number field in the status database, the flow field corresponding to the flow meter number is queried to obtain the real-time flow data corresponding to the flow meter number and return it to the smart platform.

[0112] Optionally, after obtaining the data query command, the method further includes:

[0113] When the data query command is a pipeline connection relationship query instruction, the name of the pipeline to be checked is obtained according to the data query command, and the device attribute database in the building water supply system database system is queried based on the pipeline name to be checked to obtain the corresponding pipeline number to be checked; based on the pipeline number to be checked, the model database in the building water supply system database system is queried to obtain the pipeline downstream node number and the pipeline upstream node number of the pipeline number to be checked, and then the pipeline with the same pipeline downstream node number or pipeline upstream node number as the pipeline number to be checked is queried to generate a query result of the pipeline connection relationship.

[0114] Among them, query the pipeline with the same downstream node number or upstream node number as the pipeline number to be queried. For example, the pipeline number to be queried is 005, its upstream node number is 004, and its downstream node number is 006. The upstream node number of pipeline number 004 is 003, and the downstream node number is 005. The upstream node number of pipeline number 006 is 005, and the downstream node number is 007. Then the pipeline numbers 004, 005, and 006 constitute a pipeline connection relationship.

[0115] Optionally, after obtaining the data query command, the method further includes:

[0116] When the data query command is a flow meter connection relationship or pressure gauge connection relationship query instruction, the device attribute database in the building water supply system database system is queried according to the data query command to obtain the associated pipeline number of the flow meter or pressure gauge to be checked.

[0117] Based on the model database query of the associated pipe number in the building water supply system database system, the pipe downstream node number and the pipe upstream node number of the associated pipe number are obtained, and then the pipes with the same pipe downstream node number or pipe upstream node number as the associated pipe number are queried to generate the pipe connection relationship corresponding to the associated pipe number.

[0118] According to the pipeline connection relationship corresponding to the associated pipeline number, a query result of the flow meter connection relationship or the pressure gauge connection relationship is generated.

[0119] When querying the connection relationship of the flow meter or the pressure gauge, the pipeline connection relationship is first queried, and then the flow meter or pressure gauge connection relationship is determined based on the pipeline connection relationship.

[0120] For example, Figure 5 In the upper-layer application building water supply system smart platform of the building water supply system database, a flow meter connection query command is generated. Based on the command, the pipe number field corresponding to the flow meter is queried in the equipment attribute database. Based on the pipe number field, the corresponding pipe connection relationship is obtained by querying in the model database, and then the connection relationship between the flow meters is determined and returned to the smart platform.

[0121] Optionally, the data query command is a static data query instruction, and the static data query instruction includes a hydraulic model information query, an equipment parameter query, and a property maintenance query. When the data query command is a hydraulic model information query, in the model database in the building water supply system database system, the node pipe number is obtained according to the node pipe number field, and then the corresponding static data is queried in the model database according to the number. When the data query command is an equipment parameter query, the number corresponding to the equipment name is obtained in the equipment attribute database, and the corresponding static data is queried in the equipment attribute database based on the number. When the data query command is a property maintenance query, the corresponding property maintenance record number is queried in the maintenance database, and the corresponding static data is queried in the maintenance database based on the number.

[0122] Through the above-mentioned building water supply system database data query method, efficient query of real-time data, static data and connection relationships stored in the database can be achieved, so that the upper-level application building water supply system intelligent platform based on the building water supply system database can realize three-dimensional water supply system display, water meter classification management system, detection data display, inspection records and accident reports, as well as intelligent analysis modules including water balance analysis, leakage analysis, pressure analysis, water quality analysis, and water tank water level analysis, thereby realizing intelligent and refined management of the building water supply system.

[0123] In another embodiment of the present invention, a building water supply system database construction device includes a computer-readable storage medium storing a first computer program and a first coding processor, and when the first computer program is read and executed by the first coding processor, the above-mentioned building water supply system database construction method is implemented. The beneficial effects of the building water supply system database construction device of the present invention relative to the prior art are consistent with the above-mentioned building water supply system database construction method, which will not be repeated here.

[0124] In another embodiment of the present invention, a building water supply system data query device includes a computer-readable storage medium storing a second computer program and a second coding processor. When the second computer program is read and executed by the second coding processor, the building water supply system database data query method as described above is implemented.

[0125] The reader should understand that in the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples without contradiction.

[0126] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A method for constructing a building water supply system database, characterized in that: include: Constructing a hydraulic and water quality model of a building water supply system, including: obtaining drawing data and field data of the building water supply system, and obtaining hydraulic and water quality simulation calculation information therefrom, wherein the simulation calculation information includes original node information, pipeline information, water pump information and water source information; The building water supply system is divided into zones according to different water supply modes, hydraulic and water quality models are constructed for different zones of the building water supply system respectively, and simulation calculations are performed respectively, wherein the different water supply modes include at least one of different water supply sources or different water supply qualities; Obtaining measured data of the building water supply system, comparing the measured data with corresponding simulation calculation results, calibrating the hydraulic and water quality models according to the comparison results and determining the pipeline friction coefficient, node water demand, node water demand mode, water source initial water quality, water source water quality change mode, water tank initial water level and water tank water level change mode; Based on the hydraulic and water quality model, obtain the verified node information, pipeline information and water source information of the building water supply system; Acquire equipment parameters of the building water supply system, and acquire real-time detection data of the building water supply system from a preset cloud storage system; A model database for storing the node information and pipeline information, a device attribute database for storing the water source information and device parameters, and a status database for storing the real-time detection data are constructed, wherein a first data table in the device attribute database and a second data table in the model database have a master-slave relationship, and a third data table in the device attribute database and a fourth data table in the status database have a master-slave relationship.

2. The method for constructing a building water supply system database according to claim 1, characterized in that: The model database includes a node table and a pipeline table; The attribute fields of the node table include node number, node water demand, node water demand mode, node leakage coefficient and node elevation; The attribute fields of the pipeline table include pipeline number, pipeline upstream node number, pipeline downstream node number, pipeline corresponding building information model component number, pipeline friction coefficient, pipeline diameter and pipeline length.

3. The method for constructing a building water supply system database according to claim 1, characterized in that: The equipment attribute database includes flow meter, pressure meter, valve meter, water pump meter, water quality detection instrument and water level detection instrument; The attribute fields of the flow meter table include the flow meter number, the building information model component number corresponding to the flow meter and the pipeline number where the flow meter is located; The attribute fields of the pressure gauge table include the pressure gauge number, the building information model component number corresponding to the pressure gauge, and the pipeline number where the pressure gauge is located; The attribute fields of the valve table include the valve number, the building information model component number corresponding to the valve, the pipeline number where the valve is located, and the valve opening and closing status; The attribute fields of the water pump table include the water pump number, the building information model component number corresponding to the water pump, the pipeline number where the water pump is located, the water pump characteristic curve flow rate and the water pump characteristic curve pressure; The attribute fields of the water level detection instrument include the water tank number corresponding to the water level detection instrument, the building information model component number corresponding to the water tank, the node number where the water tank is located, the initial water level of the water tank and the water level change mode of the water tank; The attribute fields of the water quality detection instrument include the node number where the water quality detection instrument is located, the water quality reaction coefficient, the initial water quality of the water source and the water quality change mode of the water source.

4. The method for constructing a building water supply system database according to claim 1, characterized in that: The state database includes: a real-time flow meter, a real-time pressure meter, a real-time water quality meter and a real-time water level meter; The attribute field of the real-time flow table includes a flow meter flow value; The attribute field of the real-time pressure gauge includes the pressure value of the pressure gauge; The attribute fields of the real-time water quality table include residual chlorine concentration of the water quality detector; The attribute fields of the real-time water level table include the water level height of the water level detector.

5. The method for constructing a building water supply system database according to claim 1, characterized in that: The method for constructing a database of a building water supply system further comprises: constructing a maintenance database for storing maintenance records; the maintenance database comprises: a water pump maintenance table, a water tank maintenance table, an accident record table and a patrol record table; The attribute fields of the water pump maintenance table and the water tank maintenance table include maintenance record number, maintenance time, equipment location, equipment number, equipment status and operator; The attribute fields of the accident record table include accident record number, accident reporter, accident time, accident location, accident handling and accident analysis; The attribute fields of the inspection record table include inspection record number, inspection time, equipment status and inspector.

6. A building water supply system database system, characterized in that: Based on the method for constructing a building water supply system database according to any one of claims 1 to 5, the building water supply system database system comprises: Model database for storing node information and pipeline information; A device attribute database for storing water source information and device parameters; A state database for storing real-time detection data; Among them, the first data table in the device attribute database and the second data table in the model database have a master table and slave table relationship, and the third data table in the device attribute database and the fourth data table in the status database have a master table and slave table relationship.

7. The building water supply system database system according to claim 6, characterized in that: The building water supply system database system also includes: a maintenance database for storing maintenance records.

8. A method for querying data in a building water supply system database, characterized in that: include: Get data query command; When the data query command is a real-time data query instruction, querying in the device attribute database in the building water supply system database system according to claim 6 or 7 according to the data query command to obtain a corresponding query number; According to the query number, a query is made in the status database of the building water supply system database system to obtain corresponding real-time status data.

9. The building water supply system database data query method according to claim 8, characterized in that: After obtaining the data query command, the method further includes: When the data query command is a pipeline connection relationship query instruction, the name of the pipeline to be checked is obtained according to the data query command, and the device attribute database in the building water supply system database system is searched based on the name of the pipeline to be checked to obtain the corresponding number of the pipeline to be checked; Based on the query of the model database of the pipeline number to be checked in the building water supply system database system, the pipeline downstream node number and the pipeline upstream node number of the pipeline number to be checked are obtained, and then the pipelines with the same pipeline downstream node number or pipeline upstream node number as the pipeline number to be checked are queried to generate a query result of the pipeline connection relationship.