CN-121980924-A - Natural gas dust content estimation method and system for gas pipe network safety
Abstract
The invention relates to the technical field of flow simulation and numerical calculation of a gas pipe network, and provides a natural gas dust content estimation method for gas pipe network safety, which comprises the steps of responding to a natural gas dust content estimation request; the method comprises the steps of obtaining dust content of an inlet node of an upstream pipe section at a current node, calculating dust content adsorption attenuation of the upstream pipe section according to a first-order attenuation model, determining dust content of an outlet node of the upstream pipe section, carrying out flow weighting treatment on the dust content of the outlet node of the upstream pipe section according to a flow distribution relation of the current node and a preset dust content loss coefficient, determining dust content of the inlet node of the downstream pipe section, traversing the dust content of an inlet node, judging whether a deviation value between a dust content detection value of a detection node and a calculated value of the corresponding dust content meets a preset precision condition, and outputting a dust content distribution result of a gas pipe network when the deviation value meets the preset precision condition, wherein the method is suitable for dust content distribution estimation of medium-pressure pipe networks of various gases. Can be combined with various pipe network fluid simulation software or engineering design platforms.
Inventors
- WU AIQUN
- WANG CHAOQUN
Assignees
- 上海航天信息科技研究院
- 上海航天信息科技有限公司
- 上海航天能源股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20251230
Claims (10)
- 1. The natural gas dust content estimation method for gas pipe network safety is characterized by comprising the following steps of: step S1, responding to a natural gas dust content estimation request, obtaining a topological structure of a gas pipe network and geometric parameters and fluid parameters of each pipe section, initializing the dust content of inlet and outlet nodes of all pipe sections, setting initial dust content for each air source node, and taking the initial dust content as the dust content of an inlet node of a downstream pipe section connected with the air source node; Step S2, based on the node connection relation in the topological structure, acquiring the dust content of an inlet node of an upstream pipe section at a current node, and calculating the dust content adsorption attenuation of the upstream pipe section according to a first-order attenuation model by combining the geometric parameter, the fluid parameter and an along-path attenuation factor of the upstream pipe section to determine the dust content of an outlet node of the upstream pipe section; S3, acquiring the dust content of the outlet node of the upstream pipe section at the current node, carrying out flow weighting processing on the dust content of the outlet node of the upstream pipe section according to the flow distribution relation of the current node and combining a preset dust content loss coefficient, and determining the dust content of the inlet node of the downstream pipe section of the current node; Step S4, traversing all the dust contents of the pipe section inlet and outlet nodes, and repeatedly executing the step S2 and the step S3 until the dust contents of the pipe section inlet and outlet nodes are updated; And S5, judging whether a deviation value of a dust content detection value of the detection node and a corresponding dust content calculation value meets a preset precision condition, returning to the step S1, adopting a particle swarm optimization algorithm to readjust the initial dust content of the air source node for continuous calculation when the deviation value does not meet the preset precision condition, and outputting a dust content distribution result of the gas pipe network when the deviation value meets the preset precision condition.
- 2. The natural gas dust content estimation method for gas pipe network safety according to claim 1, wherein step S2 comprises: Acquiring the dust content of the inlet node of the upstream pipe section at the current node, and extracting the geometric parameters, the fluid parameters and the preset along-path attenuation factors of the upstream pipe section, wherein the geometric parameters comprise the length And an inner diameter, the fluid parameters including an inlet flow rate and an outlet flow rate; Calculating a residence time of the natural gas within the upstream pipe section based on the length L, the inlet flow rate, and the outlet flow rate; calculating the along-path attenuation factor through the geometric parameter and the fluid parameter of the upstream pipe section, wherein the calculation formula of the along-path attenuation factor is as follows, Wherein, the method comprises the steps of, For the along-path attenuation factor, Is the preset dust deposition attenuation coefficient, Is the preset pipe wall adsorption coefficient, Is the preset dust mass transmission coefficient, For the inlet flow rate to be described, For the outlet flow rate in question, For the length of the said one or more channels, Is the inner diameter; And determining the dust content of the outlet node of the upstream pipe section according to the first-order attenuation model based on the dust content of the inlet node of the upstream pipe section, the residence time and the along-path attenuation factor.
- 3. The gas pipe network safety oriented natural gas dust content estimation method according to claim 2, wherein determining the upstream pipe segment outlet node dust content according to the first order attenuation model based on the upstream pipe segment inlet node dust content, the residence time, and the along-path attenuation factor comprises: Taking the dust content of the inlet node of the upstream pipe section as the initial condition of the first-order attenuation model, and solving the first-order attenuation differential equation according to the residence time and the along-path attenuation factor The dust content of the outlet node of the upstream pipe section is obtained, the formula is as follows, ; Wherein, the For the upstream pipe section inlet node dust content, For the upstream pipe section outlet node dust content, For the instantaneous dust content per unit volume of natural gas in the pipeline, For the along-path attenuation factor, As a differential increment of the dust content, A bottom constant that is a natural logarithm, t is the residence time, Is said differential increment of time.
- 4. The natural gas dust content estimation method for gas pipe network safety according to claim 2, wherein in step S3, obtaining the dust content of the outlet node of the upstream pipe segment at the current node, performing flow weighting processing on the dust content of the outlet node of the upstream pipe segment according to the flow distribution relation of the current node and in combination with a preset dust content loss coefficient, and determining the dust content of the inlet node of the downstream pipe segment of the current node, including: And carrying out flow weighted average on the dust content of all the outlet nodes of the upstream pipe section connected with the current node, multiplying the dust content loss coefficient corresponding to the downstream pipe section, and obtaining the dust content of the inlet node of the downstream pipe section.
- 5. The method for estimating the dust content of natural gas for safety of a gas pipe network according to claim 4, wherein the step of performing a flow weighted average on the dust content of all the outlet nodes of the upstream pipe segment connected to the current node and multiplying the dust content loss coefficient corresponding to the downstream pipe segment to obtain the dust content of the inlet node of the downstream pipe segment comprises: Multiplying the dust content of the outlet node of the upstream pipe section by the corresponding flow for each upstream pipe section connected with the current node to obtain the dust mass flow of the upstream pipe section; summing the flows of all the upstream pipe sections to obtain the total gas mass flow of the current node; Dividing the total dust mass flow by the mass flow of the total gas to obtain the mixed average dust content, and obtaining the dust content of an inlet node of the downstream pipe section together with the dust content loss coefficient preset by the downstream pipe section.
- 6. The natural gas dust content estimation method for gas pipe network safety according to claim 1, wherein step S4 comprises: Loading the current iteration times; And (3) sequentially selecting each node as the current node based on the topological sequence of the topological structure or the predefined node sequence, calculating the dust content of the outlet node of the upstream pipe section and the dust content of the inlet node of the downstream pipe section of the current node, and repeatedly executing the step (S2) and the step (S3) until the dust content of all the inlet and outlet nodes of the pipe section of the current iteration round is updated, and adding 1 to the iteration times.
- 7. The natural gas dust content estimation method for gas pipe network safety according to claim 6, wherein step S5 comprises: Reading the actual dust content detection value of at least one detection node and the calculated dust content value of the same node at the same time to calculate a deviation value; Judging whether the deviation value meets the preset precision condition or not; when the deviation value does not meet the preset precision condition, the particle swarm optimization algorithm is adopted to readjust the initial dust content of the air source node, and the step S2 is returned to continue iteration; And stopping iteration and outputting a dust content distribution result of the gas pipe network when the deviation value meets the preset precision condition or reaches a preset iteration threshold.
- 8. A natural gas dust content estimation system for gas pipe network safety, which adopts the natural gas dust content estimation method for gas pipe network safety according to any one of claims 1 to 7, and is characterized by comprising the following steps: the system comprises an initialization module, a gas pipe network monitoring module, a gas source node monitoring module and a gas source node monitoring module, wherein the initialization module is used for responding to a natural gas dust content estimation request, acquiring a topological structure of a gas pipe network and geometric parameters and fluid parameters of each pipe section; The pipe network fluid simulation calculation module is used for acquiring the dust content of an inlet node of an upstream pipe section at a current node based on a node connection relation in the topological structure, calculating the dust content adsorption attenuation of the upstream pipe section according to a first-order attenuation model by combining the geometric parameter, the fluid parameter and an along-path attenuation factor of the upstream pipe section to determine the dust content of an outlet node of the upstream pipe section; The iterative convergence control module is used for traversing all the dust contents of the pipe section inlet and outlet nodes, repeatedly performing iterative calculation of the dust contents of the pipe section inlet and outlet nodes until the dust contents of the pipe section inlet and outlet nodes are updated; and the calibration optimization module is used for returning to the step S1 to readjust the initial dust content of the air source node by adopting a particle swarm optimization algorithm to continue calculation when the deviation does not meet the preset precision condition, and outputting a dust content distribution result of the gas pipe network when the deviation value meets the preset precision condition.
- 9. The natural gas dust content estimation system for gas pipe network safety according to claim 8, wherein the pipe network fluid simulation calculation module comprises a pipe outlet node dust content calculation unit for obtaining the upstream pipe section inlet node dust content at the current node and extracting the geometric parameters of the upstream pipe section, the fluid parameters and the preset along-path attenuation factors, wherein the geometric parameters comprise length And an inner diameter, said fluid parameters including an inlet flow rate and an outlet flow rate, calculating a residence time of said natural gas within said upstream pipe section based on said length L, said inlet flow rate and said outlet flow rate, calculating said along-path attenuation factor from said geometric parameters of said upstream pipe section and said fluid parameters, said along-path attenuation factor having a calculation formula, Wherein, the method comprises the steps of, For the along-path attenuation factor, Is the preset dust deposition attenuation coefficient, Is the preset pipe wall adsorption coefficient, Is the preset dust mass transmission coefficient, For the inlet flow rate to be described, For the outlet flow rate in question, For the length of the said one or more channels, And determining the dust content of the outlet node of the upstream pipe section according to the first-order attenuation model based on the dust content of the inlet node of the upstream pipe section, the residence time and the along-path attenuation factor.
- 10. The natural gas dust content estimation system for gas pipe network safety according to claim 9, wherein the pipe network fluid simulation calculation module further comprises a pipe inlet node dust content calculation unit, wherein the pipe network fluid simulation calculation unit is used for multiplying the dust content of an outlet node of the upstream pipe section by the corresponding flow for each upstream pipe section connected with the current node to obtain the dust mass flow of the upstream pipe section, summing all the dust mass flows of the upstream pipe section to obtain the total dust mass flow flowing into the current node, summing the flows of all the upstream pipe section to obtain the total gas mass flow of the current node, dividing the total dust mass flow by the total gas mass flow to obtain the average dust content after mixing, and obtaining the dust content of an inlet node of the downstream pipe section by the dust content loss coefficient preset by the downstream pipe section.
Description
Natural gas dust content estimation method and system for gas pipe network safety Technical Field The invention relates to the technical field of flow simulation and numerical calculation of a gas pipe network, in particular to a natural gas dust content estimation method and system for gas pipe network safety. Background In city infrastructure construction and operation management, the gas pipeline transmission and distribution system is an important component for guaranteeing civil and industrial operation. In order to realize more accurate decision support in links such as planning, operation scheduling, anomaly monitoring and the like, engineering personnel often need to know the distribution condition of the natural gas dust content in the urban pipeline network. In general, urban fuel gas is usually filtered and purified before entering a pipe network, and the dust content is extremely low. However, when the upstream filtering device malfunctions or the filtering performance is degraded, the dust amount of the downstream pipe rapidly increases. The excessive dust amount can cause the abrasion of metal materials on the wall surface of the pipeline to be aggravated, and the hidden trouble of local corrosion and leakage is easy to generate in local high-speed areas such as elbows, tees, pressure regulating valves and the like, meanwhile, dust particles can be deposited in equipment such as valves, flow meters and the like, thereby causing clamping stagnation or measurement deviation and affecting the safe operation of a fuel gas transmission and distribution system in serious cases. Therefore, in the event of anomalies, the distribution and source location of the dust in the pipe network needs to be estimated as soon as possible in order to take maintenance or protective measures in time. In the prior art, in an actual running urban pipe network, the real-time measurement of dust concentration is often difficult and heavy, on one hand, the on-line dust meter has high installation cost and limited distribution points, and on the other hand, the complicated ring-shaped topological structure makes it difficult to reflect the dust distribution of the whole network only by local measurement data. Therefore, a calculation method capable of rapidly estimating the content distribution of the natural gas dust based on the flow information of the pipe network under the condition of limited measuring points is needed, and a data basis is provided for the safety evaluation and the abnormal source positioning of the urban gas pipe network. Disclosure of Invention Aiming at the technical problems, the invention provides a natural gas dust content estimation method and a natural gas dust content estimation system for gas pipe network safety, which are based on pipe network flow parameters and node flow direction relations, through dust adsorption attenuation and iterative calculation, the distribution of the whole-network dust is rapidly estimated under the condition of a small number of detection points, and pollution source positioning and safety assessment are realized, and the purposes of the invention can be realized through the following technical scheme: the invention provides a natural gas dust content estimation method for gas pipe network safety, which comprises the following steps: Step S1, responding to a natural gas dust content estimation request, obtaining a topological structure of a gas pipe network, geometric parameters and fluid parameters of each pipe section, initializing the dust content of inlet and outlet nodes of all pipe sections, setting initial dust content for each air source node, and taking the initial dust content as the dust content of an inlet node of a downstream pipe section connected with the air source node; step S2, based on a node connection relation in a topological structure, acquiring the dust content of an inlet node of an upstream pipe section at a current node, and calculating the dust content adsorption attenuation of the upstream pipe section according to a first-order attenuation model by combining the geometric parameter, the fluid parameter and the along-path attenuation factor of the upstream pipe section to determine the dust content of an outlet node of the upstream pipe section; S3, acquiring the dust content of an outlet node of an upstream pipe section at a current node, carrying out flow weighting treatment on the dust content of the outlet node of the upstream pipe section according to the flow distribution relation of the current node and combining a preset dust content loss coefficient, and determining the dust content of an inlet node of a downstream pipe section of the current node; Step S4, traversing the dust content of all the pipe section inlet and outlet nodes, and repeatedly executing the step S2 and the step S3 until the dust content of the pipe section inlet and outlet nodes is updated; And S5, judging whether the deviation value of the dust content