PythonFOAM: In-situ data analyses with OpenFOAM and Python
Romit Maulik, Dimitrios Fytanidis, Bethany Lusch, Venkatram, Vishwanath, Saumil Patel

TL;DR
PythonFOAM enables in-situ data analysis for OpenFOAM using Python, allowing real-time processing, distributed computations, and integration of machine learning tools directly within CFD simulations.
Contribution
The paper introduces a Python-based wrapper for OpenFOAM that facilitates in-situ data analysis, including distributed SVD and neural network deployment, enhancing real-time and scalable CFD data processing.
Findings
Distributed SVD scales effectively on multiple nodes.
In-situ Python analysis integrates seamlessly with OpenFOAM.
Deep neural networks can compress flow-field data in real-time.
Abstract
We outline the development of a general-purpose Python-based data analysis tool for OpenFOAM. Our implementation relies on the construction of OpenFOAM applications that have bindings to data analysis libraries in Python. Double precision data in OpenFOAM is cast to a NumPy array using the NumPy C-API and Python modules may then be used for arbitrary data analysis and manipulation on flow-field information. We highlight how the proposed wrapper may be used for an in-situ online singular value decomposition (SVD) implemented in Python and accessed from the OpenFOAM solver PimpleFOAM. Here, `in-situ' refers to a programming paradigm that allows for a concurrent computation of the data analysis on the same computational resources utilized for the partial differential equation solver. In addition, to demonstrate data-parallel analyses, we deploy a distributed SVD, which collects snapshot…
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.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsModel Reduction and Neural Networks · Computational Physics and Python Applications
