Table of Content
[[TOC]]
HZDR Multiphase Case Collection for OpenFOAM contains simulation setups for the open-source CFD software OpenFOAM with the HZDR Multiphase Addon for OpenFOAM. The simulation setups are separated into mono- and polydisperse bubbly flows utilising the HZDR Baseline model set, setups for a hybrid modelling approach (disperse and resolved interfaces) and miscellaneous cases.
The installation instructions will use the following environment variables
FOAM_RUN
: directory where OpenFOAM simulation setups are storedDepending on what you have access to:
you can install the HZDR Multiphase Addon for OpenFOAM in several ways:
Follow the installation instructions in your preferred download source and
make sure your OpenFOAM environment is setup correctly, e.g. by running
foamVersion
Simply clone the HZDR Multiphase Case Collection into OpenFOAM run directory
mkdir -p $FOAM_RUN
git clone --single-branch git@gitlab.hzdr.de:openfoam/fwdc/Cases.git $FOAM_RUN
Download tar archive for the HZDR Multiphase Addon for OpenFOAM from RODARE and unpack it into OpenFOAM run directory
mkdir -p $FOAM_RUN
tar -xzf HZDR-Multiphase-Case-Collection-<version>.tgz -C $FOAM_RUN
The Baseline Workflow consists of several steps to allow computational scalability and advanced reporting features, for instance, deployment on Gitlab of Snakemake reports as static pages or "templated" cases.
These steps are configuration, simulation, and post-processing of the workflow. Configuration and post-processing rely on convenient functions provided by FWDC Python library.
Note: The Snakemake workflow feature is not part of the Rossendorf Data Repository (RODARE) and requires access to gitlab.hzdr.de.
The library is not distributed via pip
central repository. Thus, it is
required to download the source code and to install it manually.
git clone https://gitlab.hzdr.de/openfoam/fwdc/fwdc-lib.git
cd fwdc-lib
python3 setup.py install
Python Snakemake library is general purpose workflow engine. Installation instructions are available here.
Snakemake can be directly installed from pip
:
apt install python3 python3-pip
pip3 install snakemake
A snakemake workflow can be executed for all cases.
A set of cases can be selected via the export $KEYWORDS
functionality.
For example:
export KEYWORDS='1987_Wang_et_al, 1998_Liu, 2016_Kim_et_al'
Two default workflow configurations are available in the repository:
baseline-test.yaml
is a test procedure that runs only one time step for each
case.baseline.yaml
runs the selected cases to the defined end.The KEYWORDS
functionality works only if indexing option is enabled in the
workflow config file.
index: true
To apply the workflow configuration and to set up a snakemake run first it must be configured:
snakemake -j2 -s configure.rules --configfile baseline.yaml
Alternatively, providing baseline-test.yaml
as a config file will allow the
execution of the reduced set of cases. To enable writeNow
option in all
OpenFoam cases a special Snakemake job has to be invoked:
snakemake -j16 -s baseline.rules enable_test
The workflow configure.rules
will produce configfile with *.yaml
extension.
Run snakemake by executing:
snakemake -j16 -s baseline.rules
To produce report.html
execute:
snakemake -j2 -s baseline.rules --report
The HZDR Multiphase Case Collection for OpenFOAM includes the following main directories and files:
interFoam
and HZDRmultiphaseEulerFoam
setups with experimental databaseline_testing
workflows and reStructuredText headers for Snakemake reportsWhen using the HZDR Multiphase Case Collection for OpenFOAM cite us as
> Haensch, S., Draw, M., Evdokimov, I., Khan, H., Kamble, V., Krull, B., Lehnigk, R., Liao, Y., Lyu, H., Meller, R., Schlegel, F., Tekavcic, M. (2022). HZDR Multiphase Case Collection for OpenFOAM. Rodare. http://doi.org/10.14278/rodare.811 >
Liu, T. J. (1998, June). The role of bubble size on liquid phase turbulent structure in two-phase bubbly flow. In Proc. Third International Congress on Multiphase Flow ICMF (Vol. 98, pp. 8-12).↩
Rzehak, R., Liao, Y., Meller, R., Schlegel, F., Lehnigk, R., & Lucas, D. (2021). Radial pressure forces in Euler-Euler simulations of turbulent bubbly pipe flows. Nuclear Engineering and Design, 374, 111079.↩
Kriebitzsch, S., & Rzehak, R. (2016). Baseline model for bubbly flows: simulation of monodisperse flow in pipes of different diameters. Fluids, 1(3), 29.↩
Lucas, D., Krepper, E., & Prasser, H. M. (2005). Development of co-current air-water flow in a vertical pipe. International Journal of Multiphase Flow, 31(12), 1304-1328.↩
Lehnigk, R., Bainbridge, W., Liao, Y., Lucas, D., Niemi, T., Peltola, J., & Schlegel, F. (2022). An open-source population balance modeling framework for the simulation of polydisperse multiphase flows. AIChE Journal, 68(3), e17539.↩
Shawkat, M. E., Ching, C. Y., & Shoukri, M. (2008). Bubble and liquid turbulence characteristics of bubbly flow in a large diameter vertical pipe. International Journal of Multiphase Flow, 34(8), 767-785.↩
Hosokawa, S., & Tomiyama, A. (2009). Multi-fluid simulation of turbulent bubbly pipe flows. Chemical Engineering Science, 64(24), 5308-5318.↩
Hosokawa, S., & Tomiyama, A. (2013). Bubble-induced pseudo turbulence in laminar pipe flows. International journal of heat and fluid flow, 40, 97-105.↩
Liao, Y., Upadhyay, K., & Schlegel, F. (2020). Eulerian-Eulerian two-fluid model for laminar bubbly pipe flows: Validation of the baseline model. Computers & Fluids, 202, 104496.↩
Kim, M., Lee, J. H., & Park, H. (2016). Study of bubble-induced turbulence in upward laminar bubbly pipe flows measured with a two-phase particle image velocimetry. Experiments in Fluids, 57(4), 1-21.↩
Staebler, T. D. (2007). Experimentelle Untersuchung und physikalische Beschreibung der Schichtenstroemung in horizontalen Kanaelen. PhD Thesis, Universitaet Stuttgart.↩
Tekavcic, M., Meller, R., & Schlegel, F. (2021). Validation of a morphology adaptive multi-field two-fluid model considering counter-current stratified flow with interfacial turbulence damping. Nuclear Engineering and Design, 379, 111223.↩
Hysing, S. R., Turek, S., Kuzmin, D., Parolini, N., Burman, E., Ganesan, S., & Tobiska, L. (2009). Quantitative benchmark computations of two-dimensional bubble dynamics. International Journal for Numerical Methods in Fluids, 60(11), 1259-1288.↩
Meller, R., Schlegel, F., & Lucas, D. (2021). Basic verification of a numerical framework applied to a morphology adaptive multifield two-fluid model considering bubble motions. International Journal for Numerical Methods in Fluids, 93(3), 748-773.↩
Meller, R., Schlegel, F., & Klein, M. (2022). Sub-grid Scale Modelling and a-Posteriori Tests with a Morphology Adaptive Multifield Two-Fluid Model Considering Rising Gas Bubbles. Flow, Turbulence and Combustion 108, 895-922.↩
Bhaga, D., & Weber, M. E. (1981). Bubbles in viscous liquids: shapes, wakes and velocities. Journal of fluid Mechanics, 105, 61-85.↩
Balcazar, N., Lehmkuhl, O., Jofre, L., & Oliva, A. (2015). Level-set simulations of buoyancy-driven motion of single and multiple bubbles. International Journal of Heat and Fluid Flow, 56, 91-107.↩
Akhtar, M. K., Xiong, Y., & Pratsinis, S. E. (1991). Vapor synthesis of titania powder by titanium tetrachloride oxidation. AIChE Journal, 37(10), 1561-1570.↩