A consistent and conservative diffuse-domain lattice Boltzmann method for multiphase flows in complex geometries
Abstract
Modeling and simulation of multiphase flows in complex geomerties are challenging due to the complexity in describing the interface topology changes among different phases and the difficulty in implementing the boundary conditions on the irregular solid surface. In this work, we first developed a diffuse-domain (DD) based phase-field model for multiphase flows in complex geometries. In this model, the irregular fluid region is embedded into a larger and regular domain by introducing a smooth characteristic function. Then, the reduction-consistent and conservative phase-field equation for the multiphase field and the consistent and conservative Navier-Stokes equations for the flow field are reformulated as the diffuse-domain based consistent and conservative (DD-CC) equations where some additional source terms are added to reflect the effects of boundary conditions. In this case, there is no need to directly treat the complex boundary conditions on the irregular solid surface, and additionally, based on a matched asymptotic analysis, it is also shown that the DD-CC equations can converge to the original governing equations as the interface width parameter tends to zero. Furthermore, to solve the DD-CC equations, we proposed a novel and simple lattice Boltzmann (LB) method with a Hermite-moment-based collision matrix which can not only keep consistent and conservation properties, but also improve the numerical stability with a flexible parameter. With the help of the direct Taylor expansion, the macroscopic DD-CC equations can be recovered correctly from the present LB method. Finally, to test the capacity of LB method, several benchmarks and complex problems are considered, and the numerical results show that the present LB method is accurate and efficient for the multiphase flows in complex geomerties.
I Introduction
Multiphase flows in complex geometries are ubiquitous in nature and numerous industrial applications, such as liquid drops splashing on the ground, enhanced oil recovery and double emulsion production in microfluidics CHEN2015 ; Gan2009 ; Li2005 . In these problems, the dynamics of the fluid-fluid interface and the moving contact lines (MCLs) on irregular solid surface have a significant influence on the behavior of multiphase flows confined in complex geometries. Thus, in the modeling and simulation of such complex problems, how to accurately capture the fluid-fluid interface and treat the boundary conditions on irregular solid surface, especially the wetting boundary condition, are two core issues needed to be considered.
To describe the multiple interfacial dynamics, the phase-field method Lowengrub1998 ; Shen2011Modeling where a diffusive interface with a small but finite width is adopted to replace the sharp interface between different phases, is commonly applied due to its capacity in capturing the topological changes implicitly. Based on the phase-field theory, the Cahn-Hilliard (CH) equation Boyer2014 ; Cahn1958 ; Dong2018 has been widely used in the study of the multiphase flows owing to its advantage in keeping the reduction-consistent property and thermodynamic consistency. However, the works on -phase () flows in complex geometries are relatively rare, especially on how to deal with the MCLs on irregular solid surface efficiently.
The diffuse-domain (DD) method Aland2010TwophaseFI ; Guo2020ADD ; Li2009SOLVINGPI ; liu2022 ; Yang2023b ; Yang2023a ; yu2020Higher , as a diffuse interface approach, has received increasing attention in study of two-phase flows in complex geometries. As shown in Fig. 1, the basic idea of the DD method is that the complex fluid region is embedded into a larger and regular domain with a smooth characteristic function being used to enforce the boundary conditions at solid-fluid interface. Based on this idea, two main approaches have been developed to treat the boundary conditions on complex solid surface. The first one is based on a modified multi-component CH system, where one component is initially fixed as a solid phase, and the dynamics of fluid phases can be captured by solving the governing equations for remaining components Yang2023b ; Yang2023a . This approach has been used to capture two/ternary phase flows in arbitrary domains Yang2023b ; Yang2023a , but the CH system dose not satisfy the reduction-consistent property for multiphase flows Yang2023b . Besides, this approach also suffers from another problem, i.e., an obvious shrinkage of the droplet, and it needs to be improved with an interfacial correction technique xia2022 . The second one is to directly reformulate the original governing equations at a larger and regular domain, which are also called the DD equations Li2009SOLVINGPI ; yu2020Higher . This approach establishes the DD equations in both the original and extended domains by using a phase-field parameter that varies continuously across the interface, and some additional source terms are added to enforce different boundary conditions. In addition, by using the matched asymptotic expansion, one can show that the DD equations would converge to the original governing equations and the corresponding boundary conditions on solid surface as the thickness of the DD interface shrinks to zero. Actually, the second DD approach has been successfully utilized to investigate two-phase flows in complex geometries. For instance, Aland et al. Aland2010TwophaseFI first coupled the DD method with the standard diffuse-interface method to study the two-phase flows in complex geometries. Later, Guo et al. Guo2020ADD developed a thermodynamically consistent diffuse-interface model coupled with the DD method for the two-phase flows with large density ratio. Recently, Liu et al. liu2022 proposed a DD based consistent and conservative (DD-CC) phase-field model for two-phase flows in complex geometries, and investigated the effects of the wettability and viscosity ratio on the interfacial dynamics. To the best of our knowledge, however, there is no available DD model that can be used to treat -phase () fluids in contact with complex solid surface, which is mainly caused by the difficulty in enforcing different boundary conditions of multiphase fluids.
To study -phase flows in complex geometries, in this work, we develop a DD based consistent and conservative phase-field model for the first time, which can inherit the advantages of the phase-field method in capturing multiple interfacial dynamics implicitly and keeping the reduction-consistent property and thermodynamic consistency, and the DD method in treating boundary conditions on the irregular solid surface. Furthermore, different from the traditional numerical methods for the DD equations Aland2010TwophaseFI ; Guo2020ADD , here we focus on the mesoscopic lattice Boltzmann (LB) method Chai2020Multiple ; Chai2023Multiple ; Chen1998LATTICEBM ; Krueger2016TheLB ; Succi2001TheLB for its potential advantage in parallel scalability when incorporating complex physics models, and develop a new LB method to solve the DD-CC equations. It is worth noting that compared to classic multiple-relaxation-time (MRT)-LB method Dd2002 , the current LB (hereafter DD-CCLB) method contains the Hermite-monent based collision matrix Chai2023Multiple ; Coreixas2019 ; Krueger2016TheLB with a flexible parameter Chai2023Multiple , which can be used to improve the numerical stability. The rest of this paper is organized as follows. In section 2, the DD-CC equations for the -phase flows in complex geometries are first proposed, followed by the devloped DD-CCLB method in section 3. In section 4, we conduct some simulations to test the present DD-CCLB method, and finally, some conclusions are given in section 5.

II Mathematical equations
II.1 The reduction-consistent Cahn-Hilliard equation for multiphase flows
Based on the phase-field theory for -phase () incompressible and immiscible fluids in an irregular domain , one can define the total mixture free energy for -phase system Boyer2014 ; Dong2018 as
(1) |
where represents the volume fraction of th fluid with the following constraint:
(2) |
In Eq. (1), the first term on the right-hand side is the bulk free energy, and it can be given by with and . The second term is the excess free energy at the interfacial region. Here and are two constant parameters related to the surface tension and the interface width , and can be expressed as and . In addition, the surface tension has the symmetric property, i.e., , with , and . By minimizing the total mixture free energy, we can derive the following expression of the chemical potential,
(3) |
Then the CH equation for multiphase flows can be written as Dong2018
(4) |
where is the mobility. To guarantee the reduction-consistent property, which means when the th fluid (or more fluids) is absent in -phase system, the CH equation for -phase flows should reduce to the one containing -phase flows (), the mobility and are required to be zero when the th fluid is absent. To this end, here we adopt the following expression of mobility ,
(5) |
In addition, this type of could remedy a major defect of droplet shrinkage because the maximum principle property can be preserved in this reduction-consistent equation Acosta-Soba2023 ; Elliott1996 .
When the multiphase fluids are in contact with the solid surface, the wetting boundary condition should be used to account for the effect of the contact angles formed by fluid-fluid interface and solid wall on the interface dynamics. In this work, the following wetting boundary condition with a reduction-consistent property for -phase immiscible fluids is adopted Dong2017 ,
(6) |
Here is the normal vector of solid wall, and the explicit expression of can be given by
(7) |
where is the contact angle formed by fluid-fluid interface of phases and solid wall, and is measured on the side of the th fluid. Additionally, we also introduce () to denote the contact angle between solid wall and fluid-fluid interface formed by the th and th phases, and independent contact angles can be used to calculate by Dong2017 ,
(8) |
II.2 The conservative and consistent Navier-Stokes equations for flow field
For -phase immiscible and incompressible flows in the irregular domain , the Navier-Stokes (NS) equations can be written as Dong2018 ; Huang2020AConsistent
(9a) | |||
(9b) |
where is the fluid density, m is the mass flux, is the kinematic viscosity, is the pressure, is the surface tension force. In the multiphase system, the density and viscosity are usually assumed to be a linear function of the phase-field variable ,
(10) |
where and are the density and viscosity of the th-phase fluid, respectively. To guarantee the consistency of reduction, the consistency of mass and momentum transport, and the consistency of mass conservation Huang2020AConsistent , the mass flux m should be designed as
(11) |
with
(12) |
Here denotes the mass diffusion between different phases. In addition, the no slip boundary condition is imposed on the solid surface.
II.3 The DD equations for multiphase flows in complex geometries
In this section, the DD method is applied to reformulate CC equations (4, 9b) coupled with the boundary conditions in a larger and regular domain Aland2010TwophaseFI ; Guo2020ADD ; Li2009SOLVINGPI ; liu2022 ; yu2020Higher . Through introducing a smooth function to label the diffuse-interface between the fluid and the solid surface, the following DD-CC equations can be obtained
(13a) | |||
(13b) | |||
(13c) | |||
with
(14) | |||
where in the original complex domain , while in , and is used to mark the solid boundary . is the thickness of the diffuse layer. In the larger and regular domain , the boundary conditions, , , and , are imposed on . It is worth mentioning that there is no need to directly handle the complex boundary conditions on . Additionally, with the help of the matched asymptotic analysis, the DD-CC equations can asymptotically converge to the original equations as . Here we only take the DD-CH equation (13a) as an example, and show the details in Appendix B.
III The LB method for DD equations
In this section, we develop a novel and simple LB method for the DD-CC equations (13c). Due to the fact that the mobility (5) is related to , the standard LB method would be unstable when it adopted to the DD-CH equation. To overcome this problem, the diffusion flux is divided into two parts, and , in which the first part containing a constant mobility can be seen as a diffusion term, and the other part can be handled as a source term. Then we propose a new Hermite-moment-based LB method for the DD-CC equations (13c),
(15) | |||
(16) | |||
where and () are the distribution functions for the th-phase field and flow field with being the number of the discrete velocities, and are the corresponding equilibrium distribution functions, and are the distribution functions of the source and force terms. and are the invertible collision matrices with the following forms,
(17) |
where H is the Hermite-moment-based transformation matrix Chai2023Multiple ; Coreixas2019 ; Krueger2016TheLB , and are the relaxation matrices. To recover DD-CH equation (13a), the distribution functions and should be designed properly, and can be given by
(18) |
and
(19) |
where
(20) |
Here is the discrete velocity, is the lattice sound speed, is the weight coefficient satisfying . Usually the weight coefficient is fixed in MRT-LB method, but in the present LB method, is related to a flexible parameter , which can be adjusted to improve the numerical stability and accuracy Chai2023Multiple . To recover DD-NS equations (13b and 13c), the distribution functions and are designed as
(21) |
and
(22) |
where
(23) | |||
(24) |
and
(25) |
where represents the dimension of space and denotes all subscripts except . Through the direct Taylor analysis (see Appendix C for details), the DD-CC equations can be recovered correctly with the following relations,
(26) |
(27) |
where , and are the relaxation parameters appeared in and , respectively. is an adjustable parameter which can be applied to improve the numerical stability for a specified liu2022 . In addition, the macroscopic volume fraction parameter , fluid velocity u, and pressure are calculated by
(28) |
(29) |
(30) | |||
where and for two dimensional problems while and for three-dimensional problems. In our simulations, the D2Q9 lattice model is adopted for both phase and flow fields in two-dimensional problems, while in three-dimensional problems, the D3Q7 and D3Q15 lattice models are used for phase and flow fields, respectively. In the following, the discrete velocity , the weight coefficient , and the relaxation matrix in the Hermite-moment based lattice models are given by Chai2023Multiple
D2Q9:
(31) | ||||
D3Q7:
(32) | ||||
D3Q15:
(33) | ||||
where and .
IV Numerical results and discussion
In this section, four benchmark problems, i.e., the spreading of a single droplet, the spreading of a compound droplet in ternary system, the spreading of a compound droplet in quaternary system on an ideal wall in two-dimensional space, and a compound droplet spreading on a solid sphere in three-dimensional space, are first used to validate the present DD-CCLB method. Then a complex problem, a compound droplet passing through an irregular channel, is applied to demonstrate the capacity of the DD-CCLB method for multiphase flows in complex geometries.
IV.1 The spreading of a single droplet on an ideal wall
We first consider the spreading of a single droplet on an ideal wall, which can be used as a good benchmark to test the reduction-consistent property of the DD-CCLB method. In this numerical experiment, we focus on a ternary-phase system with two fluids ( and ), and the volume fraction of the third phase () is set to be zero. Initially, a semicircular droplet with the radius is deposited on the ideal wall, and some parameters are fixed as , , , where , , , , , , , , , , , , , and the boundary conditions are the same as those in Ref. liu2022 . As seen from Fig. 2, the single droplet can form different steady patterns under different values of the contact angle , and additionally, the present results are also in good agreement with those obtained by the two-phase method () liu2022 . Moreover, we give a quantitative comparison of the contact angle in Table 1, and a good agreement between two different methods is observed, which indicates the present DD-CCLB method keeps the reduction-consistent property well.



