JunweiSu / TwoPhaseFlow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

twophaseflow

the TwoPhaseFlow Library adds new surface tension and phase change models to OpenFOAM and provides benchmark cases for verification

Documentation

The available models and solvers are documentated in:

https://arxiv.org/abs/2103.00870

Getting Started

Prerequisites

Requires OpenFOAM v1812:

https://www.openfoam.com/download/release-history.php

Installing

git clone https://github.com/DLR-RY/TwoPhaseFlow
cd TwoPhaseFlow
./Allwmake
# for AMR
git submodule update --init --recursive
cd modules/multiDimAMR/
./Allwmake

running testsuite

assuming you have installed python version >= 3.6 (miniconda is a great option)

python -m venv env
pip install oftest

py.test # runs the tests

Authors

  • Henning Scheufler

adaptive mesh refinement with multiple regions

AMR with multiple regions does not work in version of1812 but it is fixed in newer versions.

To fix this apply the patch (assumes openfoam is already source):

cp  patches/multiRegionAMR.patch $WM_PROJECT_DIR
cp  patches/tableBase.patch $WM_PROJECT_DIR
cp  patches/surfaceFieldValue.patch $WM_PROJECT_DIR
cd $WM_PROJECT_DIR
git apply multiRegionAMR.patch
git apply tableBase.patch
git apply surfaceFieldValue.patch

details see:

https://develop.openfoam.com/Development/openfoam/-/issues/1676

https://develop.openfoam.com/Development/openfoam/-/issues/1753

License

This project is licensed under the GPL v3 License - see the LICENSE.md file for details

About

License:GNU General Public License v3.0


Languages

Language:C++ 77.0%Language:C 20.2%Language:Python 2.0%Language:Shell 0.5%Language:GLSL 0.2%Language:MATLAB 0.1%Language:HTML 0.1%