# Combining Machine Learning with Computational Fluid Dynamics using OpenFOAM and SmartSim

arXiv: https://arxiv.org/abs/2402.16196 · HTML: https://mlsanity.com/paper/2402.16196/

## Key facts

- Cited by 1 papers in the map (data through 14 Oct 2026).
- Builds on 1 of its 24 references that are in the map.
- First posted on arXiv 25 Feb 2024.

## Builds on (most cited first, 1 of 1)

- [Deep Reinforcement Learning for Turbulence Modeling in Large Eddy Simulations](https://mlsanity.com/paper/2206.11038/) (2022)

## Built on by (most cited first, 1 of 1)

- [Scalable and Consistent Graph Neural Networks for Distributed Mesh-based Data-driven Modeling](https://mlsanity.com/paper/2410.01657/) (2024)

## Abstract (arXiv)

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.
