— 2026
Exploring workflow solutions on the OpenFOAM framework
Giulio Malenza, Alberto Mulone, Daniele Ibba, Marco Edoardo Santimaria, Lorenzo Bosio, Iacopo Colonnelli, Robert Birke, Marco Aldinucci
Abstract
Computational fluid dynamics (CFD) simulations based on OpenFOAM are widely adopted in both academic and industrial settings. However, their execution typically relies on rigid, monolithic bash scripts that limit portability, scalability, and efficient exploitation of heterogeneous computing resources. This work introduces a workflow-oriented execution model for OpenFOAM that enables more flexible simulation orchestration and improved utilization of heterogeneous architectures. As a case study, we reimplement the well-known OpenFOAM Motorbike tutorial—a benchmark for steady incompressible Reynolds-averaged Navier–Stokes (RANS) simulations of airflow around a motorcycle and rider. The original tutorial follows a strictly sequential execution model defined in a single Allrun script, encompassing mesh generation, parallel decomposition, solver execution, and result reconstruction. We translate this bash-based pipeline into the Common Workflow Language (CWL), a widely adopted, implementation-agnostic workflow specification, and execute it using StreamFlow. This workflow management system supports modular execution, flexible orchestration, and improved resource utilization across heterogeneous platforms. The original execution steps—ranging from environment setup and mesh preparation to parallel solver runs and post-processing—are reorganized into discrete CWL workflow components. The workflow is structured into three main stages: (i) prep, responsible for mesh preparation; (ii) decompose, handling mesh decomposition and refinement; and (iii) foam_run, executing potential flow initialization, the main solver, and mesh reconstruction. Each stage is encapsulated in reusable CWL components, enabling clear separation of concerns and simplified workflow reconfiguration. The resulting workflow is executed on CINECA systems using the official OpenFOAM-v2412 distribution deployed via Docker/Singularity. This study demonstrates how traditional OpenFOAM tutorials can be transformed into portable, reproducible, and extensible workflows. By decoupling simulation phases and explicitly exposing orchestration strategies, the proposed approach lays the groundwork for systematic investigation of performance portability and scalability on heterogeneous and distributed computing environments.
@misc{26:malenza:Workflow_OpenFOAM,
abstract = {Computational fluid dynamics (CFD) simulations based on OpenFOAM are widely adopted in both academic and industrial settings. However, their execution typically relies on rigid, monolithic bash scripts that limit portability, scalability, and efficient exploitation of heterogeneous computing resources. This work introduces a workflow-oriented execution model for OpenFOAM that enables more flexible simulation orchestration and improved utilization of heterogeneous architectures. As a case study, we reimplement the well-known OpenFOAM Motorbike tutorial---a benchmark for steady incompressible Reynolds-averaged Navier--Stokes (RANS) simulations of airflow around a motorcycle and rider. The original tutorial follows a strictly sequential execution model defined in a single Allrun script, encompassing mesh generation, parallel decomposition, solver execution, and result reconstruction. We translate this bash-based pipeline into the Common Workflow Language (CWL), a widely adopted, implementation-agnostic workflow specification, and execute it using StreamFlow. This workflow management system supports modular execution, flexible orchestration, and improved resource utilization across heterogeneous platforms. The original execution steps---ranging from environment setup and mesh preparation to parallel solver runs and post-processing---are reorganized into discrete CWL workflow components. The workflow is structured into three main stages: (i) prep, responsible for mesh preparation; (ii) decompose, handling mesh decomposition and refinement; and (iii) foam_run, executing potential flow initialization, the main solver, and mesh reconstruction. Each stage is encapsulated in reusable CWL components, enabling clear separation of concerns and simplified workflow reconfiguration. The resulting workflow is executed on CINECA systems using the official OpenFOAM-v2412 distribution deployed via Docker/Singularity. This study demonstrates how traditional OpenFOAM tutorials can be transformed into portable, reproducible, and extensible workflows. By decoupling simulation phases and explicitly exposing orchestration strategies, the proposed approach lays the groundwork for systematic investigation of performance portability and scalability on heterogeneous and distributed computing environments.},
address = {Bologna, IT},
author = {Giulio Malenza and Alberto Mulone and Daniele Ibba and Marco Edoardo Santimaria and Lorenzo Bosio and Iacopo Colonnelli and Robert Birke and Marco Aldinucci},
date-modified = {2026-09-19 19:46:55 +0200},
keywords = {icsc},
month = mar,
title = {Exploring workflow solutions on the {OpenFOAM} framework},
url = {https://datacloud.di.unito.it/index.php/s/HwXHg7GicwHcx59},
year = 2026,
bdsk-url-1 = {https://datacloud.di.unito.it/index.php/s/HwXHg7GicwHcx59}}