1. Introduction
In the normal diffusion process, solutes move from a region of higher concentration to a region of lower concentration if the solution is dilute (Wesselingh & Krishna Reference Wesselingh and Krishna2000). The normal diffusion obeys Fick's law of diffusion, so it is also called Fickian diffusion. Fick's law is usually applicable for the solute diffusion in the single-phase fluid that may consist of multiple solvents. When the solvent consists of two-phase immiscible fluids, the solute movement from one fluid with lower solute concentration to the other with higher solute concentration may take place due to different solubility characteristics of the solute in two solvent fluids. This is called active diffusion, which is a universal phenomenon in nature and industry (Hass & Fine Reference Hass and Fine2010; Drechsler et al. Reference Drechsler, Giavazzi, Cerbino and Palacios2017; von den Driesch et al. Reference von den Driesch, Wirths, Troitsch, Mussler, Breuer, Moutanabbir, Grützmacher and Buca2020; Guzmán-Lastra, Löwen & Mathijssen Reference Guzmán-Lastra, Löwen and Mathijssen2021; Watson et al. Reference Watson, Schuster, Shutler, Holding, Ashton, Landschützer, Woolf and Goddijn-Murphy2020). For example, as an important greenhouse gas, CO$_2$ released through human activities has been raising the global temperature, and in turn the temperature increase makes more CO$_2$ originally stored in oceans transfer into the atmosphere. This thermally activated diffusion process of CO$_2$ influences drastically the global climate change (Watson et al. Reference Watson, Schuster, Shutler, Holding, Ashton, Landschützer, Woolf and Goddijn-Murphy2020). In biology, mass transfer between cells is often accomplished via a delicate process of active diffusion and advection (Drechsler et al. Reference Drechsler, Giavazzi, Cerbino and Palacios2017). As a common phenomenon occurring in biology and material science, mass transfer through semi-permeable or conducting interfaces (Johansson et al. Reference Johansson, Svensson, Martensson, Samuelson and Seifert2005; Gong, Gong & Huang Reference Gong, Gong and Huang2014) can be attributed to specific active diffusion; an example is the regulation of intracellular ion concentrations in living cells despite the changes of concentrations in extracellular spaces. In industry, the removal and extraction of one material can be achieved by the use of its preference for specific solvents (Hass & Fine Reference Hass and Fine2010).
Due to its critical importance, mathematical models and numerical simulation of solute diffusion in multiple solvent fluids have been an attractive topic. In the works of Gong et al. (Reference Gong, Gong and Huang2014) and Wang et al. (Reference Wang, Gong, Sugiyama, Takagi and Huang2020a), the immersed boundary methods have been developed to model and simulate mass transfer through permeable interfaces interacting with the surrounding fluids under large moving deformations, and in particular, an additional equation has been introduced to describe the temporal evolution of advective and diffusive fluxes across the interfaces. A thermodynamically consistent phase-field model (Qin et al. Reference Qin, Huang, Zhu, Liu and Xu2022) has been proposed to describe mass transfer across permeable moving interfaces; it considers the restricted diffusion problems where the diffusive flux across the interfaces depends on the conductance and concentration difference on each side. The above works follow with interest the active diffusion of mass transfer through porous membranes, in which the membranous interfaces have a critical influence on forming the contrast of concentrations of the substances in internal and external parts of the interfaces. There have been only a few works that use the phase-field models to describe universal active diffusion processes of solutes in two immiscible and incompressible fluids with different densities. This work concerns modelling and numerical simulation of such active diffusion problems using a thermodynamically consistent phase-field model.
The phase-field approach (Anderson, McFadden & Wheeler Reference Anderson, McFadden and Wheeler1998; Kim Reference Kim2012) has been employed extensively to model a variety of multiphase fluid and fluid–structure problems through the use of diffuse interfaces (Cahn & Hilliard Reference Cahn and Hilliard1958; Cahn & Allen Reference Cahn and Allen1977; Boyer Reference Boyer2002; Shen & Yang Reference Shen and Yang2010; Gomez & Hughes Reference Gomez and Hughes2011; Shen, Yang & Wang Reference Shen, Yang and Wang2013; Guo et al. Reference Guo, Lin, Lowengrub and Wise2017; Yu & Yang Reference Yu and Yang2017; Zhu et al. Reference Zhu, Kou, Yao, Wu, Yao and Sun2019). A key ingredient of phase-field models is to introduce proper free-energy functionals to characterize phase properties and behaviours. This allows a phase-field model to satisfy a specific energy dissipation law that is a direct consequence of the second law of thermodynamics for the isothermal system (Kou & Sun Reference Kou and Sun2018a,Reference Kou and Sunb). The phase-field approach has been applied successfully to model the solute transport in two-phase flow. One main focus of attention is to model surfactants soluble in two fluids (e.g. oil and water) (van der Sman & van der Graaf Reference van der Sman and van der Graaf2006; Engblom et al. Reference Engblom, Do-Quang, Amberg and Tornberg2013; Garcke, Lam & Stinner Reference Garcke, Lam and Stinner2014; Zhu et al. Reference Zhu, Kou, Yao, Wu, Yao and Sun2019). Surfactants can reduce the interfacial tension, thereby greatly affecting the dynamics of binary fluids; for instance, the use of surfactants can enhance the oil recovery rate significantly. van der Sman & van der Graaf (Reference van der Sman and van der Graaf2006) proposed a diffuse interface model with surfactant adsorption based on a free-energy functional. Garcke, Lam & Stinner (Reference Garcke, Lam and Stinner2014) derived the comprehensive phase-field models of two-phase flow incorporating a soluble surfactant in a thermodynamically consistent way, which can provide deep understanding of impacts of surfactants on coalescence and segregation of droplets. A thermodynamically consistent model of two-phase flows with soluble surfactants and moving contact line has been derived further by Zhu et al. (Reference Zhu, Kou, Yao, Wu, Yao and Sun2019). Although the solute transport is usually described by the convection–diffusion equations, modelling of the solute active diffusion demands specific free-energy functions. In order to characterize the active diffusion of solutes, we propose a mixed free-energy function for the solutes, which takes different energy parameters in different solvent fluids. This leads to a contrast between the solute chemical potentials in binary fluids despite the same solute concentrations. In other words, at the equilibrium state, the solute chemical potentials are equal in binary solvent fluids, whereas the solute concentration in one solvent fluid may be higher than that in the other fluid. Thus the proposed mixed free-energy has the ability to reflect the solubility difference of the solutes in two fluids. Moreover, we consider the solute composed of multiple substances and establish a general multi-component solute diffusion model using the Maxwell–Stefan approach (Wesselingh & Krishna Reference Wesselingh and Krishna2000), which takes into consideration the crossing influences between different solutes.
For real two-phase flow, there is generally a density contrast between two different fluids, so general phase-field models should take this property into consideration. Several phase-field models with different densities have been developed in the literature (Anderson et al. Reference Anderson, McFadden and Wheeler1998; Lowengrub & Truskinovsky Reference Lowengrub and Truskinovsky1998; Boyer Reference Boyer2002; Ding, Spelt & Shu Reference Ding, Spelt and Shu2007; Shen & Yang Reference Shen and Yang2010; Shen et al. Reference Shen, Yang and Wang2013; Liu, Shen & Yang Reference Liu, Shen and Yang2015; Roudbari et al. Reference Roudbari, Simsek, van Brummelen and van der Zee2018; Haddada & Tierra Reference Haddada and Tierra2022). There are two kinds of models used popularly in the literature. The first is the model (Abels, Garcke & Grün Reference Abels, Garcke and Grün2012) that uses the volume-averaged velocity and involves a mass diffusion flux in the momentum balance equation to guarantee the thermodynamical consistency. The others are the models based on the mass-averaged velocity (Shen et al. Reference Shen, Yang and Wang2013; Aki et al. Reference Aki, Dreyer, Giesselmann and Kraus2014; Li & Wang Reference Li and Wang2014), which are the models used most commonly due to the feature that the standard mass conservation equation can be derived naturally using the mass-averaged velocity. The above models have different formulations due to different choices of averaged velocities. Recently, a general phase-field model has been proposed by Kou et al. (Reference Kou, Wang, Zeng and Cai2020b), which features a unified formulation for different averaged velocities, but the solute transport has never been considered. In this paper, the proposed model is established combining the solute transport equations with the general phase-field model (Kou et al. Reference Kou, Wang, Zeng and Cai2020b) to account for two fluids with different densities. Moreover, the proposed model is proved rigorously to follow an energy dissipation law, thus it is thermodynamically consistent.
It is quite challenging to develop efficient energy-stable numerical methods for the phase-field models with different densities. There have been great efforts made for this topic in recent years (Shen & Yang Reference Shen and Yang2010; Grün & Klingbeil Reference Grün and Klingbeil2014; Chen & Shen Reference Chen and Shen2016; Guo et al. Reference Guo, Lin, Lowengrub and Wise2017; Yu & Yang Reference Yu and Yang2017; Gong et al. Reference Gong, Zhao, Yang and Wang2018; Roudbari et al. Reference Roudbari, Simsek, van Brummelen and van der Zee2018; Yang & Zhao Reference Yang and Zhao2019). It is recognized universally that numerical methods need to preserve the energy dissipation law at the discrete level so as to remove any restriction on the time step size as well as reduce spurious numerical solutions in practical simulations. In addition, mass conservation is required essentially for numerical methods as well since the large density contrast between binary fluids may cause serious mass loss (Yue, Zhou & Feng Reference Yue, Zhou and Feng2007; Aland & Voigt Reference Aland and Voigt2012; Ding & Yuan Reference Ding and Yuan2014; Wang et al. Reference Wang, Shu, Shao, Wu and Niu2015; Guo et al. Reference Guo, Lin, Lowengrub and Wise2017). The energy-stable and mass-conservative numerical methods (Guo et al. Reference Guo, Lin, Lowengrub and Wise2017) have been developed for the quasi-incompressible model (Lowengrub & Truskinovsky Reference Lowengrub and Truskinovsky1998). An energy-stable finite element numerical scheme (Grün & Klingbeil Reference Grün and Klingbeil2014) has been designed for the model proposed by Abels et al. (Reference Abels, Garcke and Grün2012). Several energy-stable numerical approximations of two classes of hydrodynamic phase-field models (Shen & Yang Reference Shen and Yang2010; Abels et al. Reference Abels, Garcke and Grün2012) have been proposed by Gong et al. (Reference Gong, Zhao, Yang and Wang2018). In the proposed model, the solute concentrations are fully coupled with the phase variable and velocity. Moreover, the model consists of a highly nonlinear system of partial differential equations. Hence it is a challenge to design efficient numerical methods for the proposed model. In this paper, we propose an energy-stable and mass-conservative numerical method for the proposed model through decoupling the tight relationships between the solute concentrations, the phase variable and velocity. Moreover, the proposed scheme is linearized and decoupled, thus it is easy to implement.
We now highlight the main contributions of this paper as follows.
(i) A thermodynamically consistent phase-field model for the activated solute transport in binary fluids is derived using the second law of thermodynamics. The solute transport equations are coupled with the general model of binary immiscible solvent fluids with different densities.
(ii) A mixed free-energy function for multiple solutes is proposed to characterize the solubility difference of the solutes in two solvents. Different from the solute free energies (van der Sman & van der Graaf Reference van der Sman and van der Graaf2006; Engblom et al. Reference Engblom, Do-Quang, Amberg and Tornberg2013; Garcke, Lam & Stinner Reference Garcke, Lam and Stinner2014; Zhu et al. Reference Zhu, Kou, Yao, Wu, Yao and Sun2019), the proposed free energy yields different solute chemical potentials in binary solvent fluids, thus it has the ability to describe the active diffusion processes.
(iii) The modified Maxwell–Stefan equations are presented to take into consideration the crossing influences between different solutes, and the resulting diffusion coefficient matrix is symmetric positive definite and consistent with Onsager's reciprocal principle and the second law of thermodynamics.
(iv) An efficient, linearized, decoupled and energy-stable numerical method is developed to solve the proposed model. The method is proved to conserve the masses of both solutes and solvents as well as preserve the energy dissipation law at the semi-discrete and fully discrete levels.
The rest of this paper is organized as follows. In § 2, we introduce the free-energy functionals and derive the phase-field model with active diffusion using the second law of thermodynamics. In § 3, we design a linearized, decoupled, mass-conservative and energy-stable numerical method. A series of numerical experiments is carried out in § 4 to verify and validate the proposed model and numerical method. Finally, some concluding remarks are provided in § 5.
2. Mathematical model
In this section, we introduce the free energies and then derive a thermodynamically consistent model of active diffusion in two-phase immiscible and incompressible fluids. The immiscible and incompressible two-phase fluids are the solvents, and the solute is a multi-component mixture consisting of $N$ chemical substances. We use $\phi$ to denote the phase variable, which stands for the volume fraction of one phase, thereby taking values between 0 and 1. Let $c_l$ be the concentration of solute component $l$, where $1\leq l\leq N$. We also denote $\boldsymbol {c}=[c_1,\ldots,c_N]^{\rm T}$ and $c=\sum _{l=1}^Nc_l$.
2.1. Free energies
In order to describe the active diffusion of the solute mixture in binary fluids, we introduce the free-energy function
where $\alpha _l$, $\beta _l$, $\gamma _l$ and $\delta _l$ are the energy parameters. The solute chemical potentials are defined as the partial derivatives of the free-energy function:
Physically, $\alpha _l c_l(\ln (c_l)-1-\gamma _l)$ and $\beta _l c_l(\ln (c_l)-1-\delta _l)$ represent the solute component free-energy functions in two different solvent fluids, each of which results from the ideal gas equation of state and is usually used to describe the conventional diffusion process in the respective bulk fluid. The parameters rely generally on the solubility of the component in two fluids under specific physical and chemical conditions, and they usually take different values for different solvent fluids. When the solute concentrations are homogeneous in binary fluids, there may still be contrasts of solute chemical potentials in two fluids, which make the solutes transfer from one solvent fluid to the other. This leads to the so-called active diffusion. At the equilibrium state, the chemical potentials of each solute component in binary fluids are the same, but the solute concentrations in two fluids may be different. This is the underlying mechanics that the mixed free energy is able to characterize the active diffusion of each solute in binary fluids.
Patankar (Reference Patankar2016) established the equations for the solute equilibrium and the phase equilibrium. The logarithmic chemical potentials were introduced by Patankar (Reference Patankar2016) to formulate the equilibrium equations, and the chemical potentials (2.2) can be viewed as their extensions with considerations of binary solvents and multiple solutes. Typically, the chemical potentials of a substance in two solvents must be equal at equilibrium (Patankar Reference Patankar2016). As a result, the equilibrium condition can be expressed as
where $c_l^1$ and $c_l^2$ are the equilibrium concentrations of solute $l$ in two bulk solvents. If $\alpha _l\neq \beta _l$ or $\gamma _l\neq \delta _l$, then at the equilibrium state, there will be a solute concentration contrast in two bulk solvents.
We now discuss several special cases of a single-component solute and also omit the subscripts in (2.1)–(2.3). Since the parameters $\alpha$ and $\beta$ usually rely on the temperature, the thermally activated diffusion can be modelled taking different values for $\alpha$ and $\beta$. The parameters $\gamma$ and $\delta$ reflect the equilibrium-state solute concentrations in two solvent fluids, so they can be adjusted to characterize the contrast of ion concentrations in intracellular and extracellular regions. In particular, if the solute has the same diffusion properties in two solvent fluids, then the proposed active diffusion can be reduced to Fick's diffusion. As a matter of fact, taking $\alpha =\beta =1$ and $\gamma =\delta =0$, the chemical potential (2.2) becomes $\mu _c= \ln (c)$, and we deduce from (2.32), which will be derived in § 2.2, that the diffusion flux $\boldsymbol {J}_c$ is proportional to the concentration gradient as
which is Fick's diffusion law, and ${\mathcal {D}}$ becomes the Fickian diffusion coefficient. Thus the proposed active diffusion model is an extension of Fick's diffusion in the two immiscible fluid solvents.
The free-energy functional $F(\phi,\boldsymbol {\nabla } \phi )$ for the phase variable is composed of two terms:
where $\sigma$ represents the interfacial tension between binary fluids, and $\epsilon$ is the interface thickness. The bulk free energy for the phase variable can be expressed commonly by the double-well potential
or the logarithmic Flory–Huggins energy potential
where $\theta >2$ is the energy parameter (Wells, Kuhl & Garikipati Reference Wells, Kuhl and Garikipati2006; Wang, Kou & Cai Reference Wang, Kou and Cai2020b). The chemical potential of the phase variable is defined as the variational derivative of the free-energy functional $F$:
2.2. Model derivation
In what follows, we will derive the complete phase-field model using the second law of thermodynamics. Here, for a regular spatial domain $\varOmega$, we use the traditional notations to denote by $(\cdot,\cdot )$ and $\|\cdot \|$ the inner product and the norm of $L^2(\varOmega )$, $(L^2(\varOmega ))^d$ and $(L^2(\varOmega ))^{d\times d}$, where $d$ is the spatial dimension.
We start with the model derivation on the basis of the following mass conservation equations and incompressibility of fluids:
where $\boldsymbol {u}$ is the mixture-averaged velocity, and $\boldsymbol {J}_{c,l}$ and $\boldsymbol {J}_\phi$ are the diffusion fluxes that will be determined later. In (2.12), $\lambda =1-\varsigma$, where $\varsigma$ is a dimensionless parameter.
In practice, there are several measures to quantify the flow rate of multiphase multi-component flow. The measured velocity of multiphase multi-component flow is usually some kind of averaged velocity – for instance, mass-averaged velocity, volume-averaged velocity and molar-averaged velocity, depending upon the experimental methodology favoured in different scientific and industrial fields. We note that (2.12) can account for different averaged velocities. Indeed, $\phi$ stands for the volume fraction of one phase, and let $\phi _2$ denote the volume fraction of the other phase; then we have $\phi +\phi _2=1$ due to the immiscibility. Similar to (2.11), we have the mass balance equation
If $\boldsymbol {u}$ is the volume-averaged velocity, then adding (2.11) and (2.13) together should yield
which implies that $\boldsymbol {J}_\phi +\boldsymbol {J}_{\phi _2}=0$, namely, $\boldsymbol {J}_{\phi _2}=-\boldsymbol {J}_\phi$; in this case, $\lambda =0$ and $\varsigma =1$. Let $\varrho _1$ and $\varrho _2$ stand for the respective densities of two fluids, and $\rho =\phi \varrho _1+(1-\phi )\varrho _2$. If $\boldsymbol {u}$ is the mass-averaged velocity, then we have
which implies that $\varrho _1\boldsymbol {J}_\phi +\varrho _2\boldsymbol {J}_{\phi _2}=0$ or $\boldsymbol {J}_{\phi _2}=-({\varrho _1}/{\varrho _2})\boldsymbol {J}_\phi$; in this case, $\lambda =1-{\varrho _1}/{\varrho _2}$, $\varsigma ={\varrho _1}/{\varrho _2}$, and adding (2.11) and (2.13) together yields
From the above analysis, we can assume the relation $\boldsymbol {J}_{\phi _2}=-\varsigma \boldsymbol {J}_\phi$ in general for different averaged velocities. For instance, $\varsigma =1$ yields the volume-averaged velocity, while $\varsigma ={\varrho _1}/{\varrho _2}$ implies the mass-averaged velocity. Moreover, $\varsigma ={n_1}/{n_2}$ implies the mole-averaged velocity, where $n_1$ and $n_2$ stand for mole densities of two fluids. As a result, different choices of $\varsigma$ can represent different types of averaged velocities, and consequently, (2.12) is quite general.
We assume that the solution is dilute and the dissolved substances in binary fluids have no perceptible effect on the volume and density of the mixture. The mixture density is expressed as $\rho =\phi \varrho _1+(1-\phi )\varrho _2$, where $\varrho _1$ and $\varrho _2$ stand for the respective densities of the two fluids. The mass conservation equation of the mixture can be derived from (2.11) and (2.12) as
where $\chi =\varrho _1-\varsigma \varrho _2$.
As pointed out by Brenner (Reference Brenner2009a,Reference Brennerb, Reference Brenner2013), the general physical principles will not be violated if the mass velocity $\boldsymbol {v}_m$ appearing in the continuity equation differs from the momentum velocity $\boldsymbol {v}_a$ appearing in the momentum balance equation, and the kinetic energy velocity $\boldsymbol {v}_k$ appearing in the energy equation. This finding yields the bi-velocity hydrodynamical models (Brenner Reference Brenner2009a,Reference Brennerb, Reference Brenner2013). In this work, we take $\boldsymbol {v}_a=\boldsymbol {v}_k=\boldsymbol {u}$ and define a general mass velocity $\boldsymbol {v}_m=\boldsymbol {u} + \chi \rho ^{-1} \boldsymbol {J}_\phi$. Then (2.17) is rewritten as
which is the general continuity equation. We will show that the proposed model with the above choices of different velocities obeys the second law of thermodynamics.
We define the total solute free energy ($\mathcal {A}$), total phase free energy ($\mathcal {F}$), total kinetic energy ($\mathcal {U}$) and total gravitational potential energy ($\mathcal {G}$) in the domain $\varOmega$ as
where $g$ is the gravitational acceleration and $z$ is the height above a given reference plane.
The entropy equation for an isothermal fluid system (Kou & Sun Reference Kou and Sun2018a,Reference Kou and Sunb) can be expressed as
where $S$ is the total entropy, $T$ is the temperature, and the last term represents the work done by the stress tensor ($\boldsymbol \sigma$).
For the boundary conditions, we assume that all boundary terms will vanish when integrating by parts is performed – for example, the periodic boundary conditions and homogeneous Neumann boundary conditions.
Taking into account (2.10) and (2.11), we derive the variance of total solute free energy with time as
The variance of total phase free energy with time is
The variance equations of kinetic energy and gravitational potential energy with time are derived using (2.17) as
where $\boldsymbol{\mathsf{g}} =-\boldsymbol {\nabla } z$. We split the total stress $\boldsymbol \sigma$ into two parts:
where $p$ is the reversible part, i.e. the pressure, $\boldsymbol {I}$ is the identity tensor, and $\boldsymbol \sigma _{irrev}$ is the irreversible part. Thanks to (2.12), we derive
Substituting (2.21)–(2.24) and (2.26) into (2.20), we can deduce that
Galilean invariance yields from (2.27) that
For the irreversible system, in terms of Newtonian fluid theory, we have
where $\eta$ is the fluid viscosity depending on $\phi$. The diffusion flux $\boldsymbol {J}_\phi$ should take the form
where $M_\phi (\phi )$ is the coefficient dependent on $\phi$. For the solute mixture, there exists an $N\times N$ phenomenological coefficient matrix
such that
According to the famous Onsager's reciprocal principle, $\boldsymbol {\mathcal {D}}$ should be symmetric. Substituting (2.28), (2.29), (2.30) and (2.32) into (2.27), we deduce that
To obey the second law of thermodynamics, i.e. $T({\partial S}/{\partial t})\geq 0$, the matrix $\boldsymbol {\mathcal {D}}$ should be symmetric positive semi-definite.
2.3. Model equations
The proposed model can be summarized as follows:
In (2.34), $\lambda =1-\varsigma$, $\chi =\varrho _1-\varsigma \varrho _2$, and $\varsigma$ is a given dimensionless parameter that represents the type of averaged velocity. The chemical potentials $\mu _c$, $\mu _{c\phi }$ and $\mu _\phi$ are given in (2.2), (2.3) and (2.9), respectively. Here, we take $\eta (\phi )=\phi \eta _1+(1-\phi )\eta _2$, where $\eta _1$ and $\eta _2$ are the viscosities of the two solvent fluids. As (2.34) shows, if $c_l=0$ in both phases, then the system (2.34) reduces to the regular phase-field model for which ample verification exercises can be found in our previous work (Kou et al. Reference Kou, Wang, Zeng and Cai2020b). Equation (2.34f) is the conservative form of the momentum balance equation, which is obtained by combining (2.28) and (2.17).
A simple form of $\boldsymbol {\mathcal {D}}$ is taken as a diagonal matrix with the principal diagonal elements ${\mathcal {D}}_{l,l}=D_{l}c_l$, where $D_{l}>0$. A general choice of $\boldsymbol {\mathcal {D}}$ can be obtained using the Maxwell–Stefan approach, which takes into consideration the crossing influences between different solutes.
The solute transport equations are generally expressed as
where $\boldsymbol {u}_l$ is the velocity of solute $l$. Let us define $\boldsymbol {J}_{c,l}=c_l(\boldsymbol {u}_l-\boldsymbol {u})$; then we get (2.34a). The modified Maxwell–Stefan equations can be formulated as
where $c=\sum _{l=1}^Nc_l$, $D_{l,f}>0$ and $D_{l,m}=D_{m,l}>0$. In (2.36), the first term represents the friction between solute $l$ and the solvent fluids, which is usually ignored in the classical Maxwell–Stefan model (Wesselingh & Krishna Reference Wesselingh and Krishna2000), the second term stands for the friction between solute $l$ and the other solutes, and the right-hand side is the driving force of solute $l$. Equation (2.36) describes the balance between the drag and driving forces for each solute.
We assume that $c_l>0$, $1\leq l\leq N$, and define a matrix $\boldsymbol {\mathcal {L}}=(\mathcal {L}_{l,m})_{l,m=1}^N$ as
Due to $D_{l,m}=D_{m,l}$ and $c_l>0$, $\boldsymbol {\mathcal {L}}$ is symmetric positive definite, and so is its inverse matrix $\boldsymbol {\mathcal {L}}^{-1}$. Consequently, $\boldsymbol {u}_l-\boldsymbol {u}$, $l=1,\ldots, N$, can be determined uniquely by (2.36). Taking into account $\boldsymbol {J}_{c,l}=c_l(\boldsymbol {u}_l-\boldsymbol {u})$, we derive a full diffusion coefficient matrix from (2.36) as
which is symmetric positive definite and consistent with Onsager's reciprocal principle and the second law of thermodynamics.
If the interfacial effects on solutes are considered, then the diffusion coefficients $D_{l,f}$ and $D_{l,m}$ in (2.36) should be expressed as phase-dependent functions; for instance, $D_{l,f}$ (Qin et al. Reference Qin, Huang, Zhu, Liu and Xu2022) can be defined generally as
where $K$ is the interface permeability, and $Q_{l,0}$ and $Q_{l,1}$ are the diffusion coefficients of solute $l$ in two bulk solvents.
The derivations of the model imply the following energy dissipation law:
which shows that total free energy of a closed isothermal system will be decreasing with time.
We denote by $L_*$, $U_*$ and $M_*$ the characteristic length, the characteristic velocity and the characteristic diffusion constant, and denote by $c_*$ the reference concentration. Furthermore, we introduce the following dimensionless quantities:
Omitting the hats, we can write the dimensionless system of the model (2.34) as
where $\lambda =1-\varsigma$, $\chi =1-\varsigma ({\varrho _2}/{\varrho _1})$, $\boldsymbol{\mathsf{g}}$ is the unit vector with the gravitational direction, $\rho =\phi +(1-\phi )({\varrho _2}/{\varrho _1})$ and $\eta (\phi )=\phi +(1-\phi )({\eta _2}/{\eta _1})$. Here, $\varsigma$ remains a dimensionless parameter relating to $\boldsymbol {u}$, $c_l$ is the dimensionless concentration with the range $(0,1)$, $Pe_c=Pe_\phi = {L_*U_*}/{M_*}$ is the diffusional Péclet number, $We = {\varrho _1 U_*^2L_*}/{\sigma }$ is the Weber number, $Cn = {\epsilon }/{L_*}$ is the Cahn number as a measure of the interfacial thickness, $Re = {\varrho _1 U_*L_*}/{\eta _1}$ is the Reynolds number, and $Fr = {U_*}/{\sqrt {gL_*}}$ is the Froude number that describes the relative strength between the gravitational and inertial forces.
3. Numerical method
In this section, we propose an efficient, linear, decoupled, energy-stable and mass-conservative numerical method for the proposed model.
The total simulation time $[0, t_{f}]$ is divided as $0=t_0< t_1< t_2<\cdots < t_f$, and the time step size is denoted by $\tau _k=t_{k+1}-t_k$. The proposed scheme allows us to use non-uniform and adaptive time step sizes, and as a result, $\tau _k$ is not constant in general. The value of a function $v$ at time $t_k$ is denoted by $v^k$.
3.1. Discrete chemical potentials
An important ingredient of designing energy-stable numerical methods is to derive the discrete chemical potentials that ensure certain energy dissipation inequalities. The energy factorization approach (Kou, Sun & Wang Reference Kou, Sun and Wang2020a; Wang et al. Reference Wang, Kou and Cai2020b; Wang, Kou & Gao Reference Wang, Kou and Gao2021) can produce efficient, linear and energy-stable numerical schemes.
We now derive the discrete chemical potentials for the active solute diffusion. The concavity of $\ln (c_l)$ implies that
Using (3.1), we deduce that
Using (3.2), we derive the energy difference as
Based on (3.3), we define the discrete chemical potentials as
which satisfy the inequality
For the bulk phase free-energy function, we assume that the time discrete scheme is linear and satisfies the energy inequality
where $\ell (\phi ^{k},\phi ^{k+1})$ represents the discrete chemical potential function that is linear with respect to $\phi ^{k+1}$. For instance, the logarithmic Flory–Huggins energy potential has such a discrete chemical potential (Wang et al. Reference Wang, Kou and Cai2020b) as
A fine discrete chemical potential for the double-well potential can be found in Wang et al. (Reference Wang, Kou and Gao2021). For the gradient free energy, we have
which suggests the implicit discrete chemical potential $- \Delta \phi ^{k+1}$. Therefore, we define the discrete form of chemical potential $\mu _\phi$ as
3.2. Semi-implicit time marching scheme
On the basis of the chemical potentials given in (3.4), (3.5) and (3.10), we propose a semi-implicit scheme for the model (2.34) as
where $\rho ^{k}=\phi ^{k}\varrho _1+(1-\phi ^{k})\varrho _2$.
The resulting system can be solved sequentially using the decoupling relationships between unknowns. First, since the concentrations $\boldsymbol {c}^{k+1}$ are decoupled from $\phi ^{k+1}$, $p^{k+1}$ and $\boldsymbol {u}^{k+1}$, we solve all solute concentrations $\boldsymbol {c}^{k+1}$ together by substituting (3.11b) and (3.11c) into (3.11a). Second, taking into account the property that $\phi ^{k+1}$ and $p^{k+1}$ are decoupled from $\boldsymbol {u}^{k+1}$, we can substitute (3.11e) and (3.11f) into (3.11d) and (3.11g) to compute $\phi ^{k+1}$ and $p^{k+1}$ simultaneously. Finally, $\boldsymbol {u}^{k+1}$ is solved by (3.11h). The purpose of coupling the phase variable and pressure is to ensure the mass conservation of the solvent fluids. In addition to the decoupling relationships between different unknowns, the scheme (3.11) is totally linearized, so it is easy to implement in practice.
We consider the following homogeneous boundary conditions on the boundary $\partial \varOmega$:
where $\boldsymbol {n}$ denotes an outward unit vector normal to $\partial \varOmega$.
The proposed scheme has the ability to guarantee the mass conservation law for both solutes and solvent fluids without any additional treatments.
Theorem 3.1 The scheme (3.11) conserves the total masses of both solutes and solvent fluids as
Proof. Integrating (3.11a) over $\varOmega$ and taking into account the boundary conditions, we obtain
which yields (3.13) by induction. Let $\psi ^k=1-\phi ^{k}$. Combining (3.11d) and (3.11g) yields
Multiplying (3.11d) by $\varrho _1$, and (3.16) by $\varrho _2$, and then summing them, we obtain the total mass balance equation
where $\chi =\varrho _1-\varsigma \varrho _2$. Integrating (3.17) over $\varOmega$ and taking into account the boundary conditions, we get (3.14) by induction.
We now prove that the proposed scheme follows a discrete energy dissipation law. The total discrete energy is defined as
where
Theorem 3.2 Given that (3.7) holds, the scheme (3.11) satisfies the following discrete energy dissipation law:
Proof. Using (3.6), (3.11a) and (3.11d), we deduce that
It is deduced from (3.7) and (3.9) that
Substituting (3.11d) into (3.22), we obtain
Using (3.17), we derive the variation of gravitational potential energy as
Summing (3.21), (3.23) and (3.24) together and taking into account (3.11f), we obtain
In order to estimate the kinetic energy, we introduce the following intermediate kinetic energies:
The difference between $\mathcal {U}_{\dagger} ^{k}$ and $\mathcal {U}^{k}$ is estimated as
where we have used (3.11c). Using (3.11e), we derive the difference between $\mathcal {U}_\star ^{k}$ and $\mathcal {U}_{\dagger} ^{k}$ as
Using (3.11g), we deduce that
It is deduced from (3.28) and (3.29) that
For $a,b,c,d\in \mathbb {R}$ and $c\geq 0$, we have
The difference between $\mathcal {U}^{k+1}$ and $\mathcal {U}_\star ^k$ is estimated using (3.31) as
Substituting (3.11h) and (3.17) into (3.32) yields
where we have used the identities
Combining (3.27), (3.30) and (3.33) yields
3.3. Fully discrete scheme
For the spatial discretization, we employ the finite difference/volume methods on staggered grids (Tryggvason, Scardovelli & Zaleski Reference Tryggvason, Scardovelli and Zaleski2011; Kou, Sun & Wang Reference Kou, Sun and Wang2018) and treat the convection terms by the upwind strategy. We consider a rectangular domain $\varOmega =[0,L_x]\times [0,L_y]$, where $L_x>0$ and $L_y>0$. The velocity vector is expressed as $\boldsymbol {u}=[u,v]^\textrm {T}$. For simplification in presentation, we use a uniform division of $\varOmega$ as $0=x_0< x_1<\cdots < x_{n_x}=L_x$ and $0=y_0< y_1<\cdots < y_{n_y}=L_y,$ where $n_x$ and $n_y$ are positive integers. The mesh size is denoted by $h=x_{i+1}-x_i=y_{j+1}-y_j$, where the subscripts $0\leq i< n_x$ and $0\leq j< n_y$ are integers. The midpoints are defined as $x_{i+{1}/{2}} =x_i+\frac {1}{2}h$ and $y_{j+{1}/{2}} =y_j+\frac {1}{2}h$. The basic idea of the staggered grids is that different variables are discretized on different grids that are shifted by half a grid point. In order to represent different discrete variables, we define the following discrete function spaces:
For a discrete function $c\in \mathcal {S}_c$, we write $c_{i+{1}/{2},j+{1}/{2}}=c(x_{i+{1}/{2}},y_{j+{1}/{2}})$ in its component form. The other functions in the above function spaces are denoted likewise. Taking the homogeneous Neumann boundary conditions into consideration, we further define subsets of $\mathcal {S}_u$ and $\mathcal {S}_v$ as
For the purpose of treating conveniently the boundary conditions for the momentum balance equation, we introduce two extended discrete function spaces:
We now introduce the discrete operators, which will be used to formulate the fully discrete equations. For $c\in \mathcal {S}_c$, we define the difference operators
where $d_x^cc\in \mathcal {S}_u^0$ and $d_y^cc\in \mathcal {S}_v^0$. For $c\in \mathcal {S}_c$, we define the average values of $c$ as
The upwind strategy is applied to treat the convection terms, and for this purpose, we introduce the upwind values of $c\in \mathcal {S}_c$ in the presence of the velocity components $u\in \mathcal {S}_u^0$ and $v\in \mathcal {S}_v^0$ as
For $u\in \mathcal {S}_u$ and $v\in \mathcal {S}_v$, we define the difference operators
For $u\in \mathcal {S}^e_u$ and $v\in \mathcal {S}^e_v$, we define the difference and average operators
We can see that $d_x^uu\in \mathcal {S}_c$, $d_y^vv\in \mathcal {S}_c$, $d_y^uu\in \mathcal {S}_{pu}$ and $d_x^vv\in \mathcal {S}_{pv}$.
We are ready to present the fully discrete scheme. At each time step, we seek $c_l^{k+1}\in \mathcal {S}_c$, $\phi ^{k+1}\in \mathcal {S}_c$, $p^{k+1}\in \mathcal {S}_c$, $u^{k+1}\in \mathcal {S}^e_u$ and $v^{k+1}\in \mathcal {S}^e_v$ for given $c_l^{k}\in \mathcal {S}_c$, $\phi ^{k}\in \mathcal {S}_c$, $u^{k}\in \mathcal {S}^e_u$ and $v^{k}\in \mathcal {S}^e_v$. The fully discrete chemical potentials $\mu _{c,l}^{k+1},\mu _{c\phi }^{k+1}\in \mathcal {S}_c$ still take the pointwise forms given (3.4) and (3.5). Fully discrete intermediate velocity components $u^k_{{\dagger} }\in \mathcal {S}_u^0$ and $v^k_{{\dagger} }\in \mathcal {S}_v^0$ are expressed as
Let $\bar {{\mathcal {D}}}_{l,m}^k={\mathcal {D}}_{l,m}(\bar {\phi }^{k},\bar {\boldsymbol {c}}^{k})$. The solute concentration equations are fully discretized as
where $J_{c,l,x}^{k+1}\in \mathcal {S}_u$ and $J_{c,l,y}^{k+1}\in \mathcal {S}_v$ are defined as
Let $\boldsymbol{\mathsf{g}}=[g_x,g_y]$. The fully discrete solvent transport equation is expressed as
where
The fully discrete form of (3.11g) is expressed as
In order to discretize the momentum balance equation, we define $U_u^{k}\in \mathcal {S}_c$, $U_v^{k}\in \mathcal {S}_{pv}$, $V_u^{k}\in \mathcal {S}_{pu}$ and $V_v^{k}\in \mathcal {S}_c$ as
For $u\in {\mathcal {S}}^e_u$ and $v\in {\mathcal {S}}^e_v$, we also define their upwind values as
For $\psi \in \mathcal {S}_{pu}\cup \mathcal {S}_{pv}$, we define the difference operators
Let $\eta ^k=\eta (\phi ^k)\in \mathcal {S}_c$, and let $\bar {\eta }_{i,j}^k$ be the average values of $\eta ^k$ at the vertices $(x_i,y_j)$. We denote
where $\varPsi ^{k+1}\in \mathcal {S}_c$, $\varUpsilon ^{k+1}\in \mathcal {S}_c$ and $\varTheta ^{k+1}\in \mathcal {S}_{pu}\cup \mathcal {S}_{pv}$. The fully discrete scheme for the momentum balance equation (3.11h) is expressed as
In what follows, we prove that the fully discrete scheme conserves the masses of both solutes and solvent fluids as well as following a discrete energy dissipation law. To this end, we define the following discrete inner products:
In addition, for $\psi,\psi '\in \mathcal {S}_{pu}\cup \mathcal {S}_{pv}$, we define
The following summation-by-parts formulas are obtained by direct calculations (Kou et al. Reference Kou, Sun and Wang2018):
Theorem 3.3 The fully discrete scheme conserves total masses of solutes and solvent fluids as
Proof. Taking the discrete inner product of (3.48), we obtain
Applying (3.65a) and (3.65b) to (3.68) yields
which leads to (3.66) by induction. From (3.50), we can derive the mass balance equation of solvents as
where $\chi =\varrho _1-\varsigma \varrho _2$. Taking the discrete inner product of (3.70) and then using (3.65a) and (3.65b), we can obtain (3.67) by induction.
We now prove that the fully discrete scheme follows a discrete energy dissipation law. The total discrete energy is defined as
where
Theorem 3.4 Given that (3.7) holds, the fully discrete scheme satisfies the following discrete energy dissipation law:
Proof. Taking into account (3.6), (3.48) and (3.50), and applying (3.65a) and (3.65b), we deduce that
Noticing that
we deduce that
The variation of gravitational potential energy with time steps is estimated using (3.70) as
To estimate the variation of the kinetic energy with time steps, we introduce the following intermediate kinetic energies:
The difference between $\mathcal {U}_{h{\dagger} }^{k}$ and $\mathcal {U}^{k}$ is estimated using (3.47a,b) as
Using (3.51) and (3.52), we derive the difference between $\mathcal {U}_{h\star }^{k}$ and $\mathcal {U}_{\dagger} ^{k}$ as
Using (3.56), we deduce that
It follows from (3.81) and (3.82) that
The difference between $\mathcal {U}_h^{k+1}$ and $\mathcal {U}_{h\star }^k$ is estimated using (3.31) as
Taking into account (3.61) and (3.62), we deduce that
Taking into account two averaged forms of the discrete mass balance equations
we deduce that
where $\bar {u}$ and $\bar {v}$ are the average values of $u$ and $v$ on the boundaries of their respective grid cells. Substituting (3.85)–(3.89) into (3.84) yields
In terms of the upwind rules, we can estimate the first four terms of (3.90) as
As a consequence of (3.91)–(3.94), the inequality (3.90) can be simplified as
where the last equality is obtained using (3.60a–c). Taking into account
we combine (3.80), (3.83) and (3.95) to obtain
Finally, we deduce (3.73) by combining (3.74), (3.77), (3.78) and (3.97).
4. Numerical results
In this section, numerical experiments are performed to verify and validate the proposed model and numerical scheme.
4.1. Example 1
In this example, we consider the single-solute problems with the Dirichlet boundary conditions in the one-dimensional domain $\varOmega =[0,1]$. The velocity is set to be zero, and the solute transport equation is simplified as
We take $\tau _k=0.01$. Let $\epsilon$ be the interface width. The phase variable is time-independent and given by the formula
which is also illustrated in figure 1.
In the first case, we take $\alpha =\beta =1$, $\gamma =\ln (0.1)$ and $\delta =\ln (0.5)$. The boundary condition $\mu _c=0$ is imposed on both endpoints, while the homogeneous initial concentration $c^0=0.3$ is taken in the entire domain. In terms of the boundary condition, the solute concentrations in the bulk solvent fluids are calculated as
For $\epsilon =0.01$, figure 2 illustrates dynamics of the solute concentration with time, showing that the system converges rapidly to a steady state. Figure 3 gives a comparison of the numerical solutions at the equilibrium state with the exact solutions, as well as the numerical errors that are the absolute values of the difference between numerical and exact solutions. The results demonstrate that the numerical solutions are in perfect agreement with the exact solutions. The sharp-interface limit of the proposed model can be derived via formal asymptotic analysis as in the literature (e.g. Garcke, Lam & Stinner Reference Garcke, Lam and Stinner2014; Qin et al. Reference Qin, Huang, Zhu, Liu and Xu2022), and it will be our ongoing work. Here, we show the sharp-interface limit by numerical results in figure 4, which clearly indicates that the concentrations will approach the sharp-interface limit as the interface width $\epsilon$ approaches zero.
In the second case, we take the time-independent boundary conditions $\mu _c=0.5$ at $x=0$, and $\mu _c=0.1$ at $x=1$. The parameters are taken as $\alpha =1,2$, $\beta =2,1$, $\gamma = \ln (0.1)$ and $\delta = \ln (0.2)$. At the steady state of this case, we have
which implies that there exists a constant $\iota >0$ such that
In the two bulk fluids, i.e. $\phi =1$ and $\phi =0$, we have
On the other hand, the solute concentrations within two solvent fluids are expressed as
where $c_0$ and $c_1$ are given in (4.8) and (4.9). Figure 5 depicts numerical results of the steady-state concentrations, which accord with the above theoretical analysis. It also indicates that the model has the ability to reflect the heterogeneity in binary solvent fluids through different choices of parameters.
4.2. Example 2
In this example, we simulate the single-solute problems with the Neumann boundary conditions and without velocity fields in the one-dimensional domain $\varOmega =[0,1]$. The phase variable is given by the formula
where $\epsilon$ is the interface width. Here, we take $\epsilon =0.01$ for all tested cases in this example. The phase variable is illustrated in figure 6. The discrete solute transport equation takes the form
associated with the boundary condition ${\textrm {d} \mu _c}/{\textrm {d}\kern0.7pt x}=0$ on the endpoints. We take $\tau _k=0.001$. The total solute mass is conserved. The fluid system will reach an equilibrium state as the total free energy within this system is dissipated with time.
In the first case, we take $\alpha =\beta =1$, $\gamma =\ln (0.1)$ and $\delta =\ln (0.5)$. The initial concentration is $c^0=0.3$ in the entire domain. Figure 7 illustrates the dynamics of chemical potential and concentration with time, while the total energy dissipation is depicted in figure 8. The normal diffusion makes the solute spread homogeneously in space, and it usually occurs in the single-phase fluid. The active diffusion generally stems from different chemical and physical characteristics of two solvent fluids that play a major role in dissolving a specific solute. The underlying mechanics of such scenarios is described by the free energy and chemical potential. Although the initial concentration is uniform in space, the active diffusion still takes place due to the driving force resulting from the chemical potential gradient in the space occupied by two solvent fluids, and total energy will be dissipated in this process until an equilibrium state is reached. Let $\bar {\mu }_c$ be the equilibrium-state chemical potential, which is uniform and constant in space. For a specific phase variable $\phi$, the equilibrium-state solute concentration, denoted by $c_\phi$, depends on the phase variable and satisfies
Solving (4.13) gives the analytical formulation of $c_\phi$ as
Here, $\bar {\mu }_c$ can be calculated analytically through solving the total mass conservation equation
In figure 9, we compare the numerical and exact solutions of the solute concentration at the equilibrium state as well as showing the numerical errors (i.e. the absolute values of the difference between numerical and exact solutions). Numerical results are in agreement with the exact solutions.
In the second test, we take different values of parameters $\alpha$, $\beta$, $\gamma$ and $\delta$. The initial concentration is still set to be $c^0=0.3$ in the entire domain. Figure 10 depicts the profiles of the solute concentrations at the equilibrium states with different parameters. Equation (4.14) shows that the solute concentrations at different equilibrium states can be achieved through the appropriate choices of the four parameters. This conclusion is verified clearly by figure 10. The proposed free energy and chemical potential have the capability of describing different active diffusion processes.
4.3. Example 3
In this example, we simulate the dynamical process of a single solute in binary solvent fluids to show the convergence of the proposed scheme. The spatial domain is the square domain $\varOmega =[0,1]^2$, which is divided by a uniform square mesh with $50\times 50$ grid cells. The parameters in the model are chosen as $M_\phi =1$, $Re = 10^2$, $Cn = 0.03$, $We = 1$, $Pe_\phi = 10^3$, $\varrho _1/\varrho _2 = 10$ and $\eta _1/\eta _2 = 10$. The gravity effect is neglected in this example. The initial phase variable is given as
where $a=0.37$, $\phi _*=0.0735$ and $\phi ^*=0.9335$. The initial phase variable is also illustrated in figure 11. The initial solute concentration is $c^0=0.2$ in the entire domain. The reference velocity parameter is chosen as $\varsigma =1$. For the solute transport equation, we take $Pe_c=1$, $D_{1,f}=1$, $\alpha =\beta =1$, $\gamma =\ln (0.5)$ and $\delta =\ln (0.1)$. The initial velocity is zero. The total simulation time is $t_f=0.1$. Contours of the phase variable and solute concentration at $t=0.1$ are shown in figure 12. From figures 11 and 12, we can see that the interfacial tension between two bulk fluids makes the square droplet shrink into a circle, and meanwhile, a large amount of solute transfers from the surrounding into the droplet due to the active diffusion.
Due to strong nonlinearity and complication of the model, we cannot derive the analytical solutions, thus we use the solutions computed with a very small time step size $\tau _k=2^{-4}s$, $s=10^{-3}$, as the approximate analytical solutions, which are denoted by $\tilde {c}$, $\tilde {\phi }$, $\tilde {\boldsymbol {u}}$ and $\tilde {\mathcal {E}}$. We define the discrete norms for the errors $e_c$, $e_\phi$, $e_{\boldsymbol {u}}$ and $e_{\mathcal {E}}$ as follows:
Numerical errors and convergence rates are displayed in table 1. It is evidently shown that the proposed scheme has first-order convergence in time.
4.4. Example 4
In this example, we simulate the dynamical process of two solutes in binary solvent fluids with a large density contrast. The spatial domain is $\varOmega =[0,1]^2$. The parameters in the model are chosen as $M_\phi =1$, $Re = 10^2$, $Cn = 0.02$, $We = 1$, $Pe_\phi = 10^3$, $\varrho _1/\varrho _2 = 100$ and $\eta _1/\eta _2 = 100$. The gravity effect is not considered in this example. The initial solute concentrations are uniform in space with $c_1^0=c_2^0=0.2$, while the initial phase variable is given as
where $\phi _*=0.0735$ and $\phi ^*=0.9335$. The solvent mixture is composed of two fluids with a large density contrast. There is an irregular droplet consisting mostly of the heavier fluid in the domain at the initial time. The reference velocity parameter is chosen as $\varsigma =10$. The initial velocity is zero. The solute mixture is composed of two different substances. For the solute transport equation, we take $Pe_c=1$ and $D_{1,f}=D_{2,f}=D_{1,2}=1$. The solute diffusion matrix is calculated by (2.37) and (2.38). For the solute energy parameters, we take $\alpha _1=\alpha _2=1$, $\beta _1=\beta _2=1$, $\gamma _1=\ln (0.5)$, $\gamma _2=\ln (0.1)$, $\delta _1=\ln (0.1)$ and $\delta _2=\ln (0.5)$.
The proposed scheme allows us to use non-uniform time step sizes. Here, we employ the adaptive time-stepping strategy (Qiao, Zhang & Tang Reference Qiao, Zhang and Tang2011) to adjust the time step sizes
where $\mathcal {E}_h^k$ is the total free energy, $\tau _{min}$ and $\tau _{max}$ are the preset lower and upper bounds of the time step sizes, and $r$ is a positive constant. In this example, we take $\tau _{min}=5\times 10^{-4}$, $\tau _{max}=5\times 10^{-3}$ and $r=10$. Figure 13 depicts the adaptive time step sizes calculated by (4.24a,b).
The phase variables at different times are illustrated in figure 14, while the solute concentrations are shown in figures 15 and 16. The results show that driven by the interfacial tension between two bulk fluids, the droplets merge together and then shrink into a circle, and meanwhile, the active diffusion as well as the fluid flow makes a large amount of solute 1 transfer to the droplets from the surrounding fluid, whereas solute 2 is moving from the droplets to the surrounding fluid.
The normalized total free energy is defined as
Figure 17 depicts the normalized total energy dissipation curve, showing that total energy is always decreasing with time. The normalized total solvent mass is defined as
The normalized total solute concentrations are defined as
Figure 18 illustrates the profiles of ${\rho }_r^k$ and $c_{r,l}^k$, and shows that the proposed method is capable of conserving total masses of solutes and solvent fluids except for roundoff errors.
4.5. Example 5
This example takes into consideration the gravity effect on the solute transport in two different droplets. The spatial domain is still $\varOmega =[0,1]^2$. The initial phase variable is given as
where $\phi _*=0.045$ and $\phi ^*= 0.936$. The initial velocity is zero. The reference velocity parameter is chosen as $\varsigma =1$. The parameters in the fluid flow equations are chosen as $M_\phi =1$, $Re = 10^3$, $Cn = 0.02$, $We = 1$, $Pe_\phi = 10^3$, $\varrho _1/\varrho _2 = 10^3$, $\eta _1/\eta _2 = 10^3$ and $Fr=\frac {1}{5}$. In this example, we want to demonstrate the effects of solutes on the dynamics of solvents, so we simulate two cases with different single solutes. For the solute energy parameters, we take $\alpha =\beta =50$, $\gamma =\ln (0.5)$, $\delta =\ln (0.1)$ in case 1, and $\alpha =\beta =50$, $\gamma =\ln (0.1)$, $\delta =\ln (0.5)$ in case 2. The solute diffusion parameters are taken as $Pe_c=10^2$ and $D_{1,f}=1$ for both cases. The initial solute concentrations in both cases are given as
To compare the results of the two cases, we use the uniform time step size $\tau _k=2\times 10^{-3}$ for both cases.
The phase variables of the two cases at different times are shown in figures 19 and 21. The solute concentrations of the two cases are illustrated in figures 20 and 22. In both cases, the motion of two droplets is driven by the interfacial tension, gravity and the solute chemical potentials. The droplets are moving downwards due to the gravity effect and large density contrast, and meanwhile, they are merging into a large droplet due to the interfacial tension. During the dynamical process of case 1, the solute concentration in the droplets is increasing with time due to the active diffusion, whereas in case 2, the solute behaves in the opposite pattern. It is observed clearly from figures 19 and 21 that the solutes have a significant effect on the motion of solvents; actually, in case 1, the solute dissolving in the droplets drags the downward motion of the droplets against gravity.
In this example, the gravitational potential energy is included in the total free energy. In figure 23, we plot the dissipation curves of the normalized total energy $\mathcal {E}_r^k$ defined in (4.25), which show that the total free energies of both cases are always dissipated with time. Figures 24 and 25 illustrates the profiles of ${\rho }_r^k$ and $c_{r}^k$ defined in (4.26) and (4.27). The mass loss always falls within roundoff errors. Therefore, the proposed method performs very well in not only energy stability but also mass conservation.
5. Conclusions
A thermodynamically consistent phase-field model has been proposed to describe the activated solute transport in binary solvent fluids. A key ingredient of the model is to introduce the mixed free-energy function for the multiple solutes, which is able to characterize the solubility difference of solutes in two solvent fluids through different solute chemical potentials in binary fluids. A general multi-component solute diffusion model is established using the Maxwell–Stefan approach, which takes into account the crossing influences between different solutes. It remains to support the free-energy function through molecular scale simulations or experimental data in the future. The hydrodynamics of two solvent fluids is described by a general phase-field model, which accounts for general average velocity and different densities. The model is derived rigorously using the second law of thermodynamics. The model system is highly nonlinear and strongly coupled. To simulate the model efficiently, we have proposed a linearized, decoupled and energy-stable numerical method. The spatial discretization is constructed using the finite difference/volume methods on staggered grids with the upwind strategy. Both semi-discrete and fully discrete schemes are proved to follow an energy dissipation law at the discrete level as well as ensuring the mass conservation law for solutes and solvents. Numerical experiments have been performed to demonstrate that the proposed model and numerical method can simulate different processes of the solute active diffusion in two-phase solvent fluids.
The proposed model has potential applications in many relevant fields, such as geological carbon sequestration with active diffusion due to the heterogeneity in underground formations, intracellular ion mass transfer, and the removal and extraction of specific substances in industrial and environmental technologies. The modified Maxwell–Stefan model can be applicable to general multi-component diffusion processes of free fluid flow and porous media flow. The proposed numerical method can provide guidance for designing efficient numerical methods for the other multiphase flow problems, for instance, the electrical ion transport in two-phase fluids coupled with electromagnetic fields.
Acknowledgements
We would like to thank the reviewers for their constructive comments and suggestions to improve the original version of the paper. This work is partially supported by the Scientific and Technical Research Project of Hubei Provincial Department of Education (no. D20192703).
Declaration of interests
The authors report no conflict of interest.