Abstract
In this paper, we investigate numerical solution of the diffuse interface model with Peng–Robinson equation of state, that describes real states of hydrocarbon fluids in the petroleum industry. Due to the strong nonlinearity of the source terms in this model, how to design appropriate time discretizations to preserve the energy dissipation law of the system at the discrete level is a major challenge. Based on the “Invariant Energy Quadratization” approach and the penalty formulation, we develop efficient first and second order time stepping schemes for solving the single-component two-phase fluid problem. In both schemes the resulted temporal semi-discretizations lead to linear systems with symmetric positive definite spatial operators at each time step. We rigorously prove their unconditional energy stabilities in the time discrete sense. Various numerical simulations in 2D and 3D spaces are also presented to validate accuracy and stability of the proposed linear schemes and to investigate physical reliability of the target model by comparisons with laboratory data.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
Subsurface flow often involves multiple fluid phases, and the phenomena of subsurfaces often allow for the mixing of immiscible and partially miscible fluids. A typical well-known application is the subsurface gas and oil reservoir, which contains gas phase, water phase and oil phase, together with the solid phase (soil or rock) [9]. There have been many efforts to study multiphase fluids, especially in reservoir engineering [13, 20, 25,26,27, 30]. It is highly important to model and numerically simulate these interfaces between phases to understand physical phenomena, such as gas bubbles, liquid droplets, and capillary pressure.
At least three methodologies have been proposed to model the interfaces between phases. Based on the molecular scale, the first approach is to model it by applying the molecular Monte Carlo simulation or the molecular dynamics simulation with a given intermolecular potential function (e.g., Lennard–Jones potential) [3, 10]. Although this method can describe the interfaces in detail, the central processing unit intensive property limits its application to a small part of simple substance. The second approach is known as the sharp interface modeling. The interface is modeled by a zero-thickness two-dimensional entity [23]. Assuming that the interface tension is given, this approach can be successfully applied to predict the shape and dynamics of the interface. However, it can not provide information within the interface itself. The third methodology is the diffuse interface theory, also called the phase field method see [22]. This method regards the molar or mass density as constants in the regions occupied by either single phase, but changes continuously within the interface. It provides an easier treatment of topological changes of the interface, since the free interface can be automatically tracked without imposing any mathematical conditions on the moving interface. Moreover, the phase field model is usually obtained by an energy-based variational formulation, thus it leads to well-posed nonlinear systems that satisfies the energy dissipation law. This approach has become a well-known effective modeling and simulated tool to resolve the motion of free interfaces between multiple material components, and also has been successfully applied to problems in many fields of science and engineering, see [1, 12, 14, 15, 24, 28, 29] and the references cited therein.
The diffuse interface model with Peng–Robinson equation of state [21] has been widely studied and applied for describing the real states of hydrocarbon fluids in the petroleum industry, and the structure of its energy functional is highly nonlinear and more complicated than many conventional phase field models. Therefore, designing accurate, efficient and stable numerical solution schemes for this model is a very useful but challenging task. Some efforts have been devoted to developing numerical schemes with energy stability. Qiao and Sun [22] adopted the well-known convex splitting approach [8], where the convex part of the nonlinear system is treated implicitly and the concave part explicitly in the time marching. This scheme is proved to be unconditionally energy stable. However, the computational costs are usually high since it produces stiff nonlinear systems to be solved at each time step. Kou and Sun [16] proved the maximum principle of the molar density and proposed a modified Newton’s method to solve the nonlinear model. About some recent developments in numerical algorithms for the diffuse interface model with Peng–Robinson equation of state, we refer to [17, 18].
The main purpose of this paper is to design efficient and effective linear energy stable numerical schemes to solve the diffuse interface model with Peng–Robinson equation of state. Instead of using the linear stabilization or the convex splitting approach, we will take the “Invariant Energy Quadratization” (IEQ) approach, which is a novel method and have been successfully applied to many phase field models for gradient flows [31,32,33,34,35,36,37]. The IEQ approach generalizes the Lagrange Multiplier approach (which is for double well potential only) proposed in [11], and extends its applicability greatly to a unified framework for general dissipative stiff systems with high nonlinearity. The essential idea of the IEQ approach is to transform the free energy into a quadratic form of a set of new variables via the change of variables. Then, we obtain a new but equivalent system, which still retains a similar energy dissipation law in terms of the new variables. The major advantage of this method is that all nonlinear terms in the new system then can be discretized by semi-explicit schemes in time to produce a linear system at each time step, while certain analogs of the energy dissipation law in the discrete sense are also preserved. Moreover, the operator of the obtained linear system is symmetric positive definite, and thus it can be numerically solved by many efficient linear solvers such as preconditioned CG method.
The rest of this paper is organized as follows. The diffuse interface model of the fluid system with Peng–Robinson equation of state is first briefly reviewed in Sect. 1.1. Our study especially focuses on the case of single-component two-phase fluids in this paper. In Sect. 2, we derive a gradient flow problem (a system of evolution equations) associated with the diffuse interface model, based on the the penalty formulation and the IEQ approach. In Sect. 3, we propose two numerical schemes with respective first order and second order temporal accuracy for solving the model, and both of them only require solution of linear systems in space at each time step. We also prove the symmetric positive definiteness of the resulted linear systems and the unconditional energy stabilities of these schemes. In Sect. 4 various numerical experiments in 2D and 3D spaces are carried out to illustrate accuracy and stability of the proposed schemes and to investigate physical reliability of the diffuse interface model by comparisons with laboratory data. Finally, some concluding remarks are given in Sect. 5.
1.1 Mathematical Model of the Fluid System by the Diffuse Interface and Peng–Robinson Equation of State
We now give a brief introduction on the diffuse interface model of fluid system with Peng–Robinson equation of state, consisting of fixed species inside a domain with a spatially uniform-distributed temperature. The total Helmholtz free energy achieves a global minimum at the equilibrium state due to the second law of thermodynamics. Let M denote the number of components in the fluid mixture, \(\varOmega \) be the open, bounded, and connected domain occupied by the M-component two-phase fluid, and T (measured in Kelvin) be the temperature of the fluid mixture. Let \(n_i({{\mathbf {x}}})>0\) represent the molar concentration of the component i and denote by \(\displaystyle {\mathbf {n}} = (n_1,n_2,\ldots ,n_M)^T\) the molar concentrations of all components and by \(\displaystyle n = n_1+n_2+\cdots +n_M\) the total molar density of the fluid. The diffusive interface model states that the total Helmholtz energy density of an inhomogeneous fluid has two contributions, one from the thermodynamic theory of homogeneous fluid and the other one from inhomogeneity of the fluid, in the following form [9]
Here \(f_0({\mathbf {n}};T)\) and \(f_\nabla ({\mathbf {n}};T)\) are respectively the contribution of Helmholtz free energy densities from the homogeneous fluid theory and the concentration gradient. Since the molar concentration \({\mathbf {n}}\) at equilibrium minimizes the Helmholtz free energy (1) for a closed and conserved fluid system with a spatially uniform-distributed temperature T, the mathematical statement of the problem is formulated as follows: find \({\mathbf {n}}^*\in H\) satisfying
subject to the constraint
where H is a space of functions with certain regularity. Under the condition (3), \(\displaystyle {\mathbf {N}}=(N_1,N_2,\cdots ,N_M)^T\) denotes a pre-given constant vector, with \(N_i\) representing the fixed amount of material mass for the component i in the system.
The Peng–Robinson equation of state is one of the most popular model for computing the fluid equilibrium properties of petroleum fluids in reservoir engineering and oil industries, where the homogeneous Helmholtz free energy density \(f_0({\mathbf {n}})\) is given by [15, 16, 18]
with
where R is the universal gas constant and the (temperature-dependent) energy parameter \(a=a(T)\) and the co-volume parameter b are related to the mixing rules of the pure fluids. The gradient contribution or the inhomogeneous term \(f_\nabla ({\mathbf {n}})\) can be computed by the following simple quadratic relation
where the influence parameter \(c_{ij}\) is a function of the molar concentrations and the temperature. We refer to the “Appendix” for details.
2 The Modified Total Free Energy and the Gradient Flow Problem
In this paper, we will focus our study on the case of single-component (\(M=1\)) two-phase fluid system, which can be simplified to the following problem
subject to
where \(\displaystyle f_\nabla ({n})= \frac{c}{2}\nabla n\cdot \nabla n\) and \(\displaystyle f_0(n)=f_{01}(n) + f_{02}(n)\) with
and
Theoretically the possible value of n in the problem (4), (5) falls into the open interval (0, 1 / b). It is obvious that \(f_{02}(n)\) is a continuous function at the interval \(\displaystyle (-(\sqrt{2}-1)/b,\infty )\) and thus is naturally bounded from below in [0, 1 / b]. As for the function \(f_{01}(n)\), it is singular at end points of its physically reasonable region \(\displaystyle (0,1/b)\), \(n=0\) and \(\displaystyle n=1/b\). Following the works in [2, 7, 35], we will regularize \(f_{01}(n)\) by replacing it with a \(C^2\) continuous, convex, piecewise function defined in \((-\infty ,\infty )\). For any \(\epsilon >0\), let us define the regularized \(f_{01}(n)\) by
When \(\epsilon \rightarrow 0\), \({\hat{f}}_{01}(n)\rightarrow f_{01}(n)\). It can be proven that the error bound between \(f_{01}(n)\) and \({{\hat{f}}}_{01}(n)\) in (0, 1 / b) is controlled by \(\epsilon \) up to a constant. In order to avoid any numerical singularity caused by \(f_{01}(n)\) during the solution process, we use the regularized function \(\hat{f_0}(n)={\hat{f}}_{01}(n) + f_{02}(n)\) to replace \(f_0(n)\) in the problem (4), (5).
We define the total material mass for the component in the system as \(\displaystyle U(n)=\int _{\varOmega }n \,d{\mathbf {x}}\), which should be fixed according to the constraint (5). Then, by adopting the the penalty formulation [4,5,6], we can transform the constrained minimization problem (4) and (5) to the following unconstrained minimization problem
where \(Q>0\) is a large constant penalty parameter. It is clear that \(\hat{f_0}(n)\) is bounded from below in [0, 1 / b] although it is not always positive in the whole domain. To use the IEQ method proposed in [31,32,33,34,35,36,37], we rewrite the free energy functional in (7) to the following form:
where B is a positive constant to ensure \(\hat{f_0}(n)+B>0\). Since we simply add a zero term \(B-B\) therein, thus, we emphasize that the free energy is invariant. Next we define two auxiliary variables to be the square roots of \(\hat{f_0}(n)+B\) and \(\displaystyle (U(n)-N)^2\) respectively as
Then the free energy functional (8) can be expressed as the following new but equivalent functional
The governing dynamical equation (or the gradient flow) for \(n({\mathbf {x}},t)\) based on the variational approach is given by
where \(H(n)=\displaystyle \frac{\hat{f_0}'(n)}{\sqrt{\hat{f_0}(n)+B}}\). Thus we obtain a system of evolution equations of the variables n, W, V as follows
According to the theory of gradient flow, the steady state solutions of the above partial differential equation system (13)–(15) will give us (local) minimizers of (11) and thus of (7). We finally close the system (13)–(15) by adding the periodic boundary (or the no-flux) condition and the following compatible initial conditions:
Denote by \(\displaystyle (h({\mathbf {x}}),g({\mathbf {x}}))=\int _\varOmega h({\mathbf {x}})g({\mathbf {x}})d{\mathbf {x}}\) the \(\displaystyle L^2\) inner product of two arbitrary functions \(h({\mathbf {x}})\) and \(g({\mathbf {x}})\), and by \(\left\| g\right\| =\sqrt{(g,g)}\) the \(\displaystyle L^2\) norm of any function \(g({\mathbf {x}})\). Taking the \(\displaystyle L^2\) inner product of (13) with \(n_t\), of (14) with W, and taking the simple multiplication of (15) with QV, we have
Summing (17)–(19) up, we then get the energy dissipation law of the modified system (13)–(15) as follows
3 Numerical Schemes for Time Stepping
In this section we will focus on designing numerical schemes for time discretization of the PDE system (13)–(15), that lead to solutions of linear systems with self-adjoint positive definite spatial operators at each time step, and satisfy discrete analogues of the energy dissipation law (20). Let \(\delta t>0\) denote the time step size and set \(\displaystyle t^k=k\delta t\) for \(0\le k\le K\) with the final time \(T=K\delta t\).
3.1 First Order Scheme
Assuming that \(n^k\), \(W^k\) and \(V^k\) are already calculated, we then solve \(\displaystyle n^{k+1}\), \(\displaystyle W^{k+1}\) and \(\displaystyle V^{k+1}\) from the following temporally semi-discretized system
with the periodic boundary condition. We note that (22) and (23) can be rewritten as
where
Thus, (21) can be rearranged as the reduced linear system
The linear system (26) can be expressed as \({\mathbb {A}}n^{k+1}=b\), and we need solve for \(n^{k+1}\) from it.
Theorem 1
The linear spatial operator \({\mathbb {A}}\) is symmetric positive definite.
Proof
It is not hard to verify that
and
Therefore, the operator \({\mathbb {A}}\) is symmetric positive definite. \(\square \)
Let us define \(\displaystyle \left\| n\right\| _{\mathbb {A}}=\sqrt{({\mathbb {A}}n,n)}\) for any \(\displaystyle n\in L^2_{per}(\varOmega )\) and the subset \(\displaystyle {\mathbf {X}}=\{n\in L^2_{per}(\varOmega ):\left\| n\right\| _{\mathbb {A}}<\infty \}\), where \(\displaystyle L^2_{per}(\varOmega )\) denotes the subspace of all functions \(\displaystyle n\in L^2(\varOmega )\) with the periodic boundary condition. It is easy to show that \(\left\| n\right\| _{\mathbb {A}}\) is a norm for \(L^2_{per}(\varOmega )\) and \({\mathbf {X}}\) is a Hilbert subspace associated with the norm \(\left\| n\right\| _{\mathbb {A}}\). Then the well-posedness of the linear system \({\mathbb {A}}n=b\) in the weak sense comes from the Lax–Milgram theorem, i.e., the linear system (26) admits a unique weak solution in \({\mathbf {X}}\).
Theorem 2
The first order linear system (21)–(23) is unconditionally energy stable, that is, it satisfies the following discrete energy dissipation law
where
Proof
By taking the \(L^2\) inner product of (21) with \(n^{k+1}-n^k\), we have
By taking the \(L^2\) inner product of (22) with \(W^{k+1}\) and applying the following identities
we obtain
By taking the simple multiplication of (23) with \(QV^{k+1}\) and applying (29), we have
and thus
Then, we dropping some positive terms from above Eq. (31), we have the discrete energy laws (27). \(\square \)
3.2 Second Order Scheme
Based on the Adam–Bashforth backward differentiation formulas (BDF2). Assuming that we have solved \(n^{k-1}\), \(W^{k-1}\), \(V^{k-1}\) and \(n^k\), \(W^k\), \(V^k\), then we compute \(n^{k+1}\), \(W^{k+1}\) and \(V^{k+1}\) as follows
where \(\displaystyle n^*=2n^k-n^{k-1}\). For (33), (34), we have
Set
where \( S^{+}=\frac{4S^k-S^{k-1}}{3}\). Thus, we obtain
In turn, we have the following reduced linear system
The above linear system can be written as \(\displaystyle \mathbb {{\hat{A}}}n^{k+1}={\hat{b}}\), and we need solve for \(\displaystyle n^{k+1}\) from it.
Theorem 3
The linear spatial operator \(\mathbb {{\hat{A}}}\) is symmetric positive definite.
Proof
We can verify that
and
Therefore, the operator \(\mathbb {{\hat{A}}}\) is symmetric positive definite. \(\square \)
Let us define \(\displaystyle \left\| n\right\| _\mathbb {{\hat{A}}}=\sqrt{(\mathbb {{\hat{A}}}n,n)}\) for any \(\displaystyle n\in L^2_{per}(\varOmega )\) and the subset \(\displaystyle {\hat{\mathbf {X}}}=\{n\in L^2_{per}(\varOmega ):\left\| n\right\| _\mathbb {{\hat{A}}}<\infty \}\). Similarly as before, we can show that the linear system (35) admits a unique weak solution in \({\hat{\mathbf {X}}}\).
Theorem 4
The second order linear system (32)–(34) is unconditionally energy stable, that is, it satisfies the following discrete energy dissipation law
where
Proof
By taking the \(\displaystyle L^2\) inner product of (32) with \(\displaystyle 3n^{k+1}-4n^k+n^{k-1}\), we have
By taking the \(L^2\) inner product of (33) with \(W^{k+1}\), we get
and then by applying the following identity
we derive
By taking the simple multiplication of (34) with \(QV^{k+1}\) and applying (38), we have
Combination of (37), (38) and (39) gives us
i.e.,
Then, we dropping some positive terms from above Eq. (40) to obtain the discrete energy law (36). \(\square \)
Remark 1
Heuristically, the discrete energy law (36) is a second order approximation of \(\frac{d}{dt}E(n,W,V)\) in (20) for any variable Z, we have
4 Numerical Experiments
In all numerical examples, we consider the specie of isobutane (\(nC_4\)) in the domain \(\varOmega = (0, L)^d\) with \(L = 2.0\mathrm{E}{-}08\,\mathrm{m}\) and d denotes the dimension of the space. The critical properties and the normal boiling point of the specie are listed in Table 1 (see the “Appendix” for explanation of these parameters). The two linear schemes, the first order one (denoted by IEQ-1) and the second order one (denoted by IEQ-BDF2), will be thoroughly tested for solving the problem (13)–(15).
4.1 Temporal Accuracy Test
We first present numerical experiments in the 2D space to demonstrate the temporal accuracy of the two numerical schemes. For the initial configuration, we adopt the case of single droplet—the liquid density of isobutane under a saturated pressure condition at the temperature 350K is imposed in the square subregion of \(\big (\frac{3L}{8},\frac{3L}{4}\big )^2\), and a saturated gas of isobutane under the same temperature is full of the rest of the domain. That is, about \(86\%\) is saturated gas, while the rest \(14\%\) of the total volume is saturated liquid.
We perform the refinement test of the time step size (\(\delta t = 2.0\mathrm{E}{-}2, 1.0\mathrm{E}{-}2, \ldots , 1.5625\mathrm{E}{-}4\)) for both the IEQ-1 and IEQ-BDF2 schemes, and choose the approximate solution obtained by applying the schemes with the small time step size \(\delta t = 1.0\mathrm{E}{-}6\) as the benchmark solution for computing errors. The penalty parameter is set to be \(Q = 1.0\mathrm{E}{+}20\). The spatial discretization is carried out using the central finite difference on the uniform \(1024\times 1024\) mesh of the domain \(\varOmega \) to remove the effect caused by the errors of spatial discretization. Define the \(L^{re}_2\) relative error of the approximate solution for the molar density n by
where \(n_{*}\) denotes the benchmark solution and \(n_{h}\) the numerical solution. Table 2 lists the \(L^{re}_2\) relative errors and convergence rates of the numerical solutions at \(t=0.5\) with different time step sizes. It is easy to see that both the IEQ-1 and IEQ-BDF2 schemes work very stably for all time step sizes and show almost perfect first order and second order accurate respectively. In addition, the second order scheme IEQ-BDF2 gives much better accuracy than the first order scheme IEQ-1 does along the time step size refinement.
4.2 Dynamical Evolution of the Molar Density Distribution and the Gas–Liquid Interface
We next will numerically investigate the time evolution of the molar density distribution and the gas–liquid interface under the gradient flow in 2D and 3D spaces. There is a large gradient contribution to the total Helmholtz free energy due to the jump in molar density between the liquid and gas regions.
4.2.1 2D Examples
We first perform some experiments in the 2D space. We use the IEQ-BDF2 scheme with \(\delta t = 5.0\mathrm{E}{-}3\) and a uniform mesh of \(512\times 512\) and set the penalty parameter Q = 1.0E+20. Figure 1 presents the simulated molar density distribution for the single-droplet case at different times (\(t = 0, 1, 3, 5, 10, 20\), respectively) during the evolution. We can see that the shape of the droplet for the liquid is initially square, but its four corners are slowly rounded as the time increases, and finally becomes a perfect circle. At the time \(t = 20\) the steady state seems to be reached. As suggested in [22], the surface tension contribution of Helmholtz free energy density, \(f_{\text {ST}}\), is defined by
which can be used to better characterize the gas–liquid interface. The plots of the simulated surface tension contribution of Helmholtz free energy density at the same times are thus shown in Fig. 2, and we can clearly see the configuration of the interface and its changes along with the time. The corresponding plots of evolution of the total energy (8) and the mass are given in Fig. 3. We observe that the energy decreases monotonically and the mass is accurately maintained with respect to the time. The energy decay is very fast initially then slows down as the solution approaches its steady state.
Next, we simulate the dynamical evolution of the molar density distribution for the case of having four droplets in the initial configuration—the liquid density of isobutane under a saturated pressure condition at the temperature 350 K in the subregion of four squares \(\left\{ \big (\frac{L}{4},\frac{L}{2}\big ), \big (\frac{5L}{8},\frac{7L}{8}\big )\right\} ^2\), and a saturated gas of isobutane under the same temperature is full of the rest of the domain. We still use the IEQ-BDF2 scheme with the same settings as in the previous single droplet case. Figure 4 presents the simulated molar density distribution of Helmholtz free energy density for the case of four droplets at different times (\(t = 0, 5,10, 20, 40, 50,\) respectively) during the evolution, and Fig. 5 the surface tension contribution of Helmholtz free energy density at the same times. The steady state seems reached at the time \(t=50\), which is longer than that needed for the single droplet case. We observe that the shapes of the four droplets are square initially, then four corners of all droplets are slowly rounded to become four circles as the time increases, and next the four circular droplets start to merge together and finally form one bigger circle. Figure 6 plots the evolution of the total energy and the mass, and again it is observed that the energy decreases monotonically and the mass is accurately maintained along the time. In the case we also find that there is a quite large energy decay at the very early time and another small energy decay around the time interval [20, 30] during the whole evolution process.
We remark that extra experiments with a smaller time step size \(\delta t = 0.001\) and a larger penalty parameter \(Q = 1.0\mathrm{E}{+}21\) for the above examples are also carried out to make sure the convergence of the numerical solutions, and very similar simulation results are obtained for both the single droplet and four droplets cases.
4.2.2 3D Examples
Now we carry out some experiments to simulate the dynamics of the molar density distribution in the 3D space. We use the IEQ-BDF2 scheme with \(\delta t = 5.0\mathrm{E}{-}3\) and a uniform mesh of \(128\times 128\times 128\) and set the penalty parameter \(Q = 1.0\mathrm{E}{+}30\). We first test using a single droplet as the initial condition—the liquid density of isobutane under a saturated pressure condition at the temperature 350 K in the cube subregion of \((\frac{3L}{8},\frac{3L}{4})^3\), and under the same temperature the rest of the cube is filled with a saturated gas of isobutane. Figure 7 presents the simulated molar density distribution for the single droplet case in the 3D space at different times (\(\mathrm{t} = 0, 1, 3, 5, 10, 20\), respectively) during the evolution. We observe that the 3D dynamical behaviors are very consistent with that of the single droplet case in the 2D space, and the droplet finally forms a perfect sphere around the time \(t = 20\), which is the steady state. Figure 8 plots the evolution of the total energy and the mass along the time, and we again observe that the energy monotonically decays and the mass are well preserved with respect to time.
For the next example in the 3D space, the initial configuration is taken to be eight droplets—the liquid density of isobutane at 350 K in the subregion of eight cubes \(\left\{ \big (\frac{L}{4},\frac{L}{2}\big ), \big (\frac{5L}{8},\frac{7L}{8}\big )\right\} ^3\), and at the same temperature the rest of the domain is filled with a saturated gas of isobutane under a saturated pressure condition. Figure 9 presents the simulated molar density distribution for the eight droplet case in the 3D space at different times (\(t = 0, 5, 10, 20, 40, 50\), respectively) during the evolution. The eight cubic droplets first evolve into eight separate spheres, then start to merge and finally form one bigger sphere around the time \(t = 50\). This dynamic process is very similar to that for the four droplets case in the 2D space. In Fig. 10, we present the evolution of the total energy and the mass with respect to the time, and observe again that the energy monotonically decays and the mass always keeps constant.
4.3 Computation of the Interface Tension and Verification Against the Young–Laplace Equation
As the quantity of interest in many applications, the surface tension \(\sigma \) is defined as the work for creating a unit area of interface with a unit of \(\mathrm{J/m}^2\) or the net contractive force per unit length of interface with a unit of N/m from the thermodynamical or mechanical point of view. In this model, the surface/interface tension \(\sigma \) is defined by
where A is the area of the interface.
Let us assume that the mass of the liquid droplet does not change along with time and the steady state droplet has a perfect circular/spherical shape. For the single droplet case in the 2D space, the radius of the circular droplet is \(r=4.231\times 10^{-9}\,\mathrm{m}\). The surface tension of isobutane in the equilibrium state at the temperature ranging from 250 to 333.82 K are calculated by using the IEQ-BDF2 scheme with \(\delta t = 5.0\mathrm{E}{-}3\) on the uniform mesh of \(512\times 512\) and the penalty parameter \(Q = 1.0\mathrm{E}{+}20\). For example, \(F(n)-F_0(n_{initial})\cong 2.229\times 10^{-10}\,\mathrm{J}\) at the temperature \(T=333.82\)K, and the corresponding interface tension is \(\sigma =8.384\times 10^{-3}\,\mathrm{J/m}^2\) by our simulation. The complete results are presented in left panel of Fig. 11 together with the laboratory measured values provided in [19]. From the engineering point of view, it is clear that the differences between the numerical results and the experimental data is small.
Based on the values of the surface tension, we can test another physically concerned quality, the capillary pressure \(P_c\), which defined by the well-known Young–Laplace equation
where the thermodynamic pressure for the liquid \(P_{liquid}\) or the gas \(P_{gas}\) is defined by
According to the Eq. (42), there are two different ways to numerically calculate the capillary pressure, one is to adopt the difference between the liquid drop pressure and the pressure of the gas phase and the other is to apply the numerical results obtained for the interface tension \(\sigma \). For example, at the temperature 333.28 K, \(P_{liquid}=2.634\times 10^6\)Pa and \(P_{gas}=0.701\times 10^6\) Pa, thus the difference is \(P_c=1.933\times 10^6\) Pa. On the other hand, the capillary pressure obtained from the approximated interface tension is \(P_c=\frac{\sigma }{r}=1.981\times 10^6\) Pa. It is clear that the Young–Laplace prediction is well matched with the capillary pressure obtained by our numerical schemes with about an error of \(2\%\). The right panel of Figure 11 plots the capillary pressure from 250 to 333.82 K, which are calculated by above two ways. The matching errors are all about or smaller than \(2\%\) at tested temperatures (similar to the results obtained by the convex splitting schemes [16]). In this case, the diffuse interface model with Peng–Robinson equation of state and the proposed numerical schemes are physically reliable to be used to simulate the two-phase fluid of the substance isobutane (nC4).
We next use the results from the single droplet case in the 3D space to compare with the laboratory data. The IEQ-BDF2 scheme with \(\delta t = 5.0\mathrm{E}{-}3\) on the uniform mesh of \(128\times 128\times 128\) and the penalty parameter \(Q = 1.0\mathrm{E}{+}30\) is used for all simulations, and the results are given in Fig. 12. The simulated interface tensions at all tested temperatures still match the laboratory data from the engineering point of view. For the capillary pressure, the results calculated from the Young–Laplace equation are close to those obtained from the approximate interface tensions when the temperature is in the high end of the [250, 333.28], but the difference becomes larger and larger along with the decreasing of the temperature. This issue on the capillary pressure may be worthy of further investigation from the modeling side on the causes.
5 Conclusions
In this paper, we design a first order and a second order schemes for temporal discretization of the diffusive interface model with Peng–Robinson equation of state based on the IEQ approach; in particular, the single-component two-phase fluid system is specially considered. These schemes are based on the recently developed “Invariant Energy Quadratization” approach and the penalty formulation, and are accurate (up to the second order), unconditionally energy stable, and easy to implement in practice. Moreover, the resulted semilinear system in space at each time step is proven to be symmetric positive definite so that one can implement the Krylov subspace approaches to solve such system effectively and efficiently. Numerical experiments in 2D and 3D spaces are also performed to demonstrate the accuracy and stability of the proposed schemes and to investigate reliability of the target model by comparisons with laboratory data. We also would like to point out that since the IEQ system is not strictly equal to the original system in the discrete sense, in particular, the dissipative energy, it would not be an easy work to prove error estimates for the proposed numerical schemes as done for the convex-splitting method. This is an interesting open problem worthy of further investigation. Another of our future work is to generalize the method to the diffusive interface model for multi-component and multi-phase fluid system.
References
Chen, R., Ji, G., Yang, X., Zhang, H.: Decoupled energy stable schemes for phase-field vesicle membrane model. J. Comput. Phys. 302, 509–523 (2015)
Copetti, M., Elliott, C.: Numerical analysis of the Cahn–Hilliard equation with a logarithmic free energy. Numer. Math. 63, 39–65 (1992)
Davis, H.T.: Statistical Mechanics of Phases, Interfaces, and Thin Films. VCH, New York (1996)
Du, Q., Li, M., Liu, C.: Analysis of a phase field Navier–Stokes vesicle-fluid interaction model. Dis. Contin. Dyn. Syst. B 8, 539–556 (2007)
Du, Q., Liu, C., Wang, X.: A phase field approach in the numerical study of the elastic bending energy for vesicle membranes. J. Comput. Phys. 198, 450–468 (2004)
Du, Q., Liu, C., Wang, X.: Simulating the deformation of vesicle membranes under elastic bending energy in three dimensions. J. Comput. Phys. 212, 757–777 (2005)
Elliott, C.M., Garcke, H.: On the Cahn–Hilliard equation with degenerate mobility. SIAM J. Math. Anal. 27, 404–423 (1996)
Eyre, D.J.: Unconditionally gradient stable time marching the Cahn-Hilliard equation. In: Computational and Mathematical Models of Microstructural Evolution (San Francisco, CA, 1998), Materials Research Society Symposia Proceedings, vol. 529, pp. 39–46. MRS, Warrendale, PA (1998)
Firoozabadi, A.: Thermodynamics of Hydrocarbon Reservoirs. McGraw-Hill, New York (1999)
Frenkel, D., Smit, B.: Understanding Molecular Simulation: From Algorithms to Applications. Academic Press, San Diego, CA (2001)
Guillén-González, F., Tierra, G.: On linear schemes for a Cahn–Hilliard diffuse interface model. J. Comput. Phys. 234, 140–171 (2013)
Han, D., Brylev, A., Yang, X., Tan, Z.: Numerical analysis of second order, fully discrete energy stable schemes for phase field models of two phase incompressible flows. J. Sci. Comput. 70, 965–989 (2016)
Haugen, K.B., Firoozabadi, A.: Composition at the interface between multicomponent nonequilibrium fluid phases. J. Chem. Phys. 130, 064707 (2009)
Kim, J.: Phase-field models for multi-component fluid flows. Commun. Comput. Phys. 12, 613–661 (2012)
Kou, J., Sun, S.: An adaptive finite element method for simulating surface tension with the gradient theory of fluid interfaces. J. Comput. Appl. Math. 255, 593–604 (2014)
Kou, J., Sun, S.: Numerical methods for a multicomponent two-phase interface model with geometric mean influence parameters. SIAM J. Sci. Comput. 37, B543–B569 (2015)
Kou, J., Sun, S.: Unconditionally stable methods for simulating multi-component two-phase interface models with Peng–Robinson equation of state and various boundary conditions. J. Comput. Appl. Math. 291, 158–182 (2016)
Kou, J., Sun, S., Wang, X.: Efficient numerical methods for simulating surface tension of multi-component mixtures with the gradient theory of fluid interfaces. Comput. Methods Appl. Mech. Eng. 292, 92–106 (2015)
Lin, H., Duan, Y.Y.: Surface tension measurements of propane (r-290) and isobutane (r-600a) from (253 to 333)K. J. Chem. Eng. Data 48, 1360–1363 (2003)
Miqueu, C., Mendiboure, B., Graciaa, A., Lachaise, J.: Modelling of the surface tension of multicomponent mixtures with the gradient theory of fluid interfaces. Ind. Eng. Chem. Res. 44, 3321–3329 (2005)
Peng, D., Robinson, D.: A new two-constant equation of state. Ind. Eng. Chem. Fundam. 15, 59–64 (1976)
Qiao, Z., Sun, S.: Two-phase fluid simulation using a diffuse interface model with Peng–Robinson equation of state. SIAM J. Sci. Comput. 36, B708–B728 (2014)
Rongy, L., Haugen, K.B., Firoozabadi, A.: Mixing from Fickian diffusion and natural convection in binary non-equilibrium fluid phases. AIChE J. 58, 1336–1345 (2012)
Shen, J., Yang, X.: Numerical approximations of Allen–Cahn and Cahn–Hilliard equations. Dis. Conti. Dyn. Syst. A 28, 1669–1691 (2010)
Sun, S., Wheeler, M.F.: Symmetric and nonsymmetric discontinuous Galerkin methods for reactive transport in porous media. SIAM J. Numer. Anal. 43, 195–219 (2005)
Sun, S., Wheeler, M.F.: Local problem-based a posteriori error estimators for discontinuous Galerkin approximations of reactive transport. Comput. Geosci. 11, 87–101 (2007)
van der Waals, J.: The thermodynamic theory of capillarity under the hypothesis of a continuous density variation. J. Stat. Phys. 20, 197–244 (1893)
Wang, X., Ju, L., Du, Q.: Efficient and stable exponential time differencing Runge–Kutta methods for phase field elastic bending energy models. J. Comput. Phys. 316, 21–38 (2016)
Wang, C., Wise, S.M.: An energy stable and convergent finite-difference scheme for the modified phase field crystal equation. SIAM J. Numer. Anal. 49, 945–969 (2011)
Wheeler, M.F., Wick, T., Wollner, W.: An augment-Lagrangian method for the phase-field approach for pressurized fractures. Comput. Methods Appl. Mech. Eng. 271, 69–85 (2014)
Yang, X.: Linear, first and second-order, unconditionally energy stable numerical schemes for the phase field model of homopolymer blends. J. Comput. Phys. 327, 294–316 (2016)
Yang, X.: Numerical approximations for the Cahn-Hilliard phase field model of the binary fluid-surfactant system. J. Sci. Comput. (2017). doi:10.1007/s10915-017-0508-6
Yang, X., Han, D.: Linearly first- and second-order, unconditionally energy stable schemes for the phase field crystal equation. J. Comput. Phys. 330, 1116–1134 (2017)
Yang, X., Ju, L.: Efficient linear schemes with unconditionally energy stability for the phase field elastic bending energy model. Comput. Methods Appl. Mech. Eng. 315, 691–712 (2017)
Yang, X., Ju, L.: Linear and unconditionally energy stable schemes for the binary fluid–surfactant phase field model. Comput. Methods Appl. Mech. Eng. 318, 1005–1029 (2017)
Yang, X., Zhao, J., Wang, Q.: Numerical approximations for the molecular beam epitaxial growth model based on the invariant energy quadratization method. J. Comput. Phys. 333, 104–127 (2017)
Zhao, J., Wang, Q., Yang, X.: Numerical approximations for a phase field dendritic crystal growth model based on the invariant energy quadratization approach. Inter. J. Numer. Methods Eng. 110, 279–300 (2017)
Author information
Authors and Affiliations
Corresponding author
Additional information
H. Li’s research is partially supported by National Natural Science Foundation of China under Grant Numbers 11401350 and 11471196, and the China Scholarship Council. L. Ju’s research is partially supported by U.S. National Science Foundation under Grant Number DMS-1521965 and U.S. Department of Energy under Grant Number DE-SC0016540. Q. Peng’s research is partially supported by National Natural Science Foundation of China under Grant Number 11701562.
Appendix
Appendix
All the following parameters are classical definitions, and can be found in the references [15, 16, 18, 22] and the references cited therein. The universal gas constant R has a value of approximately \(8.31432\,\text {JK}^{-1}\text {mol}^{-1}\), and the (temperature-dependent) energy parameter \(a=a(T)\) and the co-volume parameter b in the Peng–Robinson equation of state are defined as
with \(\displaystyle y_i=\frac{n_i}{n}\) being the mole fraction of component i. The binary interaction coefficient \(0\le k_{ij}\le 1\) is assumed to be a constant for a fixed species pair and usually computed from experimental correlation. The Peng–Robinson parameters for the pure-substance component i, \(a_i\) and \(b_i\), are calculated from the critical properties of the specie
where \(T_{c_i}\) and \(P_{c_i}\) represent the critical temperature and pressure of the pure substance component i respectively, which are intrinsic properties of the specie and available for most substances encountered in engineering applications. The parameter \(m_i\) for modeling the influence of temperature on \(a_i\) is experimentally correlated to the acentric parameter of the specie \(\omega _i\) by
with
where \(T_{b_i}\) represents the normal boiling point of the pure substance i, “PSI” is “pounds per square inch”, and “atm” refers to the standard atmosphere pressure (equal to 101325 Pa).
The dependence of the influence parameter \(c_{ij}\) on the molar concentrations is practice very weak, thus it is common to assume that \(c_{ij}=c_{ij}(T)\) is just a temperature-dependent parameter, which often can be obtained by adopting the modified geometric mean
Note \(\beta _{ij}\) is the binary interaction coefficient for the influence parameter, usually required to be included between 0 and 1 and \(\beta _{ij}=\beta _{ji}\) to maintain the stability of the interfaces, and \(c_i\) is the influence parameter of the pure substance component i, computed by
with \(m^c_{1,i}\) and \(m^c_{2,i}\) being the coefficients correlated merely with the acentric factor \(\omega _i\) by
Rights and permissions
About this article
Cite this article
Li, H., Ju, L., Zhang, C. et al. Unconditionally Energy Stable Linear Schemes for the Diffuse Interface Model with Peng–Robinson Equation of State. J Sci Comput 75, 993–1015 (2018). https://doi.org/10.1007/s10915-017-0576-7
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10915-017-0576-7
Keywords
- Diffuse interface
- Linear scheme
- Peng–Robinson equation of state
- Invariant energy quadratization
- Energy stability
- Penalty formulation