摘要
针对天然气仿真系统的运行速度不能满足实际需求这个问题,提出一种基于并行计算的天然气动态模型算法,可以将并行计算应用到管道的计算之中。该算法对原有的天然气动态仿真算法进行了两点改进:第一,将动态规划的思想用于天然气管道的流量分配之中,将天然气管道网络划分成了互不影响的不同阶段,为管道并行计算打下基础;第二,利用虚拟管道流量的方法对管道动态仿真算法的边界条件作出改进,通过改进使管道的计算不再依靠前一条管道的计算结果。为了验证改进后算法的高效性和可靠性,利用Matlab软件对该仿真算法进行实现,结果证明新算法的运算时间比现有的算法减少了60%。之后将新的算法的运行结果与现有的仿真模型和西气东输中管道的真实测量数据进行对比,其拟合度较高,误差符合实际要求。其实验结果证明该算法可以大幅度提高管道网络仿真系统的运行速度,帮助工作人员在实际情况发生变化时迅速作出决策,避免管道破裂等事故的发生,节约管道维护费用。
In order to improve the running speed of pipeline simulation system, parallel computing was applied to the calculation of pipe. First of all, distribution on gas was improved by dynamic planning, so the natural gas pipeline network was divided into different stages for pipeline parallel computing. Secondly, a dynamic simulation algorithm of boundary conditions was improved by using virtual pipe, so the unstable flow calculation of every pipe was independent. In order to verify the efficiency and reliability of the algorithm, the Matlab software was used to realize the simulation model. The result show the computing speed of the new algorithm decreased by 60% than the existing algorithm. The result from the new algorithm has a higher fitting degree compared with the old algorithm and the real data, and the error conforms to real needs. The new algorithm can greatly improve the speed of pipeline network simulation system, help staff to make decision when actual situation is changing, thereby it could help to reduce accidents and save the maintenance cost.
出处
《计算机应用》
CSCD
北大核心
2016年第A02期44-48,共5页
journal of Computer Applications
关键词
动态规划
天然气管道模拟仿真
流量初次分配
并行计算
dynamic planning
natural gas pipeline simulation
initial flow rate distribution
parallel computing