Abstract:Turbulent flow is ubiquitous in mechanical engineering, fluid mechanics, civil engineering, and other related disciplines. Traditionally, acquisition of turbulent flow data mainly depended on numerical simulations and wind tunnel tests. However, numerical simulations require substantial computational time, and wind tunnel tests involve high economic costs. With the rapid development of modern technologies, artificial intelligence technologies have attracted widespread attention in engineering fields due to their high efficiency, high precision, and reliability. This study developed an artificial intelligence algorithm named Turbulent-Flow-Vision Transformer (TF-ViT), which enabled spatiotemporal forecast of turbulent flow based on data-driven approaches. Specifically, the TF-ViT mainly consisted of two components: Transformer framework and UNet structure. In TF-ViT, each component had distinct functions. The Transformer framework served as the encoder, mainly responsible for processing and extracting spatiotemporal features of turbulent flow. Meanwhile, the UNet functioned as the decoder to decouple the encoded spatiotemporal turbulent flow information. The overall framework enabled the forecast of future spatiotemporal turbulent flow information. This study used the classical problem of the flow past rectangular cylinders to validate the developed TF-ViT algorithm. The open-source computational solver OpenFOAM was utilized to simulate the flow past rectangular cylinders, and the obtained wake flow field data was then used for the training and validation of the TF-ViT model. 8 continuous frames of transient turbulent flow data were used to forecast the subsequent 8 frames of turbulent flow information. The results showed that the developed TF-ViT algorithm in this study could accurately forecast the short-term spatiotemporal development of turbulent flow in the wake region. This study demonstrates the strong capability of TF-ViT in forecasting spatiotemporal turbulent flow, providing an effective method for turbulent wake field acquisition.