在天然气管网流动过程中,多根管道连接处气体流动不均匀,流量分配的损失难以精确计算,对下游管道天然气参数带来计算误差。以管网实际数据为基础,构建了流量分配多目标优化模型,采用线性化方法处理控制方程,通过对边界条件的选取,将多目标优化模型简化为单目标优化模型,并将控制矩阵改写为可以使用TDMA方法求解的三点格式。使用遗传算法求解流量分配后各参数,通过监测计算误差对计算模型及时修正,对管网后续流量分配过程进行计算。结果表明,该方法可以准确模拟天然气管网流量分配过程,压力、流量的最大相对误差分别为0.15%、0.31%,温度误差为0.16K,满足能量计量要求。
Abstract
In the flow process of natural gas pipeline network, the gas flow is not uniform at the connection of multiple pipelines, and the loss of flow distribution is difficult to be accurately calculate, which brings calculation errors to the natural gas parameters of downstream pipelines. Based on the actual data of the pipe network, a multi-objective optimization model of flow distribution is constructed, the control equations are processed by linearization method, the multi-objective optimization model is simplified into a single-objective optimization model by selecting boundary conditions. The control matrix is adapted to a three-point format that can be solved using the T DMA method. The genetic algorithm is used to solve the parameters after flow distribution, and the model is corrected in time by monitoring the calculation error, and the subsequent flow distribution process of the pipe network is calculated. The results show that the method can accurately simulate the flow distribution process of natural gas pipeline network, and the maximum errors of pressure,temperature and flow are 0.15% and 0.31%, respectively, and the temperature error is 0.16K, which meets the requirements of energy measurement.
关键词
能量计量 /
天然气管网 /
流量分配 /
线性化 /
遗传算法
Key words
energy metering /
metrology /
natural gas pipeline network /
traffic distribution /
linearization /
genetic algorithm
{{custom_sec.title}}
{{custom_sec.title}}
{{custom_sec.content}}
参考文献
[1]王池, 李春辉, 王京安, 等. 天然气能量计量系统及方法[J]. 计量学报, 2008,29(5): 403-406.
WANG C, LI C H, WANG J A, et al. The System and Method for Energy Measurement of Natural Gas[J]. Acta Metrologica Sinica, 2008,29(5): 403-406.
[2]王海同, 李春辉, 李梦娜. 基于声速核查方法的天然气能量计量标准装置[J]. 计量学报, 2022, 43(9): 1186-1191.
WANG H T, LI C H, LI M N. Calculation and Assignment Algorithm of Natural Gas Energy Based on Local Pipe Network[J]. Acta Metrologica Sinica, 2022, 43(9): 1186-1191.
[3]彭颜. 组成分析对混输天然气的能量计量影响探讨[J]. 中国检验检测, 2021, 29(5): 29-32.
[4]HONG S W, KIM C. A new finite volume method on junction coupling and boundary treatment for flow network system analyses[J]. International Journal for Numerical Methods in Fluids, 2011, 65(6): 707-742.
[5]WANG P, YU B, DENG Y J, et al. Comparison study on the accuracy and efficiency of the four forms of hydraulic equation of a natural gas pipeline based on linearized solution[J]. Journal of Natural Gas Science and Engineering, 2015, 22: 235-244.
[6]WANG P, YU B, HAN D X, et al. Fast method for the hydraulic simulation of natural gas pipeline networks based on the divide-and-conquer approach[J]. Journal of Natural Gas Science and Engineering, 2018, 50: 55-63.
[7]艾慕阳, 柳建军, 李博, 等. 天然气管网稳态运行优化技术现状与展望[J]. 油气储运, 2015, 34(6): 571- 575.
AI M Y, LIU J J, LI B, et al. Current status and prospect of steady operation optimization techniques for gas pipeline network[J]. Oil and Gas Storage and Transportation, 2015, 34(6): 571- 575.
[8]FAN D, GONG J, ZHANG S N, et al. A transient composition tracking method for natural gas pipe networks[J]. Energy, 2021, 215: 119131.
[9]BONCHAN K. Comparison of finite-volume method and method of characteristics for simulating transient flow in natural-gas pipeline[J]. Journal of Natural Gas Science and Engineering, 2022, 98: 104374.
[10]CHACZYKOWSKI M, SUND F, ZARODKIEWICZ P, et al. Gas composition tracking in transient pipeline flow[J]. Journal of Natural Gas Science and Engineering, 2018, 55: 321-330.
[11]常勇强, 曹子栋, 赵振兴, 等. 多组分气体热物性参数的计算方法[J]. 动力工程学报, 2010, 30(10): 772-776.
CHANG Y Q, CAO Z D, ZHAO Z X, et al. Calculation Method for Thermal Properties of Multi component Gas[J]. Journal of Chinese Society of Power Engineering, 2010, 30(10): 772-776.
[12]天然气计量系统技术要求:GB/T18603-2014[S]. 2014.
[13]张旭飞, 张锋阳, 李凯, 等. 基于遗传算法的低频标准振动台簧片式回复结构优化[J]. 计量学报, 2021, 42(11): 1459-1465.
ZHANG X F, ZHANG F Y, LI K, et al. Optimization of Leaf-spring-type Recovery Mechanism for Low-frequency Standard Vibrator Based on Genetic Algorithm[J]. Acta Metrologica Sinica, 2021, 42(11): 1459-1465.
[14]冯茜, 李擎, 全威, 等. 多目标粒子群优化算法研究综述[J]. 工程科学学报, 2021, 43(6): 745-753.
FENG Q, LI Q, QUAN W, et al. Overview of multiobjective particle swarm optimization algorithm[J]. Chinese Journal of engineering. 2021, 43(6): 745-753.
[15]韩忠华. Kriging模型及代理优化算法研究进展[J]. 航空学报, 2016, 37(11): 3197-3225.
HAN Z H. Kriging surrogate model and its application to design optimization:A review of recent progress[J]. Acta Aeronautica ET Astronautica Sinica, 2016, 37(11): 3197-3225.
[16]郑鹏, 刘健, 宋维, 等. 拉丁超立方抽样评估方法改进研究[J]. 核电子学与探测技术, 2017, 37(7): 734-738.
DENG P, LIU J, SONG W, et al. Preliminary Study on Improved Latin Hypercube Sampling[J].Nuclear Electronics & Detection Technology, 2017,37(7):734-738.
[17]玄登影, 王福林, 高敏慧, 等. 一种改进适应度函数的遗传算法[J]. 数学的实践与认识, 2015, 45(16): 232-238.
XUAN D Y, WANG F L, GAO H M, et al. An Improved Fitness Function of Genetic Algorithm[J]. Mathematics in Practice and Theory, 2015, 45(16): 232-238.
[18]李娜, 符向前. 改进适应度遗传算法在泵站优化调度中的应用[J]. 中国农村水利水电, 2022(6): 187-190.
LI N, FU X Q. The Application of improved fitness fine-tuned genetic algorithm in pump station optimal scheduling[J]. China Rural Water and Hydropower, 2022(6): 187-190.
[19]姜婧, 白似雪. 遗传算法的改进及其在排课问题中的应用[J]. 南昌大学学报(理科版), 2018, 42(4): 388-392.
JIANG J, BAI S X. Improvement of genetical algorithm and its application in course scheduling[J]. Journal of Nanchang University (Natural Science), 2018, 42(4): 388-392.