OpenONDA: A Python Interface for In-Line Control of OpenFOAM Solvers

This work introduces and demonstrates a Python wrapper for controlling and externally coupling OpenFOAM's PIMPLE-based solver with other solvers and libraries via encapsulation. The proposed framework integrates a custom, stepwise implementation of OpenFOAM's pimpleFoam solver into a Python interface, enabling in-line solver advancement and providing high-level methods for mesh manipulation, boundary condition management, and interaction with scientific computing tools such as NumPy and SciPy. To demonstrate its potential for external coupling of OpenFOAM via Python, the framework is applied to computational fluid dynamics problems with analytically derived boundary conditions, highlighting generalizable coupling and data management strategies across diverse flow scenarios. The selected test cases include (i) vortex-filament flow, (ii) vortex-ring flow, (iii) doublet flow with coupled computational domains, and (iv) moving dipole flow in a non-inertial reference frame. These cases address key challenges such as dynamic meshes, multiple OpenFOAM instances, and non-inertial effects. Additionally, this paper details the data exchange methodology and workflow, assessing the effectiveness of the proposed approach for scriptable coupling and management of OpenFOAM within Python.

Authors

Institutions

Publication Details

Journal
OpenFOAM® Journal
Published
2026-12-03
DOI
https://doi.org/10.51560/ofj.v6.151
Primary Topic
Computational Fluid Dynamics and Aerodynamics
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

OpenONDA: A Python Interface for In-Line Control of OpenFOAM Solvers

Carlos Ferreira, Alexander H. van Zuijlen, Flavio Avila Correia Martins
OpenFOAM® Journal
Computational Fluid Dynamics and Aerodynamics
article

OpenONDA: A Python Interface for In-Line Control of OpenFOAM Solvers

Carlos Ferreira, Alexander H. van Zuijlen, Flavio Avila Correia Martins
article en

Abstract

This work introduces and demonstrates a Python wrapper for controlling and externally coupling OpenFOAM's PIMPLE-based solver with other solvers and libraries via encapsulation. The proposed framework integrates a custom, stepwise implementation of OpenFOAM's pimpleFoam solver into a Python interface, enabling in-line solver advancement and providing high-level methods for mesh manipulation, boundary condition management, and interaction with scientific computing tools such as NumPy and SciPy. To demonstrate its potential for external coupling of OpenFOAM via Python, the framework is applied to computational fluid dynamics problems with analytically derived boundary conditions, highlighting generalizable coupling and data management strategies across diverse flow scenarios. The selected test cases include (i) vortex-filament flow, (ii) vortex-ring flow, (iii) doublet flow with coupled computational domains, and (iv) moving dipole flow in a non-inertial reference frame. These cases address key challenges such as dynamic meshes, multiple OpenFOAM instances, and non-inertial effects. Additionally, this paper details the data exchange methodology and workflow, assessing the effectiveness of the proposed approach for scriptable coupling and management of OpenFOAM within Python.

OpenFOAM® JournalVol. 6
China Aerodynamics Research and Development Center (CN), Dynamic Research (United States) (US), Delft University of Technology (NL)
Computational Fluid Dynamics and Aerodynamics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon