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
cd phaseChangeHeatFoam/Application/
chmod +x All*

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:

Stephan problem

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.

Film boiling

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.




About Author:

5 thoughts on “phaseChangeHeatFoam

  1. i am using ubuntu 16.04
    i installed openfoam 2.2.0
    i compiled your phasechangeheatfoamsolver
    i tried runing stefan problem to match validation
    it doesn’t run because your solver requires swak4Foam
    but i am unable to install swak4Foam,
    can you please mention your swak4Foam version and ubuntu version you used, i want to use same setup as yours so that i can run your solver without any problems

    1. The solver compiles and works on OpenFOAM220, but if you want to run test cases you may need swak4Foam. i downloaded the swak4Foam from this page:

      i guess (not sure) it is from following link:

      However i used to work with Ubuntu12.04LTS.

      but in general, you dont need swak4Foam for stefan problem and you can set up the test case just with setField, download from below link:

Comments are closed.