Selective-pivot sampling of radial distribution functions in asymmetric ...

1 downloads 0 Views 306KB Size Report
May 29, 2007 - We present a Monte Carlo algorithm for selectively sampling radial distribution functions and effective interaction potentials in asymmetric liquid ...
Selective-pivot sampling of radial distribution functions in asymmetric liquid mixtures J. G. Malherbe Physique des Liquides et Milieux Complexes, Facult´e des Sciences et de Technologie, Universit´e Paris XII, 61 av. du G´en´eral de Gaulle, 94010 Cr´eteil Cedex, France

Werner Krauth

arXiv:0705.4168v1 [cond-mat.soft] 29 May 2007

CNRS-Laboratoire de Physique Statistique, Ecole Normale Sup´erieure, 24 rue Lhomond, 75231 Paris Cedex 05, France (Dated: 29 May 2007) We present a Monte Carlo algorithm for selectively sampling radial distribution functions and effective interaction potentials in asymmetric liquid mixtures. We demonstrate its efficiency for hard-sphere mixtures, and for model systems with more general interactions, and compare our simulations with several analytical approximations. For interaction potentials containing a hardsphere contribution, the algorithm yields the contact value of the radial distribution function.

I.

INTRODUCTION

Liquid mixtures have been studied in the past decades with objectives ranging from understanding basic theoretical properties to answering questions of technological relevance. The simplest model of liquid mixtures, binary hard spheres, has been an important test bed for experimental, analytical and numerical techniques.

m Vklm

l k i

j binary hard-sphere mixture

Vij

effective fluid

FIG. 1: Asymmetric hard-sphere mixture (left), and its effective fluid of solutes (pair interaction Vij and triplet interaction Vklm shown, right).

In asymmetric binary mixtures consisting of few large particles (solutes) and many small particles (solvent) (see Fig. 1), one may in principle integrate out all the degrees of freedom of the solvent, and arrive at an equivalent effective fluid of only the large particles, with complicated effective interactions involving pairs, triplets, and, more generally, n-tuples of solutes [1]. Usually, all contributions beyond the pair interaction are neglected (see, for example, [2]), even though they are quite important [3, 4, 5]. Moreover, integral-equation theories or density functional theories [6], among others, allow to study the mixtures directly. For asymmetric hard-sphere mixtures, various approaches based on thermodynamic criteria yield empirical equations of state (see for example [7]). However, many theories may fail in extended regions of parameter space because of the different sizes of solutes and solvent (for problems with the integral-equation theories, see [8]). Numerical simulation is a crucial tool to validate the above methods. However it also meets difficulties for asymmetric mixtures. On the one hand, the displacement of each solute is highly constrained by the surrounding solvent (see [9]). Pivot-cluster Monte Carlo algorithms [10] have partially overcome this problem for hard-sphere models [11] and for interacting mixtures [12, 13], as long as the overall density of the system is not too high [14]. On the other hand, the difference in size of solutes and of solvent particles generates a sampling problem for observables such as the pair-distribution functions, which vary strongly on the very small scale of the solvent. To describe these observables, one needs many data (generally contained in a histogram with a fine grid). On close approach of two solutes in asymmetric mixtures, the pair correlation functions rise steeply. Therefore, the contact value of the pair-correlation function cannot be obtained precisely by extrapolation [15]. In this paper, we introduce a selective-pivot sampling algorithm, which allows us to compute the ratio of the radial distribution functions g(R)/g(R′ ) for two arbitrary inter-particle distances R and R′ . For hard-sphere mixtures, we compute the pair-correlation function of the solutes and especially its contact value. We also determine the potential of the mean force. We furthermore discuss the extension of the method to systems with arbitrary pair interactions.

2 II.

SELECTIVE-PIVOT SAMPLING

pivot

1′

1′ Of

Oi

2

1

2

i

1

f

FIG. 2: Selective-pivot move 1 → 1′ (configuration i, left) and return move 1′ → 1 (f , right). In i, the distance R12 = Ri , and R1′ 2 = Rf . All pivots resulting in a new distance Rf lie on a sphere Si with center Oi and radius Rf /2 (crosses).

For simplicity, we first discuss selective-pivot sampling for a system of an isolated pair of three-dimensional hard spheres. To sample the ratio of the pair correlation function for two arbitrarily distances, Ri and Rf , we consider a configuration i, with a distance Ri between the two particles, and all moves of one particle (1 → 1′ ) such that the new distance is Rf (see Fig. 2). Any such move can be interpreted as a reflection around a pivot located on a sphere Si with radius Rf /2 and center Oi , half-way between the two particles. We choose the pivot randomly on the sphere Si (using Gaussian random numbers, see [9]). The a priori probabilities for proposing the move i → f , and the return move f → i are, respectively, 1 1 1 1 A(i → f ) = ∝ 2 , A(f → i) = ∝ 2. Si Rf Sf Ri The detailed-balance condition connects the stationary probabilities π(i) and π(f ) with the a priori probabilities: π(i)A(i → f ) = π(f )A(f → i). It follows that the probabilities of the two configurations are biased by a geometric factor with respect to the constant hard-sphere probabilities, Rf2 π(i) Sf = 2. = π(f ) Si Ri

(1)

For spherically symmetric systems, the pair correlation function depends solely on the distance between particles and reduces to the radial distribution function g(R), which is linked with the probability π(R) to observe a particle in an infinitesimal spherical shell of radius R, the other one being at its center, by π(R) ∝ R2 g(R)dR. The biasing factor in eq. (1) cancels the phase-space factor of the radial distribution function, and the ratio of the probabilities π(i) and π(f ) equals the ratio of the radial distribution functions: gi π(i) . = π(f ) gf

(2)

The above algorithm and the relation of eq. (2) between the probabilities of observing the distances Ri and Rf remain valid for two or more solute particles in a box with periodic boundary conditions, in the presence of other components (solvent). It suffices to permanently tag two solutes. One Monte Carlo move involves a single pivot, but may transform many particles (see [9]), including both tagged ones, so that the distance between them may not change. III.

APPLICATIONS

To validate the selective-pivot sampling algorithm, and to explore possible applications, we compute the distribution function of the solutes for asymmetric binary mixtures, and compare it with simulation data obtained with standard cluster simulation methods, as well as with analytic approximations. In this system, we also compute the contact value of the distribution function. This can be done directly, without extrapolation. Furthermore, we use the selective-pivot sampling algorithm to compute the potential of the mean force, that is, the distribution function for two solutes in a large bath of solvent, approaching the regime of infinite dilution.

3 A.

Radial distribution function of solutes

We consider an asymmetric binary mixture of spheres with diameters Ds (small particles—solvent) and Dl (large particles–solute), and size ratio R = Dl /Ds = 10, at packing fractions ηs = 0.126 and ηl = 0.121, where the cluster algorithm performs well (the packing fraction of the solvent, ηs , is linked to the number of solvents Ns in the simulation box of volume V by ηs = π6 (Ns /V )Ds3 , etc.). 15

gll(r)

10

5

0 10

10.4

10.8

r/Ds FIG. 3: Radial distribution function of the solutes for hard spheres with R = 10, ηs = 0.126 and ηl = 0.121. Symbols: Cluster algorithm (filled squares: standard sampling method; empty squares: selective-pivot sampling); full line: density functional theory; dashed line: RHNC-MSA [8]

In Fig. 3, we compare the radial distribution function of the large spheres gll (r) obtained from selective-pivot sampling and from a standard cluster algorithm and find very good agreement. The contact region and, especially, the contact value gll (r = Dl ) become accessible only with our sampling scheme. With standard grid sampling, they can be obtained only by extrapolation because the probability of observing two solutes exactly at contact is zero. Our sampling approach gives sensibly more accurate contact values than the standard method (see [16]). In Fig. 3, gll (Dl ) = 13.03 ± 0.26. As a common use of simulation data, we also compare the pair-correlation function with density functional theory, which agrees very well [17, 18], and with the Ornstein-Zernike integral equation with the RHNC-MSA closure, which overshoots in the contact region [8]. B.

Potential of the mean force

As another application of selective-pivot sampling, we consider the potential of the mean force, the solute paircorrelation function in the limit of infinite dilution of the solute particles:  (3) lim gll r, η b = exp [−βU (r)] , ηl →0

where U (r) = ull (r) + Φeff (r) is the total pair interaction between the solutes, ull (r) the direct interaction, Φeff (r) the pair potential of the mean force and ηb the bulk solvent packing fraction. The selective-pivot sampling algorithm allows us therefore to compute the potential of the mean force of the effective fluid obtained by integrating out the solvent particles of the binary mixture. One simply puts the two tagged solutes into a bath of solvent and determines the potential differences for several pairs Ri , Rf . The size of the bath plays almost no role in this simulation because the two large particles are kept at two fixed distances, and cannot escape to infinite separation. The simulation can thus take place in a large box, approaching the infinite dilution of the two solute particles. To illustrate this point, we computed the potential of the mean force between two hard-sphere solutes in a bath of hard-sphere solvent with size ration R = 5 and bulk packing fractions ηb = 0.1 and ηb = 0.2. We considered here Ns = 5280 and Ns = 10560 respectively in a cubic box of L = 30Ds . At a difference of other simulation methods for computing the effective interaction, this method needs no extrapolation [19] and has no adjustable parameter [20]. The Monte Carlo data agree very well with the potential of the mean force obtained from the Ornstein-Zernike equation with the Rosenfeld fundamental measure closure [21, 22] (see Fig. 4).

4 0.5

β φe f f(r)

0 -0.5 -1

-1.5 -2 5

5.5

r/Ds

6

6.5

