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 https://github.com/NimaSam/phaseChangeHeatFoam/ cd phaseChangeHeatFoam/Application/ chmod +x All* ./Allwmake

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.

## 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 boiling

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

## Film condensation on vertical plate

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

## References

- 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

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

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:

http://openfoamwiki.net/index.php/Contrib/swak4Foam

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

http://sourceforge.net/p/openfoam-extend/svn/HEAD/tarball?path=/trunk/Breeder_2.0/libraries/swak4Foam

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:

http://nimasamkhaniani.ir/wp-content/uploads/2017/12/stefanProblem.zip

Thank You so much….i just ran the stefan validation. it works well

your solver can’t run conjugate heat transfer?

no, it cant