Numerical Model of Pipeline Transient Flow Based on Physics-Informed Neural Networks

MEI Li-fang, LI Xiao-gang, YANG Si-qi, QIAO Pan-shi-pei, ZHANG Jing, ZHAO Yuan-ru, MA Yi

Journal of Changjiang River Scientific Research Institute ›› 2026, Vol. 43 ›› Issue (7) : 153-160.

PDF(1325 KB)
PDF(1325 KB)
Journal of Changjiang River Scientific Research Institute ›› 2026, Vol. 43 ›› Issue (7) : 153-160. DOI: 10.11988/ckyyb.20251136
Hydraulics

Numerical Model of Pipeline Transient Flow Based on Physics-Informed Neural Networks

Author information +
History +

Abstract

[Objective] To address the limited adaptability of traditional numerical methods for water hammer under complex boundary and uncertain conditions, as well as the constrained convergence efficiency and prediction accuracy of Physics-Informed Neural Networks (PINNs) in strongly nonlinear transient flows, this study proposes a PINNs-based framework for transient pressure prediction in pipelines aiming to enhance the prediction accuracy of pressure variations in pipeline hydraulic transients. [Methods] In this framework, the continuity and momentum equations are embedded into the neural network loss function, and automatic differentiation is employed to solve the governing partial differential equations, enabling high-accuracy pressure simulation under limited labeled data conditions. Furthermore, an improved Locally Adaptive Activation Function (LAAF) is introduced by incorporating a trainable offset parameter β, while a mini-batch gradient descent strategy is adopted to enhance the model’s training stability and prediction robustness. [Results] Numerical case studies demonstrate that the proposed model effectively captures the transient characteristics of water hammer pressure. Compared with the Baseline-PINNs model and LAAF2-PINNs model, it achieves significantly higher predictive accuracy, with the relative L2 error reduced by 37.32% and 23.83%, respectively. In addition, sensitivity analysis of wave velocity, verification under multiple initial flow velocity conditions and generalization ability analysis demonstrate that the improved model has superior generalization ability and robustness. [Conclusions] The proposed M-LAAF2-PINNs model provides a novel and effective approach for achieving high-precision water hammer transient analysis under limited observational data and uncertain boundary conditions, offering superior technical support for pressure monitoring, parameter inversion, and intelligent scheduling in long-distance pipeline systems.

Key words

water hammer / transient flow / M-LAAF2-PINNs / pipeline / pressure prediction

Cite this article

Download Citations
MEI Li-fang , LI Xiao-gang , YANG Si-qi , et al . Numerical Model of Pipeline Transient Flow Based on Physics-Informed Neural Networks[J]. Journal of Changjiang River Scientific Research Institute. 2026, 43(7): 153-160 https://doi.org/10.11988/ckyyb.20251136

References

[1]
王眺, 詹航, 万五一. 长距离输水系统停泵水锤防护多目标优化研究[J]. 水力发电学报, 2022, 41(12): 90-99.
(Wang Tiao, Zhan Hang, Wan Wu-yi. Multi-objective Optimization Method for Water Hammer Protection Against Pump Failure in Long-distance Water Transfer Systems[J]. Journal of Hydroelectric Engineering, 2022, 41(12): 90-99.(in Chinese))
[2]
黄伟, 廖晨希, 黄鑫, 等. 长距离重力流加压联合输水系统水锤防护数值模拟[J]. 长江科学院院报, 2025, 42(6): 118-123, 130.
(Huang Wei, Liao Chen-xi, Huang Xin, et al. Numerical Simulation and Optimization of Water Hammer Protection Schemes for Long-distance Gravity-pressurized Water Conveyance Systems[J]. Journal of Changjiang River Scientific Research Institute, 2025, 42(6): 118-123, 130.(in Chinese))
[3]
边少康, 张小莹, 李刚, 等. 重力流关阀规律及空气阀优化研究[J]. 水利水电科技进展, 2025, 45(1):55-61.
(Bian Shao-kang, Zhang Xiao-ying, Li Gang, et al. Study on Valve-closure Law of Gravity Flow and Optimization of Air Valve[J]. Advances in Science and Technology of Water Resources, 2025, 45(1): 55-61.(in Chinese))
[4]
杨国苗, 李小芹, 唐学林, 等. 大型管网关阀优化方案及阀门开度扰动对流量均匀性影响[J]. 排灌机械工程学报, 2025, 43(1): 101-108.
(Yang Guo-miao, Li Xiao-qin, Tang Xue-lin, et al. Valve-closing Optimization Scheme and Influence of Valve-opening Disturbance on Flow Uniformity in Large-scale Pipeline Network[J]. Journal of Drainage and Irrigation Machinery Engineering, 2025, 43(1): 101-108.(in Chinese))
[5]
Wylie E B. Fluid Transients in Systems[M]. Englewood Cliffs, NJ: Prentice Hall, 1993.
[6]
Chaudhry M H. Applied Hydraulic Transients[M]. New York, NY: Springer New York, 2014.
[7]
Zhao M, Ghidaoui M S. Godunov-type Solutions for Water Hammer Flows[J]. Journal of Hydraulic Engineering, 2004, 130(4): 341-348.
[8]
刘静, 周领, 曹波, 等. 瞬变流中加权类动态摩阻模型的二阶近似求解[J]. 水力发电学报, 2020, 39(4):55-61.
(Liu Jing, Zhou Ling, Cao Bo, et al. Second-order Approximate Solution of Weight-function Unsteady Friction Model of Transient Flows[J]. Journal of Hydroelectric Engineering, 2020, 39(4): 55-61.(in Chinese))
[9]
Raissi M, Perdikaris P, Karniadakis G E. Physics-informed Neural Networks: A Deep Learning Framework for Solving Forward and Inverse Problems Involving Nonlinear Partial Differential Equations[J]. Journal of Computational Physics, 2019, 378: 686-707.
[10]
Raissi M, Karniadakis G E. Hidden Physics Models: Machine Learning of Nonlinear Partial Differential Equations[J]. Journal of Computational Physics, 2018, 357:125-141.
[11]
Sahin T, Von Danwitz M, Popp A. Solving Forward and Inverse Problems of Contact Mechanics Using Physics-informed Neural Networks[J]. Advanced Modeling and Simulation in Engineering Sciences, 2024, 11: 11.
[12]
Wang B, Guo Z, Liu J, et al. Geophysical Frequency Domain Electromagnetic Field Simulation Using Physics-informed Neural Network[J]. Mathematics, 2024, 12(23):3873.
[13]
马亮, 马西奎, 迟明珺, 等. 一种适用于嵌入式导电薄层的高阶电磁波混合时域有限差分-时程精细积分法[J]. 电工技术学报, 2025, 40(5): 1333-1343.
(Ma Liang, Ma Xi-kui, Chi Ming-jun, et al. A High-order Hybrid FDTD-PITD Method of Electromagnetic Waves for Embedded Thin Conductive Layers[J]. Transactions of China Electrotechnical Society, 2025, 40(5): 1333-1343.(in Chinese))
[14]
Wen P, Lin C, Yang L, et al. Application of Physics-informed Neural Networks to Multidimensional Quantum Tunneling[J]. Chinese Physics C, 2025, 49(8): 084109.
[15]
Molina Catricheo C A, Lambert F, Salomon J, et al. Modeling Global Surface Dust Deposition Using Physics-informed Neural Networks[J]. Communications Earth & Environment, 2024, 5: 778.
[16]
Wang S, Wang H, Perdikaris P. On the Eigenvector Bias of Fourier Feature Networks:From Regression to Solving Multi-scale PDEs with Physics-informed Neural Networks[J]. Computer Methods in Applied Mechanics and Engineering, 2021, 384:113938.
[17]
Clark Di Leoni P, Lu L, Meneveau C, et al. Neural Operator Prediction of Linear Instability Waves in High-speed Boundary Layers[J]. Journal of Computational Physics, 2023, 474: 111793.
[18]
Zhang Z, Yan X, Liu P, et al. A Physics-informed Convolutional Neural Network for the Simulation and Prediction of Two-phase Darcy Flows in Heterogeneous Porous Media[J]. Journal of Computational Physics, 2023, 477:111919.
[19]
韩烁, 江林峰, 杨建斌. 基于注意力机制PINNs方法求解圣维南方程[J]. 广西师范大学学报(自然科学版), 2025, 43(4): 58-68.
(Han Shuo, Jiang Lin-feng, Yang Jian-bin. Attention-based PINNs Method for Solving Saint-Venant Equations[J]. Journal of Guangxi Normal University (Natural Science Edition), 2025, 43(4): 58-68.(in Chinese))
[20]
Mushumbusi P F, Leo J, Chaudhari A, et al. Modelling and Analysis of Hydraulic Transients in Water Pipelines Using Physics-informed Neural Network[J]. Scientific African, 2025, 28: e02637.
[21]
Ye J, Do N C, Zeng W, et al. Physics-informed Neural Networks for Hydraulic Transient Analysis in Pipeline Systems[J]. Water Research, 2022, 221: 118828.
[22]
Huang H, Guo P, Yan J, et al. Impact of Uncertainty in the Physics-informed Neural Network on Pressure Prediction for Water Hammer in Pressurized Pipelines[J]. Journal of Physics: Conference Series, 2024, 2707(1): 012095.
[23]
Anagnostopoulos S J, Toscano J D, Stergiopulos N, et al. Residual-based Attention in Physics-informed Neural Networks[J]. Computer Methods in Applied Mechanics and Engineering, 2024, 421: 116805.
[24]
Abbasi J, Andersen P Ø. Physical Activation Functions (PAFs):An Approach for More Efficient Induction of Physics into Physics-informed Neural Networks (PINNs)[J]. Neurocomputing, 2024, 608: 128352.
[25]
Yao J, Su C, Hao Z, et al. Multiadam: Parameter-wise Scale-invariant Optimizer for Multiscale Training of Physics-informed Neural Networks[C]// Proceedings of the 40th International Conference on Machine Learning. Honolulu,Hawaii,USA:PMLR, 2023: 39702-39721.
[26]
Hao Z, Liu S, Lu F, et al. PINNacle: A Comprehensive Benchmark of Physics-informed Neural Networks for Solving PDEs[C]//Advances in Neural Information Processing Systems 37. December 10-15, 2024. Vancouver, BC, Canada. Neural Information Processing Systems Foundation, Inc.(NeurIPS), 2024: 76721-76774.
[27]
谢翔, 江林峰, 杨凤莲. 基于自适应权重两阶段PINNs方法求解偏微分方程[J]. 广西师范大学学报(自然科学版), 2026, 44(2):175-189.
(Xie Xiang, Jiang Lin-feng, Yang Feng-lian. Two-stage PINNs Method with Adaptive Weights for Solving Partial Differential Equations[J]. Journal of Guangxi Normal University (Natural Science Edition), 2026, 44(2):175-189.(in Chinese))
[28]
Jagtap A D, Kawaguchi K, Locally Adaptive Activation Functions with Slope Recovery for Deep and Physics-informed Neural Networks[J]. Proceedings of the Royal Society A: Mathematical,Physical and Engineering Sciences, 2020, 476(2239):20200334.
[29]
Xu Y, Zhou L, Lu Y, et al. Physics-informed Neural Networks Involving Unsteady Friction for Transient Pipe Flow[J]. Water Research, 2025, 283: 123779.
[30]
Kleinberg B, Li Y, Yuan Y. An Alternative View: When Does SGD Escape Local Minima[C]// Proceedings of the 35th International Conference on Machine Learning. Stockholm,Sweden:PMLR, 2018: 2698-2707.
[31]
Bergant A, Ross Simpson A, Vìtkovskygrave J. Developments in Unsteady Pipe Flow Friction Modelling[J]. Journal of Hydraulic Research, 2001, 39(3): 249-257.
PDF(1325 KB)

Accesses

Citation

Detail

Sections
Recommended

/