Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/281412597

Coupled Level Set and Volume of Fluid method in OpenFoam with application to
compressible two-Phase flow.

Conference Paper · June 2014

CITATIONS READS

10 5,029

4 authors:

Mehdi Jadidi Moussa Tembely


University of Toronto 50 PUBLICATIONS   512 CITATIONS   
52 PUBLICATIONS   508 CITATIONS   
SEE PROFILE
SEE PROFILE

Sara Moghtadernejad Ali Dolatabadi


California State University, Long Beach University of Toronto
32 PUBLICATIONS   513 CITATIONS    199 PUBLICATIONS   2,798 CITATIONS   

SEE PROFILE SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Droplet and rivulet flow dynamics View project

Material development and characterization View project

All content following this page was uploaded by Sara Moghtadernejad on 15 September 2015.

The user has requested enhancement of the downloaded file.


A Coupled Level Set and Volume of Fluid Method with
Application to Compressible Two-Phase Flow
M. Jadidi, M. Tembely, S. Moghtadernejad, A. Dolatabadi

Department of Mechanical and Industrial Engineering, Concordia University, Montreal, Canada

Email: ali.dolatabadi@concordia.ca

the second approach where gas and liquid are treated


ABSTRACT as compressible and incompressible, respectively.
A simple coupling of Volume of Fluid (VOF) and Level Set (LS) and Volume of Fluid (VOF) methods
Level Set (LS) methods with application in are the most popular numerical approaches used to
compressible gas-liquid two-phase flow is presented. predict interface motion [3, 4]. In the LS method, the
The LS method is added to the compressible VOF free surface is represented by a smooth function (level
solver in OpenFoam, which is a CFD Open source set function(𝜙)). The interface is captured by the zero
solver library, to improve the computation of interface level set, while the positive and negative values of
curvature and surface tension force. The results of this level set function define liquid and gas regions
method and compressible VOF solver are compared respectively [3]. It is proved that mass loss is the main
for a test case. It is shown that the interface curvature drawback of the LS method [5]. In other words, the
and the surface tension force computations are mass enclosed by zero level set is not conserved.
considerably improved by adding LS method to the However, the precise capturing and evaluation of the
compressible VOF solver. curvature of the free surface is the main advantage of
the LS method [3, 5]. On the other hand, it is possible
1. INTRODUCTION to capture the interface by VOF method which is based
on the cell volume fraction (𝛼) [4]. The interface is
Gas-liquid two-phase flows are widely observed in defined where the volume fraction is between 0 and 1.
nature; for instance in ocean waves, and raindrops The region with the volume fraction equal to one is full
falling. In addition, gas-liquid two-phase flows are of liquid while the region with the zero volume
used in various industrial applications such as spray, fractions is full of gas. It should be mentioned that the
atomization and droplet combustion. It is clear that main advantage of VOF method is the mass
when the liquid phase interacts with a compressible conservation [5]. Nevertheless, reconstructing the
gas medium, the problem becomes more complex. interface is very complex in VOF method [6, 7]. It
Some examples include the breakup of liquid jets in should be noted that the interface is smeared rapidly
subsonic, transonic, and supersonic flows, underwater over at least three or four mesh cells (diffusion error)
explosions, and shock-induced mixing of liquids [1, and curvature calculation from volume fraction is very
2]. To model such problems, three main approaches difficult [6, 7]. Thus, the interface curvature and the
are available. Choosing the appropriate approach surface tension force are difficult to be modeled
depends on the physics of the problem. In the first correctly, which affect the interface shape [8]. By
approach, both phases are considered as coupling of level set and volume of fluid methods
incompressible and the fully incompressible Navier- (CLSVOF) [5], the resulting method benefits from the
Stokes equations are used to solve the problem. In the advantages of both VOF and LS methods. In other
second approach, the gas and liquid phases behave as words, in CLSVOF approach, the mass conservation
compressible and incompressible respectively. Finally property of VOF is combined with the interface
in the third approach, both phases behave as smoothness property of LS.
compressible. It should be noted that in the second and In this paper, an algorithm for coupling of VOF and
third approaches, the compressible Navier-Stokes LS is presented. The goal is to improve the
equations with different equations of state for each computation of surface tension force and interface
phase are usually used. In this study, the focus is on
curvature in compressibleInterFoam solver in  i
 .(  iU i )  0
OpenFoam [9]. t

2. THE ALGORITHM For incompressible fluid the equation of phase


The VOF method is used in OpenFoam to track the continuity is given by:
interface of gas-liquid multiphase flow [9]. In the
Ph.D. thesis of Rusche [10] supplementary details of  i
 .( iU i )  0
implementation of the VOF method in OpenFoam can t
be found. The governing equations solved in
compressible VOF (compressibleInterFoam) are given To prevent smearing of the interface, an extra artificial
below: compression term is defined in the volume fraction
Continuity equation: equation, and at the same time, avoids the interface
reconstruction. This artificial term should be active
 only at the interface region. Therefore, the above
 .( U )  0
t equation can be rearranged as:

Momentum equation: 1


 .(1U )  .(1 (1  1 )U r )  0
t
U 2
 .( UU )  ( P  .U )  where velocity U is defined as U  1U1   2U 2 and a
t 3
relative velocity U r is defined as U r  U1  U 2 .
[.( U )  U . ]   g   1  1
For compressible flow, we have:

where  is the surface tension,  is the curvature of  i  D i


 .( iU i )   i .
the free surface and 1 is the phase fraction of phase t i Dt
1. It should be noted that curvature of the free surface
is calculated from the phase fraction  1 as
The relation between density and pressure can be
rewritten as:
D i DP
 i
 1  Dt Dt
  .  
 1 
Then we have:
Equation of state:
 i   DP
i  oi  i P  .( iU i )   i i .
t i Dt

where the subscript i denotes the phase i and  i is the The velocity U can be calculated as:
compressibility i  1 ci 2
 and ci here is the speed
      DP
of sound. For a compressible phase (i.e. gas) the .U    1 1  2 2 
nominal density 𝜌0 is set to zero which leads to an  1  2  Dt
ideal gas equation of state for an isothermal fluid,
where   1 / RT . For the low compressibility phase Then the volume fraction equation of a compressible
(i.e. liquid) 𝜌0 is set to the nominal density of the flow can be written as:
liquid under normal conditions. Therefore, a constant
1
liquid density is used unless the liquid is subjected to  .(1U1 )  .(1 (1  1 )U r ) 
very high pressures. t
1 (1  1 )  1U
Volume fraction equation:
where
The continuity equation for each of the phases is as DP
follows:   ( 2  2  1 1 )
Dt
we also have: The fluxes and the material properties such as density
1   2  1 and viscosity are calculated based on the following
Heaviside function:
The MULES (multidimensional universal limiter with
0, 𝜙 < −𝜖
explicit solution) method is used to solve the volume
fraction advection equation [11]. 1 𝜙 1 𝜋𝜙
𝐻(𝜙) = (1 + + 𝑠𝑖𝑛 ( )) , |𝜙| ≤ 𝜖
In VOF method, both fluids are treated as a single fluid 2 𝜖 𝜋 𝜖
mixture whose properties change in space based on the { 1, 𝜙>𝜖
volume fraction of each phase:
Then we have:
  1 1   2  2
  11   2 2 𝜌(𝜙) = 𝜌𝑔 + (𝜌𝑙 − 𝜌𝑔 )𝐻
𝜇(𝜙) = 𝜇𝑔 + (𝜇𝑙 − 𝜇𝑔 )𝐻
To add the interface smoothness property of LS to the
VOF method, an algorithm for coupling LS and VOF The PIMPLE scheme is used to couple pressure and
is going to be explained here. In this strategy, although velocity.
the volume fraction field and the level set functions are
defined, but only the volume fraction advection 3. BENCHMARK TESTS
equation is solved [8]. The level set function is
initialized in each time step using the advected volume In this study, we assess our method based on a 2D
fraction [8]. Based on the work of Albadawi et al. [8], bubble growth and detachment bench mark problem.
the volume fraction which equals to 0.5, is defined as Additionally our method is compared with the
the initial zero level set, as below: compressible VOF method available in OpenFoam,
which shows improvement for capturing the interface
curvature and the surface tension force computations.
𝜙0 = 1.5 ∆𝑥 (𝛼 − 0.5)
It should be noted that the gravity force is considered
in the mentioned problem. Also, the physical
where ∆𝑥 is the mesh size.
properties of the fluids (air and water) are assumed to
This initial level set function has the positive and
be constant.
negative values in the liquid and the gas regions. The
next step is solving the re-initialization equation with
3.1 Bubble growth and detachment
a pseudo time (τ) in order to assign the level set
function to a signed distance function [3, 8]:
The problem of bubble growth and detachment was
𝜕𝜙 numerically and experimentally studied by Albadawi
= 𝑠𝑖𝑔𝑛(𝜙0 )(1 − |∇𝜙|) et al. [8]. However, they assumed two isothermal,
𝜕𝜏 incompressible fluids for their numerical simulation.
The objective of this part of the present work is to
Computing the interface normal, and curvature 𝜅 by
simulate the same problem by considering the
the level set method is simple and accurate [3]. These
compressibility effects. A 3D geometry is used for the
parameters are calculated as follows:
simulation in the present work. The schematic diagram
(∇𝜙) of the numerical domain can be seen in Figure 1.
𝑛= During the process, gas comes out of an orifice and
|(∇𝜙)| forms a bubble. Within time the bubble volume
𝜅 = ∇. 𝑛 increases continuously. However, the lift force causes
the bubble to detach and rise upwards [12]. A
Therefore, the surface tension force is computed as: parabolic velocity profile is assumed at the air inlet for
the boundary condition. The maximum velocity in the
𝐹𝜎 = 𝜎𝜅(𝜙)𝛿(𝜙)∇𝜙 parabolic velocity profile is calculated based on the air
flow rate [8]. The air flow rate is equal to 200 mlph.
where 𝛿 is Dirac function which is defined as: For the lower wall, the adhesion boundary condition is
used to prevent bubble interface spreading along the
0, |𝜙| > 𝜖 wall. The wall static contact angle is set to 20° while
𝛿(𝜙) = { 1 𝜋𝜙 no slip boundary condition is used for the other walls.
(1 + cos ( )) , |𝜙| ≤ 𝜖
2𝜖 𝜖 To expose the initial condition, a semi-spherical
bubble at the inflow is patched so that the distance
function for LS method can be calculated. The Courant
number of 0.25 with adaptive time step is used to
control the computations. It should be mentioned that
the simulation presented in this paper follows the
numerical and experimental work of Albadawi et al.
[8]. Therefore, our results are compared with the
experimental data available in reference [8] to validate
our code.

Figure 1 Schematic diagram of the problem of bubble


growth and detachment.

The comparison between the experimental


measurements are shown in Figure 2 [8]. It is worth
noting that the numerical interfaces are obtained from
compressible VOF and CLSVOF. As can be seen in
Figure 2, the VOF method predicts the bubble with Figure 2 Bubble shape predictions by experimental, VOF
smaller volume and height. On the other hand, the and CLSVOF for the problem of bubble growth and
CLSVOF results are in good agreement with detachment.
experimental data. The bubble detachment time
resulting from the experiment, VOF, and CLSVOF are 4. CONCLUSION
0.523, 0.327 and 0.421 s respectively. It is clear that
the computations of interface curvature and surface A simple coupling of compressibleInterFoam (VOF)
tension force are improved by CLSVOF. solver in OpenFoam and Level Set (LS) method is
presented to improve the computations of interface
curvature and surface tension force. A benchmark test
(bubble growth and detachment) is used to show the
differences between the results of this method and
compressible VOF solver. It is evident that the
interface curvature and the surface tension force
computations are prominently improved by adding LS
method to the compressible VOF solver.

ACKNOWLEDGEMENTS
The authors gratefully acknowledge the financial
support of the National Sciences and Engineering
Research Council of Canada (NSERC).
REFERENCES
[1] R. Caiden, R.P. Fedkiw and C. Anderson. A
numerical method for two-phase flow consisting
of separate compressible and incompressible
regions. Journal of Computational Physics,
166:1–27, 2001
[2] S.Y. Kadioglu and M. Sussman. Adaptive
solution techniques for simulating underwater
explosions and implosions. Journal of
Computational Physics, 227:2083–2104, 2008
[3] J.A. Sethian and P. Smereka. Level set methods
for fluid interfaces. Annual Review of Fluid
Mechanics, 35:341–372, 2003
[4] C.W. Hirt and B.D. Nichols. Volume of fluid
(VOF) method for the dynamics of free
boundaries. Journal of Computational Physics,
39:201–225, 1981
[5] M. Sussman and E.G. Puckett. A coupled level set
and volume of fluid method for computing 3D
and axisymmetric incompressible two-phase
flows. Journal of Computational Physics,
162:301–337, 2000
[6] C.E.. Kees, I. Akkerman, M.W. Farthing and Y.
Bazilevs. A conservative level set method
suitable for variable-order approximations and
unstructured meshes. Journal of Computational
Physics, 230:4536–4558, 2011
[7] M. Rudman. Volume tracking methods for
interfacial flow calculations. International
Journal of Numerical Methods in Fluids,
24:671–691, 1997
[8] A. Albadawi, D.B. Donoghue, A.J. Robinson,
D.B. Murray and Y.M.C. Delaure. Influence of
surface tension implementation in volume of
fluid and coupled volume of fluid with level set
methods for bubble growth and detachment.
International Journal of Multiphase Flow,
53:11–28, 2013
[9] OpenCFD Ltd., www.openfoam.com.
[10] H. Rusche. Computational fluid dynamics of
dispersed two-phase flows at high phase
fractions. Imperial College of Science,
Technology & Medicine, London, UK, 2002
[11] V. Suponitsky, A. Froese, and S. Barsky.
Richtmyer-Meshkov instability of a liquid-gas
interface driven by a cylindrical imploding
pressure wave. Computers and Fluids, 89 :1-19,
2014
[12] D. Gerlach, N. Alleborn, V. Buwa, and F. Durst.
Numerical simulation of periodic bubble
formation at a submerged orifice with constant
gas flow rate. Chemical Engineering Science,
62:2109–2125, 2007

View publication stats

You might also like