Diffusion under confinement: hydrodynamic finite-size effects in simulation
Pauline Simonnin, Benoit Noetinger, Carlos Nieto-Draghi, Virginie, Marry, Benjamin Rotenberg

TL;DR
This paper analyzes how finite-size effects influence diffusion measurements in confined fluids through molecular dynamics simulations and hydrodynamic theory, providing analytical corrections for simulation artifacts in narrow and wide nanopores.
Contribution
It derives analytical expressions to correct finite-size effects in diffusion simulations of confined fluids, applicable across various simulation methods and pore geometries.
Findings
Finite-size effects significantly impact diffusion coefficients in confined fluids.
Analytical corrections match simulation results well except in very narrow pores.
Wide nanopore diffusion coefficients are affected by previously unrecognized finite-size artifacts.
Abstract
We investigate finite-size effects on diffusion in confined fluids using molecular dynamics simulations and hydrodynamic calculations. Specifically, we consider a Lennard-Jones fluid in slit pores without slip at the interface and show that the use of periodic boundary conditions in the directions along the surfaces results in dramatic finite-size effects, in addition to that of the physically relevant confining length. As in the simulation of bulk fluids, these effects arise from spurious hydrodynamic interactions between periodic images and from the constraint of total momentum conservation. We derive analytical expressions for the correction to the diffusion coefficient in the limits of both elongated and flat systems, which are in excellent agreement with the molecular simulation results except for the narrowest pores, where the discreteness of the fluid particles starts to play a…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNanopore and Nanochannel Transport Studies · Material Dynamics and Properties · Electrostatics and Colloid Interactions
Diffusion under confinement: hydrodynamic finite-size effects in simulation
Pauline Simonnin1,2
Benoit Noetinger2
Carlos Nieto-Draghi2
Virginie Marry1
Benjamin Rotenberg1
1Sorbonne Universités, UPMC Univ Paris 06, CNRS, Laboratoire PHENIX, Case 51, 4 Place Jussieu, F-75005 Paris, France
2IFP Energies Nouvelles, 1 & 4 avenue de Bois-Préau, 92852 Rueil-Malmaison
Abstract
We investigate finite-size effects on diffusion in confined fluids using molecular dynamics simulations and hydrodynamic calculations. Specifically, we consider a Lennard-Jones fluid in slit pores without slip at the interface and show that the use of periodic boundary conditions in the directions along the surfaces results in dramatic finite-size effects, in addition to that of the physically relevant confining length. As in the simulation of bulk fluids, these effects arise from spurious hydrodynamic interactions between periodic images and from the constraint of total momentum conservation. We derive analytical expressions for the correction to the diffusion coefficient in the limits of both elongated and flat systems, which are in excellent agreement with the molecular simulation results except for the narrowest pores, where the discreteness of the fluid particles starts to play a role. The present work implies that the diffusion coefficients for wide nanopores computed using elongated boxes suffer from finite-size artifacts which had not been previously appreciated. In addition, our analytical expression provides the correction to be applied to the simulation results for finite (possibly small) systems. It applies not only to molecular but also to all mesoscopic hydrodynamic simulations, including Lattice-Boltzmann, Multi-Particle Collision Dynamics or Dissipative Particle Dynamics, which are often used to investigate confined soft matter involving colloidal particles and polymers.
The dynamics of fluids can be dramatically modified under confinement down to the molecular scale in nanotubes Striolo (2006); Falk et al. (2010) or nanopores Falk et al. (2015), due to the discreteness of matter and to the interfacial fluid-solid interactions. Even in larger pores, wider than tens of molecular sizes which are typical of nanofluidic devices Mathwig et al. (2012); Siria et al. (2013) and for which continuum hydrodynamics hold Bocquet and Charlaix (2010), confining walls influence the dynamics of the fluids and solutes Hagen et al. (1997); Huang and Szlufarska (2015). In particular, the diffusion coefficient of particles along a wall is generally reduced due to the friction at the interface.
Quantitatively, the solution of the Stokes equation in a slit pore involves a series of contributions of hydrodynamic images situated inside the solid walls. It predicts a decrease in the diffusion coefficient along the surface with respect to the bulk value, of leading order , with the diameter of the particle and the distance to the surface Faxén (1922); Blake and Chwang (1974); Swan and Brady (2010). After averaging over the hydrodynamic slab width , this results in a decrease governed by Sup :
[TABLE]
where refers to infinite lateral dimensions of the slit on the left-hand side and to the bulk fluid on the right-hand side. Using mode-coupling theory, Bocquet and Barrat obtained a similar scaling, in good agreement with molecular dynamics (MD) simulations, and emphasized its origin as the suppression of long-wavelength modes due to confinement Bocquet and Barrat (1995). Slippage at the interface changes the dependence of the diffusion coefficient with distance to the surface Lauga and Squires (2005) and may result in some cases in an average diffusion coefficient larger than the bulk value Saugey et al. (2005).
MD simulations have generally confirmed the decrease in the diffusion coefficient near a variety of model and realistic boundaries Liu et al. (2004); Marry et al. (2008); Sendner et al. (2009); Botan et al. (2011); Wei et al. (2012); Hoang and Galliero (2012); Siboulet et al. (2013); von Hansen et al. (2013) as well as the importance of molecular details in the first adsorbed fluid layers. However, the use of periodic boundary conditions (PBC) in such simulations introduces finite-size effects on the diffusion coefficient, never appreciated under confinement to date, due to the distortion of hydrodynamic flows and the spurious hydrodynamic interaction between periodic images. For bulk fluids in a cubic simulation box, the correction to the diffusion coefficient reads Dünweg and Kremer (1993); Fushiki (2003); Yeh and Hummer (2004); Tazi et al. (2012) , with the box size, Boltzmann’s constant, the temperature, the viscosity and . Recently, the effect of the box shape has also been considered for bulk fluids: The components of the diffusion tensor in anisotropic boxes may in some cases be larger than and diverge with system size in the limit of highly elongated boxes Rozmanov and Kusalik (2012); Kikugawa et al. (2015a). These features can also be explained from hydrodynamics Botan et al. (2015); Kikugawa et al. (2015b); Vögele and Hummer (2016).
Surprisingly, despite the ever growing importance of simulations to characterize the dynamics of confined fluids, such finite-size effects have not been investigated under confinement. Here we show that the diffusion of confined fluids is not only affected by the confining distance but is also influenced within simulations by finite-size effects due to the use of PBC in the directions parallel to the surfaces. We demonstrate this fact using MD simulations of a simple fluid confined inside a slit pore. We show that the diffusion coefficient is generally larger than the value for the unconfined fluid, by a factor which is in fact significant for typical box shapes, thereby illustrating the limitations of previous simulation results. Using continuum hydrodynamics, we further obtain the scaling with system size in the limits of elongated and flat systems. As in the case of bulk fluids, the present analysis opens the way to systematic extrapolation to the limit of infinite systems (for a fixed confining distance).
We simulate a Lennard-Jones (LJ) fluid under the same conditions as in previous work illustrating finite-size effects in bulk fluids Yeh and Hummer (2004); Botan et al. (2015), namely a reduced density and reduced temperature with and the LJ diameter and energy, respectively. The fluid is confined between rigid planar surfaces consisting of a square lattice with a spacing of 1. The fluid-surface interactions are characterized by a diameter and an energy equal to for 3/4 of the wall atoms and for the remaining 1/4 (see the square lattice in Figure 1). This pattern ensures the absence of slippage at the wall, as demonstrated by the velocity profile under shear (with a wall velocity of LJ units) in Figure 1. The distance between the LJ walls is , with the distance between the shear planes on both surfaces, while the size of the simulation box is the same in the other two directions. In order to assess the finite-size effects due to both the PBC and the confinement, we consider systems with between 6 and 80 and ranging from 10 to 160 , corresponding to particle numbers from 587 to 30720.
All MD simulations are performed using the LAMMPS simulation package LAMMPS , using a time step of , with and a cut-off distance to compute the LJ interactions. The systems are first equilibrated in the ensemble during , using a Nosé-Hoover thermostat with a time constant of . After equilibration, trajectories in the ensemble are produced for up to depending on system size, from which diffusion coefficients parallel to the surfaces are computed from the slope of the mean-square displacement (MSD) in the time range ( for with ). For each system, reported results correspond to averages and standard errors over 16 independent runs.
Figure 2 reports the diffusion coefficient parallel to the surfaces as a function of (by analogy with the scaling for a cubic box of bulk fluid) for the various confining distances . This figure also shows the results for an infinite bulk system, equal to LJ units in the present case Botan et al. (2015), as well as the prediction of Eq. 1 for the limit under confinement. We first note that the diffusion coefficient increases with , as expected, and that the results for large are consistent with Eq. 1 (except for the narrowest pore). However, there is also a dramatic influence of the periodicity along the surface which increases with pore width . For the smaller , the diffusion coefficient is larger than for an infinite unconfined fluid. For wide thin pores (large , small ), it can be several times larger than .
For elongated boxes (), the results of Figure 2 seem to suggest a correction to the diffusion coefficient proportional to . Such a scaling in this regime has been predicted on the basis of hydrodynamic arguments by Detcheverry and Bocquet, who computed the enhancement of diffusion in nanometric pipes due to the thermal fluctuations of the center of mass of the fluid Detcheverry and Bocquet (2012, 2013). This increase:
[TABLE]
with given by Eq. 1, is related to the total fluid-wall friction coefficient via the Einstein relation . The friction coefficient is then derived from the total force on the walls exerted by the fluid with typical velocity as , which is also proportional to the fluid-wall contact area and the viscous stress at the boundary . Therefore, the increase in the diffusion coefficient scales as . More precisely, they obtained the following result for the present slit geometry :
[TABLE]
with the diffusion coefficient for the center of mass of the fluid. Figure 3 reports the simulation results in a dimensionless form, namely as a function of (here we use the bulk value of the visosity, LJ units Botan et al. (2015)). The collapse of the simulation results on a master curve confirms the hydrodynamic origin of the finite-size effects. While Eq. 3 accounts qualitatively for the observed behavior it is not quantitative.
In order to go beyond this simple scaling argument, we now compute the correction to the diffusion coefficient due to both confinement and PBC along the surfaces by solving the full hydrodynamic problem. Following previous studies of bulk fluids Dünweg and Kremer (1993); Yeh and Hummer (2004); Botan et al. (2015), this is achieved by computing the mobility from the solution of the Stokes equation for an incompressible fluid, , with and the velocity and pressure fields. In bulk fluids, the force density with a force, the Dirac distribution and the volume of the system, includes both a perturbation at and a compensating “background force” which enforces the constraint of vanishing total force on the system. This compensating force provides in fact the main contribution to the system-size dependence of the diffusion coefficient.
In the present case, the broken translational invariance in the direction of confinement renders the problem more difficult. The mobility tensor defined by , provides the flow at induced by a force applied at and is related to the diffusion tensor as . The expression of the mobility tensor for the case of an infinite slit pore () with non-slip boundary conditions at the walls ( for and ), previously obtained by Liron and Mochon Liron and Mochon (1975) or Swan and Brady Swan and Brady (2010), is derived in a convenient form for the present work in the Supplementary Material Sup , which also provide the details of the following calculations. It depends on the relative position along the wall and on both and . We note that contrary to the bulk case, the mobility can be obtained in the presence of solid walls even without compensating background. The effect of the latter, which remains necessary to enforce the constraint of total momentum conservation, can be introduced separately by subtracting the average mobility over the pore volume. The average correction to the diffusion tensor then reads where the first term corresponds to the effect of periodic images and the second to that of the compensating background.
The effect of periodic images along the surfaces can then be expressed in real space as a correction to the mobility , with since the images are located in the same plane. We consider here the mobility averaged over the whole pore, which from translational invariance along the surfaces simplifies to:
[TABLE]
The average contribution of the background force, summed over all periodic images, can be written as an integral over all space:
[TABLE]
Taking advantage of the symmetry of the system, the component along the surface is computed from . In addition, the integral over and in is conveniently computed as the value for of the 2D Fourier transform . We show in the Supplementary Material Sup that the contribution of the background is equal to .
For elongated systems (), the discrete sum over images in Eq. 52 can be estimated by the corresponding integral, which is equal to , after removing the term corresponding to , which is given by (see Sup for both demonstrations). Subtracting the background, we finally obtain the correction to the diffusion coefficient:
[TABLE]
The first term is consistent with the scaling argument of Detcheverry and Bocquet (see Eq. 3) and the curvature is only 10% smaller. As shown in Figure 3, it is closer to the simulation results, but the second term, which corrects for the spurious self-interaction introduced upon replacing the discrete sum by an integral, is necessary to describe the simulation results quantitatively. The agreement of Eq. 6 with the latter is excellent. This confirms the hydrodynamic origin of the observed finite-size effects due to the PBC, in addition to the effect of confinement correctly described by Eq. 1 for sufficiently wide pores.
In the opposite regime of flat simulation boxes (), the mobility decays exponentially due to the screening of hydrodynamic interactions by the walls Sup . Therefore the sum (Eq. 52) becomes negligible compared to the effect of the background (Eq. 5), so that:
[TABLE]
This explains the decrease in the diffusion coefficient with observed for the narrower pores in Figure 2. Eq. 7 is in very good agreement with the results for (within 5%) and (within 1%), but still overestimates the diffusion coefficient for (by ). Since the fluid is perturbed by the surfaces over 2-3 layers on each wall (see the density profile in Figure 1), it is not surprising that the present continuum hydrodynamics calculations, which neglect molecular effects, are not quantitative in this case.
Vögele and Hummer recently obtained analytical expressions for the correction to the diffusion tensor for bulk fluids in anisotropic boxes Vögele and Hummer (2016), in good agreement with numerical and molecular simulation results Botan et al. (2015). For elongated systems, the correction for the component corresponding to scales as , with , i.e. the same functional form as Eq. 6 but with different numerical factors. In contrast, for flat systems the scaling goes as , with and therefore diverges as , which is of course not the case under confinement. Therefore, despite some similarities, the present case of confined fluids is fundamentally different due to the boundary conditions at the solid-liquid interface. We finally note that, as for bulk fluids, the role of the background force enforcing the constraint of total momentum conservation is essential. In the bulk, the correction corresponding to the minimum-image cell accounts for of the total correction Yeh and Hummer (2004). Under confinement, the total background contribution represents a large part of the term in Eq. 6 for elongated systems (the nearest-image cell corresponds to the term) Sup and almost 100% of the effect for flat systems (Eq. 7).
Ideally, the limit should be obtained from simulations with in order to minimize the finite-size effects due to PBC (see Figure 2). The only exception is that of confinement down to the molecular scale, where such finite-size effects are less dramatic (see e.g. Ref. 37) due to the discreteness of the fluid and the predominance of interfacial features. However, in practice typical boxes are rather elongated or cubic () than flat, because the latter regime is computationally more expensive. The present work suggests that it is possible to minimize the finite-size effects in the other limit of elongated boxes by choosing an aspect ratio of for which cancels (see Eq. 6). It further demonstrates the hydrodynamic origin of these effects on the diffusion coefficient, as for bulk fluids, and offers with Eq. 6 an estimate of the correction to be applied to the simulation results for finite (possibly small) systems.
The present work not only applies to molecular simulations, but also to all mesoscopic hydrodynamic simulations, including Lattice-Boltzmann, Multi-Particle Collision Dynamics or Dissipative Particle Dynamics. Therefore the effects of PBC should also be taken into account in the study of confined soft matter involving colloidal particles and polymers. The analysis could also be extended to other geometries such as nanotubes, as well as to slip boundary conditions at the interface, since slippage is known to have an influence on the diffusion coefficient Lauga and Squires (2005); Saugey et al. (2005). In both cases, the same strategy can be applied using the corresponding mobility tensor for the limit of an infinite system along the surfaces.
.1 Basic hypotheses and equations
We consider the flow of a Newtonian fluid at low Reynolds number. The motion of the fluid confined between two infinite plates parallel to the plane is governed by the Stokes equation , its incompressibility (Eq. 11) and the non-slip boundary conditions at the wall (Eq. 12). Here denote the viscosity, while and denote a body force field and the associated pressure. The mobility tensor is obtained as the solution of the so-called Stokeslet problem:
[TABLE]
with a unit horizontal force density () acting without loss of generality at in the direction. This problem was fully solved by Liron and Mochon Liron and Mochon (1975). Their solution involves multiple reflexions at the walls, complex integral representations and series expansion techniques, which render the final form difficult to exploit for the present work. We present here a more direct route, along the lines of Swan and Brady Swan and Brady (2010).
.2 Solution of the Stokeslet problem under confinement
From the Stokes and incompressibility equations (Eqs. 10 and 11), the pressure obeys:
[TABLE]
It is convenient to introduce the partial Fourier transform with respect to and defined by:
[TABLE]
with . The local velocity may also be decomposed into parallel and vertical directions . Using these notations, the Fourier transforms , , and are solutions of:
[TABLE]
These second order differential equations can be solved using standard methods, yielding:
[TABLE]
where and where all the prefactors (to be determined in the following) depend on . In the following this dependence is dropped for the sake of clarity, but it needs to be included when performing averages over the pore in the next sections. One must manipulate quantities such as and with caution, especially when computing derivatives of with respect to . The eight constants , , and are determined from the boundary conditions and the divergence-free condition. Differentiating the last equation with respect to , we obtain:
[TABLE]
Inserting this expression together with and into the incompressibility condition Eq. 18, one obtains the following simple conditions:
[TABLE]
Since this holds for every position , the terms in parentheses must vanish. These conditions can be written in compact form as:
[TABLE]
where we have introduced the following vectors:
[TABLE]
Inserting these results in Eq 20 and using the non-slip boundary conditions on provide the remaining 6 equations that permit to determine the unknowns , , and . In order to proceed as simply as possible, we rewrite the velocity field under the following form:
[TABLE]
with
[TABLE]
By introducing:
[TABLE]
and exploiting the parity of hyperbolic functions, the six non-slip conditions may be rewritten as:
[TABLE]
From these relations we express and as a function of and :
[TABLE]
Finally, inserting these relations in Eq. 23 we obtain the expression of and as a function of and :
[TABLE]
Inserting Eq .2 in Eqs 39 and 43, and substituting into Eq 20 provides, after straightforward although tedious calculations, the desired solution for .
The component of the mobility tensor then follows as the inverse 2D Fourier transform in the particular case , and the component can be obtained similarly by computing under a perturbation along the axis. The parallel component is finally . The computation of the inverse 2D Fourier transform is difficult, but in fact unnecessary. Indeed, for our purpose we only need to compute averages of the mobility over the pore width. This involves integrals over and , as explained in the next section, as well as over and which are computed directly from the value of the 2D Fourier transform for .
.3 Computation of the associated averages along
As explained in the main text, two different vertical averages must be computed. For the effect of the background the average velocity is taken over and independently:
[TABLE]
Similarly the component is obtained by applying the Stokeslet in the direction and computing . This double integral can be performed using the full solution of section .2, with the result in tensorial form:
[TABLE]
with the 2D identity matrix and a unit vector in reciprocal space. The parallel component, given by the half-trace of this tensor, is particularly simple:
[TABLE]
Finally, the integral over and is obtained as the value of this 2D Fourier transform for , namely: . Combined with the factor for the average in Eq. 5 of the main text, this leads to the final result:
[TABLE]
For the effect of periodic images , the average is taken over , i.e.:
[TABLE]
The solution in that case is lengthier. The final result for the half-trace reads:
[TABLE]
Here again the value of the integral over and is obtained as the value of this 2D Fourier transform, namely:
[TABLE]
III. Asymptotic results
As explained in the main text, the correction to the diffusion coefficient due to periodic boundary conditions is given by , where we have already computed the background correction in Eq. 48. Here we derive asymptotic expressions in the regimes of elongated and flat systems for the effect of periodic images:
[TABLE]
.4 Elongated systems ()
For elongated systems, we can approximate the discrete sum in Eq. 52 by an integral, provided that we remove the contribution corresponding to which is not included in the sum:
[TABLE]
The first integral is computed easily using the results of the previous section. From Eq. 51, one readily obtains for the average over :
[TABLE]
The second integral can be rewritten as a convolution between and a rectangular function with value 1 if and zero otherwise. This convolution product is conveniently computed in Fourier space, using the result Eq. 50 and the well-known transform of the rectangular function. The average over then reads:
[TABLE]
with given by Eq. 50 and . We first make a change of variables, and :
[TABLE]
with . Now, the regime of elongated boxes correponds to , so that we can approximate by the asymptotic expansion of for , namely:
[TABLE]
which can be derived from the full expression Eq. 50. Inserting this approximation into Eq. 58, we obtain:
[TABLE]
The integral defined by the second equality can be computed analytically by writing:
[TABLE]
We then rewrite:
[TABLE]
In the last line with have introduced the error function and computed the remaining integral analytically. Gathering the result with Eq. 58, we obtain , which, together, with Eqs. 52, 53 and 54 provides:
[TABLE]
Finally, the complete solution for the correction to the diffusion coefficient is obtained by substracting the contribution of the background, Eq. 48:
[TABLE]
which is Eq. 6 of the main text.
.5 Flat systems ()
Ê Here we show that the mobility tensor decays exponentially fast with distance in real space, so that the interaction between periodic images is negligible compared to the effect of the background . To that end, we need to compute the inverse Fourier transform of :
[TABLE]
where is given by Eq. 50 and is the zeroth-order Bessel function of the first kind. This calculation is much more involved than the previous ones, which only required the and limits of . Liron and Mochon Liron and Mochon (1975) evaluated such integrals using the Hankel contour illsutrated in Figure 4.
Ê The real-space function is then given by:
[TABLE]
where the function given by Eq. 50 is now understood as a function of the complex variable and is itself complex valued. The function is a Hankel function given by , with the zeroth-order Bessel function of the second kind. The function has no pole at the origin, but an infinite number of poles corresponding to the function (except at the origin) and additionnal poles denoted corresponding to the solutions of the transcendental equation . For large the asymptotic behavior of these poles is given by:
[TABLE]
The net result appears as an absolutely convergent series of functions involving modified Bessel functions coming from the residues arising from the function. An additionnal series of Bessel functions comes from the residues associated with the poles. As in both cases, the imaginary part of the poles behaves as an arithmetic sequence, the associated series can be approximated by their first term for large . Overall, the asymptotic behavior for large is given by:
[TABLE]
i.e. an exponentially decreasing correction.Ê This result can in fact be recovered using equation (49) of Liron and Mochon Liron and Mochon (1975), by computing the required trace that suppreses the long-range contribution, and performing the associatedÊ average term by term in the resulting series. The exponential decay in real space implies that the sum over periodic images is dominated for flat systems () by the nearest images, so that this sum also decays exponentially fast with . Overall, confinement screens the hydrodynamic interactions between the periodic images and the corresponding contribution is negligible compared to the effect of the background .
References
- Saugey et al. (2005)
A. Saugey, L. Joly, C. Ybert, J. L. Barrat, and L. Bocquet, Journal of Physics: Condensed Matter 17, S4075 (2005).
- Liron and Mochon (1975)
N. Liron and S. Mochon, Journal of Engineering Mathematics 10, 287 (1975).
- Swan and Brady (2010)
J. W. Swan and J. F. Brady, Physics of Fluids (1994-present) 22, 103301 (2010).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Striolo (2006) A. Striolo, Nano Letters 6 , 633 (2006).
- 2Falk et al. (2010) K. Falk, F. Sedlmeier, L. Joly, R. R. Netz, and L. Bocquet, Nano Letters 10 , 4067 (2010).
- 3Falk et al. (2015) K. Falk, B. Coasne, R. Pellenq, F.-J. Ulm, and L. Bocquet, Nature Communications 6 (2015).
- 4Mathwig et al. (2012) K. Mathwig, D. Mampallil, S. Kang, and S. G. Lemay, Physical Review Letters 109 , 118302 (2012).
- 5Siria et al. (2013) A. Siria, P. Poncharal, A.-L. Biance, R. Fulcrand, X. Blase, S. T. Purcell, and L. Bocquet, Nature 494 , 455 (2013).
- 6Bocquet and Charlaix (2010) L. Bocquet and E. Charlaix, Chemical Society Reviews 39 , 1073 (2010).
- 7Hagen et al. (1997) M. H. J. Hagen, I. Pagonabarraga, C. P. Lowe, and D. Frenkel, Physical review letters 78 , 3785 (1997).
- 8Huang and Szlufarska (2015) K. Huang and I. Szlufarska, Nature Communications 6 , 8558 (2015).
