1 Introduction
In recent years, there has been much interest in the development of computational models for simulation of fluid dynamics on the basis of particle interactions [
1-
4]. In many fluid simulation problems, the potential energy of a moderate number of particles is sufficient to represent some macroscopic behaviors. However, to study phenomena such as the mobility of colloids, chemical reactions of macromolecules, fluid diffusion in crowded media, or the dynamics of phase segregation, a large number of particles is required to obtain good descriptions. For such problems, several mesoscopic simulation techniques have been implemented, for example, lattice gas automata [
5], lattice Boltzmann methods for fluid dynamics [
6] and for multiphase flows [
7-
9], dissipative particle dynamics [
10,
11], smoothed particle dynamics [
12], and multiparticle collision dynamics [
13-
15]. Each of these techniques provides a coarse-grained approach that incorporates conservation laws and the essential physics while omitting corpuscular details.
Multiparticle collision dynamics, also known as stochastic rotation dynamics [
16], is a particle-based technique for complex fluids that includes thermal fluctuations and hydrodynamic interactions [
13]. Multiparticle collision dynamics has proven to be capable of simulating many soft-matter systems, including colloids [
14,
17,
18], polymers and proteins [
19-
24], vesicles [
25], and reactive systems [
26,
27]. Multiparticle collision dynamics has also been employed to investigate the properties of chemical reactions in crowded environments, i.e., media containing obstacles [
28-
30].
In particular, owing to their spatial and temporal scales, binary fluid systems are well suited for simulation through multiparticle collision techniques. There are two main approaches for simulating a binary fluid in the context of multiparticle collision dynamics. The first, proposed by Hashimoto
et al. [
31], incorporates an additional collision step in the multiparticle collision scheme to guide the mean particle flow of each species in the direction of its density gradient. These authors studied segregation phenomena in a binary fluid and observed the formation of drop-shaped domains with curvatures that can be described by Laplace’s law. An extension of this approach has been used to describe amphiphilic fluids [
32] and compounds consisting of hydrophilic and hydrophobic parts [
33]. Although this extension of the multiparticle collision technique conserves energy and momentum, it has not been proven to yield thermodynamically consistent results [
34].
The second approach extends multiparticle collision dynamics to a binary mixture where particles of different species collide in supercells, while the rest of the multiparticle collision process occurs in smaller cells [
35]. This approach can simulate phase separation phenomena, although it requires the use of a shifting technique to ensure Galilean invariance [
36]. However, phase separation is achieved at very low temperatures, at which strong correlations usually appear among particles.
In this article, we propose a multiparticle collision model with a repulsion rule to investigate phase separation processes in a binary fluid in both free and crowded environments. In Section 2, we present the model and introduce the repulsion rule for the collision dynamics between the centers of mass of particles of different species. We show that this rule preserves the mass and energy of the system and discuss the conservation of momentum and Galilean invariance. In Section 3, the model is employed to study the behavior of a binary fluid in a free environment. We investigate several phenomena in a wide range of temperatures, including the stability of an interface front between the two species, phase separation and phase growth, and calculate the characteristic parameters for these processes. The simulation results are shown to be in good agreement with theoretical models. In Section 4, we simulate the properties of a binary fluid in a crowded environment by considering particles of both species moving through a random distribution of stationary obstacles. Under this condition, we describe the stabilization of the interface and the formation of domains. Conclusions are presented in Section 5.
2 Segregation rules in multiparticle collision dynamics
Multiparticle collision models simplify the dynamical description while retaining the essential features of molecular dynamics [
13-
15]. We consider a fluid consisting of particles of two species,
A and
B. The masses of particles of species
A and
B are
mA and
mB, respectively. Particles of both species, with continuous positions and velocities, stream freely between multiparticle collision events that occur at discrete time intervals
τ. To obtain collisions, the volume
of the system is divided into cubic cells with length
labeled by an index
ξ. We denote by
the number of particles of species
γ in cell
ξ, where
γ can take the value
A or
B. The center-of-mass velocity of particles of species
γ in cell
ξ before collision is given by
where is the pre-collision velocity of particle i of species γ in cell ξ.
Segregation in binary fluids can be simulated by including repulsion effects among species similar to those employed in models of spinodal decomposition with molecular dynamics [
37]. Thus, we define the center-of-mass velocity of particles of species
γ after all-species collisions as
where represents a species other than γ, is the density of particles of species in cell ξ, is the unit vector in the direction between the centers of mass of species γ and , is the vector norm, and κ is a parameter representing the repulsive force between different species. Note that if , i.e., if there are no particles of species in cell ξ, then the center-of-mass velocity of particles of species γ does not change; i.e., . We calculate the velocity of particles of species γ with respect to the velocity of the center of mass after the collision as
Next, we apply the one-species rotation defined as
where is a randomly chosen rotation operator applied only to particles of species γ.
The rule introduced in Eq. (2) can also be seen as a rotation of the velocity vector of the center of mass of each species in the opposite direction to the center of mass of the other species. Note that the multiparticle collision model with repulsion conserves both energy and mass in each cell
ξ after each multiparticle collision event. Linear momentum is conserved within a homogeneous phase, but not at the interfaces. We verified the Galilean invariance of the simulations by checking that the diffusion coefficient of the system is independent of the spatial direction [
36].
3 Binary fluid in a free environment
3.1 Diffusion coefficient
Phase separation and the formation of stable interfaces in binary fluids usually occur at low temperatures. To study the behavior of the multiparticle-collision repulsion model at low temperatures, we first consider the case of a single species. Then, only rules (1) and (4) apply, with . The volume is defined as , with periodic boundary conditions. In each simulation step , the rotation operators are taken to describe rotation angles about randomly chosen axes. The number of particles in the system is , where ρ is the mean density of particles.
Assuming that collision events are not correlated, it has been shown that the diffusion coefficient for a single species in multiparticle collision dynamics can be approximated by the expression [
27]
where kB is the Boltzmann constant, and the temperature T is given in reduced units. This equation is satisfied when the average displacement of the particles between collisions is of the order of the size of the cell, i.e., when .
Figure 1 shows the diffusion coefficient D for a single species as a function of the density, calculated from the simulations and compared with Eq. (5), for different temperatures.
Note that at low temperatures, the diffusion coefficient calculated from the simulations agrees with the mesoscopic diffusion coefficient given by Eq. (5). These results show that multiparticle collision models can be used to simulate systems with relatively low temperatures () while maintaining good diffusive behavior.
3.2 Interface stability
To implement the multiparticle collision model with repulsion, Eqs. (1)–(4), we consider a three-dimensional film with length units along x, width units along y, and height units along z. We impose periodic boundary conditions in the y and z directions, and bounce-back reflection boundary conditions on both the left and right sides of the film along the x direction. The average number of particles per cell is assumed to be the same for both species; i.e., . Additionally, we assume species with equal masses; i.e., .
First, we study the properties of the interface between the two fluids. As an initial condition, particles of species A are uniformly distributed at random on the right side of the film so that their mean density, averaged over cells, is and , and particles of species B are similarly distributed on the left side of the film; i.e., , and .
Figure 2(a) shows a snapshot of the initial condition of the system. Figures 2(b) and (c) show snapshots of the system at iterations with parameters and , respectively. Note that in both Fig. 2(b) and Fig. 2(c), the system maintains two phases separated by a thin region where species A and B are mixed. That is, the multiparticle-collision repulsion model can yield a stable interface for some values of the system parameters.
To characterize the interface, we calculate the normalized density profile, which is defined as
where is the mean density of species γ in cells with coordinate x, and is the value of far from the interface.
Figure 3 shows the variation of the normalized density profile for two different numbers of particles per cell. Note that as the number of particles per cell increases, the interface becomes sharper. This effect is expected because the repulsion between particles of different species increases as their densities increase.
To measure the interface width, denoted by
ζ, we fitted the simulation points in the interface profile of Fig. 3 with the function [
38]
The behavior of the interface width ζ as a function of the repulsion parameter κ is shown in Fig. 4. There is a critical value, , above which ζ reaches an asymptotic minimum value. This indicates that the repulsion between species due to collisions, as represented in Eq. (4), becomes maximum for .
The effect of the temperature on the interface width can be approximated using the classical Ising model for an interface between two species [
38],
where Tc is the critical temperature for interface formation.
In Fig. 5, we compare the numerical results obtained from our model with the values given by Eq. (8) for two different values of n. There is good agreement between the behavior described by Eq. (8) and the simulations. The critical temperatures calculated from the fitting of the numerical points to Eq. (8) are for and for .
Another property that characterizes an interface is the interfacial tension, denoted by
. A simple way to estimate
is through the expression [
38]
Figure 6 shows the
values obtained from Eq. (9) as a function of temperature. The simulation points are compared with the theoretical expression for interfacial tension given by the Ising model [
38],
Note that for temperatures , the interfacial tension values calculated from the simulations and Eq. (9) are well fitted by the theoretical curve from Eq. (10).
It is known from direct molecular dynamics simulations with two immiscible Lennard–Jones fluids [
40], as well as from density functional theory [
41], that the interfacial tension
exhibits a maximum as the temperature is varied. The maximum value of
occurs at a temperature at which the attractive interaction forces between particles cancel out the thermal effect. For temperatures above this point, the thermal effect is sufficiently strong to cause a decrease in the value of
. Our multiparticle collision binary fluid model agrees well with the behavior of
predicted by the Ising model for temperatures at which the thermal effect is dominant. However, in this model, the attractive interaction forces between particles are not explicit but are represented by rotation operators.
3.3 Phase separation
Next, we consider the problem of phase separation of an immiscible binary fluid in the framework of our model. The dimensions of the sides of the box are and , and we assume that the volume has periodic boundary conditions on all three axes. We start from homogeneous initial conditions where both species are uniformly distributed in the volume of the simulation box.
Figure 7 shows four snapshots of the evolution of the system. The initial well-mixed state is displayed in Fig. 7(a). Figures 7(b)–(d) show the spontaneous formation of a segregated state at successive times, where the domains become separated by a thin interface.
Domain growth can be characterized by the time evolution of the average radius as
where Rt is the average radius of the phase domain at time t, and α is the growth exponent. We define the average radius Rt as the distance r at which the spatial correlation function first becomes zero; that is
The spatial correlation function using the discrete cells of the model can be calculated as
where is the distance between the center of cell ξ and the center of cell , is the spatial average over all pairs of cells ξ and separated by a distance r, and
is the difference between the densities of species γ and in cell ξ at time t.
Figure 8 shows a log–log plot of
Rt as a function of time for a fixed temperature. The logarithm of the radius
Rt increases linearly with the logarithm of time in the interval
. The corresponding slope, obtained by fitting the data, yields the growth exponent
, which is close to the theoretical value
for phase growth in a diffusive regime [
39]. For times greater than
, the domain size reaches half the size of the simulation box (that is,
), and the domain growth slows down.
Figure 9 shows the growth exponent α as a function of the temperature T calculated numerically from data in the time interval for which Eq. (11) is valid. The exponent α decays linearly with increasing temperature up to a value of . Above this critical temperature, the error bars in the determination of the quantity α are too large, and the interface becomes unstable because thermal mixing halts the phase separation process.
4 Binary fluid in a crowded environment
The motion of fluids in a crowded environment with obstacles is a highly interesting problem in cell biology and other contexts [
42-
44]. One way of modeling a fluid film in a crowded environment is by placing a set of cylindrical obstacles in the system [
30]. To simulate the behavior of a binary fluid in a crowded environment using our model, we insert
NS stationary cylinders in a volume of radius
σ with a height equal to the height of the simulation box
Lz. The fraction of the volume occupied by the obstacles is
. We fix the radius of the cylinders at
in units of cells.
As in the previous simulations, particles of one species are distributed uniformly in the right half of the simulation box, and particles of the other species are distributed on the left half of the box. We set the particle velocities using a Boltzmann distribution with temperature T and fix the densities and the repulsion parameter at . We assume that when a particle of either species collides with an obstacle, its velocity is reversed, i.e., a bounce-back collision occurs.
Figure 10 shows two snapshots of the system when the interface has stabilized for different values of the volume fraction occupied by obstacles. Note that the interface lies close to obstacles and appears distorted. This effect is a consequence of the reduction in pressure that occurs when the distance between the interface curve and an obstacle is small enough to produce an imbalance of forces that removes the particles lying between the interface and the obstacle.
We also study spontaneous phase separation of an immiscible binary fluid in a crowded environment. In this case, the particles of each species are initially distributed uniformly throughout the volume of the simulation box, avoiding the space occupied by the obstacles.
Figure 11 shows snapshots of the evolution of the phase growth processes for three different values of the volume fraction of obstacles ϕ. As expected, phase growth from a homogeneous state is affected by the presence of obstacles. At first glance, we can see that growth becomes slower when ϕ is increased, as obstacles impede the aggregation of particles in domains. Additionally, we see that the interfaces lie along the locations of obstacles, lacking the rounded profile that they possess when the medium is free.
To investigate the effect of obstacles on the phase growth process, we calculated the time evolution of the average radius of the phase domain Rt for several values of ϕ, as shown in Fig. 12(a). For each value of ϕ, Rt can be adjusted to the expression Eq. (11) in the time interval . This allows us to calculate the growth exponent α as a function of ϕ, as shown in Fig. 12(b). Increasing the density of obstacles leads to a decrease in the velocity of the phase growth process, which is represented by the exponent α.
5 Conclusions
We proposed a multiparticle collision dynamics model to investigate phase separation processes in a binary fluid. To this end, we introduced a repulsion rule between the centers of mass of particles from different species to simulate segregation in a binary fluid. We applied this model to mesoscopic systems in both free and crowded environments, where the volume was discretized into finite cells.
Because the repulsion rule depends only on the configuration of the particles inside each cell, the model maintains Galilean invariance. In addition, the multiparticle collision model with repulsion conserves the mass and energy of the system at the micro- and macro-scales, whereas momentum is conserved within homogeneous domains, but not at the interfaces.
Despite this limitation, the multiparticle-collision repulsion model yields results consistent with the known behavior of binary fluids. Properties such as the diffusion coefficient, density profile, and width of the interface calculated from simulations of the multiparticle-collision repulsion model agree very well with the theoretical values predicted by the Ising model for interfaces in a wide range of temperatures and densities. For moderate and low temperatures, the model can simulate the segregation of an immiscible binary fluid into domains, starting from mixed, homogeneous initial conditions. Moreover, the growth exponents of the phases obtained from the model are similar to the corresponding growth exponents that characterize Newtonian binary fluids.
We extended the multiparticle-collision repulsion model to simulate crowded environments. The results from the simulations are also consistent with the behavior of binary fluids in these environments.
The good performance of the multiparticle-collision repulsion model for a binary fluid suggests that it can be generalized to incorporate other phenomena, such as chemical reactions among the species, and to consider species that may diffuse at different rates. In addition, because of its low computational cost, the multiparticle-collision repulsion model can be used to simulate systems with relatively large temporal and spatial scales, i.e., to simulate systems with millions of particles for millions of iterations.
Higher Education Press and Springer-Verlag Berlin Heidelberg 2017