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,now. it can be download and compiled with following commands in Linux terminal.

git clone
cd phaseChangeHeatFoam/Application/
chmod +x All*

The zip file can be download from here.

Some features of this solver are shown in the following examples, extra information about each case is available in references:

Stephan problem

It is one-dimensional problem to validate mass transfer source terms in interface transport and energy equation.

Stefan Problem

Film condensation over horizontal plate

It is another one dimensional problem, it is also have analytical solution. The difference between this and Stephan problem is that it considers gravity.

film condensation on horizontal plate

Film boiling

It is a two dimensional simulation.  There are experimental correlations to compare numerical results with.

Film boiling on horizontal plate

Film condensation on  vertical plate

It is a two dimensional simulation. There is analytical solution for laminar flow with some simplification.

laminar film condensation on vertical plate



3 Replies to “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:

Leave a Reply

Your email address will not be published. Required fields are marked *