You always face times that you want to add new physical models to your solver. In two-phase simulations, drag model and turbulence model are perhaps two of the most important ones that one may want to change. In this tutorial you will learn how to add these physical models to the standard solver twoPhaseEulerFoam. Almost the same procedure may be applied for other solvers. Before you start, knowing C++ basics and programming can help you understand the whole procedure better.
- Solver: twoPhaseEulerFoam
- Compatible with: OpenFOAM 7, OpenFOAM 6, OpenFOAM v1912
- Model: New physical models such as RAS turbulence model and drag model
- Note: You must be familiar with C++ programming
- Description: The solver twoPhaseEulerFoam solves a complete set of compressible balance equations including continuity, momentum and energy equations for the two phase system: with one phase as dispersed phase. The model equations are closed by using closure relations for drag force, heat transfer coefficients, turbulence models, and other sub-models. A set of conventional sub-models are already implemented in the solver (see other tutorials in this series). You always face times when we want to test the solver outputs with new sub-models. Here, you will learn how to add these new sub-models to the existing ones: a new drag model and a turbulence model.