arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.18840physics.flu-dyncs.AI
收藏

隐式因子化Transformer方法用于湍流槽道流的快速预测

Implicit factorized transformer approach to fast prediction of turbulent channel flows

Southern University of Science and Technology(南方科技大学)

Huiyu Yang, Yunpeng Wang, Jianchun Wang

AI总结:

本文提出改进的隐式因子化Transformer(IFactFormer-m)模型,通过并行因子化注意力实现湍流槽道流的快速且稳定的长期预测,优于现有神经算子和传统LES方法。

摘要:

Transformer神经算子近年来已成为由偏微分方程(PDEs)控制的系统的代理建模的有效方法。在本文中,我们引入了一种改进的隐式因子化Transformer(IFactFormer-m)模型,该模型将原始的链式因子化注意力替换为并行因子化注意力。IFactFormer-m模型成功地对湍流槽道流进行了长期预测,而原始的IFactFormer(IFactFormer-o)、傅里叶神经算子(FNO)和隐式傅里叶神经算子(IFNO)则表现不佳。湍流槽道流通过直接数值模拟(DNS)在摩擦雷诺数 $\text{Re}_\tau\approx 180, 395, 590$ 下使用细网格进行模拟,并过滤到粗网格以训练神经算子。该神经算子以当前流场作为输入,预测下一时间步的流场,并通过自回归方法在后验中实现长期预测。结果表明,与其他神经算子以及传统大涡模拟(LES)方法(包括动态Smagorinsky模型(DSM)和壁面自适应局部涡粘性(WALE)模型)相比,IFactFormer-m在短期内减少了预测误差,并实现了对各种统计特性和流动结构的稳定且准确的长期预测,包括能量谱、平均流向速度、脉动速度的均方根(rms)值、雷诺剪切应力以及瞬时速度的空间结构。此外,训练好的IFactFormer-m比传统LES方法快得多。通过分析注意力核,我们阐明了与IFactFormer-o相比,IFactFormer-m收敛更快并实现稳定且准确的长期预测的原因。代码和数据可在 https://github.com/huiyu-2002/IFactFormer-m 获取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