NNPred: A Predictor Library to Deploy Neural Networks in Computational Fluid Dynamics software
Weishuo Liu, Ziming Song, Jian Fang

TL;DR
NNPred is a versatile predictor library that simplifies integrating neural network models into CFD software, supporting C++ and Fortran, and demonstrated through heat transfer and turbulence modeling cases.
Contribution
The paper introduces NNPred, a novel predictor library that encapsulates ML deployment into CFD codes with simplified APIs and compatibility with major programming languages.
Findings
Successfully integrated ML models into OpenFOAM and CFL3D.
Demonstrated applications in heat transfer and turbulence modeling.
Provided a user-friendly interface for CFD-ML coupling.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsModel Reduction and Neural Networks · Fluid Dynamics and Turbulent Flows · Heat Transfer and Optimization
