arrow
Return

A generalized framework for integrating machine learning into computational fluid dynamics

delete2024-10-01
delete2
PRE
AI
X
Xuxiang Sun
W
Wenbo Cao
X
Xianglin Shan
Y
Yilang Liu *
张
张伟伟 (Weiwei Zhang)
DOI:10.1016/j.jocs.2024.102404delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
The amalgamation of machine learning algorithms (ML) with computational fluid dynamics (CFD) represents a promising frontier for the advancement of fluid dynamics research. However, the practical integration of CFD with ML algorithms frequently faces challenges related to data transfer and computational efficiency. While CFD programs are conventionally scripted in Fortran or C/C++, the prevalence of Python in the machine learning domain complicates their seamless integration. To tackle these obstacles, this paper proposes a comprehensive solution. Our devised framework primarily leverages Python modules CFFI and dynamic linking library technology to seamlessly integrate ML algorithms with CFD programs, facilitating efficient data interchange between them. Distinguished by its simplicity, efficiency, flexibility, and scalability, our framework is adaptable across various CFD programs, scalable to multi-node parallelism, and compatible with heterogeneous computing systems. In this paper, we showcase a spectrum of CFD+ML algorithms based on this framework, including stability analysis of ML Reynolds stress models, bidirectional coupling between ML turbulence models and CFD programs, and online dimension reduction optimization techniques tailored for resolving unstable steady flow solutions. In addition, our framework has been successfully tested on supercomputer clusters, demonstrating its compatibility with distributed computing architectures and its ability to leverage heterogeneous computing resources for efficient computational tasks.
Keywords:
Computational Fluid Dynamics
Machine Learning
Workflow
Mixed-language Programming
high-fidelity turbulence numerical simulation.

Journal

Nature Computational Science cover
Nature Computational Science
IF:
18.3
Papers:
3.1K
Citations:
4.0K

Organization

N
Northwestern Polytechnical University
Scholars:
4.6W
Papers: 3.7W
Citations: 5.3W
Cited Papers

Cited Papers

Machine Learning for Fluid Mechanics
err2020-01-05
err1.7K
errOAAI
errBrunton, Steven L.; Noack, Bernd R.; Koumoutsakos, Petros
errShare
errSave
A novel convergence enhancement method based on online dimension reduction optimization
err2023-03-21
err7
errOAAI
errCao, Wenbo; Liu, Yilang; Shan, Xianglin; Gao, Chuanqiang; Zhang, Weiwei
errShare
errSave
Deep reinforcement learning for computational fluid dynamics on HPC systems
err2022-11-01
err15
errOAAI
errKurz, Marius; Offenhaeuser, Philipp; Viola, Dominic; Shcherbakov, Oleksandr; Resch, Michael; Beck, Andrea
errShare
errSave
RESISTIVE UPPER CRITICAL FIELD OF SUPERCONDUCTING SPIN-LADDER Sr14-xCaxCu24O41
err2012-01-25
err0
PREAI
errT. NAKANISHI; N. MOTOYAMA; H. MITAMURA; N. TAKESHITA; H. TAKAHASHI; H. EISAKI; S. UCHIDA; N. MÔRI
errShare
errSave
Turbulence Modeling in the Age of Data
err2019-01-05
err946
errOAAI
errDuraisamy, Karthik; Iaccarino, Gianluca; Xiao, Heng
errShare
errSave
Comparative analysis of machine learning methods for active flow control
err2023-03-10
err29
errOAAI
errPino, Fabio; Schena, Lorenzo; Rabault, Jean; Mendez, Miguel A.
errShare
errSave
researcher View more