4.5 Article

PythonFOAM: In-situ data analyses with OpenFOAM and Python

期刊

JOURNAL OF COMPUTATIONAL SCIENCE
卷 62, 期 -, 页码 -

出版社

ELSEVIER
DOI: 10.1016/j.jocs.2022.101750

关键词

OpenFOAM; Python; Dataanalytics; Deeplearning

资金

  1. U.S. Department of Energy (DOE) , Office of Science, Office of Advanced Scientific Computing Research [DE-AC02-06CH11357]
  2. DOE Office of Science User Facility [DE-AC02-06CH11357]
  3. Margaret Butler Fellowship at the Argonne Leadership Computing Facility
  4. U.S. Department of Energy Office of Science laboratory [DE-AC02-06CH11357]

向作者/读者索取更多资源

The tool is a general-purpose Python-based data analysis tool for OpenFOAM, allowing for arbitrary data analysis and manipulation on flow-field information and supporting online singular value decomposition accessible through the OpenFOAM solver.
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 parallel deployments, we deploy a distributed SVD, which collects snapshot data across the ranks of a distributed simulation to compute the global left singular vectors. Crucially, both OpenFOAM and Python share the same message passing interface (MPI) communicator for this deployment which allows Python objects and functions to exchange NumPy arrays across ranks. Subsequently, we provide scaling assessments of this distributed SVD on multiple nodes of Intel Broadwell and KNL architectures for canonical test cases such as the large eddy simulations of a backward facing step and a channel flow at friction Reynolds number of 395. Finally, we demonstrate the deployment of a deep neural network for compressing the flow-field information using an autoencoder to demonstrate an ability to use state-of-the-art machine learning tools in the Python ecosystem.

作者

我是这篇论文的作者
点击您的名字以认领此论文并将其添加到您的个人资料中。

评论

主要评分

4.5
评分不足

次要评分

新颖性
-
重要性
-
科学严谨性
-
评价这篇论文

推荐

暂无数据
暂无数据