Ctrl K

Multiphase Cases Repository by HZDR for OpenFOAM Foundation Software

This repository contains simulation setups for Multiphase Code Repository by HZDR. The simulation setups are divided into mono- and polydisperse bubbly flows utilizing the set of Baseline models of HZDR, setups using the morphology-adaptive multifield two-fluid model and miscellaneous cases.

3
mentions
15
contributors

Cite this software

Description

This repository contains simulation setups for the Multiphase Code Repository. The simulation setups are divided into mono- and polydisperse bubbly flows utilising the set of Baseline models of HZDR, setups using the morphology-adaptive multifield two-fluid model (unresolved and resolved interfaces) and miscellaneous cases.

Acknowledgement: OpenFOAM(R) is a registered trade mark of OpenCFD Limited, producer and distributor of the OpenFOAM(R) software via www.openfoam.com. The Multiphase Cases Repository by HZDR for OpenFOAM Foundation Software is not compatible with the software released by OpenCFD Limited, but is based on the software released by the OpenFOAM Foundation via www.openfoam.org.

Highlights of the Multiphase Cases Repository by HZDR

Cases using the Baseline model set by HZDR

FolderReference for ExperimentReference for Case Setup
cases/baseline/1986_Sun_and_FaethSun and Faeth (1986),Kamble et al. (2025)
cases/baseline/1987_WangWang (1986), Wang et al. (1987)not available
cases/baseline/1993_Liu_and_BankoffLiu (1989), Liu and Bankoff (1993)not available
cases/baseline/1998_LiuLiu (1998)Rzehak et al. (2021), Kriebitzsch and Rzehak (2016)
cases/baseline/1999_Pfleger_et_alPfleger et al. (1999)Schlegel et al. (2025)
cases/baseline/2000_Deen_et_alDeen et al. (2000)Schlegel et al. (2025)
cases/baseline/2001_HibikiHibiki et al. (2000)not available
cases/baseline/2005_Lucas_et_alLucas et al. (2005)Lehnigk et al. (2022)
cases/baseline/2008_ShawkatShawkat et al. (2008)Kriebitzsch and Rzehak (2016)
cases/baseline/2009_HosokawaHosokawa and Tomiyama (2009)Rzehak et al. (2021)
cases/baseline/2009_Mudde_et_alMudde et al. (2009)Draw and Rzehak (2024)
cases/baseline/2010_Lucas_et_alLucas et al. (2010)not available
cases/baseline/2012_Akbar_et_alAkbar et al. (2012)Schlegel et al. (2025)
cases/baseline/2013_Hosokawa_and_TomiyamaHosokawa and Tomiyama (2013)Kriebitzsch and Rzehak (2016), Liao et al. (2020)
cases/baseline/2016_Kim_et_alKim et al. (2016)Liao et al. (2020)
cases/baseline/2019_Ziegenhein_and_LucasZiegenhein and Lucas (2019)Schlegel et al. (2025)
cases/baseline/2020_Neumann-KippingNeumann-Kipping et al. (2020)not available
cases/baseline/2023_SommerSommer et al. (2023)Sommer et al. (2024)

Cases using the morphology-adaptive modelling approach

FolderReference for Experiment/Direct Numerical SimulationReference for Case Setup
cases/multimorph/1937_Taylor_and_GreenTaylor and Green (1937)not available
cases/multimorph/1987_Fabre_et_alFabre et al. (1987)Meller et al. (2023)
cases/multimorph/2007_StaeblerStaebler (2007)Tekavcic et al. (2021, 2022),
cases/multimorph/2009_Hysing_et_alHysing et al. (2009)Hysing et al. (2009), Meller et al. (2021)
cases/multimorph/2014_Adelsberger_et_alnot availableAdelsberger et al. (2014)
cases/multimorph/2014_Cubero_et_alnot availableCubero et al. (2014)
cases/multimorph/2015_Balcazar_et_alBhaga and Weber (1981), Balcazar et al. (2015)Meller et al. (2021)
cases/multimorph/2021_Porombka_et_alPorombka et al. (2021)Porombka (2023), Riviera (2024)
cases/multimorph/2023_Wiedemann_et_alWiedemann et al. (2023)Wiedemann et al. (2023)
cases/multimorph/hydraulicJump2Dnot availablenot available
cases/multimorph/plungingJetChansonEtAl2004Chanson et al. (2004)Meller et al. (2024)
cases/multimorph/risingBubbleFrederixEtAl2021/regimeIITripathi et al. (2015)Frederix et al. (2021)
cases/multimorph/risingBubbleHysingEtAl2009not availableMeller et al. (2021, 2022),
cases/multimorph/risingBubbleMellerEtAl2022not availableMeller et al. (2022)
cases/multimorph/shipHullAirLubricationElbing et al. (2008)not available

Miscellaneous cases

FolderReference for ExperimentReference for Case Setup
cases/misc/multiphase/addonMultiphaseEuler/1991_Akhtar_et_alAkhtar et al. (1991)Lehnigk et al. (2022)

Installation

Prerequisites

For running the cases in this repository, you need to install the software provided through the Multiphase Code Repository by HZDR for OpenFOAM Foundation Software. Depending on what you have access to

  • Helmholtz Code Base: For Helmholtz and Friends via Helmholtz AAI
    or using a HZDR guest account
  • Rossendorf Data Repository (RODARE): For everybody

you can install the software in several ways:

  • as Debian packages
  • by compiling from sources
  • by pulling the provided Docker or Apptainer Images

