Ter PDF
Ter PDF
Ter PDF
Abstract. In this paper, we derive a thermodynamically consistent phase-field model for flows containing three
(or more) liquid components. The model is based on a Navier-Stokes (NS) and Cahn-Hilliard system (CH) which
accounts for surface tension among the different components and three-phase contact lines. We develop a stable
conservative, second order accurate fully implicit discretization of the NS and three-phase (ternary) CH system. We
use a nonlinear multigrid method to efficiently solve the discrete ternary CH system at the implicit time-level and
then couple it to a multigrid/projection method that is used to solve the NS equation. We demonstrate convergence
of our scheme numerically and perform numerical simulations to show the accuracy, flexibility, and robustness of
this approach. In particular, we simulate a three interface contact angle resulting from a spreading liquid lens on
an interface, a buoyancy-driven compound drop, and the Rayleigh-Taylor instability of a flow with three partially
miscible components.
Key words. ternary Cahn-Hilliard system, nonlinear multigrid, ternary fluid flow, interfacial tension, arbitrary
miscibility
Department of Mathematics 103 Multipurpose Science and Technology Building University of California,
Nf
1 X ck
= (2.1)
k
k=1
(k k )
+ (k k uk ) = 0. (2.2)
t
Phase field modeling and simulation of three phase flows 3
then summing Eq. (2.2) in k we obtain the balance of mass for the mixture
+ (u) = 0. (2.4)
t
From Eqs. (2.2) and (2.4), we obtain the mass concentration equation:
ck = Jk , (2.5)
where = t + u is the advective derivative with respect to the mixture velocity, and
Jk = ck wk , where wk = (uk u) , (2.6)
is the diffusion flux.
For each component, we have the balance of linear momentum
Dk uk
ck = Pk + ck g + k , (2.7)
Dt
where Dk /Dt = t + uk is the advective derivative with respect to the component
velocity, Pk is the stress tensor, g is the gravity force and k are the forces per unit volume
due to interactions with other phases. Note that as yet Pk and k are unspecified. Summing
PNf
over k, and requiring that k=1 k = 0, which is necessary for the conservation of linear
momentum of the mixture, we get the following linear momentum equation for the mixture:
u = P + g, (2.8)
PNf
where P = k=1 (Pk ck wk wk ) is the stress tensor of the mixture.
Following classical theory (e.g. see [21] and Lowengrub and Truskinovsky [34]), we
focus on the mixture equations and not on the detailed force interactions (e.g. i ). Therefore,
we consider an energy balance for the entire system and derive thermodynamically consistent
constitutive relations for P and Jk as follows. Let be an arbitrary domain that moves with
the mixture velocity u. Then, the integral form of the energy balance for the mixture is
Nf
d 1
Z Z X Z
e + |u|2 d = Pn u + (tk n) ck d+ (r + g u) d,
dt (t) 2
k=1
(2.9)
where e is the internal energy, |u|2 /2 is the kinetic energy and n is the outward normal
vector to . The first term on the right hand side is the rate of work done on by the fluid
stress and the extra stresses due to concentration gradients, i.e. tk is a generalized force that
is as yet undetermined. This term is suggested by the variational analysis of Lowengrub and
Truskinovsky [34]. In the second term on the RHS, r is the density of heat sources necessary
to ensure that the temperature is constant and the remaining term is the rate of work done due
to gravity.
Using the mixture mass (2.4) and momentum balance equations (2.8), the local form of
the energy balance Eq. (2.9) is
Nf
X
e = P : u + (tk ck ) + r. (2.10)
k=1
4 Junseok Kim and John Lowengrub
2.2. Thermodynamics and constitutive relations. Because we are dealing with isother-
mal flow, it is useful to introduce the Helmholtz free energy F rather than the internal energy.
The relation between the two is
F = e T s. (2.11)
Nf
T s = F + P : u +
X
(ti ci ) + r. (2.12)
i=1
such that
Nf
F F
F =
X
ck + (ck ) . (2.14)
ck ck
k=1
Using the identity (ck ) = ck (u)T ck (e.g. see [34]) and plugging Eq. (2.14) in
Eq. (2.12) gives
Nf
X F
T s = P + ck : u
ck
k=1
Nf Nf
X F X F 1
+ tk ck tk ck + r (2.15)
ck ck
k=1 k=1
Next observe that because the fluid components are incompressible the velocity gradient u
and ck are not independent. They are related via Eqs. (2.1) and (2.5). That is, there is a
degeneracy in Eq. (2.15) since
Nf Nf
X 1 X 1
u = ck = Jk . (2.16)
ck 2 ck
k=1 k=1
1 1
2
= k , for k = 1, . . . Nf , (2.17)
ck k
is a constant.
To exploit the degeneracy introduce a scalar Lagrange multiplier p. This is the mixture
pressure. Then,
Nf
X
pI : u = k pck , (2.18)
k=1
Phase field modeling and simulation of three phase flows 5
where I is the identity matrix. Using Eq. (2.18) in Eq. (2.15), we get
Nf
X F
T s = P + pI + ck : u
ck
k=1
Nf Nf
X F X F 1
+ tk ck + k p tk ck + r.
ck ck
k=1 k=1
(2.19)
According to the second law of thermodynamics, in the form of the Clausius-Duhem inequal-
ity, we have
where is the internal dissipation and J is the entropy flux (see Truesdell and Noll [45]).
Now, from Eq. (2.19) together with Eq. (2.5), we obtain
Nf Nf
1 X F 1 X F
1 Jk
= P + pI + ck : u + tk
T ck T ck
k=1 k=1
Nf Nf
1 X X k Jk
+ k Jk + J , (2.21)
T T
k=1 k=1
F 1
k = + k p tk . (2.22)
ck
PNf
Next, because k=1 Jk = 0 this leads to additional constraints on the constitutive relations
PNf
for the stress tensor P, the forces tk and the fluxes Jk . Since k=1 ck = 1, the concentration
PNf 1
fields are not independent. We may thus define cNf = 1 k=1 ck . This leads to the
equivalent entropy form
Nf
1 X F F
= P + pI + ck : u
T ck cNf
k=1
Nf
1 X F F
1 Jk
+ tk
T ck cNf
k=1
Nf Nf
1 X X k Nf Jk
+ k Nf Jk + J , (2.23)
T T
k=1 k=1
PNf
Taking the diffusion flux J = k=1 k Nf Jk /T we are now in a position to pose
thermodynamically consistent constitutive relations for P, tk and Jk . Following Coleman
and Noll [14] where u is varied independently from the other quantities leads to the consti-
6 Junseok Kim and John Lowengrub
tutive assumptions
Nf
X F F 2
P = pI ck + D ( u) I , (2.24)
ck cNf 3
k=1
F F
tk = , (2.25)
ck cNf
Nf 1
X
Jk = k k Nf , for k < Nf , and JNf = Jk (2.26)
k=1
where D = u + uT is the rate of strain tensor and is the viscosity (note that the bulk
viscosity is assumed to be 0 for simplicity and that may be a function of c). We thus obtain
Nf
1 X
k | k Nf |2 0
= D : D + (2.27)
T T
k=1
and so the second law of thermodynamics is satisfied. Note that concentration gradients give
rise to extra fluid stresses. As will be discussed later, these mimic surface tension stresses.
Finally, although we have singled out one of the components, we demonstrate later that the
evolution of our system does not depend on the labeling of the components. We also note that
other constitutive relations may be taken (e.g. see Appendix A as well as [19]). Our choice
here is consistent with that considered previously by Morral & Cahn [36] for linearized three-
phase systems.
2.3. Summary of general equations. Putting together the results from the previous
section, the thermodynamically consistent system of equations governing a mixture of Nf
fluids is
Nf
X
u= k Nf k k Nf , (2.28)
k=1
Nf
X F F
u = p ck
ck cNf
k=1
2
+ (c) D ( u) I + g,
3
(2.29)
ck = k k Nf , (2.30)
and
F 1 F F 1
k = + k p , k = (2.31)
ck ck cNf k
PNf 1
for k = 1, . . . , Nf 1 and cNf = 1 k=1 ck . This system couples a generalized Navier-
Stokes equation with a nonlinear advection-diffusion equation for the concentration.
2.4. Special choice of free energy, the Navier-Stokes-Cahn-Hilliard system and nondi-
mensionalization. To make further progress, we need to choose the form of the Helmholtz
Phase field modeling and simulation of three phase flows 7
This gives
F 1
= 2k ck (2.33)
ck 2
Note that this makes the concentration equation (2.30) a fourth order nonlinear advection
diffusion equation and is a generalization of the classical Cahn-Hilliard equation used to
describe phase separation in binary mixtures [12]. Further, the extra stress in the Navier-
Stokes equation (2.29) can be written as
Nf Nf 2
X F F X k
ck = ck ck , (2.34)
ck cNf 2
k=1 k=1
PNf
where we have used that k=1 ck
= 1. Further, we have
Nf 1
F F 1 X
+ k Nf p 2k ck + 2Nf
k Nf = cj , (2.35)
ck cNf 2 j=1
PNf
where we have again used that k=1 ck = 1. We may therefore define, for k = 1,. . . ,Nf 1,
Nf 1
F (c1 , . . . , cNf 1 ) = F c1 , . . . , cNf 1 , 1
X
ck , (2.36)
k=1
k = k Nk (2.37)
so that
F F F
= . (2.38)
ck ck cNf
k = k Nf
Nf 1
F 1 X
= k p 2k ck + 2Nf
+ cj , (2.39)
ck 2 j=1
for k = 1,. . . ,Nf 1. The resulting system is a coupled Navier-Stokes and Cahn-Hilliard
system (see also [34]). We note that by equipping this system with natural boundary condi-
tions, i.e. u = 0 and ck n and k n = 0, this system (with gravity g = 0) has a discrete
(free) energy functional
Nf 2
Z
F (c1 , . . . , cNf 1 ) +
X
E(t) = k
|ck |2 + |u|2 d (2.40)
4 2
k=1
8 Junseok Kim and John Lowengrub
where is the (fixed) physical domain. In the remainder of the paper, we drop the tilde
notation for simplicity.
We nondimensionalize the system as follows (e.g. see also [34]). Let L and V denote
characteristic scales of length and velocity. Then introduce the dimensionless independent
variables x = x/L and t = V t/L and the natural scaling of the dependent variables u =
u/V , = / , = / , p = p/( V2 ),
k = k /k , etc...., where again the stars denote
characteristic quantities. We also assume that the Helmholtz free energy is given by the sum
Nf
k Fk .
X
F = (2.41)
k=1
for k = 1, . . . , Nf 1, where
F
N
X f
j Fj
= . (2.47)
ck ck
j=1 k
For example, with a free energy F (c) = 14 c21 c22 , where we assume that c3 = 0, then
ceq (z) = 1 tanh z/2 2 /2 (2.51)
and, if (c) = 1, then = 6 2.
For three-phase flows, following [41], the surface tension ij between immiscible flow
components i and j are decomposed into the phase-specific surface tensions i and j by
ij = i + j (2.52)
That is, given ij , a linear system of equations is solved for i and j . The phase-specific
surface tensions are used in the definition of the Weber number (2.42). For flows containing
four or more immiscible fluids, the decomposition above is overdetermined and it is possible
that no solution exists. Nevertheless, the model system (2.43)-(2.48) is still valid although an
alternate means may need to be used to determine the individual Weber numbers W ek . This
is currently under study.
10 Junseok Kim and John Lowengrub
2.6. The Boussinesq approximation and the ternary system. We next consider the
special case of a ternary system and use the Boussinesq approximation. In the Boussinesq
approximation, the densities of the flow components are nearly matched such that 1 but
the Froude number may be small enough such that ( 1) /F r2 is non-negligible. Thus, in
Eqs. (2.43)-(2.46), we take = 1 except in the gravitational term and we take Ak = 0. The
resulting system is the ternary version of model H in the nomenclature of Hohenberg and
Halperin [23].
The composition of a ternary mixture (A, B, and C) can be mapped onto an equilateral
triangle (the Gibbs triangle [38]) whose corners represent 100% concentration of A, B or C
as shown in Fig. 2.1(a). Mixtures with components lying on lines parallel to BC contain
the same percentage of A, those with lines parallel to AC have the same percentage of B
concentration, and analogously for the C concentration. In Fig. 2.1(a), the mixture at the
position marked contains 60% A, 10% B, and 30% C (The total percentage must sum to
100%).
C (0,0,1)
A B (1,0,0) (0,1,0)
(a) (b)
F IG . 2.1. (a) Gibbs triangle. (b) Contour plot of the free energy F (c)
Let c = (c1 , c2 ) be the phase variable (i.e. concentrations of component A and compo-
nent B). Since c1 + c2 + c3 = 1 we only need to solve the equations with c1 and c2 . Here,
for simplicity, we consider a constant mobility1 (k 1). F (c) is the Helmholtz free energy
which is defined on the Gibbs triangle. For three immiscible fluids, the free energy can be
modeled by
3
X
F (c) = Fk , Fk = c2k (c2rem(k,3)+1 + c2rem(k+1,3)+1 )/8 (2.53)
k=1
where rem(x, y) is the remainder of the ratio x/y and c3 = 1 c1 c2 . The contours of the
free energy F (c) projected onto the Gibbs triangle are shown in Fig. 2.1(b). Note the energy
minima are at the three vertices and the maximum is at the center.
u = 0, (2.54)
1
u = p + ((c)(u + uT ))
Re
3
X 1
(ck ck ) + g, (2.55)
W ek F r2
k=1
1
c = , (2.56)
Pe
= f (c) c, (2.57)
where f (c) = (f1 (c), f2 (c)) = (c1 F (c), c2 F (c)) and is the matrix
2
2 /2
.
2 /2 2
The natural boundary and initial conditions for the ternary NSCH equation are
c
= = 0, and u = 0 on , c(x, 0) = c0 (x), u(x, t) = 0, (2.58)
n n
where n is the normal unit vector pointing out of . Finally, the nondimensional total free
energy for the Boussinesq system is
3
Ck2
1 2 1
Z X Z
2
E(t) = |u| d + Fk + |ck | d, (2.59)
2 M k W ek 4
k=1
P3
where F = k=1 Fk .
3. Numerical Solution. The numerical solution of the ternary NSCH system uses a
second-order accurate spatial discretization and a Crank-Nicholson type time stepping method.
For simplicity and clarity of exposition, we will present the numerical method in 2D, but the
extension to 3D is straightforward. The computational grid consists of square cells of a uni-
form size h; these cells ij are centered at (xi = (i 0.5)h, yj = (j 0.5)h), where
i = 1, , L and j = 1, , M . Given un1 , un , cn1 , cn , defined at cell centers and
1 1
pn 2 defined at cell corners, we want to find un+1 , cn+1 , and pn+ 2 . The outline of the
algorithm is as follows:
Step 2. Solve the CH system and update the concentration field cn to cn+1 . We use a
nonlinear Full Approximation Storage (FAS) multigrid method to solve the nonlinear discrete
system (3.1) and (3.2) given below at implicit time level. The nonlinearity is treated using
a nonlinear Gauss-Seidel relaxation. Details of this step are presented in our recent paper
[31]. Here, however, we have additional source term due to advection. That is, we solve the
following second-order accurate discrete system
cn+1
ij cnij 1 n+ 1 1
= d ij 2 (u d c)n+ 2 , (3.1)
t Pe
n+ 21
ij = (c nij , cn+1 ) 1 d (cnij + cn+1 ), (3.2)
ij ij
2
12 Junseok Kim and John Lowengrub
where d is the standard five point discretization of Laplacian operator in 2D. The advection
1
term (ud c)n+ 2 is approximated by using a fifth order weighted essentially non-oscillatory
(WENO) scheme [26] and is described in Sec. 3.1. The term = (1 , 2 ) and 1 (...) and
2 (...) denote Taylor series approximations to f1 and f2 up to second order, respectively:
1
1 (cn , cn+1 ) = f1 (cn+1 ) c1 f1 (cn+1 )(cn+11 cn1 )
2
1 1
c2 f1 (cn+1 )(cn+12 cn2 ) + c21 f1 (cn+1 )(cn+1
1 cn1 )2
2 3!
2 1
+ c2 c1 f1 (cn+1 )(cn+11 cn1 )(cn+1
2 cn2 ) + c22 f1 (cn+1 )(cn+1
2 cn2 )2
3! 3!
and
1
2 (cn , cn+1 ) = f2 (cn+1 ) c1 f2 (cn+1 )(cn+11 cn1 )
2
1 1
c2 f2 (cn+1 )(cn+12 cn2 ) + c21 f2 (cn+1 )(cn+1
1 cn1 )2
2 3!
2 1
+ c2 c1 f2 (cn+1 )(cn+11 cn1 )(cn+1
2 cn2 ) + c22 f2 (cn+1 )(cn+1
2 cn2 )2 .
3! 3!
As described in [31], this discretization ensures that in the absence of flow, a discrete
version of Eqs. (2.56)-(2.57) is non-increasing in time independent of the choice of t. This
gives enhanced stability.
1
Step 3. Update the velocity un to un+1 and the pressure pn+ 2 . We use the following
approximate projection method adapted from [8]. We solve
1
u un 1 1 (cn+ 2 ) 1
= d pn 2 + d (cn+1 )[d u + (d u )T ] + G
t 2Re F r2
1 n+ 1 1
+ d (cn )[d un + (d un )T ] + Fst 2 (u d u)n+ 2 (3.3)
2Re
using a multigrid method for the intermediate P3 velocity u without strictly enforcing the in-
compressibility constraint. We use Fst = k=1 W ek (|ck |2 I ck ck ) and the
P3
pressure field is replaced by p + k=1 Wek |ck |2 . This modification is performed for two
reasons. First, by taking into account analytic cancellation a simpler and more accurate dis-
cretization may be obtained. Second, when the interface is flat, this term is equal to zero
which is consistent with the fact that the interfacial force vanishes for flat interfaces.
The discretization of Fst is given in Sec. 3.2. The terms d p and d (c)[d u+d uT ]
are defined as following.
pi+ 21 ,j+ 21 + pi+ 12 ,j 21 pi 21 ,j+ 21 pi 12 ,j 21
(d p)ij = ,
2h
pi+ 12 ,j+ 21 pi+ 12 ,j 21 + pi 12 ,j+ 21 pi 21 ,j 21
.
2h
The second component of the viscous term is discretized in a similar manner. The term
1
(u d u)n+ 2 is computed using a fifth order WENO scheme described in Sec. 3.1.
Then project u onto the space of approximately divergence-free vector fields and get
un
the velocity un+1 , i.e., u = un+1 + td , where satisfies d = d u t with the
Neumann boundary condition, n = 0, see [1] for more general boundary conditions. Note
1 1
d un+1 0 see [8]. Finally, update pressure by pn+ 2 = pn 2 + . This completes one
time step.
3.1. Approximation of the advection terms. In this section, we describe the discretiza-
n+ 1 n+ 1
tion of the advection terms. The values uij 2 and cij 2 are calculated using a second-
n+ 12 n1
order accurate extrapolation from previous values, i.e., uij = (3unij uij )/2 and
n+ 21 n1
cij = (3cnij cij )/2. From these cell centered values we obtain cell edged values
n+ 1 n+ 12 n+ 1 n+ 1 n+ 12 n+ 1
by ui+ 12,j = (uij + ui+1,j
2
)/2 and ui,j+2 1 = (uij + ui,j+1
2
)/2.
2 2
n+ 1 n+ 1
In general, the normal velocities ui+ 12,j and vi,j+21 at the edges are not divergence-free.
2 2
To reduce the overall error, we apply the MAC projection [43] before construction of the
convective derivatives. The equation
1
d = MAC un+ 2 (3.4)
h h
with the Neumann boundary condition, n = 0 The resulting linear system (3.4) is solved
using a multigrid method with Gauss-Seidel relaxation. Then the discrete divergence-free
cell-edge velocities u
and v are defined by
n+ 1 n+ 1 i+1,j ij n+ 1 n+ 1 i,j+1 ij
u
i+ 12,j = ui+ 12,j , vi,j+21 = vi,j+21 .
2 2 h 2 2 h
The convective terms are discretized as:
n+ 1 n+ 1
n+ 1
i+ 12,j + u
u i 12,j n+ 1 n+ 1
(u d u)ij 2 = 2 2
( i 12,j )
ui+ 12,j u
2h 2 2
n+ 1 n+ 1
vi,j+21 + vi,j2 1 n+ 1 n+ 1
+ 2 2
ui,j+2 1 u
( i,j2 1 ),
2h 2 2
n+ 1 n+ 1
n+ 12
u
i+ 12,j + u
i 12,j n+ 1 n+ 1
(u d c)ij = 2 2
(ci+ 12,j ci 12,j )
2h 2 2
n+ 1 n+ 1
vi,j+21 + vi,j2 1 n+ 1 n+ 1
+ 2 2
(ci,j+2 1 ci,j2 1 ),
2h 2 2
n+ 1 n+ 1 n+ 1 n+ 1
where the edge values ci 12,j , u i 12,j , ci,j2 1 , and u
i,j2 1 are computed using projected
2 2 2 2
velocity fields, u, v, and a fifth order WENO algorithm [26].
14 Junseok Kim and John Lowengrub
3.2. Discretization of surface tension terms. In this section we describe the finite dif-
ference approximation to the surface tension term, Fst . Let
3 3
X X
Fst = (fk , gk ) = (|ck |2 I ck ck )
W ek W ek
k=1 k=1
3
X
= (x ck yy ck y ck xy ck , y ck xx ck x ck xy ck ).
W ek
k=1
negligible (most of cases, the deviations are order 103 ). The time step is determined by
restrictions due to the CFL condition, gravity, viscosity, and surface tension [40]:
s s !
(1 + 2 + 3 )W ek W erem(k,3)+1 3 3Ren h2 h 2h
t < min min h2 , , n , ,
k=1,2,3 8(W ek + W erem(k,3)+1 ) 14 n |u | |F n |
(u(x, y, 0), v(x, y, 0)) = (0.25 sin2 (x) sin(2y), 0.25 sin2 (y) sin(2x)) (4.3)
on a domain, = (0, 1) (0, 1). No-slip boundary conditions are applied to top and bottom
planes and periodic ones are to the side walls. The numerical solutions are computed on the
uniform grids, h = 1/2n for n = 5, 6, 7, 8, and 9. For each case, the calculations are run to
time T = 0.2, the uniform
time steps, t = 0.1h, Re = 10, W e1 = W e2 = W e3 = 100,
P e = 2, and = 0.005 2, are used to establish the convergence rates. Fig. 4.1(a) and (b)
show the initial configuration and a snapshot of the solution at time T = 0.2, respectively
with h = 1/64 and Re = 100.
TABLE 4.1
Convergence Results with Re = 10 u, v, c1 , and c2 .
Since a cell centered grid is used, we define the error to be the difference between that
grid and the average of the next finer grid cells covering it:
def
eh/ h = chij c h + ch + ch + ch /4.
2 ij 2 2i,2j 2 2i1,2j 2 2i,2j1 2 2i1,2j1
The rate of convergence is defined as the ratio of successive errors in the discrete l2 -norm:
The errors and rates of convergence with Re = 10 and Re = 100 are given in Tables
4.1 and 4.2, respectively. The results suggest that the scheme is indeed second order accurate
when Re number is small. When Re = 100, the rate of convergence decreases.
16 Junseok Kim and John Lowengrub
TABLE 4.2
Convergence Results with Re = 100 u, v, c1 , and c2 .
(a) (b)
F IG . 4.1. Snapshots of the solutions at (a) T = 0 and (b) T = 0.2. The uppermost layer is fluid 3, the middle
layer is fluid 2, and the lower layer is fluid 1. The contour lines are from c2 = 0.1 to c2 = 0.9 with 0.1 step size.
We also examined the time evolution of the total energy (with F and Fk defined as in
Eqs. (3.7) and (2.53) respectively). The results are shown in Fig. 4.2 together with the inter-
facial (dotted) and kinetic energy (dot-dashed) components. The interfacial energy contains
both the gradient and Helmholtz free energy terms. The solid curve marks the total energy.
The insets show the layer morphology (c2 = 0.5 filled contour) at various times. The initial
data, boundary conditions and all the parameters are the same as considered previously except
that the Weber numbers are W e1 = W e2 = W e3 = 10 so that surface tension plays a more
important role in the evolution. Here the Reynolds number Re = 10. Observe that the total
energy is non-increasing throughout the evolution. The kinetic energy also monotonically de-
creases due to viscous dissipation. The interfacial energy is non-monotone, however. At early
times, the initially flat layer deforms and the surface energy increases. Around approximately
t = 0.4, the surface energy reaches a peak due to the increased deformation of the layer and
then decreases towards an equilibrium value corresponding to a flat layer (two interfaces).
When the layer is most deformed, the surface tension force induces a reversal of the velocity
field such that the deformed layer relaxes back to a flat configuration at later times.
4.2. Contact angles. Following [41], we next investigate the spreading of a liquid lens
consisting of an initially circular immiscible droplet of fluid located at an interface between
two other immiscible fluids. See Fig 4.3(a).
The initial condition is a circular droplet, 2 , (located at a free surface between 1 and
Phase field modeling and simulation of three phase flows 17
total energy
interfacial energy
kinetic energy
0.5
0.4
0.3
0.2
0.1
F IG . 4.2. The time dependent energies of the numerical solutions with the initial data Eqs. (4.1)-(4.6) and with
Re = 10, W e1 = W e2 = W e3 = 10. Snapshots of the concentration field, c2 are shown with filled contour at
c2 = 0.5.
The computational domain is = [0, 1] [0, 1]. The fluids are density and viscosity matched
( = 1, = 1) and
In Figs. 4.3(b)-(d), the evolution of the c2 = 1/2 contour line is shown for three cases
with Re = 60, and W e2 = 60, W e1 = W e3 = 108, 60, 36, respectively. In all cases,
= 0.005 2, P e = 100/, h = 1/256, and t = 0.25h. As the droplet spreads, it reaches
an equilibrium shape. The most deformed curve in each figure is the numerical steady-state.
Theoretically, the shape of the steady-state drop is controlled by the drop-volume and the
three surface tensions (inverse Weber numbers). The equilibrium three-phase contact angle
is determined by
sin 1 sin 2 sin 3
1 = =
W e2 + W1e3 1
W e1 + W1e3 1
W e1 + W1e2
and the relation between the lens area A, its length d (the distance between triple junctions),
and the contact angles i of the i-th phase (Youngs law) is
12
1 2( 1 ) sin(2( 1 )) 2( 3 ) sin(2( 3 ))
d= + .
8A sin2 ( 1 ) sin2 ( 3 )
18 Junseok Kim and John Lowengrub
0.9
0.8
,
1 1
0.7
12
0.6
0.5
2, 2
0.4
13 13
0.3
23
0.2
,
3 3
0.1
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
(a) (b)
(c) (d)
F IG . 4.3. (a) Initial configuration: the upper fluid is phase 1, the lower fluid is phase 3, and the droplet is
phase 2. (b), (c), and (d) are evolutions of initial circular drop for W e2 = 60 and W e1 = W e3 = 108, 60, 36,
respectively. The arrow shows the direction of the evolution and the most deformed lines in (b), (c), and (d) are
corresponding steady shapes and the enclosing box size is [0.23, 0.77] [0.23, 0.77].
TABLE 4.3
Equilibrium measurements
Thus, the accuracy of the steady lens shape can be measured by comparing the observed d
with the analytical value.
The evolution of d for the three cases is shown in Fig. 4.4. The numerical value of a d
is obtained from the c2 = 1/2 contour line. Note that in all cases, there is rapid increase in
d at early times followed by a slow approach to equilibrium. Note also there is an overshoot
in the early evolution of the W e3 = 36 and W e3 = 108 cases. In table 4.2, the equilibrium
values of d are shown for the three cases together with the corresponding theoretical values.
There is very good agreement between the theory and simulation.
Phase field modeling and simulation of three phase flows 19
0.5
0.4
0.35
We3=108
We3= 60
We3= 36
0.3
0.25
0.2
0 10 20 30 40 50
time
F IG . 4.4. Time evolution of d, distance between triple junctions. W e3 = 108 (), W e3 = 60 (), and
W e3 = 36 ().
In Fig. 4.5(a) and (b), we plot the contours of the concentration c2 at the five levels
c2 = 0.1, 0.3, 0.5, 0.7, and0.9 for the case with W e1 = W e3 = 36, and W e2 = 60.
In the left column = 0.005 2 while in the right column = 0.0025 2. Not only do the
concentration contours appear to converge, also note that when = 0.0025 2, we obtain
dnumerical = 0.4502, which is closer to the exact result than is the case with = 0.005 2.
Interestingly, the c2 = 0.1 contour appears to be elongated near the triple junctions a fact
that seems to persist under refinement of .
We next show that numerical results are not sensitive to the choice of component labels.
We take the same initial configuration but change the component labels, i.e.
y 0.5
c1 (x, y, 0) = max 0.5 1 + tanh c3 (x, y), 0 , (4.7)
2 2
p !!
0.15 (x 0.5)2 + (y 0.5)2
c3 (x, y, 0) = 0.5 1 + tanh . (4.8)
2 2
0.7 0.7
0.65 0.65
0.5
0.3
0.6 0.6
0.55 0.55
0.9 0.7 0.9
0.5
1
0.7 0.9
0.3 0.7
0.
0.5 0.5
0.3 0.5
0.1 0.1
0.45 0.45
0.4 0.4
0.35 0.35
0.3 0.3
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
(a) (b)
0.7 0.7
0.65 0.65
0.1
0.3
0.6 0.6
0.5 0.9
0.7
0.55 0.9 0.55
0.5 0.5
0.3 0.3
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
(a) (b)
0.7 0.7
0.65 0.65
0.6 0.6
0.55 0.55
1
0.1
0.
0.4 0.4
0.35 0.35
0.3 0.3
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
(a) (b)
0.5
case 1
d, distance between triple junctions case 2
0.45
0.4
0.35
(a1) (a2)
0.3
0.25
0.2
0 0.5 1 1.5 2 2.5
time
(b1) (b2) (c)
F IG . 4.6. Initial concentration profiles: case 1 - (a1) c1 and (a2) c2 , case 2 (b1) c1 and (b2) c2 . Time
evolution of d, distance between triple junctions with two cases (case 1 () and case 2 ()) with W e3 = 60.
energy, and the dash-dotted line is the kinetic energy. The inset shows a blow-up of the
kinetic energy. Since the initial velocity is zero and the evolution is primarily surface energy
driven, the kinetic energy is very small. At early times, a small amount of surface energy is
transferred to kinetic energy as the drop begins to elongate. At later times, the kinetic energy
rapidly decays as the drop approaches its equilibrium configuration. As expected, the total
energy monotonically decreases to its equilibrium value. Correspondingly, the interfacial
Phase field modeling and simulation of three phase flows 21
total energy
interfacial energy
0.1
kinetic energy
0.08
0.06
4
x 10
0.04 2
1
0.02
0
0 1 2 3
0 1 2 3 4 5
time
F IG . 4.7. The time dependent energies of the numerical solutions with the initial data Eqs. (4.4)-(4.6) and
the case with W e1 = W e3 = 36, and W e2 = 60. Snapshots of the concentration field, c2 are shown with filled
contour at c2 = 0.5.
In Fig. 4.8, evolution is shown and only the spheres are visualized with a reference plane
passing through equator of the spheres. The actual interface deforms. As the drops spread
out and flatten due to surface tension forces, the drops interact with their periodic neighbors.
In this case, the distance between the neighbors is less than the equilibrium length of an
isolated drop. As seen in Fig. 4.8, this leads to merger with the periodic images and results
in a lattice-like microstructure of the second fluid on the interface between the two other
immiscible fluids.
4.3. Numerical simulation of a buoyancy-driven compound drop. In this section, a
buoyancy-driven evolution a 3-D compound drop is investigated. In Fig. 4.9, a schematic of
22 Junseok Kim and John Lowengrub
the initial configuration is shown. The three fluids are immiscible where a heavy droplet of
fluid I is encapsulated by a light fluid II. Fluid I is the heaviest component. This models a
flow in which a heavy fluid contains a dispersed contaminant. Releasing drops of the light
fluid II from the bottom of the container, provides the means to encapsulate the contaminants.
Restricting this to a single drop yields the initial condition we consider.
II 2 , 2
23
III 3 , 3
II
12
I
1 , 1
23
The computational domain is = [0, 2] [0, 2] [0, 4] and the mesh size is 32 32 64
with time step, t = 0.002. = 0.01 2, and P e = 10/. No-slip boundary conditions for
the top and bottom planes and periodic boundary conditions for the side walls are applied.
The evolution is presented in Fig. 4.10. An upper (flat) interface separates the heavy
ambient from same fluid that encapsulates the heavy drop. The compound drop is lighter
than the heavy ambient and so it rises and deforms. The encapsulating fluid rises faster than
the heavy inner drop but nevertheless the compound drop remains intact until it penetrates the
upper interface. The heavy inner drop is carried upwards as the encapsulated fluid is released.
The drop then falls back on the interface remaining trapped there by surface tension forces
even though if is heavier than the lower ambient. At this point, the drop could be removed
from the system by sucking it off the interface. Imagining that the heavy inner drop is a
contaminant in the lower ambient, this provides a mechanism of liquid/liquid extraction by
which fluid III may be cleansed.
4.4. Rayleigh-Taylor Instability of Ternary Fluid Flows. In this section, we exploit
the fact that our ternary NSCH system is capable of describing multicomponent fluid flows
containing immiscible, miscible and partially miscible components. The miscibility of the
components is modeled through the properties of the free energy F (c1 , c2 ). It is nontrivial to
construct free energies capable of describing partially miscible systems where, for example,
two components are immiscible and the third component is preferentially miscible in one of
the immiscible components. Nevertheless, we have been able to construct a class of such a
24 Junseok Kim and John Lowengrub
C
2
C1 C
3
F IG . 4.11. Contour plot of the free energy F (c1 , c2 ) F IG . 4.12. schematic of initial configuration
on the Gibbs triangle.
A contour plot of the free energy F (c1 , c2 ) on the Gibbs triangle is shown in Fig. 4.11. The
two minima of F (c1 , c2 ) are at (0.7779, 0.2330, 0.0109) and (0.0151, 0.3651, 0.6499).
These minima lie very slightly outside the Gibbs triangle. As a demonstration of the evo-
lution possible in partially miscible liquid systems, we present an example in which there
is a gravity-driven (Rayleigh-Taylor) instability that enhances the transfer of a preferentially
miscible contaminant from one immiscible fluid to another in 2D. The initial configuration is
shown in Fig. 4.12. The top half of the domain consists of a mixture of fluid I and fluid II,
and the bottom half consists of fluid III, which is immiscible with fluid I. Fluid II is prefer-
entially miscible with fluid III. Fluid I is assumed to be the lightest and fluid II the heaviest.
The density of the I/II mixture is heavier than that of fluid III, so the density gradient induces
Rayleigh-Taylor Instability.
In particular, the initial data are
y 0.5 0.1 cos(2x)
c1 (x, y) = c2 (x, y) = 0.25 1 + tanh
2 2
u(x, y) = v(x, y) = 0
The computational domain is = [0, 1] [0, 1] and the mesh size is 128 128 with time
step, t = 0.5h. = 0.01 2 and P e = 10/. Here, we assume that the surface tension is
small so that the interface undergoes the Rayleigh-Taylor instability (e.g. see paper [16] for
the effect of surface tension on the instability).
The evolution of the three phases is shown in Fig. 4.13. The top row shows the evolution
of fluid I, middle and bottom correspond to fluid II and fluid III, respectively. That is, the
contours of c1 , c2 , and c3 are visualized in gray-scale where darker regions denote larger
values of c1 , c2 , and c3 , respectively. As the simulation begins, the I/II mixture falls and
fluid II diffuses into fluid III. A characteristic Rayleigh-Taylor (inverted) mushroom forms,
the surface area of the I/III interface increases, and vorticity is generated and shed into the
Phase field modeling and simulation of three phase flows 25
F IG . 4.13. Evolution of concentration of fluid I (top row), II (middle row), and III (bottom row). The con-
tours of c1 , c2 , and c3 are visualized in gray-scale where darker regions denote larger values of c1 , c2 , and c3 ,
respectively. Nondimensional times are t = 0, 3.91, 7.81, 15.63, and 195.31.
bulk. As fluid II is diffused from fluid I, the pure fluid I rises to the top as shown in Fig. 4.13.
Imagining that fluid II is a contaminant in fluid I, this configuration provides an efficient
means of cleansing fluid I since the buoyancy-driven flow enhances the diffusional transfer
of fluid II from fluid I to fluid III.
4.5. Example of Adaptive Mesh Refinement - binary spinodal decomposition. In
the typical setting, solutions to the Cahn-Hilliard equation are nearly constant in the so called
bulk regions. Between the bulk regions, solutions exhibit thin transition layers, through
which the solution takes on values intermediate to those in the bulk regions. Typically, the
bulk regions comprise the largest portion, by far, of the computational domain. Since in most
of the applications it is sufficient to finely resolve only the transition layers, fixed grid meshing
represents a waste of computational resources. Thus, efficient, adaptive-mesh solvers for the
CH equation, able to finely resolve only the diffuse interface, are highly desirable.
In preliminary work [32], we are currently adapting block-structured adaptive methods
originally designed by Berger and Oliger [9] for conservation laws and general hyperbolic
equations. The block-structured framework was adopted in the CHOMBO package [3], which
we utilize. However, we do not use the multi-level multigrid algorithm from CHOMBO (see
[3]), but rather we employ a nonlinear adaptive multigrid solver [44] following our work here
and in [30, 31].
To illustrate the potential of this approach, we present preliminary results on adaptive
mesh refinement for the binary CH equation from [32]. The governing equations are
c
= , (4.9)
t
= c3 1.5c2 + 0.5c 2 c. (4.10)
For the following test, we consider spinodal decomposition using the off-critical aver-
age composition c = 0.3. The results are shown in Fig. 4.14. The interface parameter is
= 0.0025. The initial condition has the composition being nearly uniform with random
26 Junseok Kim and John Lowengrub
Nf Nf
1 X F 1 X F
= P + pI + ck : u
T ck Nf j=1 cj
k=1
Nf Nf
1 X
tk F 1
X F
1 Jk
+
T ck Nf j=1 cj
k=1
PNf
Nf Nf Nf 1
1 X 1 X X k Nf j=1 j Jk
+ k j Jk + J ,
T Nf j=1 T
k=1 k=1
(6.1)
PNf PNf
Taking the diffusion flux J = k=1 k N1f j=1 j Jk /T we are now in a position
to pose thermodynamically consistent constitutive relations for P, tk and Jk . Arguing as in
28 Junseok Kim and John Lowengrub
Using the form of the free energy from section 2.4, we obtain
Nf 2Nf
1 X F 1 X 2
= cj . (6.5)
Nf j=1 cj Nf j=1 j
Note that if j = , then the sum in Eq. (6.5) vanishes. Therefore the extra fluid stess induced
by concentration gradients is the same as obtained in section 2.4). However, the chemical
potential
Nf Nf Nf
1 X F 1 X F 1 X
k = k j = + k N p
Nf j=1 ck Nf j=1 cj Nf j=1 f
Nf
1 1 X
2k ck 2 cj , (6.6)
2 Nf j=1 j
is slightly different than that obtained in section 2.4. Thus, even though Eq. (6.1) is equivalent
to Eqs. (2.21) and (2.23), somewhat different constitutive relations may be taken.
REFERENCES
[1] Almgren A.S., Bell J.B., and Szymczak W.G., A numerical method for the incompressible Navier-Stokes
equations based on an approximate projection, SIAM J. Sci. Comput., 17 (1996) 358-369.
[2] Anderson D., McFadden G.B., and Wheeler A.A., Diffuse interface methods in fluid mechanics, Ann. Rev.
Fluid Mech., 30 (1998) 139-165.
[3] Applied numerical algorithms group, The chombo framework for block-structured adaptive mesh refinement.
Technical report, Lawrence Berkeley National Laboratory, http://seesar.lbl.gov/Chombo.
[4] Barrett J.W. and Blowey J.F., An improved error bound for a finite element approximation of a model for
phase separation of a multi-component alloy, IMA J. Numer. Anal., 19 (1999) 147-168.
[5] Barrett J.W. and Blowey J.F., and Garcke H., On fully practical finite element approximations of degenerate
Cahn-Hilliard systems, M2AN Math. Model. Numer. Anal., 35 (2001) 713-748.
[6] Barrett J.W. and Blowey J.F., An error bound for the finite element approximation of a model for phase
separation of a multi-component alloy, IMA J. Numer. Anal., 16 (1996) 257-287.
[7] Barrett J.W. and Blowey J.F., Finite element approximation of a model for phase separation of a multi-
component alloy with nonsmooth free energy and a concentration dependent mobility matrix, Math.
Models Methods Appl. Sci., 9 (1999) 627-663.
[8] Bell J., Collela P., and Glaz H., A second-order projection method for the incompressible Navier-Stokes
equations, J. Comp. Phys., 85 (1989) 257-283.
[9] Berger M.J. and Oliger J., Adaptive mesh refinement for hyperbolic partial differential equations, J. Comput.
Phys., 53 (1984) 484-512.
[10] Blowey J.F., Copetti M.I.M., and Elliott C.M., The numerical analysis of a model for phase separation of a
multi-component alloy, IMA J. Numer. Anal., 16 (1996) 111-139.
Phase field modeling and simulation of three phase flows 29
[45] Truesdell C. and Noll W., The nonlinear field theories of mechanics, In The Encyclopedia of Physics. Ed. (S.
Flugge), vol III. Springer-Verlag. (1965).