CN117313588B - Water age determining method and device for secondary water supply tank and electronic equipment - Google Patents

Water age determining method and device for secondary water supply tank and electronic equipment Download PDF

Info

Publication number
CN117313588B
CN117313588B CN202311615789.7A CN202311615789A CN117313588B CN 117313588 B CN117313588 B CN 117313588B CN 202311615789 A CN202311615789 A CN 202311615789A CN 117313588 B CN117313588 B CN 117313588B
Authority
CN
China
Prior art keywords
water
water tank
dead
age
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311615789.7A
Other languages
Chinese (zh)
Other versions
CN117313588A (en
Inventor
郭军
翁贤华
刘金晓
徐佳伟
江诚
石明皓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Heda Technology Co ltd
Original Assignee
Zhejiang Heda Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Heda Technology Co ltd filed Critical Zhejiang Heda Technology Co ltd
Priority to CN202311615789.7A priority Critical patent/CN117313588B/en
Publication of CN117313588A publication Critical patent/CN117313588A/en
Application granted granted Critical
Publication of CN117313588B publication Critical patent/CN117313588B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/28Design optimisation, verification or simulation using fluid dynamics, e.g. using Navier-Stokes equations or computational fluid dynamics [CFD]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/27Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/08Fluids
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2119/00Details relating to the type or aim of the analysis or the optimisation
    • G06F2119/04Ageing analysis or optimisation against ageing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2119/00Details relating to the type or aim of the analysis or the optimisation
    • G06F2119/14Force analysis or force optimisation, e.g. static or dynamic forces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A20/00Water conservation; Efficient water supply; Efficient water use
    • Y02A20/152Water filtration

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Computer Hardware Design (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Public Health (AREA)
  • Mathematical Physics (AREA)
  • Mathematical Optimization (AREA)
  • Artificial Intelligence (AREA)
  • Mathematical Analysis (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Fluid Mechanics (AREA)
  • Computing Systems (AREA)
  • Algebra (AREA)
  • Pure & Applied Mathematics (AREA)
  • Water Supply & Treatment (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Examining Or Testing Airtightness (AREA)

Abstract

The invention discloses a water age determining method and device for a secondary water supply tank and electronic equipment, wherein the method comprises the steps of obtaining historical experimental data corresponding to different experimental tanks; constructing a hydrodynamic model, and training the hydrodynamic model sequentially based on a first training set and a second training set; acquiring water tank data of a water tank to be tested, and leading the water tank data into a trained hydrodynamic model to obtain target parameter data corresponding to each target unit control volume in the water tank to be tested; according to the target parameter data, determining a dead water area and a non-dead water area of the water tank to be tested, determining the accumulated water age of the dead water area based on the historical water tank data of the water tank to be tested, and calculating the maximum water age of the non-dead water area based on the target parameter data. According to the invention, the accumulated water age of the dead water area and the maximum water age of the non-dead water area are determined through calculation, the actual condition of the water tank to be tested is comprehensively represented according to the two water ages, and the water consumption condition of a user can be determined according to the water ages better.

Description

Water age determining method and device for secondary water supply tank and electronic equipment
Technical Field
The application relates to the technical field of water age calculation, in particular to a water age determining method and device for a secondary water supply tank and electronic equipment.
Background
The secondary water supply is the last kilometer of the urban water supply link, and directly affects the water outlet quality of the resident tap. Wherein, the water age of the water tank (pool) for secondary water supply is one of the key factors affecting the water quality of the secondary water supply of residents. The pipe network and the water tank (pool) play an important role as important links of secondary water supply, and serve as important water supply and regulation facilities, and the excessive age of water often leads to the risk of exceeding the standard of the internal water quality. In addition, the water supply and storage equipment of many communities commonly has the conditions of overlong distance or overlarge volume when initially built, and the water storage volume of the roof water tank of part of communities is enough to meet the user demands of more than 48 hours of residents. Such large conveying distances and volumes tend to cause excessive water ages, thereby causing water use risks to the residents. Therefore, in order to ensure the water use safety of secondary water supply of residents, accurate calculation of the water age is needed. At present, the existing water age calculation mode is to consider the water tank as a whole to estimate the water age of the whole water tank, and the water ages of different areas in the water tank in actual conditions are different, so that the water ages calculated by the existing mode cannot accurately reflect the actual conditions of the water tank.
Disclosure of Invention
In order to solve the problems, the embodiment of the application provides a water age determining method and device of a secondary water supply tank and electronic equipment.
In a first aspect, an embodiment of the present application provides a water age determining method of a secondary water supply tank, the method including:
the method comprises the steps of obtaining historical experimental data corresponding to different experimental water tanks, dividing the historical experimental data into a first training set and a second training set, wherein the first training set comprises historical experimental data corresponding to each experimental water tank with different volumes and identical dead water areas, the second training set comprises historical experimental data corresponding to each experimental water tank with the same volumes and different dead water areas, the historical experimental data comprises parameter data of a water tank inlet, parameter data of a water tank outlet, parameter data of unit control volume and water tank structure data, and the parameter data comprises fluid speed and pressure;
constructing a hydrodynamic model, and training the hydrodynamic model sequentially based on the first training set and the second training set;
acquiring water tank data of a water tank to be tested, and leading the water tank data into the trained hydrodynamic model to obtain target parameter data corresponding to each target unit control volume in the water tank to be tested, wherein the water tank data comprises parameter data of an inlet of the water tank to be tested, parameter data of an outlet of the water tank to be tested and structure data of the water tank to be tested;
Determining a dead water area and a non-dead water area of the water tank to be tested according to the target parameter data, determining the accumulated water age of the dead water area based on the historical water tank data of the water tank to be tested, and calculating the maximum water age of the non-dead water area based on the target parameter data.
Preferably, the unit control volume is obtained by dividing the experimental water tank by a limited volume method.
Preferably, the determining the accumulated water age of the dead water area based on the historical water tank data of the water tank to be tested includes:
and determining the accumulated time length of the water tank to be measured after the last water change based on the historical water tank data of the water tank to be measured, and taking the accumulated time length as the accumulated water age of the dead water area.
Preferably, the determining the dead water area and the non-dead water area of the water tank to be tested according to the target parameter data includes:
determining a first target unit control volume for which the fluid velocity is 0 and a second target unit control volume for which the fluid velocity is not 0 from each of the target parameter data;
and determining the region formed by the first target unit control volume as a dead water region of the water tank to be tested, and determining the region formed by the second target unit control volume as a dead water region of the water tank to be tested.
Preferably, the calculating the maximum water age of the non-dead water region based on the target parameter data includes:
dividing each second target unit control volume into a plurality of volume groups according to the section distance between the corresponding vertical section of each second target unit control volume and the inlet of the water tank to be tested, wherein the section distance between each second target unit control volume in each volume group is the same, the vertical section is formed according to the center point of the second target unit control volume, and the vertical section is perpendicular to the inlet and outlet connecting line of the water tank to be tested;
and respectively determining a third target unit control volume with the minimum fluid speed from each volume group, calculating the water flow movement time length corresponding to a water flow movement path formed by each third target unit control volume, and taking the water flow movement time length as the maximum water age of a non-dead water zone of the non-dead water zone.
Preferably, the taking the water flow moving duration as the maximum water age of the non-dead water area includes:
and acquiring pipe network line data corresponding to the water tank to be tested, determining the pipe network furthest conveying time according to the pipe network line data, and taking the sum of the water flow moving time and the furthest conveying time as the maximum water age of the non-dead water zone.
Preferably, the method further comprises:
when the accumulated water age of the dead water area is larger than a first preset water age or the maximum water age of the non-dead water area is larger than a second preset water age, warning information is sent to a target terminal corresponding to the water tank to be tested;
and when the accumulated water age of the dead water area is larger than a third preset water age or the maximum water age of the non-dead water area is larger than a fourth preset water age, sending closing control information to the water outlet electronic valve of the water tank to be tested.
In a second aspect, embodiments of the present application provide a water age determination apparatus for a secondary water tank, the apparatus including:
the first acquisition module is used for acquiring historical experimental data corresponding to different experimental water tanks, dividing the historical experimental data into a first training set and a second training set, wherein the first training set comprises historical experimental data corresponding to each experimental water tank with different volumes and identical dead water areas, the second training set comprises historical experimental data corresponding to each experimental water tank with the same volumes and different dead water areas, the historical experimental data comprises parameter data of a water tank inlet, parameter data of a water tank outlet, parameter data of unit control volume and water tank structure data, and the parameter data comprises fluid speed and pressure;
The construction module is used for constructing a hydrodynamic model and training the hydrodynamic model in sequence based on the first training set and the second training set;
the second acquisition module is used for acquiring water tank data of the water tank to be detected, and importing the water tank data into the trained hydrodynamic model to obtain target parameter data corresponding to each target unit control volume in the water tank to be detected, wherein the water tank data comprises parameter data of an inlet of the water tank to be detected, parameter data of an outlet of the water tank to be detected and structure data of the water tank to be detected;
the determining module is used for determining a dead water area and a non-dead water area of the water tank to be tested according to the target parameter data, determining the accumulated water age of the dead water area based on the historical water tank data of the water tank to be tested, and calculating the maximum water age of the non-dead water area based on the target parameter data.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method as provided in the first aspect or any one of the possible implementations of the first aspect when the computer program is executed.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method as provided by the first aspect or any one of the possible implementations of the first aspect.
The beneficial effects of the invention are as follows: the dead water area and the non-dead water area in the water tank to be tested are determined through the trained hydrodynamic model, further the accumulated water age of the dead water area and the maximum water age of the non-dead water area in the non-dead water area are calculated and determined, the actual condition of the water tank to be tested is comprehensively represented according to the two water ages, and the water consumption condition of a user can be determined according to the water ages better.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a water age determining method of a secondary water supply tank according to an embodiment of the present application;
Fig. 2 is a schematic structural view of a water age determining device of a secondary water supply tank according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
In the following description, the terms "first," "second," and "first," are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The following description provides various embodiments of the present application, and various embodiments may be substituted or combined, so that the present application is also intended to encompass all possible combinations of the same and/or different embodiments described. Thus, if one embodiment includes feature A, B, C and another embodiment includes feature B, D, then the present application should also be considered to include embodiments that include one or more of all other possible combinations including A, B, C, D, although such an embodiment may not be explicitly recited in the following.
The following description provides examples and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made in the function and arrangement of elements described without departing from the scope of the application. Various examples may omit, replace, or add various procedures or components as appropriate. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined into other examples.
Referring to fig. 1, fig. 1 is a schematic flow chart of a water age determining method of a secondary water supply tank according to an embodiment of the present application. In an embodiment of the present application, the method includes:
s101, acquiring historical experimental data corresponding to different experimental water tanks, dividing the historical experimental data into a first training set and a second training set, wherein the first training set comprises historical experimental data corresponding to each experimental water tank with different volumes and identical dead water areas, the second training set comprises historical experimental data corresponding to each experimental water tank with the same volumes and different dead water areas, the historical experimental data comprises parameter data of a water tank inlet, parameter data of a water tank outlet, parameter data of unit control volume and water tank structure data, and the parameter data comprises fluid speed and pressure.
The execution subject of the present application may be a cloud server.
In one embodiment of the present application, different experimental water tanks are set in an experimental environment, and historical experimental data corresponding to the experimental water tanks is determined by performing a water injection experiment on the experimental water tanks, where the historical experimental data includes fluid speeds and pressures of an inlet of the water tank, an outlet of the water tank, and fluid speeds and pressures of respective unit control volumes obtained by dividing the total volume of the water tank into preset sizes (for example, 0.1 x 0.1). The unit control volume may have its center point as a node and the fluid velocity and pressure of the node as its corresponding fluid velocity and pressure. The water tank inlet and outlet and the fluid speed and pressure of each unit control volume can be acquired and measured by arranging sensors at corresponding positions of the experimental environment. In order to ensure the richness of data, historical experimental data are collected for the experimental water tanks with different volumes and different dead water area ratios, and two training sets, namely a first training set and a second training set, are divided according to two variables of the volumes and the dead water area ratios.
In one embodiment, the unit control volume is obtained by finite volume division of the test tank.
In one embodiment of the present application, the unit control volume may be obtained by a finite volume method, specifically, the finite volume method is that a water body is divided into a plurality of cubes which are very small and not repeated, each cube is called a unit control volume, each unit control volume is represented by a node, and a central point is generally selected as the node. The method is characterized in that the water body of the water tank is divided into a plurality of unit volumes by a limited volume method, and the fluid speed and the pressure of each unit volume are measured respectively, so that the overall water flow condition of the water tank is judged according to the data condition of each unit control volume, and further the dead water area and the non-dead water area of the water tank are determined.
S102, constructing a hydrodynamic model, and training the hydrodynamic model sequentially based on the first training set and the second training set.
In one embodiment of the present application, the hydrodynamic model may be built by openflow flow FLOOD software. The openflow FLOOD is comprehensive FLOOD simulation software, a complete spatial distributed digital model is used for simulating all hydraulic flows occurring in a river basin, the hydrodynamic model used in the method can be specifically represented by adopting a Navier-Stokes equation, the model is trained in the openflow FLOOD in sequence through a first training set and a second training set, after the model is ensured to be suitable for the conditions of different complexity, the model equation can be solved through specific boundary conditions (such as the fluid speed at the inlet and outlet of a water tank, the pressure, the shape volume of the water tank and the like), and the fluid speed and the pressure of each part in a given geometry are predicted. The expression of the Navie-Stokes equation may be as follows:
Wherein,is the fluid density; />、/>、/>Is fluid in->The velocity component of the velocity vector at points x, y, z; p is pressure; />、/>、/>External forces acting on a unit volume of fluid in the x, y, z directions, respectively, if only gravity is consideredThe method comprises the steps of carrying out a first treatment on the surface of the Constant->Is the dynamic viscosity.
S103, acquiring water tank data of the water tank to be tested, and importing the water tank data into the trained hydrodynamic model to obtain target parameter data corresponding to each target unit control volume in the water tank to be tested, wherein the water tank data comprise parameter data of an inlet of the water tank to be tested, parameter data of an outlet of the water tank to be tested and structure data of the water tank to be tested.
In one embodiment of the present application, the cloud server will acquire the water tank data of the water tank to be measured, and each item of data in the water tank data is the boundary condition used for model calculation. After the water tank data are imported into the hydrodynamic model, all parts in the water tank to be detected, namely target parameter data corresponding to all target unit control volumes, can be predicted through the hydrodynamic model.
S104, determining a dead water area and a non-dead water area of the water tank to be tested according to the target parameter data, determining the accumulated water age of the dead water area based on the historical water tank data of the water tank to be tested, and calculating the maximum water age of the non-dead water area based on the target parameter data.
In one embodiment of the application, the purpose of determining the water age of the water tank is to judge the water quality in the water tank according to the water age, so that the water supply safety is ensured, the water quality of a dead water area can be easily deteriorated after long time, the residual chlorine amount is reduced, germs are easily developed, and secondary pollution is caused. Therefore, the water tank is regarded as a whole to calculate the water age, and the obtained water age result is inaccurate and cannot be accurately represented by the actual state of the water tank. Therefore, according to the data of each target parameter, the fluid speed and the pressure of the corresponding position of each target unit control volume are determined, and the position with the fluid speed of 0 is the dead water area. Namely, according to the data of each target parameter, the dead water area and the non-dead water area in the water tank to be tested can be determined. After the dead water area and the non-dead water area are determined, the two water ages corresponding to the dead water area and the non-dead water area are used as the judgment basis of the safety of the water tank to be tested. Specifically, one is the dead water region accumulated water age of the dead water region, and the other is the maximum time that the running water of the non-dead water region takes from entering the water tank to leaving the water tank, namely the maximum water age of the non-dead water region.
In one embodiment, the determining the dead water area and the non-dead water area of the water tank to be tested according to each target parameter data includes:
Determining a first target unit control volume for which the fluid velocity is 0 and a second target unit control volume for which the fluid velocity is not 0 from each of the target parameter data;
and determining the region formed by the first target unit control volume as a dead water region of the water tank to be tested, and determining the region formed by the second target unit control volume as a dead water region of the water tank to be tested.
In one embodiment of the present application, from the fluid velocity in the target parameter data, a first target unit control volume having a fluid velocity of 0 and a second target unit control volume having a fluid velocity other than 0 can be determined. The region formed by all the first target unit control volumes is a dead water region, and the region formed by all the second target unit control volumes is a non-dead water region.
In one embodiment, the determining the accumulated water age of the dead water area based on the historical water tank data of the water tank to be tested includes:
and determining the accumulated time length of the water tank to be measured after the last water change based on the historical water tank data of the water tank to be measured, and taking the accumulated time length as the accumulated water age of the dead water area.
In one embodiment of the present application, for water in a dead water region, since the water velocity therein is 0, i.e., the body of water does not flow, the water age thereof should be the cumulative length of time that has elapsed from the last water change to the current time. The water changing operation of the water tank is generally required to be recorded, so that the time of the last water changing can be determined according to the historical water tank data of the water tank to be measured, and further the accumulated time length of the last water changing from the moment is determined, and the accumulated time length is the accumulated water age of a dead water area.
In one embodiment, the calculating the maximum water age of the non-dead water region based on the target parameter data includes:
dividing each second target unit control volume into a plurality of volume groups according to the section distance between the corresponding vertical section of each second target unit control volume and the inlet of the water tank to be tested, wherein the section distance between each second target unit control volume in each volume group is the same, the vertical section is formed according to the center point of the second target unit control volume, and the vertical section is perpendicular to the inlet and outlet connecting line of the water tank to be tested;
and respectively determining a third target unit control volume with the minimum fluid speed from each volume group, calculating the water flow movement time length corresponding to a water flow movement path formed by each third target unit control volume, and taking the water flow movement time length as the maximum water age of a non-dead water zone of the non-dead water zone.
In one embodiment of the present application, for flowing water in a non-dead water area, since the flow rates of water flows at various positions in the non-dead water area are different, the time of water in the non-dead water area retained in the water tank is also different, and considering water safety, the maximum water age of the non-dead water area needs to be determined under the condition that the water retention time is the longest, so as to be used as a safety judgment standard of the water tank to be tested. Considering that water flows in from the inlet of the water tank and flows out from the outlet of the water tank, the flow velocity is lower near the dead water region, and the dead water region is generally positioned far from the inlet and the outlet, it can be found that the lower the fluid velocity is, the closer the travel route is to the dead water region, and the longer the total length of the travel route is. Therefore, the maximum water age of the non-dead water area can be determined only by determining the time of the water body with the minimum fluid speed staying in the water tank in the water body of the water tank entering at the same moment. Specifically, a vertical section perpendicular to a connecting line of an inlet and an outlet of the water tank to be detected is generated according to the central point of each second target unit control volume, the second target unit control volumes are grouped according to the vertical section, a third target unit control volume with the minimum fluid speed is determined from each group, and a curve formed by connecting the central points of the third target unit control volumes is a water flow moving path of the water body which stays in the water tank for the longest time. Under the condition that the fluid speed of each third target unit control volume is known, the water flow moving time of the water body in the water flow moving path can be calculated by combining the water flow moving path, and the water flow moving time is the maximum water age of the non-dead water region.
In one embodiment, the taking the water flow moving duration as the maximum water age of the non-dead water area includes:
and acquiring pipe network line data corresponding to the water tank to be tested, determining the pipe network furthest conveying time according to the pipe network line data, and taking the sum of the water flow moving time and the furthest conveying time as the maximum water age of the non-dead water zone.
In one embodiment of the present application, since the water body needs to move in the pipe network line of the residential building after flowing out from the water tank outlet, the time taken for the water body to move in the pipe network line should also be considered in the maximum water age of the non-dead water region. Specifically, pipe network line data of the water tank to be detected are obtained, and the line path with the longest total path in the pipe network line and the average flow velocity of water flowing in the pipe network can be determined through the pipe network line data. According to the two data, the maximum conveying time length of the pipe network can be calculated, and the sum of the maximum conveying time length of the pipe network and the water flow moving time length is the maximum water age of the non-dead water region.
In one embodiment, the method further comprises:
when the accumulated water age of the dead water area is larger than a first preset water age or the maximum water age of the non-dead water area is larger than a second preset water age, warning information is sent to a target terminal corresponding to the water tank to be tested;
And when the accumulated water age of the dead water area is larger than a third preset water age or the maximum water age of the non-dead water area is larger than a fourth preset water age, sending closing control information to the water outlet electronic valve of the water tank to be tested.
In one embodiment of the present application, a first preset water age and a second preset water age are set for the dead water area and the non-dead water area, respectively, and generally, the first preset water age is smaller than the second preset water age, because germs in the dead water area need to be bred to a certain scale and then easily spread into the non-dead water area, thereby polluting the water source. If the accumulated water age of the dead water area is larger than the first preset water age or the maximum water age of the non-dead water area is larger than the second preset water age, the water age is considered to be too large, the water in the water tank to be tested has safety risk, at the moment, the cloud server can send warning information to a preset target terminal, and the target terminal can be a mobile phone terminal of residents of the residential building or a mobile phone/computer terminal of water tank maintainers. In addition, if no staff is still going to the water tank to be tested for maintenance after the warning information is sent, the water age can still be accumulated continuously. If the accumulated water age of the dead water area is larger than the third preset water age or the maximum water age of the non-dead water area is larger than the fourth preset water age, the water pollution is considered to be serious, closing control information is sent to the electronic valve of the water outlet of the water tank to be tested, the valve is controlled to be closed, and the water tank to be tested can not be opened again until maintenance is carried out on the water tank to be tested.
Next, a water age determining device of the secondary water supply tank according to an embodiment of the present application will be described in detail with reference to fig. 2. It should be noted that, the water age determining device of the secondary water supply tank shown in fig. 2 is used for executing the method of the embodiment shown in fig. 1 of the present application, for convenience of explanation, only the portion relevant to the embodiment of the present application is shown, and specific technical details are not disclosed, please refer to the embodiment shown in fig. 1 of the present application.
Referring to fig. 2, fig. 2 is a schematic diagram of a water age determining device of a secondary water tank according to an embodiment of the present application. As shown in fig. 2, the apparatus includes:
a first obtaining module 201, configured to obtain historical experimental data corresponding to different experimental water tanks, and divide the historical experimental data into a first training set and a second training set, where the first training set includes each historical experimental data corresponding to each experimental water tank with a different volume and a same dead water area ratio, the second training set includes each historical experimental data corresponding to each experimental water tank with a same volume and a different dead water area ratio, and the historical experimental data includes parameter data of a water tank inlet, parameter data of a water tank outlet, parameter data of a unit control volume, and water tank structure data, and the parameter data includes a fluid speed and a pressure;
A building module 202, configured to build a hydrodynamic model, and train the hydrodynamic model sequentially based on the first training set and the second training set;
the second obtaining module 203 is configured to obtain tank data of a to-be-tested tank, and import the tank data into the trained hydrodynamic model to obtain target parameter data corresponding to each target unit control volume in the to-be-tested tank, where the tank data includes parameter data of an inlet of the to-be-tested tank, parameter data of an outlet of the to-be-tested tank, and structure data of the to-be-tested tank;
the determining module 204 is configured to determine a dead water area and a non-dead water area of the water tank to be tested according to the target parameter data, determine an accumulated water age of the dead water area based on the historical water tank data of the water tank to be tested, and calculate a maximum water age of the non-dead water area based on the target parameter data.
In one embodiment, the unit control volume is obtained by finite volume division of the test tank.
In one embodiment, the determining module 204 includes:
the first determining unit is used for determining the accumulated time length of the water tank to be tested passing through after the last water change based on the historical water tank data of the water tank to be tested, and taking the accumulated time length as the accumulated water age of the dead water area.
In one embodiment, the determining module 204 further includes:
a second determining unit configured to determine a first target unit control volume at which the fluid velocity is 0 and a second target unit control volume at which the fluid velocity is not 0, based on each of the target parameter data;
and the third determining unit is used for determining the area formed by the first target unit control volumes as a dead water area of the water tank to be tested, and determining the area formed by the second target unit control volumes as a non-dead water area of the water tank to be tested.
In one embodiment, the determining module 204 further includes:
the processing unit is used for dividing each second target unit control volume into a plurality of volume groups according to the section distance between the corresponding vertical section of each second target unit control volume and the inlet of the water tank to be tested, so that the section distances of each second target unit control volume in each volume group are the same, the vertical section is formed according to the center point of the second target unit control volume, and the vertical section is perpendicular to the inlet and outlet connecting line of the water tank to be tested;
and a fourth determining unit, configured to determine a third target unit control volume with the minimum fluid velocity from each volume group, calculate a water flow movement duration corresponding to a water flow movement path formed by each third target unit control volume, and use the water flow movement duration as a maximum water age of a non-dead water zone of the non-dead water zone.
In one embodiment, the fourth determining unit includes:
the acquisition element is used for acquiring pipe network line data corresponding to the water tank to be detected, determining the pipe network furthest conveying time according to the pipe network line data, and taking the sum of the water flow moving time and the furthest conveying time as the maximum water age of the non-dead water zone.
In one embodiment, the apparatus further comprises:
the first judging module is used for sending warning information to a target terminal corresponding to the water tank to be tested when the accumulated water age of the dead water area is larger than a first preset water age or the maximum water age of the non-dead water area is larger than a second preset water age;
and the second judging module is used for sending closing control information to the water outlet electronic valve of the water tank to be tested when the accumulated water age of the dead water area is larger than a third preset water age or the maximum water age of the non-dead water area is larger than a fourth preset water age.
It will be apparent to those skilled in the art that the embodiments of the present application may be implemented in software and/or hardware. "Unit" and "module" in this specification refer to software and/or hardware capable of performing a specific function, either alone or in combination with other components, such as Field programmable gate arrays (Field-Programmable Gate Array, FPGAs), integrated circuits (Integrated Circuit, ICs), etc.
The processing units and/or modules of the embodiments of the present application may be implemented by an analog circuit that implements the functions described in the embodiments of the present application, or may be implemented by software that executes the functions described in the embodiments of the present application.
Referring to fig. 3, a schematic structural diagram of an electronic device according to an embodiment of the present application is shown, where the electronic device may be used to implement the method in the embodiment shown in fig. 1. As shown in fig. 3, the electronic device 300 may include: at least one central processor 301, at least one network interface 304, a user interface 303, a memory 305, at least one communication bus 302.
Wherein the communication bus 302 is used to enable connected communication between these components.
The user interface 303 may include a Display screen (Display), a Camera (Camera), and the optional user interface 303 may further include a standard wired interface, and a wireless interface.
The network interface 304 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the central processor 301 may comprise one or more processing cores. The central processor 301 connects the various parts within the overall electronic device 300 using various interfaces and lines, performs various functions of the terminal 300 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 305, and invoking data stored in the memory 305. Alternatively, the central processor 301 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The central processor 301 may integrate one or a combination of several of a central processor (Central Processing Unit, CPU), an image central processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the cpu 301 and may be implemented by a single chip.
The memory 305 may include a random access memory (Random Access Memory, RAM) or a Read-only memory (Read-only memory). Optionally, the memory 305 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 305 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 305 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described respective method embodiments, etc.; the storage data area may store data or the like referred to in the above respective method embodiments. The memory 305 may also optionally be at least one storage device located remotely from the aforementioned central processor 301. As shown in fig. 3, an operating system, a network communication module, a user interface module, and program instructions may be included in the memory 305, which is a type of computer storage medium.
In the electronic device 300 shown in fig. 3, the user interface 303 is mainly used for providing an input interface for a user, and acquiring data input by the user; and the central processor 301 may be used to call the age determination application of the secondary water tank stored in the memory 305 and specifically perform the following operations:
The method comprises the steps of obtaining historical experimental data corresponding to different experimental water tanks, dividing the historical experimental data into a first training set and a second training set, wherein the first training set comprises historical experimental data corresponding to each experimental water tank with different volumes and identical dead water areas, the second training set comprises historical experimental data corresponding to each experimental water tank with the same volumes and different dead water areas, the historical experimental data comprises parameter data of a water tank inlet, parameter data of a water tank outlet, parameter data of unit control volume and water tank structure data, and the parameter data comprises fluid speed and pressure;
constructing a hydrodynamic model, and training the hydrodynamic model sequentially based on the first training set and the second training set;
acquiring water tank data of a water tank to be tested, and leading the water tank data into the trained hydrodynamic model to obtain target parameter data corresponding to each target unit control volume in the water tank to be tested, wherein the water tank data comprises parameter data of an inlet of the water tank to be tested, parameter data of an outlet of the water tank to be tested and structure data of the water tank to be tested;
determining a dead water area and a non-dead water area of the water tank to be tested according to the target parameter data, determining the accumulated water age of the dead water area based on the historical water tank data of the water tank to be tested, and calculating the maximum water age of the non-dead water area based on the target parameter data.
The present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the above method. The computer readable storage medium may include, among other things, any type of disk including floppy disks, optical disks, DVDs, CD-ROMs, micro-drives, and magneto-optical disks, ROM, RAM, EPROM, EEPROM, DRAM, VRAM, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, such as the division of the units, merely a logical function division, and there may be additional manners of dividing the actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some service interface, device or unit indirect coupling or communication connection, electrical or otherwise.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, including several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be performed by hardware associated with a program that is stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The foregoing is merely exemplary embodiments of the present disclosure and is not intended to limit the scope of the present disclosure. That is, equivalent changes and modifications are contemplated by the teachings of this disclosure, which fall within the scope of the present disclosure. Embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a scope and spirit of the disclosure being indicated by the claims.

Claims (10)

1. A water age determination method of a secondary water supply tank, the method comprising:
the method comprises the steps of obtaining historical experimental data corresponding to different experimental water tanks, dividing the historical experimental data into a first training set and a second training set, wherein the first training set comprises historical experimental data corresponding to each experimental water tank with different volumes and identical dead water areas, the second training set comprises historical experimental data corresponding to each experimental water tank with the same volumes and different dead water areas, the historical experimental data comprises parameter data of a water tank inlet, parameter data of a water tank outlet, parameter data of unit control volume and water tank structure data, and the parameter data comprises fluid speed and pressure;
Constructing a hydrodynamic model, and training the hydrodynamic model sequentially based on the first training set and the second training set;
acquiring water tank data of a water tank to be tested, and leading the water tank data into the trained hydrodynamic model to obtain target parameter data corresponding to each target unit control volume in the water tank to be tested, wherein the water tank data comprises parameter data of an inlet of the water tank to be tested, parameter data of an outlet of the water tank to be tested and structure data of the water tank to be tested;
determining a dead water area and a non-dead water area of the water tank to be tested according to the target parameter data, determining the accumulated water age of the dead water area based on the historical water tank data of the water tank to be tested, and calculating the maximum water age of the non-dead water area based on the target parameter data.
2. The method of claim 1, wherein the unit control volume is obtained by finite volume partitioning of the test tank.
3. The method of claim 1, wherein the determining a dead water region cumulative age of the dead water region based on historical tank data of the tank under test comprises:
and determining the accumulated time length of the water tank to be measured after the last water change based on the historical water tank data of the water tank to be measured, and taking the accumulated time length as the accumulated water age of the dead water area.
4. The method of claim 1, wherein said determining dead water and non-dead water regions of the water tank to be tested based on each of the target parameter data comprises:
determining a first target unit control volume for which the fluid velocity is 0 and a second target unit control volume for which the fluid velocity is not 0 from each of the target parameter data;
and determining the region formed by the first target unit control volume as a dead water region of the water tank to be tested, and determining the region formed by the second target unit control volume as a dead water region of the water tank to be tested.
5. The method of claim 4, wherein calculating a maximum water age of the non-dead water zone based on the target parameter data comprises:
dividing each second target unit control volume into a plurality of volume groups according to the section distance between the corresponding vertical section of each second target unit control volume and the inlet of the water tank to be tested, wherein the section distance between each second target unit control volume in each volume group is the same, the vertical section is formed according to the center point of the second target unit control volume, and the vertical section is perpendicular to the inlet and outlet connecting line of the water tank to be tested;
And respectively determining a third target unit control volume with the minimum fluid speed from each volume group, calculating the water flow movement time length corresponding to a water flow movement path formed by each third target unit control volume, and taking the water flow movement time length as the maximum water age of a non-dead water zone of the non-dead water zone.
6. The method of claim 5, wherein said taking said water flow movement time period as a maximum water age of said non-dead water zone comprises:
and acquiring pipe network line data corresponding to the water tank to be tested, determining the pipe network furthest conveying time according to the pipe network line data, and taking the sum of the water flow moving time and the furthest conveying time as the maximum water age of the non-dead water zone.
7. The method according to claim 1, wherein the method further comprises:
when the accumulated water age of the dead water area is larger than a first preset water age or the maximum water age of the non-dead water area is larger than a second preset water age, warning information is sent to a target terminal corresponding to the water tank to be tested;
and when the accumulated water age of the dead water area is larger than a third preset water age or the maximum water age of the non-dead water area is larger than a fourth preset water age, sending closing control information to the water outlet electronic valve of the water tank to be tested.
8. A water age determining apparatus for a secondary water supply tank, the apparatus comprising:
the first acquisition module is used for acquiring historical experimental data corresponding to different experimental water tanks, dividing the historical experimental data into a first training set and a second training set, wherein the first training set comprises historical experimental data corresponding to each experimental water tank with different volumes and identical dead water areas, the second training set comprises historical experimental data corresponding to each experimental water tank with the same volumes and different dead water areas, the historical experimental data comprises parameter data of a water tank inlet, parameter data of a water tank outlet, parameter data of unit control volume and water tank structure data, and the parameter data comprises fluid speed and pressure;
the construction module is used for constructing a hydrodynamic model and training the hydrodynamic model in sequence based on the first training set and the second training set;
the second acquisition module is used for acquiring water tank data of the water tank to be detected, and importing the water tank data into the trained hydrodynamic model to obtain target parameter data corresponding to each target unit control volume in the water tank to be detected, wherein the water tank data comprises parameter data of an inlet of the water tank to be detected, parameter data of an outlet of the water tank to be detected and structure data of the water tank to be detected;
The determining module is used for determining a dead water area and a non-dead water area of the water tank to be tested according to the target parameter data, determining the accumulated water age of the dead water area based on the historical water tank data of the water tank to be tested, and calculating the maximum water age of the non-dead water area based on the target parameter data.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1-7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any of claims 1-7.
CN202311615789.7A 2023-11-30 2023-11-30 Water age determining method and device for secondary water supply tank and electronic equipment Active CN117313588B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311615789.7A CN117313588B (en) 2023-11-30 2023-11-30 Water age determining method and device for secondary water supply tank and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311615789.7A CN117313588B (en) 2023-11-30 2023-11-30 Water age determining method and device for secondary water supply tank and electronic equipment

Publications (2)

Publication Number Publication Date
CN117313588A CN117313588A (en) 2023-12-29
CN117313588B true CN117313588B (en) 2024-02-23

Family

ID=89274146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311615789.7A Active CN117313588B (en) 2023-11-30 2023-11-30 Water age determining method and device for secondary water supply tank and electronic equipment

Country Status (1)

Country Link
CN (1) CN117313588B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105825047A (en) * 2016-03-11 2016-08-03 广州地理研究所 Pipe network tip water quality simulation method based on GIS
WO2023040007A1 (en) * 2021-09-15 2023-03-23 上海城市水资源开发利用国家工程中心有限公司 Total chlorine guarantee method and system for secondary water supply and storage device based on water age control
CN117132020A (en) * 2023-09-18 2023-11-28 浙江中控信息产业股份有限公司 Water tank water age optimization method and system based on secondary water supply

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105825047A (en) * 2016-03-11 2016-08-03 广州地理研究所 Pipe network tip water quality simulation method based on GIS
WO2023040007A1 (en) * 2021-09-15 2023-03-23 上海城市水资源开发利用国家工程中心有限公司 Total chlorine guarantee method and system for secondary water supply and storage device based on water age control
CN117132020A (en) * 2023-09-18 2023-11-28 浙江中控信息产业股份有限公司 Water tank water age optimization method and system based on secondary water supply

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
用节点水龄量度给水管网的水质状况;伍悦滨, 赵洪宾, 张海龙;给水排水(05);全文 *

Also Published As

Publication number Publication date
CN117313588A (en) 2023-12-29

Similar Documents

Publication Publication Date Title
Olmedo et al. Comparison of simulation models in terms of quantity and allocation of land change
Johnston et al. Water resource models in the Mekong Basin: a review
CN108304440A (en) Method, apparatus, computer equipment and the storage medium of game push
Abadi et al. An analysis of the sustainability of basin water resources using Vensim model
CN114997541B (en) Urban waterlogging prediction method and early warning platform based on digital twin technology
JP6716328B2 (en) Inundation risk diagnostic device, inundation risk diagnostic method, control device, and computer program
CN107153874A (en) Water quality prediction method and system
CN106777909A (en) Gestational period health risk assessment system
CN114254526B (en) Method and system for evaluating carbon dioxide exchange capacity of lake water-gas interface
CN103489039A (en) Expressway traffic flow fusing and forecasting method with online self-tuning and optimizing function
Yang et al. Potential hazard analysis from the viewpoint of flow measurement in large open-channel junctions
CN116258097A (en) Method, device, electronic equipment and medium for updating hydrologic model
CN108376292A (en) A kind of crowd's method for predicting, system and equipment
CN117313588B (en) Water age determining method and device for secondary water supply tank and electronic equipment
Huang et al. An integrated approach based on Markov Chain and cellular automata to simulation of urban land use changes
CN108196951A (en) GPU runoff simulations distributed scheduling system and method
Yu et al. Urban adaptive transportation system in extreme precipitation: system dynamic analysis based on Shanghai
Mazzoleni et al. Data assimilation in hydrologic routing: Impact of model error and sensor placement on flood forecasting
CN115659871A (en) One-dimensional hydrodynamic force simulation method and device under local coordinate system
CN110665223B (en) Game resource caching method, decision network training method and device
CN114861571A (en) Dynamic boundary calculation method and device for river channel type reservoir and storage medium
Verwey Hydroinformatics support to flood forecasting and flood management
Aziz et al. Regional flood estimation in Australia: Application of gene expression programming and artificial neural network techniques
CN102955736B (en) Early-warning method and system for quality of software products
Booij Decision support system for flood control and ecosystem upgrading in the Red River basin

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant