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

NNPred:在计算流体动力学软件中部署神经网络的预测器库

NNPred: A Predictor Library to Deploy Neural Networks in Computational Fluid Dynamics software

Weishuo Liu, Ziming Song, Jian Fang

摘要:

神经网络预测器库已被开发用于将机器学习(ML)模型部署到计算流体动力学(CFD)代码中。为了简化CFD求解器的实现,采用了实现指针策略来隔离实现细节。该库通过封装TensorFlow C库提供简化的模型管理功能,并维护自属于的数据容器,以处理与CFD求解器接口的输入/输出(I/O)功能中的数据类型转换和内存布局。在语言层面上,该库为C++和Fortran(CFD社区中两种常用的编程语言)提供应用程序编程接口(API)。分别用C++和Fortran编写了两个开源CFD代码OpenFOAM和CFL 3D的高级定制模块。预测器的基本用法在一个简单的数据驱动的热传递问题中演示,作为第一个教程案例。另一个教程案例是使用OpenFOAM和CFL 3D代码来实现使用该库对通道流中的湍流效果进行建模。开发的ML预测库为CFD求解器中ML模型的部署提供了一个强大的工具。

英文摘要:

A neural-networks predictor library has been developed to deploy machine learning (ML) models into computational fluid dynamics (CFD) codes. The pointer-to-implementation strategy is adopted to isolate the implementation details in order to simplify the implementation to CFD solvers. The library provides simplified model-managing functions by encapsulating the TensorFlow C library, and it maintains self-belonging data containers to deal with data type casting and memory layouts in the input/output (I/O) functions interfacing with CFD solvers. On the language level, the library provides application programming interfaces (APIs) for C++ and Fortran, the two commonly used programming languages in the CFD community. High-level customized modules are developed for two open-source CFD codes, OpenFOAM and CFL3D, written with C++ and Fortran, respectively. The basic usage of the predictor is demonstrated in a simple data-driven heat transfer problem as the first tutorial case. Another tutorial case of modeling the effect of turbulence in channel flow using the library is implemented in both OpenFOAM and CFL3D codes. The developed ML predictor library provides a powerful tool for the deployment of ML models in CFD solvers.

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

↑