Follow the installation instructions for your preferred approach and make sure your environment is setup correctly, e.g. by running foamVersion.

General remarks

The installation instructions will use the following environment variable:

  • FOAM_RUN: directory where simulation setups are stored

Multiphase Cases Repository by HZDR from Helmholtz Code Base

Note that this repository includes content that is versioned using git-lfs to store large binary files in the repository

sudo apt update
sudo apt install git-lfs

After successful installation, simply clone the repository

mkdir -p $FOAM_RUN
git clone --single-branch git@codebase.helmholtz.cloud:fwdc/multiphase/cases.git $FOAM_RUN

Multiphase Cases Repository by HZDR from Rossendorf Data Repository (RODARE)

Download tar archive from RODARE and unpack it

mkdir -p $FOAM_RUN
tar -xzf Multiphase-Cases-Repository-<version>.tgz -C $FOAM_RUN

Snakemake workflow for Computational Fluid Dynamics software

This repository is configured for convenient batch-processing of the contained simulation setups both on workstations and HPC systems using Snakemake.

In order to use this functionality an installation of the multiphasepy package is required. You can obtain it from PYPI.

For usage information refer to the documentation of the package.

Model Testing

For efficiently testing the influence of a certain model or parameter selection for a range of simulation setups, e.g. in the scope of a Snakemake workflow, the corresponding dictionary entry can be placed at a central location and included in individual cases using the #include directive provided by OpenFOAM.

In the following example, the lift model selection in constant/phaseProperties for a case using the addonMultiphaseEuler solver module is centralized.

lift
{
 air_dispersedIn_water
 {
 #include "~/OpenFOAM/cases/models/lift.cfg"
 }
}

The content of ~/OpenFOAM/cases/models/lift.cfg could be

type Tomiyama;

aspectRatio
{
 type Wellek;
}

Note: To allow parallel testing of different model selections, the directory containing the files to be included should be relative to the directory to which the Cases Repository was cloned. Globally overwriting a model via the #includeEtc is discouraged for this reason.

Quantification of the CFD Prediction Quality

A systematic analysis of results can be supported by a quantification of the agreement of simulation results and experimental data. For that purpose a fuzzy logic controller is introduced that allows a comparison of two one-dimensional data sets, e.g. line samples or probes. It generates a concise value between 0 and 1 quantifying the prediction quality or performance of a simulation result. This performance evaluation is performed for all available validation data individually. For details on the fuzzy controller please checkout the mpyfuzzy utility of the multiphasepy package and use mpyfuzzy --help for further options.

For plotting purposes a jupyter notebook to be found under workflow/scripts/plotCFDPerformance.ipynb can be used and a working environment for launching the notebook is provided with the multiphasepy package . Note that for the notebook script to work it has to be copied into the top-level workflow directory. The script plots the error metrics and performance results for all validation fields for the selected cases. The script also averages performance results over all the individual validation data in order to produce an overall performance value for each case, and plots this for all selected cases.

Analysing the Feature Hierarchy of Cases

Results of Model testing can be visualized using a decision tree analysis. Keywords describing each case and listed in the case.yml files serve as labels, while the values computed as a [Quantification of the prediction quality](#Quantification of the prediction quality) can be used as the target feature for building decision tree models.

An automated script for plotting a decision tree from the change in performance after model testing can be found under workflow/scripts/decisionTreeAnalysis.ipynb. In order to use the script the sklearn package needs to be installed, everything else is provided with the multiphasepy package.

How to cite us?

When using the Multiphase Cases Repository by HZDR cite as

Haensch, S. et al. (2025). Multiphase Cases Repository by HZDR for OpenFOAM
Foundation Software. Rodare. http://doi.org/10.14278/rodare.811

Participating organisations

Politecnico di Milano
Jožef Stefan Institute

Reference papers

Mentions

Contributors

SH
Susann Hänsch
Helmholtz-Zentrum Dresden - Rossendorf e.V., Germany
MD
Mazen Draw
Helmholtz-Zentrum Dresden - Rossendorf e.V., Germany
IE
Ilya Evdokimov
Helmholtz-Zentrum Dresden - Rossendorf e.V., Germany
VK
Vikrant Vinayak Kamble
Helmholtz-Zentrum Dresden - Rossendorf e.V., Germany
HK
Haris Khan
Helmholtz-Zentrum Dresden - Rossendorf e.V., Germany
BK
Benjamin Krull
Helmholtz-Zentrum Dresden - Rossendorf e.V., Germany
RL
Ronald Lehnigk
Helmholtz-Zentrum Dresden - Rossendorf e.V., Germany
SL
Shiwang Li
Helmholtz-Zentrum Dresden - Rossendorf e.V., Germany
YL
Yixiang Liao
Helmholtz-Zentrum Dresden - Rossendorf e.V., Germany
HL
Hongmei Lyu
Helmholtz-Zentrum Dresden - Rossendorf e.V., Germany
RM
Richard Meller
Helmholtz-Zentrum Dresden - Rossendorf e.V., Germany
RP
Romina Mirdiona Papagni

Helmholtz Program-oriented Funding IV

Related software

Multiphase Code Repository by HZDR for OpenFOAM Foundation Software

MU

This software publication is released by Helmholtz-Zentrum Dresden-Rossendorf according to FAIR principles. It contains experimental research work for the numerical simulation of multiphase flows. The development is based on the open-source software released by the OpenFOAM Foundation.

Updated 10 months ago
131 19

Multiphase Python Repository by HZDR

MU

Toolkit for reproducible multiphase CFD workflows.

Updated 1 week ago
6