Drainage pipe network arrangement optimization method and terminal equipment
Technical Field
The invention belongs to the technical field of pipe network arrangement optimization, and particularly relates to a drainage pipe network arrangement optimization method and terminal equipment.
Background
With the continuous acceleration of the urbanization process in China, the drainage pipe network used as urban infrastructure is also very important. After the flow of the drain pipe is determined, the pipe diameter and the gradient of the drain pipe have various combination modes meeting the conditions, and the selection of different pipe diameter values and gradient values directly influences the pipe cost and the construction cost. Therefore, whether the optimal design method for the drainage pipe network arrangement is reasonable or not directly influences the manufacturing cost and the later maintenance cost of the drainage pipe network. In the process of implementing the invention, the inventor finds that the existing drainage pipe network arrangement optimization method, such as a linear programming method, a nonlinear programming method and a dynamic programming method, has the following defects: (1) all objective functions and constraint conditions need to be strictly linearized, and infeasible schemes cannot be completely eliminated; (2) the calculation time is long, and the local optimal solution is easy to fall into; (3) the parameter setting is complicated, and the calculated amount is large.
Disclosure of Invention
In view of this, the embodiment of the invention provides a drainage pipe network configuration optimization method and terminal equipment, so as to solve the problems of large calculation amount and long calculation time in the drainage pipe network configuration optimization process in the prior art.
The first aspect of the embodiment of the invention provides a drainage pipe network arrangement optimization method, which comprises the following steps:
obtaining the maximum value of the included angle between the water surface and the center of the drain pipe according to the preset maximum design fullness, and setting the minimum value of the included angle between the water surface and the center of the drain pipe to obtain the range of the included angle between the water surface and the center of the drain pipe;
determining the gradient range of the drain pipe according to the flow value of the drain pipe, the pipe diameter value of the drain pipe and the range of the included angle between the water surface and the center of the drain pipe;
determining the range of the water flow speed of the drain pipe according to the pipe diameter value of the drain pipe network, the range of the included angle between the water surface and the center of the drain pipe and the gradient range of the drain pipe;
when the range of the water flow speed meets the preset water flow speed constraint condition, the gradient range of the drain pipe is the gradient range designed by the drain pipe network;
when the range of the water flow speed does not meet the preset water flow speed constraint condition, the included angle between the water surface and the center of the drain pipe is adjusted until the determined water flow speed of the drain pipe meets the preset water flow speed constraint condition, and the range of the gradient of the drain pipe after adjustment is used as the gradient range of the design of the drain pipe network.
Optionally, the process of obtaining the maximum value of the included angle between the water surface and the center of the drain pipe according to the preset maximum design fullness degree is as follows:
according to the formula:
obtaining the maximum value of the included angle between the water surface and the center of the drain pipe; wherein h represents the height of the water surface, D represents the pipe diameter, and theta represents the included angle between the water surface and the center of the pipe.
Optionally, the process of obtaining the maximum value of the included angle between the water surface and the center of the drain pipe according to the preset maximum design fullness further comprises,
according to a derivative formula of the fullness degree to an included angle between the water surface and the center of the drain pipe:
and obtaining the filling degree which is a monotone increasing function of the included angle between the water surface and the center of the drain pipe, and obtaining the maximum value of the included angle between the water surface and the center of the drain pipe according to the preset maximum design filling degree.
Optionally, the process of determining the gradient range of the drain pipe according to the flow value of the drain pipe, the pipe diameter value of the drain pipe and the range of the included angle between the water surface and the center of the drain pipe is as follows:
according to the formula:
obtaining a gradient formula of the drain pipe:
wherein Q represents the flow value of the drain pipe, i represents the gradient of the drain pipe, and n represents the pipe wall roughness coefficient.
Optionally, the process of determining the gradient range of the drain pipe according to the flow value of the drain pipe, the pipe diameter value of the drain pipe and the range of the included angle between the water surface and the center of the drain pipe further comprises,
the gradient of the drain pipe is a monotone decreasing function of an included angle between the water surface and the center of the drain pipe, and the minimum value and the maximum value of the gradient of the drain pipe network are obtained according to the maximum value and the minimum value of the included angle between the water surface and the center of the drain pipe.
Optionally, the process of determining the water velocity range of the drain pipe according to the pipe diameter value of the drain pipe network, the range of the included angle between the water surface and the center of the drain pipe and the gradient range of the drain pipe is as follows:
the slope of the drain pipe is shown in formula (4)
Formula of water flow velocity instead of drain pipe
In (1)
The relation between the water flow speed of the drain pipe and the flow of the drain pipe, the pipe diameter of the drain pipe, the water surface and the central included angle of the drain pipe is obtained as follows:
optionally, the process of determining the water flow speed range of the drain pipe according to the pipe diameter value of the drain pipe network, the range of the included angle between the water surface and the center of the drain pipe and the gradient range of the drain pipe further comprises,
the water flow speed of the drainage pipe network is a monotone decreasing function of an included angle between the water surface and the center of the drainage pipe, and the minimum value and the maximum value of the water flow speed of the drainage pipe are obtained according to the maximum value and the minimum value of the included angle between the water surface and the center of the drainage pipe.
Optionally, after obtaining the slope range of the drain pipe network design, further comprising,
and obtaining the minimum flow and the maximum flow allowed to pass through by different pipe diameters according to the gradient flow relation.
A second aspect of the embodiment of the present invention provides a terminal device for optimizing a piping network arrangement, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of any one of the above methods when executing the computer program.
A third aspect of embodiments of the present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the drainage network arrangement optimization method according to any one of the above.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: according to the embodiment of the invention, the gradient range of the drain pipe is determined by presetting the maximum design fullness, the minimum value of the included angle between the set water surface and the center of the drain pipe, the flow value of the drain pipe and the pipe diameter value of the drain pipe, and then the water flow speed range of the drain pipe is determined; and adjusting the central included angle between the water surface and the drain pipe until the determined water flow speed of the drain pipe meets the preset water flow speed constraint condition, wherein the slope range corresponding to the included angle range is the slope value range for optimizing the arrangement of the drain pipe network. Through discussing the range of the pipe diameter which can be taken by the pipeline in the arrangement optimization design process, the search range in the arrangement optimization process is reduced, and the calculation complexity in the arrangement optimization process of the drainage pipe network is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart of an implementation of a drainage pipe network arrangement optimization method provided by an embodiment of the invention;
fig. 2 is a schematic flow chart of another implementation of the method for optimizing the arrangement of the drainage pipe network according to the embodiment of the present invention;
FIG. 3 is a schematic view of the minimum slope of pipe diameters from 0.3 to 2.0 with flow rates in the range of 0 to 5000 liters per second;
FIG. 4 is a schematic view of the minimum slope of the tube diameters 0.30, 0.35, 0.40 with flow rates in the range of 0 to 100 liters/second;
fig. 5 is a schematic diagram of a drainage pipe network arrangement optimization terminal device provided in the embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example one
Fig. 1 shows a schematic flow chart of an embodiment of a method for optimizing the arrangement of a drainage pipe network, which is detailed as follows:
and S101, obtaining the maximum value of the included angle between the water surface and the center of the drain pipe according to the preset maximum design fullness, and setting the minimum value of the included angle between the water surface and the center of the drain pipe to obtain the range of the included angle between the water surface and the center of the drain pipe.
Optionally, the process of obtaining the maximum value of the included angle between the water surface and the center of the drain pipe according to the preset maximum design fullness degree is as follows:
according to the formula:
obtaining the maximum value of the included angle between the water surface and the center of the drain pipe; wherein h represents the height of the water surface, D represents the pipe diameter, and theta represents the included angle between the water surface and the center of the pipe.
Optionally, obtaining the maximum value of the included angle between the water surface and the center of the drainage pipe according to the preset maximum design fullness, further comprising,
according to a derivative formula of the fullness degree to an included angle between the water surface and the center of the drain pipe:
and obtaining the filling degree which is a monotone increasing function of the included angle between the water surface and the center of the drain pipe, and obtaining the maximum value of the included angle between the water surface and the center of the drain pipe according to the preset maximum design filling degree.
Wherein, in order to avoid the pipeline to take place to block up, a maximum design fullness can all be predetermine to different pipe diameter values, and then confirms the maximum value of surface of water and drain pipe center contained angle according to maximum design fullness. The minimum value of the included angle between the water surface and the center of the pipe is set, so that the slope value and the water flow speed value of the water discharging pipe are large, and the maximum value of the water flow speed exceeds the maximum value in the preset water flow speed constraint condition. Through calculation, under different pipe diameters, the range of the included angle between the maximum water surface and the center of the drainage pipe is 3.34 radian to 4.19 radian.
And S102, determining the gradient range of the drain pipe according to the flow value of the drain pipe, the pipe diameter value of the drain pipe and the range of the included angle between the water surface and the center of the drain pipe.
Optionally, the process of determining the gradient range of the drain pipe according to the flow value of the drain pipe, the pipe diameter value of the drain pipe and the range of the included angle between the water surface and the center of the drain pipe is as follows:
according to the formula:
obtaining a gradient formula of the drain pipe:
wherein Q represents the flow value of the drain pipe, i represents the gradient of the drain pipe, and n represents the pipe wall roughness coefficient.
Optionally, the process of determining the gradient range of the drain pipe according to the flow value of the drain pipe, the pipe diameter value of the drain pipe and the range of the included angle between the water surface and the center of the drain pipe further comprises,
the gradient of the drain pipe is a monotone decreasing function of an included angle between the water surface and the center of the drain pipe, and the minimum value and the maximum value of the gradient of the drain pipe network are obtained according to the maximum value and the minimum value of the included angle between the water surface and the center of the drain pipe.
Wherein, in the formula (4)
And (theta-sin theta) is a monotone rising function within the allowed value range of theta. Therefore, when the flow rate is constant within the allowable range, the gradient i is a monotone decreasing function of the included angle θ between the water surface and the center of the drain pipe.
And S103, determining the range of the water flow speed of the drain pipe according to the pipe diameter value of the drain pipe network, the range of the included angle between the water surface and the center of the drain pipe and the gradient range of the drain pipe.
Optionally, the process of determining the range of the water flow speed of the drain pipe according to the pipe diameter value of the drain pipe network, the range of the included angle between the water surface and the center of the drain pipe and the gradient range of the drain pipe is as follows:
the slope of the drain pipe is shown in formula (4)
Formula of water flow velocity instead of drain pipe
In (1)
The relation between the water flow speed of the drain pipe and the flow of the drain pipe, the pipe diameter of the drain pipe, the water surface and the central included angle of the drain pipe is obtained as follows:
optionally, the process of determining the water flow speed range of the drain pipe according to the pipe diameter value of the drain pipe network, the range of the included angle between the water surface and the center of the drain pipe and the gradient range of the drain pipe further comprises,
the water flow speed of the drainage pipe network is a monotone decreasing function of an included angle between the water surface and the center of the drainage pipe, and the minimum value and the maximum value of the water flow speed of the drainage pipe are obtained according to the maximum value and the minimum value of the included angle between the water surface and the center of the drainage pipe.
Wherein (θ -sin θ) in the formula (6) is a monotonically increasing function within an allowable value range of θ. Therefore, in the case of a constant flow rate within the allowable range, the water flow velocity is a monotonically decreasing function of the angle θ between the water surface and the center of the drain pipe.
And step S104, when the range of the water flow speed meets the preset water flow speed constraint condition, the gradient range of the drain pipe is the gradient range designed by the drain pipe network.
Wherein, the constraint conditions of the preset water flow speed are as follows: v is more than or equal to 0.6m/s and less than or equal to 5m/s (a pipeline made of non-metal materials).
And S105, when the range of the water flow speed does not meet the preset water flow speed constraint condition, adjusting the included angle between the water surface and the center of the drain pipe until the determined water flow speed of the drain pipe meets the preset water flow speed constraint condition, and taking the range of the slope of the drain pipe after adjustment as the slope range of the design of the drain pipe network.
The water flow speed is a monotone decreasing function of an included angle between the water surface and the center of the drain pipe, namely when the included angle between the water surface and the center of the drain pipe is minimum, the water flow speed is the maximum value; when the included angle between the water surface and the center of the water drainage pipe is maximum, the water flow speed is the minimum value. Therefore, when the determined maximum value of the water flow speed exceeds the preset maximum value of the water flow speed, the minimum value of the included angle between the water surface and the center of the water drainage pipe needs to be increased, so that the water flow speed is less than or equal to the maximum preset water flow speed; when the determined minimum value of the water flow speed is smaller than the minimum value of the preset water flow speed, the maximum value of the included angle between the water surface and the center of the water drainage pipe needs to be reduced, so that the water flow speed is larger than or equal to the minimum preset water flow speed.
According to the method for optimizing the arrangement of the drainage pipe network, the gradient range of the drainage pipe is determined according to the preset maximum design fullness, the set minimum value of the included angle between the water surface and the center of the drainage pipe, the flow value of the drainage pipe and the pipe diameter value of the drainage pipe, and the range of the water flow speed of the drainage pipe is further determined; and adjusting the central included angle between the water surface and the drain pipe until the determined water flow speed of the drain pipe meets the preset water flow speed constraint condition, wherein the slope range corresponding to the included angle range is the slope value range for optimizing the arrangement of the drain pipe network. According to the method for optimizing the arrangement of the drainage pipe network, the search range in the arrangement optimization process is narrowed through discussing the range of the pipe diameters which can be taken in the arrangement optimization design process of the pipelines, and the calculated amount in the arrangement optimization process of the drainage pipe network is greatly reduced; the method is obtained by calculation under the condition of meeting the water flow speed and the maximum filling degree of different pipe diameters, the method cannot fall into a local optimal solution, and the scheme has feasibility.
Example two
In order to facilitate understanding of the implementation mode of the drainage pipe network arrangement optimization method, the invention also provides specific implementation steps of the drainage pipe network arrangement optimization method. Referring to fig. 2, a schematic flow chart of another embodiment of the optimization method for drainage pipe network arrangement is shown, which is detailed as follows:
in step S201, a pipe diameter D value and a flow Q value are given.
Step S202, taking the maximum value theta of the included angle between the water surface and the center of the drainage pipe1With a minimum value theta2。
The maximum value of the included angle between the water surface and the center of the drain pipe is determined by the maximum design fullness, and the minimum value of the included angle between the water surface and the center of the drain pipe is determined by setting a small value.
Step S203, calculating a corresponding gradient value i to obtain a maximum gradient i1And minimum gradient i2。
Step S204, calculating corresponding water flow velocity value v to obtain maximum velocity v1And minimum velocity v2。
In step S205, it is determined whether the determined water flow rate satisfies the flow rate range.
Wherein the flow velocity range is more than or equal to 0.6m/s and less than or equal to v and less than or equal to 5 m/s. It is to be understood that the maximum water flow rate is related to the pipe, and the flow rate range is referred to herein as the flow rate range of the non-metallic pipe.
When the determined maximum water flow speed and the minimum water flow speed are both in the preset flow speed range, the flow goes to step S206 to obtain the gradient range under the condition of the given pipe diameter and flow value.
And when the determined maximum beam current speed or/and the determined minimum water flow speed are not within the preset flow speed range, turning to the step S207, readjusting the included angle theta between the water surface and the center of the drain pipe, and turning to the step S203 until the determined water flow speed meets the flow speed range.
Referring to fig. 3, a minimum slope diagram of pipe diameter from 0.3 to 2.0 with flow in the range of 0 to 5000 liters per second is shown. Wherein each curve in the figure represents a different pipe diameter, and the pipe diameter is gradually increased from left to right. It can be seen from the figure that the slope of the curve gradually decreases with the increase of the pipe diameter, which means that the minimum slope is smaller as the pipe diameter is larger at a constant flow rate of the drainage pipe. On the other hand, when the pipe diameter is fixed, after the flow rate exceeds a certain threshold value, the minimum gradient gradually increases along with the increase of the flow rate; meanwhile, each different pipe diameter corresponds to an allowable maximum flow under the conditions of maximum flow speed and maximum fullness, and the maximum flow value is increased along with the increase of the pipe diameter. Table 1 gives the maximum flow values allowed for different pipe diameter values.
TABLE 1 maximum flow values allowed for different pipe diameters
Referring to fig. 4, a minimum slope diagram is shown for pipe diameters of 0.30, 0.35, 0.40 with flow rates ranging from 0 to 100 liters/second. As can be seen, the flow-minimum slope graph is monotonically decreasing and then monotonically increasing as the flow value increases. The minimum gradient curve when the pipe diameter is 0.35 between the first inflection point and the second inflection point is basically coincident with the minimum gradient curve when the pipe diameter is 0.40, so that the gradients are almost the same in the flow interval, and a smaller pipe diameter is selected, so that the cost of the pipe is saved to avoid unnecessary waste. When | i is given in view of the accuracy limit in practical construction
04-i
035|≤2*10
-4When considered as
Table 2 shows the minimum value limit flow corresponding to different pipe diameter values.
TABLE 2 minimum value limit flows corresponding to different pipe diameter values
According to the method for optimizing the arrangement of the drainage pipe network, the gradient range of the drainage pipe is determined according to the given pipe diameter value, the given flow value and the range of the included angle between the water surface and the center of the drainage pipe, the range of the water flow speed of the drainage pipe is further determined, whether the determined water flow speed meets the flow speed range or not is judged, the value of the included angle between the water surface and the center of the drainage pipe is adjusted until the determined water flow speed of the drainage pipe meets the preset water flow speed constraint condition, and the value range of the arrangement optimization of the drainage pipe. And determining the maximum flow allowed by different pipe diameters and the minimum value limit flow corresponding to different pipe diameters according to the obtained minimum gradient curve graph of different pipe diameters under different flow rates. According to the method for optimizing the arrangement of the drainage pipe network, the search range in the arrangement optimization process is narrowed through discussing the range of the pipe diameters which can be taken in the arrangement optimization design process of the pipelines, and the calculated amount in the arrangement optimization process of the drainage pipe network is greatly reduced. In addition, the method is obtained by calculation under the condition of meeting the water flow speed and the maximum fullness of different pipe diameters, the method cannot fall into a local optimal solution, and the scheme has feasibility.
EXAMPLE III
Fig. 5 is a schematic diagram of a terminal device for optimizing the arrangement of a drainage pipe network according to an embodiment of the present invention. As shown in fig. 5, the drain pipe network arrangement optimizing terminal device 5 of this embodiment includes: a processor 50, a memory 51 and a computer program 52 stored in said memory 51 and operable on said processor 50, such as a program for determining a value range for a design grade of a drainage network. The processor 50, when executing the computer program 52, implements the steps in each of the above-described drainage network arrangement optimization method embodiments, such as the steps S101 to S105 shown in fig. 1.
The drainage pipe network arrangement optimization terminal device 5 can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The drain network arrangement optimization terminal device may include, but is not limited to, a processor 50 and a memory 51. Those skilled in the art will appreciate that fig. 5 is only an example of the terminal device 5, and does not constitute a limitation to the terminal device 5, and may include more or less components than those shown, or some components in combination, or different components, for example, the terminal device may further include an input/output device, a network access device, a bus, etc.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 51 may be an internal storage unit of the drain pipe network arrangement optimization terminal device 5, for example, a hard disk or a memory of the drain pipe network arrangement optimization terminal device 5. The memory 51 may also be an external storage device of the drain pipe network configuration optimization terminal device 5, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a flash memory Card (FlashCard), or the like, which is equipped on the drain pipe network configuration optimization terminal device 5. Further, the storage 51 may include both an internal storage unit and an external storage device of the drainage network arrangement optimization terminal device 5. The memory 51 is used for storing the computer program and other programs and data required by the terminal equipment for optimizing the arrangement of the drainage network. The memory 51 may also be used to temporarily store data that has been output or is to be output.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.