Combining Machine Learning with Computational Fluid Dynamics using OpenFOAM and SmartSim

Tomislav Maric, Mohammed Elwardi Fadeli, Alessandro Rigazzi, Andrew Shao, Andre Weiner
2/25/2024
cs.LGphysics.flu-dyn

No official code found. Best implementation: OFDataCommittee/openfoam-smartsim (46 stars, GPL-3.0, last commit 2025-09-10).

Abstract

Combining machine learning (ML) with computational fluid dynamics (CFD) opens many possibilities for improving simulations of technical and natural systems. However, CFD+ML algorithms require exchange of data, synchronization, and calculation on heterogeneous hardware, making their implementation for large-scale problems exceptionally challenging. We provide an effective and scalable solution to developing CFD+ML algorithms using open source software OpenFOAM and SmartSim. SmartSim provides an Orchestrator that significantly simplifies the programming of CFD+ML algorithms and a Redis database that ensures highly scalable data exchange between ML and CFD clients. We show how to leverage SmartSim to effectively couple different segments of OpenFOAM with ML, including pre/post-processing applications, solvers, function objects, and mesh motion solvers. We additionally provide an OpenFOAM sub-module with examples that can be used as starting points for real-world applications in CFD+ML.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Sub-module for OpenFOAM that provides a solver for embedding SmartSim and its external dependencies (i.e. SmartRedis) into OpenFOAM.

4615C, C++Sep 21, 20231 years agoGPL-3.0
openfoamsmartsim

Similar Papers

Cite this paper

@article{maric2024combining,
  title  = {Combining Machine Learning with Computational Fluid Dynamics using OpenFOAM and SmartSim},
  author = {Tomislav Maric and Mohammed Elwardi Fadeli and Alessandro Rigazzi and Andrew Shao and Andre Weiner},
  year   = {2024},
  eprint = {2402.16196},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.16196v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.16196.svg)](https://codeofpaper.com/paper/2402.16196)

Discussion