改进Transformer模型,实现湍流通道流的长期精准快速预测
Implicit factorized transformer approach to fast prediction of turbulent channel flows
- 用并行因子注意力替代原链式结构,提升模型稳定性
- 在不同雷诺数下实现长期预测,误差低于传统大涡模拟方法
- 适合需要高效高精度流场模拟的研究者使用
Transformer神经算子近年成为求解偏微分方程系统的有效代理建模方法。本文提出一种改进的隐式因子化Transformer(IFactFormer-m),将原链式因子化注意力改为并行因子化注意力。该模型在摩擦雷诺数Re_τ≈180,395,590的精细网格直接数值模拟生成的湍流通道流数据上训练,通过粗网格滤波后用于神经算子训练。模型以当前流场为输入,预测下一时刻流场,采用自回归方式实现长期预测。结果表明,相较于原始IFactFormer、傅里叶神经算子(FNO)和隐式傅里叶神经算子(IFNO),IFactFormer-m在短期预测中误差更小,并能稳定准确地预测多种统计特性与流场结构,包括能量谱、平均速度、脉动速度均方根、雷诺剪应力及瞬时速度空间结构。此外,训练后的IFactFormer-m比传统大涡模拟方法(如动态Smagorinsky模型和壁面适应局部涡粘度模型)快得多。通过分析注意力核,揭示了其收敛更快、长期预测更稳定的机制。代码与数据见:https://github.com/huiyu-2002/IFactFormer-m。
原文摘要 · Abstract (English)
Transformer neural operators have recently become an effective approach for surrogate modeling of systems governed by partial differential equations (PDEs). In this paper, we introduce a modified implicit factorized transformer (IFactFormer-m) model which replaces the original chained factorized attention with parallel factorized attention. The IFactFormer-m model successfully performs long-term predictions for turbulent channel flow, whereas the original IFactFormer (IFactFormer-o), Fourier neural operator (FNO), and implicit Fourier neural operator (IFNO) exhibit a poor performance. Turbulent channel flows are simulated by direct numerical simulation using fine grids at friction Reynolds numbers $\text{Re}_τ\approx 180,395,590$, and filtered to coarse grids for training neural operator. The neural operator takes the current flow field as input and predicts the flow field at the next time step, and long-term prediction is achieved in the posterior through an autoregressive approach. The results show that IFactFormer-m, compared to other neural operators and the traditional large eddy simulation (LES) methods including dynamic Smagorinsky model (DSM) and the wall-adapted local eddy-viscosity (WALE) model, reduces prediction errors in the short term, and achieves stable and accurate long-term prediction of various statistical properties and flow structures, including the energy spectrum, mean streamwise velocity, root mean square (rms) values of fluctuating velocities, Reynolds shear stress, and spatial structures of instantaneous velocity. Moreover, the trained IFactFormer-m is much faster than traditional LES methods. By analyzing the attention kernels, we elucidate the reasons why IFactFormer-m converges faster and achieves a stable and accurate long-term prediction compared to IFactFormer-o. Code and data are available at: https://github.com/huiyu-2002/IFactFormer-m.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。