Flow field prediction method integrating residual learning and physics-informed neural network
-
摘要:
研究了基于残差神经网络(ResNet) 与物理信息神经网络(PINN)融合的高精度流场预测方法。基于数值模拟数据构建训练集,建立融合残差神经网络的PINN模型(Res-PINN)用于求解圆柱绕流问题。该模型利用流场采样点的速度和压强信息进行训练,以预测不同区域内的流场和压强分布。同时探究了网络结构类型、激活函数、训练集规模、网络层数、神经元数量及损失函数权重对预测结果的影响,寻求网络的优化方法。结果表明:Res-PINN模型能有效重构圆柱绕流场的流速和压强分布,预测精度与直接数值模拟结果高度吻合,物理量相对误差均低于5%;对比分析显示,Res-PINN相较于传统PINN,预测误差均下降超过45%,显著提升了预测精度与稳定性;多种网络超参数对预测效果均有明显影响,优化时需综合考虑并平衡这些参数。
Abstract:A high-precision prediction method for flow field was developed by integrating residual neural network (ResNet) with physics-informed neural network (PINN). Based on numerical simulation data, a PINN model integrating residual neural network (Res-PINN) solved the cylinder flow problem. The model used velocity and pressure data from sampled flow-field points to predict flow-field and pressure distributions in different regions. The influences of network type, activation function, dataset size, network layers, number of neurons and loss function weight on the prediction results were also explored. Results demonstrated that the Res-PINN effectively reconstructed flow-field velocity and pressure distributions. Its prediction accuracy was highly consistent with the direct numerical simulation results. The relative error of physical quantities was less than 5%. Comparative analysis showed that compared with traditional PINN, Res-PINN reduced prediction errors by over 45%, significantly improving the prediction accuracy and stability. Furthermore, multiple network hyperparameters had a significant impact on prediction performance, and optimization should be made to comprehensively consider and balance these parameters.
-
表 1 不同初始值方程参数最终收敛值及其误差
Table 1. Final convergence value and error of equation parameters with different initial values
参数 初始值 收敛值 误差/% $ {\lambda }_{1} $ 2 1.0124 1.24 3 1.0166 1.66 3 1.0297 2.97 5 1.5359 53.59 $ {\lambda }_{2} $ 0 0.0102 2.00 −1 0.0098 2.00 2 0.0124 24.00 1 0.0107 7.00 表 2 两类PINN计算结果全场平均相对误差
Table 2. Average relative error of two kinds of PINN calculation results in the whole field
模型种类 平均相对误差/% u v p FCNN 1.22256 5.42128 4.91965 Res-PINN 0.53589 3.03291 2.59881 表 3 不同激活函数的网络计算结果全场平均相对误差
Table 3. Average relative error of the network calculation results in the whole field with different activation functions
激活函数 平均相对误差/% u v p Tanh 0.53589 3.03291 2.59881 ReLU 1.27666 4.63103 5.81088 Sigmoid 1.31649 4.59453 4.44788 表 4 不同训练集的网络计算结果全场平均相对误差
Table 4. Average relative error of the network calculation results in the whole field with different training sets
训练集 平均相对误差/% u v p 70%数据集 0.52276 2.49547 2.68607 50%数据集 0.53549 3.03786 2.58273 20%数据集 1.02041 5.90285 3.11327 5%数据集 1.38852 12.06042 23.31184 表 5 不同结构的网络计算结果全场平均相对误差
Table 5. Average relative error of the calculation results of networks with different structures in the whole field
网络结构 平均相对误差/% u v p Net_4 0.81508 3.32581 3.41453 Net_8 0.53549 3.03786 2.58273 Net_16 0.58297 3.01136 3.14837 表 6 不同神经元数量的网络计算结果全场平均相对误差
Table 6. Average relative error of the networks calculation results in the whole field with different numbers of neurons
每层神经元数 平均相对误差/% u v p 32 0.87378 3.78247 4.46573 64 0.53589 3.03291 2.59881 128 0.44402 2.68027 2.02615 256 0.30140 2.63678 2.24459 表 7 不同损失函数权重的网络计算结果全场平均相对误差
Table 7. Average relative error of the networks calculation results in the whole field with different the weights of loss functions
$ {\omega }_{{\mathrm{pde}}} $ 平均相对误差/% u v p 0.1 0.42687 2.41145 2.23912 0.5 0.36408 2.77276 2.15901 1 0.53549 3.03786 2.58273 2 0.61921 3.23586 3.26256 5 0.99728 4.17862 3.48449 -
[1] 张伟伟, 王旭, 寇家庆. 面向流体力学的多范式融合研究展望[J]. 力学进展, 2023, 53(2): 433-467. ZHANG Weiwei, WANG Xu, KOU Jiaqing. Prospects of multi-paradigm fusion methods for fluid mechanics research[J]. Advances in Mechanics, 2023, 53(2): 433-467. (in Chinese doi: 10.6052/1000-0992-22-050ZHANG Weiwei, WANG Xu, KOU Jiaqing. Prospects of multi-paradigm fusion methods for fluid mechanics research[J]. Advances in Mechanics, 2023, 53(2): 433-467. (in Chinese) doi: 10.6052/1000-0992-22-050 [2] MOLLICONE J P, BATTISTA F, GUALTIERI P, et al. Effect of geometry and Reynolds number on the turbulent separated flow behind a bulge in a channel[J]. Journal of Fluid Mechanics, 2017, 823: 100-133. doi: 10.1017/jfm.2017.255 [3] 张伟伟, 朱林阳, 刘溢浪, 等. 机器学习在湍流模型构建中的应用进展[J]. 空气动力学学报, 2019, 37(3): 444-454. ZHANG Weiwei, ZHU Linyang, LIU Yilang, et al. Progresses in the application of machine learning in turbulence modeling[J]. Acta Aerodynamica Sinica, 2019, 37(3): 444-454. (in ChineseZHANG Weiwei, ZHU Linyang, LIU Yilang, et al. Progresses in the application of machine learning in turbulence modeling[J]. Acta Aerodynamica Sinica, 2019, 37(3): 444-454. (in Chinese) [4] BALDWIN B, LOMAX H. Thin-layer approximation and algebraic model for separated turbulentflows[R]. AIAA-1978-0257, 1978. [5] LAUNDER B E, SPALDING D B. The numerical computation of turbulent flows[M]//Numerical Prediction of Flow, Heat Transfer, Turbulence and Combustion. Amsterdam: Elsevier, 1983: 96-116. [6] WILCOX D C. Reassessment of the scale-determining equation for advanced turbulence models[J]. AIAA Journal, 1988, 26(11): 1299-1310. doi: 10.2514/3.10041 [7] SPALART P, ALLMARAS S. A one-equation turbulence model for aerodynamic flows[R]. AIAA-1992-0439, 1992. [8] BISHOP C M. Neural networks and their applications[J]. Review of Scientific Instruments, 1994, 65(6): 1803-1832. doi: 10.1063/1.1144830 [9] 苑光耀, 王俊淞, 赵玄烈, 等. 基于PINN的二维剪切流圆柱绕流场重构[J]. 力学学报, 2025, 57(2): 436-452. YUAN Guangyao, WANG Junsong, ZHAO Xuanlie, et al. Reconstruction of the flow field around a cylinder in a twodimensional shear flow based on pinn[J]. Chinese Journal of Theoretical and Applied Mechanics, 2025, 57(2): 436-452. (in Chinese doi: 10.6052/0459-1879-24-417YUAN Guangyao, WANG Junsong, ZHAO Xuanlie, et al. Reconstruction of the flow field around a cylinder in a twodimensional shear flow based on pinn[J]. Chinese Journal of Theoretical and Applied Mechanics, 2025, 57(2): 436-452. (in Chinese) doi: 10.6052/0459-1879-24-417 [10] WU Jinlong, YIN Xiaolong, XIAO Heng. Seeing permeability from images: fast prediction with convolutional neural networks[J]. Science Bulletin, 2018, 63(18): 1215-1222. doi: 10.1016/j.scib.2018.08.006 [11] XU Hao, CHANG Haibin, ZHANG Dongxiao. DL-PDE: deep-learning based data-driven discovery of partial differential equations from discrete and noisy data[J]. Communications in Computational Physics, 2025, 29(3): 698-728. doi: 10.4208/cicp.oa-2020-0142 [12] KARNIADAKIS G E, KEVREKIDIS I G, LU Lu, et al. Physics-informed machine learning[J]. Nature Reviews Physics, 2021, 3(6): 422-440. doi: 10.1038/s42254-021-00314-5 [13] 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. doi: 10.1016/j.jcp.2018.10.045 [14] BAYDIN A G, PEARLMUTTER B A, RADUL A A, et al. Automatic differentiation in machine learning: a survey[J]. Journal of Machine Learning Research, 2017, 18(1): 5595-5637. [15] AVOLEDO E, TOGNAN A, SALVATI E. Quantification of uncertainty in a defect-based physics-informed neural network for fatigue evaluation and insights on influencing factors[J]. Engineering Fracture Mechanics, 2023, 292: 109595. doi: 10.1016/j.engfracmech.2023.109595 [16] HE Yichuan, WANG Zhicheng, XIANG Hui, et al. An artificial viscosity augmented physics-informed neural network for incompressible flow[J]. Applied Mathematics and Mechanics (English Edition), 2023, 44(7): 1101-1110. doi: 10.1007/s10483-023-2993-9 [17] STRELOW E L, GERISCH A, LANG J, et al. Physics informed neural networks: a case study for gas transport problems[J]. Journal of Computational Physics, 2023, 481: 112041. doi: 10.1016/j.jcp.2023.112041 [18] 刘肖廷, 闵建, 于相楠, 等. 物理信息神经网络的应用与研究进展[J]. 河南科学, 2024, 42(7): 945-959. LIU Xiaoting, MIN Jian, YU Xiangnan, et al. Applications and advancements of physics-informed neural networks: an overview[J]. Henan Science, 2024, 42(7): 945-959. (in Chinese doi: 10.3969/j.issn.1004-3918.2024.07.002LIU Xiaoting, MIN Jian, YU Xiangnan, et al. Applications and advancements of physics-informed neural networks: an overview[J]. Henan Science, 2024, 42(7): 945-959. (in Chinese) doi: 10.3969/j.issn.1004-3918.2024.07.002 [19] JIN Xiaowei, CAI Shengze, LI Hui, et al. NSFnets (Navier-Stokes flow nets): physics-informed neural networks for the incompressible Navier-Stokes equations[J]. Journal of Computational Physics, 2021, 426: 109951. doi: 10.1016/j.jcp.2020.109951 [20] RAO Chengping, SUN Hao, LIU Yang. Physics-informed deep learning for incompressible laminar flows[J]. Theoretical and Applied Mechanics Letters, 2020, 10(3): 207-212. doi: 10.1016/j.taml.2020.01.039 [21] SUN Luning, GAO Han, PAN Shaowu, et al. Surrogate modeling for fluid flows based on physics-constrained deep learning without simulation data[J]. Computer Methods in Applied Mechanics and Engineering, 2020, 361: 112732. doi: 10.1016/j.cma.2019.112732 [22] KHARAZMI E, ZHANG Zhongqiang, KARNIADAKIS G E M. hp-VPINNs: variational physics-informed neural networks with domain decomposition[J]. Computer Methods in Applied Mechanics and Engineering, 2021, 374: 113547. doi: 10.1016/j.cma.2020.113547 [23] GOSWAMI S, ANITESCU C, CHAKRABORTY S, et al. Transfer learning enhanced physics informed neural network for phase-field modeling of fracture[J]. Theoretical and Applied Fracture Mechanics, 2020, 106: 102447. doi: 10.1016/j.tafmec.2019.102447 [24] SIRIGNANO J, SPILIOPOULOS K. DGM: a deep learning algorithm for solving partial differential equations[J]. Journal of Computational Physics, 2018, 375: 1339-1364. doi: 10.1016/j.jcp.2018.08.029 [25] HE Kaiming, ZHANG Xiangyu, REN Shaoqing, et al. Deep residual learning for image recognition[C]//2016 IEEE Conference on Computer Vision and Pattern Recognition. Piscataway, US: IEEE, 2016: 770-778. -

下载: