Abstract To improve the research methods in petroleum industry, we develop a fast algorithm to simulate droplet motions in oil and water two phase flow, using phase field model to describe the phase distribution in the flow process. An efficient partial difference equation solver—Shift-Matrix method is applied here, to speed up the calculation coding in high-level language, i.e. Matlab and R. An analytical solution of order parameter is derived, to define the initial condition of phase distribution. The upwind scheme is applied in our algorithm, to make it energy decay stable, which results in the fast speed of calculation. To make it more clear and understandable, we provide the specific code for forming the coefficient matrix used in Shift-Matrix Method. Our algorithm is compared with other methods in different scales, including Front Tracking and VOSET method in macroscopic and LBM method using RK model in mesoscopic scale. In addition, we compare the result of droplet motion under gravity using our algorithm with the empirical formula common used in industry. The result proves the high efficiency and robustness of our algorithm and it’s then used to simulate the motions of multiple droplets under gravity and cross-direction forces, which is more practical in industry and can be extended to wider application.
[1]
Shuyu Sun,et al.
Multi-scale diffuse interface modeling of multi-component two-phase flow with partial miscibility
,
2016,
J. Comput. Phys..
[2]
Tao Zhang,et al.
A Compact Numerical Implementation for Solving Stokes Equations Using Matrix-vector Operations
,
2015,
ICCS.
[3]
Amgad Salama,et al.
Matrix-oriented implementation for the numerical solution of the partial differential equations governing flows and transport in porous media
,
2012
.
[4]
Shuyu Sun,et al.
Thermodynamically consistent modeling and simulation of multi-component two-phase flow model with partial miscibility
,
2016,
1611.08622.
[5]
J. E. Hilliard,et al.
Free Energy of a Nonuniform System. I. Interfacial Free Energy and Free Energy of a Nonuniform System. III. Nucleation in a Two‐Component Incompressible Fluid
,
2013
.
[6]
Xiaofeng Yang,et al.
Numerical approximations of Allen-Cahn and Cahn-Hilliard equations
,
2010
.