IV.2 The spreading of a compound drop in ternary system on an ideal wall
Now we investigate the spreading of a compound droplet () on an ideal wall to test the present DD-CCLB method for the ternary system. In our simulations, two immiscible fluids and with the same radius constitute a semicircular compound drop, which are surrounded by another fluid () and deposited on an ideal wall. The physical domain is divided into , and some parameters are given by , , , with , , , , , , and other parameters are the same as those adopted in the previous problem. We conduct some simulations, and present a comparison with the results in Ref. Liang2019wet , where the spreading of compound droplets on a substrate is studied by using the original governing equations combined the boundary condition (6) for ternary-phase flows. Figure 3 depicts the equilibrium shapes of a compound droplet at various contact angles with a fixed contact angle , and the present numerical results are close to those reported in the previous work Liang2019wet . In addition, to give a quantitative test on the accuracy of the present DD-CCLB method, we also measure the equilibrium spreading lengths of compound droplet, and list the corresponding analytical solutions and available numerical data in Table 2, from which a good agreement between them can be observed.



Numerical | Relative errors | |||||||
---|---|---|---|---|---|---|---|---|
Case | Lengths | Analytical | DD-CCLB, | Liang et al. Liang2019wet | DD-CCLB, | Liang et al. Liang2019wet | ||
1.707 | 1.698 | 1.683 | 0.53% | 1.41% | ||||
1.072 | 1.044 | 1.083 | 2.61% | 1.03% | ||||
1.183 | 1.172 | 1.175 | 0.93% | 0.68% | ||||
1.183 | 1.172 | 1.192 | 0.93% | 0.76% | ||||
0.672 | 0.677 | 0.688 | 0.74% | 2.38% | ||||
1.335 | 1.332 | 1.337 | 0.22% | 0.15% |
IV.3 The spreading of a compound droplet in quaternary system on an ideal wall
We continue to test the DD-CCLB method for multiphase flows through considering the spreading of a compound drop in quaternary system () on an ideal wall. In the physical domain with the lattice size , three semicircular droplets with the same radius are contacted with each other, which are surrounded by the fourth phase and initially placed on an ideal wall. In the following simulations, the parameters are set as , , , , with , , , , . We investigate the effect of the contact angle when are fixed, which leads to according to Eq. (8). From Fig. 4, one can find that the equilibrium shapes of the quaternary-phase compound droplet are different by changing . For example, when , the third phase tends to spread on the wall with a larger spreading length . With the increase of , however, the third phase then begins to shrink on the substrate, and the length decreases. In particular, the compound droplet forms a symmetrical structure in case of . We note that inspired by Zhang2016 , one can obtain the analytical solutions of the spreading lengths under the condition of , and the details can be found in Appendix D. We also list the spreading lengths of the compound droplet with different contact angles in Table 3, and give a comparison among the present numerical results, theoretical solutions, and those based on CCLB method which directly solves the original governing equations combined with the boundary condition (6). From Fig. 4 and Table 3, one can find that the results obtained by different methods agree well with each other, which indicates that the DD-CCLB method is accurate in predicting the contact angle and equilibrium shape of a compound droplet on the ideal wall.



Numerical | Relative errors | |||||||
---|---|---|---|---|---|---|---|---|
Case | Lengths | Analytical | DD-CCLB, | CCLB | DD-CCLB, | CCLB | ||
1.672 | 1.698 | 1.697 | 1.56% | 1.50% | ||||
1.273 | 1.247 | 1.238 | 2.04% | 2.75% | ||||
2.416 | 2.472 | 2.458 | 2.32% | 1.74% | ||||
1.672 | 1.698 | 1.708 | 1.56% | 2.15% | ||||
1.434 | 1.372 | 1.390 | 4.32% | 3.07% | ||||
1.672 | 1.698 | 1.707 | 1.56% | 2.09% | ||||
1.672 | 1.710 | 1.695 | 2.27% | 1.38% | ||||
1.652 | 1.598 | 1.570 | 3.27% | 4.96% | ||||
0.948 | 1.005 | 0.993 | 6.01% | 4.75% |
IV.4 A compound droplet spreading on a solid sphere



The last benchmark problem we consider is a compound droplet spreading on a solid sphere, which is more complicated and can also be used to test the present LB method in predicting the contact angle of multiphase flow in a complex geometry. The schematic of the problem is shown in Fig. 5, where a hemispherical compound droplet composed of blue () and green () fluids is initially placed on a solid sphere, and is immersed in another fluid (). Under the assumption of two fluids ( and ) with the same size, density, viscosity and surface wettability, the compound droplet would eventually form a spherical shape under the action of interfacial tensions, which can be regarded as a single-phase droplet. In this case, we can obtain the asymptotic solution of the equilibrium shape. As seen from Figs. 5 and 5, when the droplet reaches a steady state, the contact angle on spherical convex surface can be given by Extrand2012
(34) |
where with and being the volumes of the compound droplet and the spherical solid covered by the droplet. Actually, it is easy to obtain the initial volume as
(35) |
where is the initial radius of the hemispherical droplet and is the radius of the solid sphere. If is less than the half volume of the solid sphere , see Fig. 5, one can derive its expression as
(36) |
On the contrary, if is larger than the half volume of the solid sphere , see Fig. 5, it can be determined by
(37) |
On the other hand, when the droplet is in equilibrium state with , the volume of the droplet can also be given by
(38) |
where and . Then one can determine the center of the steady droplet through calculating the distance ,
(39) |
From above analysis, we can predict the equilibrium shape of the compound droplet with the asymptotic solution. However, for a ternary-phase flow, there exits a triple point where the interfacial angles are , and , and satisfy the condition . Based on the balance of interfacial angles at the equilibrium state, one can obtain
(40) |
Owing to the fact that and , which can be seen from Figs. 5 and 5, in the following simulations, we choose and to obtain . Some other parameters are set as , , , , , , , , , , , , and . We perform some simulations, and present the numerical (solid curve) and asymptotic (dashed curve) solutions of the equilibrium droplet shape in Fig. 6 where the contact angles are , , and . It is obvious that the numerical results agree well with the asymptotic solutions except for the difference at the triple point. Furthermore, Fig. 7 shows a comparison between the predicted contact angle based on Eq. (34) and the specified contact angle . From this figure, one can find that there is a good agreement between the numerical results and the asymptotic solutions, which illustrates that the DD-CCLB method has a good performance in the study of the multiphase flow in complex solid surface.









IV.5 A compound droplet passing through an irregular channel

Unlike the static-state benchmark problems considered above, in this part, we investigate a compound droplet passing through the wavy channel, which is a typical irregular domain with a complex geometrical shape. The configuration of the problem is given in Fig. 8, where a concentric droplet composed of the red inner droplet with and the blue outer droplet with is located at of the computational domain. Besides, the top and bottom boundaries of the wavy channel are defined by . To reflect the effects of different wetting boundary conditions in the DD-CC equations, we introduce two characteristic functions,
(41) |
(42) |
and then the characteristic function and the source term appeared in the DD-CC equations can be rewritten as
(43) |
and
(44) | |||
In our simulations, a parabolic velocity with the mean velocity is imposed on the inlet and outlet of the channel, and the other parameters are fixed as , , , where , , , , , , . We carry out some simulations, and plot the results in Fig. 9. From this figure, one can see that the compound droplet can be separated in different patterns under different wetting properties of the solid walls. For example, as shown in Fig. 9 where and , the concentric droplet splits into two blue subdroplets adhered to the solid walls and an unbroken red droplet passes through the channel. In contrast, if and [see Fig. 9], the red subdroplets are adhered to the solid walls and the blue droplet can pass through the channel. For the case of and shown in Fig. 9, the red and blue droplets can be split from the concentric droplet and then adhered to the top and bottom walls, respectively.



V Conclusions
In this paper, we first developed a DD based conservative and consistent phase-field model for the multiphase flows in complex geometries, which can handle the topological changes of the fluid-fluid interface as well as the irregular fluid-solid interface with different wettability properties. Then we proposed a new LB method for the DD-CC equations and tested the method by four benchmark problems. It is found that the present results are in good agreement with analytical solutions and/or numerical results based on other numerical methods, which illustrates that the DD-CCLB method has a good ability in capturing the multiphase interfacial changes and treating the complex boundary on the irregular solid surface. Finally, the present LB method is also used to study a compound droplet passing through an irregular channel, and the results show that the compound droplet can be separated in different forms under different wetting properties of the solid walls. In a future work, we will consider the DD-CCLB method for the multiphase flows in porous media, which is a more complicated problem and also important in many different fields (e.g., enhanced oil recovery).
Acknowledgements
The computation is completed in the HPC Platform of Huazhong University of Science and Technology. This work is financially supported by the National Natural Science Foundation of China (Grants No. 12072127 and No. 51836003) and the Fundamental Research Funds for the Central Universities, HUST (No. 2021JYCXJJ010).
Appendix A Appendix: The Chapman-Enskog analysis of the LB model for the hybrid AC equation
Appendix B The matched asymptotic analysis on the DD-CH equations
Now we perform a matched asymptotic analysis to show that the DD-CH equation (13a) could converge to the CH equation (4) with the boundary conditions (6) as the interface width parameter tends to zero. First, the DD variable , which represents u, or , can be expanded in the powers of in regions close to the boundary (inner expansion) and far from the boundary (outer expansion). On each side far from the domain boundary , there exists an outer expansion for the variable ,
(A.1) |
where denotes the inside with , and represents the outside with . Under the assumption of the boundary conditions on a larger and regular domain , and , we can show that satisfies the original equations automatically. For the case of , inserting the expansion (A.1) into Eqs. (13a) and (14), one can get
(A.2a) | |||
(A.2b) |
If satisfies the corresponding boundary condition (6) on , is the unique solution of CH equation, which means that the CH equation can be recovered by the DD-CH equation at the leading order .
Then, we conduct the inner expansion for associated with local coordinate variables and s as
(A.3) |
where as , and as . In a overlapped region where both expansions are valid, the following asymptotic matching conditions at the first two leading orders can be derived,
(A.4) | |||
At the leading order , one can obtain
(A.5) |
(A.6) |
At the next order , we have
(A.7) |
(A.8) |
Integrating above equations from to with respect to , one can obtain
(A.9) |
Using the matching condition (A.4), we can derive
(A.10) |
The outer solutions and satisfy the original boundary conditions (6), which indicates the DD-CH equation can recover the original CH equation at the leading order.
Appendix C The direct Taylor expansion of the DD-CCLB method for the DD-CC equations
We now carry out the direct Taylor expansion of Eqs. (15) and (16) to derive the DD-CC equations (13c). First, we apply the Taylor expansion to the left hand sides of Eqs. (15) and (16) Chai2020Multiple ; Chai2023Multiple ; Chen1998LATTICEBM ; Krueger2016TheLB ; Succi2001TheLB ,
(B.1) |
(B.2) |
where . Based on above equations, and , we can find and . According to Eqs. (B.1) and (B.2), the following equations at different orders of can be obtained,
(B.3) | |||
(B.4) | ||||
From Eqs. (18), (19), (21) and (22), one can see that , , , and satisfy the following conditions,
(B.5a) | |||
(B.5b) | |||
(B.5c) | |||
(B.5d) | |||
(B.5e) |
where is the relaxation parameter, and are two and invertible relaxation matrices, is a second-order tensor to be determined below. and is defined by with , otherwise . In addition, from Eqs. (B.4), (B.5d) and (B.5e), we have
(B.6) |
Summing Eq. (B.3) over , one can obtain
(B.7) | ||||
With the aid of Eq. (B.3), we can determine as
(B.8) |
Combining Eq. (B.7) with , yields Eq. (13a) at the order of . Following the same way, summing Eq. (B.4) and Eq. (B.4), one can obtain
(B.9) |
(B.10) | ||||
With the help of Eq. (B.4), we can rewrite Eq. (B.10) as
(B.11) | ||||
In addition, from Eqs. (B.5a), (B.5d) and (B.5e), we get
(B.12) | ||||
then we mark , , and , and they can be calculated by
(B.13) | ||||
By taking the following expression of ,
(B.14) |
and substituting Eq. (B.13) into Eq. (B.11), and this equation can be rewritten as
(B.15) |
where
(B.16) |
Thus the macroscopic incompressible DD-NS equations can be recovered at the order of with
(B.17) |
Appendix D The computation of Pressure
Appendix E Analytical solution of the equilibrium shape of a quaternary-phase compound drop
The analytical solution for the shape of a compound drop on the idea wall can be derived based on the mass conservation and force balance. Now we give some details on how to derive the analytical solution. Under the assumption of , the equilibrium shape of the quaternary-phase compound drop is shown in Fig. 10, where some variables about the angles are denoted by , and the lengths of and are set as . According to the definition of the contact angle, we can easily obtain the following relations,
(D.1) | |||
When the initial radius of a compound droplet is given, the initial areas of three droplets can be obtained by , then we can derive the expression of the areas of the circular segments:
(D.2) | ||||
In addition, the areas of the triangles , , and the trapezoid can be determined by
(D.3) | ||||
Therefore, the following equivalence relations of the areas of the compound droplet hold
(D.4) | ||||
If the physical quantities , , , , , and are fixed, Eqs. (D.1) and (D.4) constitute a closed system for the variables , and their solutions can thus be uniquely determined. When these variables are given, the analytical shape of the compound drop at equilibrium can also be uniquely determined. Then the spreading lengths of phases 1, 2, 3 denoted by , , and can be expressed as
(D.5) | ||||
The solutions of these equations cannot be given explicitly, and we choose to numerically solve them by using the Newton iteration method and show some results in Table 3.
References
- (1) D. Acosta-Soba, F. Guillén-González, and J. Rodríguez-Galván, An upwind DG scheme preserving the maximum principle for the convective Cahn-Hilliard model, Numer. Algorithms, 92 (2023), pp. 1589–1619.
- (2) S. Aland, J. Lowengrub, and A. Voigt, Two-phase flow in complex geometries: A diffuse domain approach, Comput. Model. Eng. Sci., 57 (2010), pp. 77–106.
- (3) F. Boyer and S. Minjeaud, Hierarchy of consistent n-component Cahn-Hilliard systems, Math. Models Methods Appl. Sci., 24 (2014), pp. 2885–2928.
- (4) J. Cahn and J. Hilliard, Free energy of a non-uniform system I. Interfacial free energy, J. Chem. Phys., 28 (1958), pp. 258–367.
- (5) Z. Chai and B. Shi, Multiple-relaxation-time lattice Boltzmann method for the Navier-Stokes and nonlinear convection-diffusion equations: Modeling, analysis, and elements, Phys. Rev. E, 102 (2020), p. 023306.
- (6) Z. Chai, X.Yuan, and B. Shi, Rectangular multiple-relaxation-time lattice boltzmann method for the Navier-Stokes and nonlinear convection-diffusion equations: General equilibrium and some important issues, Phys. Rev. E, 108 (2023), p. 015304.
- (7) S. Chen and G. Doolen, Lattice Boltzmann method for fluid flows, Annu. Rev. Fluid Mech., 30 (1998), pp. 329–364.
- (8) X. Chen and G. Hu, Multiphase flow in mircrofluidic devices, Adv. Appl. Mech., 45 (2015), p. 201503.
- (9) C. Coreixas, B. Chopard, and J. Latt, Comprehensive comparison of collision models in the lattice Boltzmann framework: Theoretical investigations, Phys. Rev. E, 100 (2019), p. 033305.
- (10) D. d’Humières, Multiple-relaxation-time lattice boltzmann models in three dimensions, Philos. Trans. R. Soc. London A, 360 (2002), p. 437.
- (11) S. Dong, Wall-bounded multiphase flows of N immiscible incompressible fluids: Consistency and contact-angle boundary condition, J. Comput. Phys., 338 (2017), pp. 21–67.
- (12) S. Dong, Multiphase flows of N immiscible incompressible fluids: A reduction-consistent and thermodynamically-consistent formulation and associated algorithm, J. Comput. Phys., 361 (2018), pp. 1–49.
- (13) C. Elliott and H. Garcke, On the Cahn–Hilliard equation with degenerate mobility, SIAM J. Math. Anal., 27 (1996), pp. 404–423.
- (14) C. Extrand and S. Moon, Indirect methods to measure wetting and contact angles on spherical convex and concave surfaces, Langmuir, 28 (2012), p. 7775.
- (15) H. Gan, X. Shan, T. Eriksson, B. Lok, and Y. Lam, Reduction of droplet volume by controlling actuating waveforms in inkjet printing for micro-pattern formation, J. Micromech. Microeng., 19 (2009), p. 055010.
- (16) Z. Guo, F. Yu, P. Lin, S. Wise, and J. Lowengrub, A diffuse domain method for two-phase flows with large density ratio in complex geometries, J. Fluid Mech., 907 (2021), p. A38.
- (17) Z. Huang, G. Lin, and A. M. Ardekani, Consistent, essentially conservative and balanced-force phase-field method to model incompressible two-phase flows, J. Comput. Phys., 406 (2020), p. 109192.
- (18) T. Krüeger, H. Kusumaatmaja, A. Kuzmin, O. Shardt, G. Silva, and E. M. Viggen, The Lattice Boltzmann Method: Principles and Practice, Springer, Switzerland, 2017.
- (19) W. Li, R. Vigil, I. Beresnev, P. Iassonov, and R. Ewing, Vibration-induced mobilization of trapped oil ganglia in porous media: Experimental validation of a capillary-physics mechanism, J. Colloid Interface Sci., 289 (2005), pp. 193–199.
- (20) X. Li, J. Lowengrub, A. Rätz, and A. Voigt, Solving PDEs in complex geometries: A diffuse domain approach, Commun. Math. Sci., 7 (2009), pp. 81–107.
- (21) H. Liang, J. Xu, J. Chen, Z. Chai, and B. Shi, Lattice boltzmann modeling of wall-bounded ternary fluid flows, Appl. Math. Model., 73 (2019), pp. 487–513.
- (22) X. Liu, Z. Chai, C. Zhan, B. Shi, and W. Zhang, A diffuse-domain phase-field lattice Boltzmann method for two-phase flows in complex geometries, Multiscale Model. Simul., 20 (2022), pp. 1411–1436.
- (23) J. Lowengrub and L. Truskinovsky, Quasi-incompressible Cahn-Hilliard fluids and topological transitions, R. Soc. Lond. Proc. Ser. A Math. Phys. Eng. Sci., 454 (1998), pp. 2617–2654.
- (24) J. Shen, Modeling and numerical approximation of two-phase incompressible flows by a phase-field approach, Multiscale Modeling and Analysis for Materials Simulation, Lect. Notes Ser. Inst. Math. Sci. Natl. Univ. Singap. 22, 2011.
- (25) S. Succi, The Lattice Boltzmann Equation for Fluid Dynamics and Beyond, Oxford: Clarendon Press, 2001.
- (26) Q. Xia, J. Kim, and Y. Li, Modeling and simulation of multi-component immiscible flows based on a modified Cahn-Hilliard equation, Eur. J. Mech. B, Fluids, 97 (2022), pp. 194–204.
- (27) J. Yang, Y. Li, and J. Kim, Modified multi-phase diffuse-interface model for compound droplets in contact with solid, J. Comput. Phys., 491 (2023), p. 112345.
- (28) J. Yang, Z. Tan, J. Wang, and J. Kim, Modified diffuse interface fluid model and its consistent energy-stable computation in arbitrary domains, J. Comput. Phys., 488 (2023), p. 112216.
- (29) F. Yu, Z. Guo, and J. Lowengrub, Higher-order accurate diffuse-domain methods for partial differential equations with dirichlet boundary conditions in complex, evolving geometries, J. Comput. Phys., 406 (2020), p. 109174.
- (30) C. Zhang, H. Ding, P. Gao, and Y. Wu, Diffuse interface simulation of ternary fluids in contact with solid, J. Comput. Phys., 309 (2016), pp. 37–51.