As a part of my Ph.D. thesis, I extended an OpenFOAM solver interFoam to consider mass transfer due to boiling and condensation, new solver is called phaseChangeHeatFoam. It is available in git, it can be downloaded and compiled with the following commands in a Linux terminal.
git clone https://github.com/NimaSam/phaseChangeHeatFoam/ cd phaseChangeHeatFoam/Application/ chmod +x All* ./Allwmake
The zip file can be downloaded from here.
Some features of this solver are shown in the following examples, extra information about each case is available in the references:
It is a one-dimensional problem to validate mass transfer source terms in interface transport and energy equation.
Film condensation over a horizontal plate
It is another one-dimensional problem, it also has an analytical solution. The difference between this and Stephan problem is that it considers gravity.
It is a two-dimensional simulation. There are experimental correlations to compare numerical results with.
Film condensation on a vertical plate
It is a two-dimensional simulation. There is an analytical solution for laminar flow with some simplification.
- N. Samkhaniani, M.R. Ansari, “Numerical simulation of bubble condensation using CF-VOF”, Progress in Nuclear Energy 89, 120-131
- N. Samkhaniani, M.R. Ansari, “Numerical simulation of superheated vapor bubble rising in stagnant liquid “, Heat Mass Transfer (2017). doi:10.1007/s00231-017-2031-6
- N. Samkhaniani, M.R. Ansari, “The evaluation of the diffuse interface method for phase change simulations using OpenFOAM”, Heat Transfer–Asian Research. 2017;00:1–31. doi:10.1002/htj.21268