FIG. 4: Potential of the mean force for hard-sphere mixture with R = 5; symbols: Selective-pivot sampling; lines: RHNC/fundamental measure functional; circles: bulk packing fraction ηb = 0.1; squares: ηb = 0.2.

IV.

SELECTIVE-PIVOT SAMPLING FOR MODELS WITH GENERAL PAIR INTERACTIONS

Our sampling method can be directly generalized to more general interactions, which can also be handled by the pivot-cluster algorithm (see [12, 13]). As an illustration we study the effect of solvation forces in a binary mixture of colloids with size ratio R = 5, and a Yukawa tail for unlike pairs of colloids added to the hard-sphere interaction:  ∞ r < Dls uls (r) = . (4) −ǫls exp{−zls (r − Dls )}/r r ≥ Dls 5 4

gll(r)

3 2 1 0 5

5.4

5.8

6.2

r/Ds FIG. 5: Pair distribution function of solute particles for R = 5, ηs = 0.11 and ηl = 0.12. Empty symbols: standard sampling ∗ method; filled symbols: selective-pivot sampling; squares: hard-sphere; circles: Yukawa interaction with zls = 10; triangles: ∗ with zls = 2.5.

We used a value of 0.5kB T for the depth of the attractive well, which correspond to ǫ∗ls = ǫls Ds /(kB T ) = 3/2, and considered two values for the inverse range of the attraction force, zls∗ = zls Ds = 10 and zls∗ = 2.5. In Fig. 5 we see that data obtained from selective-pivot sampling and from standard cluster algorithm agree very well. The advantages and the applications mentioned in the previous section carry over. Fig. 5 shows that the contact value of the radial distribution function decreases when the range of the attraction between small and large particles increases, because the solvation forces create a thin shell of small colloids which counterbalances the depletion between the large ones.

5 V.

CONCLUSION

In this paper, we have presented a selective sampling cluster algorithm which allows to obtain the radial distribution function, including the contact value, and also yields the pair potential of the mean force between two solutes due to the presence of the solvent. The algorithm solves a sampling problem for observables with very rich structure on a small scale, but does not overcome the remaining limitation of cluster algorithms for liquid simulations, namely the restriction to moderate densities. It will be interesting to see whether this restriction can also be overcome in the future.

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22]

T. L. Hill, Statistical Mechanics (Dover Publications, New York) (1987). M. Dijkstra, R. van Roij, and R. Evans, Phys. Rev. E 59, 5744 (1999). R. Tehver, A. Maritan, J. Koplik, and R. Banavar, Phys. Rev. E 59 1339 (1999). J. G. Malherbe and S. Amokrane, Molec. Phys. 99, 355 (2001). S. Amokrane, A. Ayadim, and J. G. Malherbe, J. Phys.: Condens. Matter 15, S3443 (2003). R. Evans, Fundamentals of inhomogeneous fluids, Ch.3, ed D. Henderson (Marcel Dekker New York), 85 (1992). D. Henderson and K. Y. Chan, Molec. Phys. 98, 1005 (2000); C. Regnaut, A. Dyan, and S. Amokrane, Molec. Phys. 99, 2055 (2001); D. Viduna and W. R. Smith, Molec. Phys. 100, 2903 (2002); A Santos, S. B. Yuste, and M. L´ opez de Haro, J. Chem. Phys. 117, 5785 (2002); C. Barrio and J. R. Solana, J. Chem. Phys. 119, 3826 (2003). S. Amokrane, A. Ayadim, and J. G. Malherbe, J. Chem. Phys. 123, 174508 (2005). W. Krauth, Statistical Mechanics: Algorithms and Computations (Oxford University Press, Oxford, UK) (2006). C. Dress and W. Krauth, J. Phys. A: Math. Gen. 28, L597 (1995). A. Buhot and W. Krauth, Phys. Rev. Lett. 80, 3787 (1998). J.G. Malherbe and S. Amokrane, Molec. Phys. 97, 677 (1999). J. Liu and E. Luijten, Phys. Rev. Lett. 92, 035504 (2004). J. Liu and E. Luijten, Phys. Rev. E 71, 066701 (2005). M. P. Allen and D. J. Tildesley, Computer simulation of liquids (Oxford Science Publication, UK) (1987). A. Vrabecz and G. T´ oth, Molec. Phys. 104, 1843 (2006). Y. Yu and J. Wu, J. Chem. Phys. 117, 10156 (2002). R. Roth, R. Evans, A. Lang, and G. Kahl, J. Phys.: Condens. Matter 4, 12063 (2002). R. Dickman, P. Attard, and V. J. Simonian, J. Chem. Phys. 107, 205 (1997). W. Li and H. R. Ma, Phys. Rev. E 66, 061407 (2002). Y. Rosenfeld, J. Chem. Phys. 98, 8126 (1993). S. Amokrane and J. G. Malherbe, J. Phys.: Condens. Matter 13, 7199 (2001); erratum ibid 14, 3845 (2002).

Suggest Documents