Driving mechanisms and streamwise homogeneity in molecular dynamics simulations of nanochannel flows
Vicente Bitri\'an, Javier Principe

TL;DR
This paper investigates how different driving mechanisms and boundary conditions in molecular dynamics simulations affect nanochannel flow predictions, especially at high pressure differences, highlighting the importance of modeling choices on flow properties.
Contribution
It introduces and compares modeling modifications that include reservoirs and pressure-driven flow, analyzing their impact on flow predictions in nanochannels.
Findings
Homogeneity assumptions are valid at low pressure differences.
Significant differences in flow properties appear at high pressure differences.
Reservoir inclusion affects temperature and slip length predictions.
Abstract
In molecular dynamics simulations, nanochannel flows are usually driven by a constant force, that aims to represent a pressure difference between inlet and outlet, and periodic boundary conditions are applied in the streamwise direction resulting in an homogeneous flow. The homogeneity hypothesis can be eliminated adding reservoirs at the inlet and outlet of the channel which permits to predict streamwise variation of flow properties. It also opens the door to drive the flow by applying pressure gradient instead of a constant force. We analyze the impact of these modeling modifications in the prediction of the flow properties and we show when they make a difference with respect to the standard approach. It turns out that both assumptions are irrelevant when low pressure differences are considered, but important differences are observed at high pressure differences. They include the…
Click any figure to enlarge with its caption.
Figure 10
Figure 11
Figure 12
Figure 3
Figure 4
Figure 5
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9Peer 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.
Driving mechanisms and streamwise homogeneity in molecular dynamics simulations of nanochannel flows
Vicente Bitrián1, and Javier Principe1,2,
1 Departament de Mecànica de Fluids, Universitat Politècnica de Catalunya,
Eduard Maristany, 10-14, 08019, Barcelona, Spain.
2 Centre Internacional de Mètodes Numèrics en Enginyeria,
Parc Mediterrani de la Tecnologia, Esteve Terrades 5, 08860, Castelldefels, Spain. [email protected]@upc.edu
Abstract
In molecular dynamics simulations, nanochannel flows are usually driven by a constant force, that aims to represent a pressure difference between inlet and outlet, and periodic boundary conditions are applied in the streamwise direction resulting in an homogeneous flow. The homogeneity hypothesis can be eliminated adding reservoirs at the inlet and outlet of the channel which permits to predict streamwise variation of flow properties. It also opens the door to drive the flow by applying pressure gradient instead of a constant force. We analyze the impact of these modeling modifications in the prediction of the flow properties and we show when they make a difference with respect to the standard approach. It turns out that both assumptions are irrelevant when low pressure differences are considered, but important differences are observed at high pressure differences. They include the density and velocity variation along the channel (the mass flow rate is constant) but, more importantly, the temperature increase and slip length decrease. Because viscous heating is important at high shear rates, these modeling issues are also linked to the use of thermostating procedures. Specifically, selecting the region where the thermostat is applied has a critical influence on the results. Whereas in the traditional homogeneous model the choices are limited to the fluid and/or the wall, in the inhomogeneous cases the reservoirs are also available, which permits to leave the region of interest, the channel, unperturbed.
1 Introduction
The molecular dynamics (MD) configuration most commonly used to simulate nanochannel flows is shown in Fig. 1. The fluid particles are bounded by solid particles that model a wall, periodic boundary conditions are assumed in the streamwise and spanwise directions and the flow is driven applying a constant external force. This driving mechanism has raised long-standing criticism for it requires a huge force to be applied, which generates an important amount of heat that, in turn, requires dissipative mechanisms (thermostating), and only represents an applied pressure difference when the pressure gradient is assumed to be constant everywhere [28]. Using this configuration implies assuming that the flow is streamwise homogeneous, which makes the problem easier by reducing it to one spatial dimension, the other two (streamwise and spanwise) being only statistical. On the other hand developing effects are eliminated from the beginning.
Nevertheless, this configuration has been used for years to study the flow slip over solid surfaces and it is still widely used, see e.g. [9]. Molecular dynamics simulations are performed integrating the equations of motion of individual molecules. Introducing the interactions between them results in a system whose size is the number of molecules. Apart from these interactions, the external force driving the system is also introduced. As the system is isolated, the work performed by the external force driving the flow results in an increase of internal energy. Therefore, the only way to reach a steady state is through the introduction of a dissipative mechanism. This term is included assuming that the fluid is “in contact with a thermal bath” or “a reservoir” [47, 40, 41, 21] which extracts energy from the system. There are many possibilities, but the more commonly used in nonequilibrium MD simulations are the Langevin, Nosé-Hoover, Berendsen or DPD thermostats, see e.g. [2] and [12]. In the context of nanochannels the traditional approach [47] was to apply a thermostat in the whole channel while assuming the flow to be homogeneous in the streamwise and spanwise directions by applying periodic boundary conditions, as shown in Fig. 1. Wall particles are fixed but their interaction with fluid is kept, which results in fluid-solid interface friction.
This model was improved including wall particles into the model, i.e. integrating their equations of motion too [30, 24, 26, 31, 7, 1]. In this case, apart from the external force acting over all fluid particles in the streamwise direction, wall particles are also constrained to move around equilibrium positions by applying external forces to them (typically derived from quadratic potentials). This permits to apply a thermostat on the wall particles too. In an effort to minimize its impact, some authors [1] apply the thermostat to one solid layer only, the one being further from the fluid, shown in black color in Fig. 1. In fact, a rigorous derivation of this procedure has been developed in [22] and [23] and named stochastic boundary conditions, showing that applying a thermostat on the external border of a solid accounts for the influence of an infinitely large solid thermal bath around it.
After this improvement, the next natural question is whether the fluid should be thermostats or not and there is a consensus in the literature about answering negatively [21], considering that cooling through the walls is the only “realistic” [24, 26, 31, 1, 53] dissipative mechanism “mimicking real experiments” [7]. While in the case of the solid walls the thermal bath has a clear physical meaning, in the case of the fluid it has not. Besides, transport properties, viscosity and conductivity, shear stress and slip over a solid surface, measured by the slip length , were shown to depend on the thermostat parameter [24, 7, 1]. Applying thermostats to shear flows has also been put into question by [36] because they remove heat at rates that are higher than the rate of conduction of heat across the fluid. The implication of this fact is the lack of time to maintain redistribution of energy across the system which implies that the steady states reached depend on the degrees of freedom the thermostat is coupled to. This effect is specially severe at high shear rates and the (perhaps over-pessimistic) conclusion by [36] is that the effort “should be directed to simulate lower shear rates”.
At this point, two well-established facts collide: the application of an external force generates an important amount of heat and the application of a thermostat is unphysical. On top of that, assuming periodic boundary conditions, and therefore streamwise homogeneity, eliminates an intrinsic heat transfer mechanism present in any (nano)channel, the transfer of heat by convection, which makes the model definitively unrealistic.
Another important heat transfer mechanism is the generation by shear friction. While in macroscopic flows this term is usually negligible (except at very low Re numbers, i.e. creeping flows) at nanoscales this term is very important, specially at high shear rates. In that case the flow cannot be considered isothermal.
To understand the balance of these mechanisms a simple model can be developed from the macroscopic energy conservation equation [6]
[TABLE]
where is the specific heat, the mass density, the (possibly temperature-dependent) thermal expansion coefficient, the pressure, the internal heat flux, and is the Rayleigh function representing the mechanical dissipation of energy in sheared motion, proportional to the viscosity and the square of velocity gradients in Newtonian fluids. It is worth noting that the second term of the left-hand side of Eq. (1) is only relevant in compressible fluids and it is negligible for nearly incompressible ones, representing a heat sink due to the energy required by dilatation to occur. It is also relevant that this equation is equivalent to the one obtained by a statistical treatment of molecular equations of motion [20], namely
[TABLE]
where is the fluid velocity and is the total energy per unit volume, that includes the internal energy and the external potential whose gradient is the applied driving force. Only after using kinetic and potential energy conservation Eq. (1) is obtained, which does not include the external force (whose work cancels with potential energy variation). The two terms on the left hand side of Eq. (1) come from the calculation of the internal energy variation, which, apart from the energy variation due to temperature changes, includes the energy variation by dilatation that vanishes for incompressible flows, as mentioned.
Assuming a one dimensional steady flow that is cooled (or heated) from the walls and modeling that by a Newton law with convection coefficient , which accounts for the heat conduction in the fluid and the Kapitza resistance of the interface [5], we get from Eq. (1)
[TABLE]
where is the mass flow rate across a section of the channel of length , cross sectional area and perimeter . The terms on the left-hand side represent convection heat transfer, the first term on the right-hand side cooling through walls and the second one viscous heating (given by with the shear viscosity and the shear rate). Once again, we emphasize that the second term on the left-hand side is negligible for incompressible flows but it turns out to play an important role otherwise, as it will be shown below.
The solution of Eq. (3) can be obtained assuming the variables multiplying the temperature in the second term on the left-hand side to be constant, a restrictive hypothesis that, in any case, permits to understand the implications of neglecting it or not. Observe that in this case, equation Eq. (3) has a uniform solution
[TABLE]
In general when the flow enters the channel at a temperature , it is cooled (or heated) along the channel, according to
[TABLE]
reaching equilibrium asymptotically.
This simple model permits to conclude that only if the inlet temperature is the flow can be homogeneous. Otherwise an exponential increase or decrease is to be expected. Besides, when the pressure gradient and the shear rate are negligible, i.e. and , taking the inlet temperature as the wall temperature results in an isothermal flow (the heat produced by shear is easily dissipated through the walls).
This simple model also permits to understand how different configurations and flow driving mechanisms impact on the energy balance. In the traditional streamwise homogeneous model the terms in the left-hand side of Eq. (3) vanish and the equilibrium between heat generation by shear and cooling through walls determines the fluid temperature. Applying a thermostat can be a way of representing the dissipative terms neglected (observe that the pressure gradient is negative and therefore the second term on the left-hand side of Eq. (3) is dissipative).
In this article we discuss an alternative configuration and a driving mechanism similar to others recently proposed [34, 10, 13]. In fact, many alternative driving mechanisms to study nanochannel flows have been proposed for years. The alternative proposed by [28] is the introduction of a “reflecting particle membrane”, a Maxwell daemon that precludes (with a given probability) the particles to cross it in one direction, thus generating a pressure gradient. Whereas the method to drive the flow does not introduce additional energy into the system (thus not requiring thermostating), the pressure gradient is difficult to control (which is done through the given probability). Another approach [19, 18, 49] is to fix the pressure in the external reservoirs by introducing rigid movable plates normal to the flow, which introduces a time dependent driving mechanism (the size of the reservoirs changes). In [54] the channel walls are moved as in the Couette problem whereas the flow is stopped by a cross sectional wall.
The methods proposed by [34, 10, 13] and the one we study here are small variations of the so-called “reservoir method” first proposed by [44]. The pressure difference is generated applying a constant force in the reservoirs whereas they differ on how the temperature or density is controlled. Some authors introduce reservoirs while driving the flow with a constant force and a Nosé-Hoover thermostat applied in the whole domain, including the channel [43].
However, these alternatives have not been widely used, specially in the study of hydrodynamic slip, one of the reasons being the important increase in the computational cost. Abandoning the streamwise periodicity makes the problem two-dimensional (the spanwise direction being still statistical). On the other hand, the advantages of these improved models have not been demonstrated. The case of an inlet temperature substantially higher than that of the walls was analyzed in [13] but considering only thermal effects, the flow assumed to be hydrodynamically fully developed. On the other hand when the inlet temperature is similar to that of the walls, the fluid is heated inside the channel and hydrodynamic effects appear, e.g. the maximum velocity increases and the slip length decreases along the channel. We document these effects in Sect. 3 after detailed description of the methods in Sect. 2. We summarize the main conclusions in Sect. 4.
2 Simulation method
We construct a nanochannel flow by confining a monoatomic fluid between two smooth solid walls. Both the fluid and walls are composed by atoms which interact through the pairwise Lennard-Jones (LJ) potential,
[TABLE]
where is the distance between atoms and whose positions are and , and and are the energy and length scales of the potential, respectively. The subscripts and indicate the atom types (hereinafter f stands for fluid atoms and w for wall ones), and the calculation of the interactions of each particle is truncated at a cut-off distance since we have verified that the results do not change appreciably by increasing . All the physical units in this work are expressed in LJ units (that is, in terms of the characteristic fluid length , energy , and atomic mass ). For liquid argon these values are , J and kg respectively.
In all our simulations, the interaction between wall and fluid atoms is chosen to be as intense as that between fluid monomers, , which is considered highly hydrophilic [4, 38, 52], and . Each atom of the thermal wall is tethered around its equilibrium position via a quadratic potential,
[TABLE]
where is the position of the wall atom and its equilibrium position, and models the stiffness of the wall [3]. For the current work we have used a value , which is inside the interval of values commonly used in MD studies, and has been proved to accomplish the two basic requirements for wall stiffness: (i) it is not too small, thus preventing the melting of the wall according to the Lindemann criterion [16], and (ii) its associated frequency is low enough to allow the correct integration of the equations of motion of the wall atoms without reducing the time step [3]. The mass of wall particles is in order to reduce the vibration frequency, and they do not interact with each other to reduce computational time (, since it does not affect significantly the wall dynamics).
Taking into account the volume accessible for the fluid, the average fluid mass density in all our simulations is . With regard to the walls, they form a face-centered cubic (fcc) lattice of number density equal to , which implies an equilibrium nearest-neighbor distance of . The wall planes in contact with the fluid are (010) faces, with the [100] orientation of the fcc lattice aligned with the shear flow direction (). The number of fluid, , and wall atoms, , vary from one studied configuration to another, and are detailed below.
All the simulations have been carried out using the LAMMPS package [37]. The equations of motion are integrated using the velocity Verlet algorithm, with a time step of , where is the characteristic LJ time ( s for liquid argon). In the initial configuration the fluid particles are arranged in the positions of a fcc lattice, and the equilibration runs lasted typically steps. Once the steady state is reached, a production run of a minimum of steps () is performed to average the data. The simulation domain is divided in bins of size and to discretize the collected data.
The components of the local stress tensor in each spatial bin have been computed following the Irving-Kirkwood method [20], that is,
[TABLE]
where the sum of the kinetic term includes the particles which are inside the bin located at at time , and the potential term involves the interaction of particles inside the bin with all the other atoms of the system (in or outside the bin); is the sum of internal forces exerted on by , the average velocity in the bin, and its volume.
In order to control the temperature in some region of the computational domain the dissipative particle dynamics (DPD) thermostat is considered. This type of thermostat is considered to be particularly suitable for nonequilibrium MD [42, 52] since, among other advantages, it is a profile-unbiased thermostat [11]; that is, does not need to assume a predetermined streaming velocity profile. This virtue of the DPD thermostat is due to the fact that it involves relative velocities between pairs of particles, , instead of individual velocities as in other thermostats commonly used (e.g. Langevin thermostat). Hence, the equations of motion in the thermostated region are
[TABLE]
where two extra terms are added to the force resulting from the interatomic potential. denotes the dissipative force on particle and the corresponding random force. Both are expressed as a sum of pairwise contributions,
[TABLE]
[TABLE]
where , , is the target temperature, the friction coefficient ( in our simulations), a Gaussian white noise variable that fulfills the condition , and is a weighting function of . The usual choice is
[TABLE]
Previous features are common to all the models simulated in this work. In the rest of this section we describe the specificities of the various studied models, that differ essentially in the driving mechanism of the flow, the thermostated regions, and the geometry of the channel.
2.1 A simple approach: the streamwise homogeneous (SH) flow model
The configuration geometry of the SH flow model is shown in Fig. 1. The channel length in the flow direction, , varies from to depending on the case, its width (measured as the distance between the wall planes in contact with the fluid) is , and its depth . Both the upper and lower walls consist of four fcc layers separated by a distance (that is, the wall thickness is ). Then, the number of fluid and wall atoms in the simulation cell vary from and (for ) to and (for ). Periodic boundary conditions are applied in and directions. As specified in Fig. 1, the plane cuts the channel through its center and at the entrance.
The flow is generated by applying a constant external force (per unit mass) in direction on all the fluid atoms. The interval of forces simulated in this work goes from to . Modeling the walls as non-rigid allows for the heat generated by friction to be removed through them. The wall temperature is fixed to the value by applying the DPD thermostat described above only to the wall atoms.
2.2 Abandoning homogeneity: the streamwise inhomogeneous force driven (SIFD) flow model
In a first step towards a more realistic model, the homogeneity hypothesis is abandoned and the configuration shown in Fig. 2 is studied. We consider a central channel of the same dimensions as in the SH model, , limited by the same fcc walls of thickness . This is the domain of interest, where the fluid properties are extracted. But now we add two open reservoirs of length outside it, both on the left and on the right of the channel, where the fluid can move freely in the vertical () direction. Periodic boundary conditions are applied in the three directions. Again, we choose the origin in such a way that at the center of the channel and at the entrance (and, then, coordinates take negative values at the left reservoir).
We apply a DPD thermostat, Eqs. (9-12), to the fluid particles, but only when they are in the reservoirs outside the domain of interest. In such a way, we fix the temperature of the fluid at the inlet to be and we leave the fluid completely free inside the channel. As in SH model, the walls are also thermostated to , and the flow is driven by a constant external force exerted on every fluid atom in the whole simulated domain.
Unlike the SH flow model, the SIFD model allows for the evolution of the fluid properties along the channel, like the local temperature, and therefore incorporates the heat transfer by convection. The presence of the reservoirs also makes it possible to analyze the channel entrance effects, like pressure losses. The basic idea behind a model like this is to explicitly separate the domain of interest, where the system evolves according its natural dynamics, without being restricted by artificial forces or constraints, from the surroundings where constraints are applied to induce the desired fluid conditions at the entrance of the region of interest. This is, precisely, the great difficulty when periodicity is abandoned in MD: how to impose the proper boundary conditions to couple both regions adequately. In fact, this is also the main challenge to build hybrid models which couple molecular dynamics with continuum dynamics [15, 51, 50, 32].
As mentioned in Sect. 1, other works have previously proposed different boundary conditions for generating inhomogeneous flows on nanopores and one of the reasons why the use of this kind of models is not generalized is that enlarging a system to include a region outside the domain of interest has a computational cost. In our case, the number of fluid atoms grows to (for ) and (for ). Nevertheless, it is affordable given the tremendous amount of computing power available in supercomputers and the maturity of the simulation software.
A simplification of the configuration of this SIFD model is presented in Fig. 2. Again we consider a channel of length and we add left and right reservoirs that are extensions of the channel. In these reservoirs the flow is thermostated and periodic boundary conditions are applied but the vertical motion is constrained by (fictitious) extensions of the channel walls. This configuration does not account for hydrodynamic entrance effects but it will be important to understand the relation to the SH model.
There are therefore two types of SIFD models according to the type of reservoir: the SIFD model with open reservoirs (SIFD-OR) and with closed reservoirs (SIFD-CR).
2.3 Leaving the channel unperturbed: the streamwise inhomogeneous pressure driven (SIPD) flow model
Finally, we have simulated another model in which body forces no longer exist inside the channel. The configuration is the same shown in Fig. 2, but now a pressure gradient is generated between the inlet and outlet reservoirs by applying a force only on those fluid atoms located far from the channel. In particular, we apply an external force of magnitude
[TABLE]
on all the fluid atoms located inside two regions of width at the edges of the simulation cell (one at the beginning of the left reservoir and the other at the end of the right one), but not outside them. is the total length of both regions where the force is applied, and is the pressure difference created. The DPD thermostat described above is applied in the reservoirs of length to fix the temperature to . In this configuration the heat generated by the external force is dissipated inplace, as far from the channel as possible trying to minimize the disturbance caused in the system.
3 Results
3.1 Homogeneous flow
The fluid properties obtained by atomistic simulations of periodic homogeneous flows in nanochannels are rather well understood. In Fig. 3 we show the averaged density, temperature, velocity, and pressure profiles for the SH model. As previously mentioned, this model maintains the wall temperature fixed but it does not thermostat the fluid, which is widely accepted to be the more realistic option for homogeneous flows [24, 26, 31, 1, 21]. Nevertheless, the evacuation of the viscous heat through the walls does not avoid a significant temperature increase in the fluid, as we shall see shortly. The constant force applied to induce the flow in this case has been , which despite being a value in the range of those commonly used in MD exceeds the gravity force by a factor of .
The fluid density shows a clear layered structure (with at least six marked layers separated by a distance ) in the region near to the atomic walls, where the surface effects are visible. On the other hand, it is constant and equals the bulk value in the center of the channel. This fact suggests that the channel is wide enough to assume the continuum equations to be valid at this scale [8]. In particular, the streaming velocity can be determined from the momentum equation
[TABLE]
where is the fluid mass density, and the component of the streaming velocity. Since there is no variation along the channel, the well-known quadratic profile is recovered,
[TABLE]
where is the distance between the solid-liquid interfaces at the top and bottom walls. The position of the solid-liquid interface (that is, the point of closest approach where the boundary condition is imposed) is not well defined. To take into account the excluded volume effects, we locate the interface at a distance of from the wall innermost fcc planes [38], and then . The slip length is defined as the additional length, relative to the interface, at which the linearly extrapolated fluid tangential velocity vanishes,
[TABLE]
with the slip velocity at the interface. As it can be seen in Fig. 3, the solution in Eq. (15) fits accurately the velocity profile assuming a value around for the viscosity, which coincides with that obtained from the simulated shear stress, , and is close to those obtained with similar models [47]. The simulated flow rate is then consistent with that obtained from the quadratic profile
[TABLE]
With regard to the temperature, again the homogeneity simplifies the energy balance equation,
[TABLE]
which reduces to a quartic profile for the temperature [48],
[TABLE]
with the thermal conductivity of the system and the Kapitza length, which is defined equivalently to the slip length in Eq. (16) but changing by [25]. As it can be seen in Fig. 3 the temperature profile is satisfactorily fitted by a quartic function.
3.2 Streamwise inhomogeneous force-driven flow
Unless stated explicitly, in this subsection we discuss the results obtained using the SIFD-CR model (that is, with the outer fixed-temperature reservoirs confined by the walls, the configuration shown in Fig. 2). We will show below that the results with the SIFD-OR model (using the open-reservoirs configuration in Fig. 2) are qualitatively similar, and will discuss the slight differences. From Fig. 3, it could seem that the differences between homogeneous and non-homogeneous models are not that noticeable (except for the temperature). But we must take into account that, whereas the homogeneous profiles remain unaltered along the channel, the fluid properties in the inhomogeneous model evolve through . In Fig. 3, then, we present the fluid profiles in a particular section (, far enough from the entrance) only as an example. It is more convenient to analyze the results along the direction of the flow, as we do in Fig. 4.
One of the main distinctive features of inhomogeneous models is their compressibility: the fluid density diminishes significantly along the channel, and this reduction is more pronounced for higher external forces, as expected. Note that only the values inside the non-thermostated channel have physical meaning; those in the reservoirs are artificial because of the applied thermostat and the imposed periodicity. On the contrary, the pressure is almost constant in the flow direction (a slight gradient is observed only for very high forces). The reason of this behavior seems to be in the configuration used: since both reservoirs are limited by walls, viscous forces are high enough to equilibrate the external force in these regions (last two terms in Eq. (14)), and thus an appreciable pressure difference is not created between channel ends. On the contrary, we will see that a clear pressure gradient arises when is applied in open reservoirs, in which friction is much less important, as it is the case in Fig. 2.
The compressibility of the flow allows the variation of the velocity along the channel, in such a way that the mass flow rate is constant. As it is shown in Fig. 4 (c) and Fig. 5, when the fluid enters the non-thermostated channel its velocity profile starts to develop (in the reservoirs, the thermostat restrains the fluid and its velocity remains constant). Due to the friction, velocity gradually reduces in the regions near the walls, and therefore the fluid is accelerated at the center of the section to maintain the mass flow rate (Fig. 5). As a consequence the slip decreases (and shear rate increases) in the streamwise direction. The shear continues to grow downstream until the friction force equilibrates the external force; downstream this entry region, the flow is fully developed. Whether a given channel is long enough to consider the flow hydrodynamically developed should be determined when designing the simulation of nanoscale flows. On the basis of the results of this work, forces higher than requires entry lengths longer than . However, it is common to find considerably shorter channels in the literature in which entrance effects are neglected.
Another noticeable impact of the change in the configuration is that the well-established quadratic profile for the velocity in Eq. (15) may no longer be valid for non-homogeneous flows, since the first term in momentum equation, Eq. (14), does not vanish. The solution becomes significantly more complex, but as a first approximation one can assume that the velocity gradient does not depend on (this is almost exactly true in our simulations). In this case, the new solution has the form
[TABLE]
where
[TABLE]
and
[TABLE]
This solution reduces to Eq. (15) when the velocity gradient is small. Although we have indeed confirmed that the hyperbolic profile fits better the results than the quadratic one for high forces, the difference in our simulations is small (it is only noticeable near the boundary; see the inset in Fig. 5). Nevertheless, it should be taken into account in future studies or for more intense driving forces, as an accurate velocity fit can affect the calculation of the slip length. Consequently, the volumetric flow rate expression in Eq. (17), used regularly in the literature for obtaining the slip length from experimental flow rate measures [29], should be also modified to take into account the non-homegeneity, to be
[TABLE]
More important than the change in the expression is the fact that the flow rate is variable in the streamwise direction.
But over all the features of this model for inhomogeneous flows, there is one that makes it clearly more realistic than the traditional homogeneous models: it incorporates the fluid cooling by convection along the channel. As it occurs in real (nano)channels, the fluid at the entrance is colder than at the outlet, and this makes the temperature to gradually rise due to the viscous heat generated by friction. The evolution of in Fig. 4(b) is qualitatively similar to the simple unidimensional model drafted in Sect. 1, Eqs. (3-5), and tends asymptotically to a constant value. Again, we have found that, for high external forces, the length of full thermal development is longer than the simulated channels. It must be noted that the asymptotic value to which tends in the case of coincides with the temperature of the homogeneous model with the same applied force. This fact leads us to conclude that, while representing convection by a thermostat when assuming an homogeneous channel is a crude approximation, modeling cooling only through walls also fails to describe heat transfer, especially at the entrance, and overestimates the temperature at the channel. Only in low-shear regime (forces lower than in our model) temperature is approximately uniform and the role of convection less important, as thermal conduction is effective enough, a case in which the SH model without fluid thermostating provides similar results.
It is also interesting to analyze how the temperature distribution across the channel varies with . Results presented in Fig. 5 show marked differences between the profiles as the flow progresses. At the inlet, where the convective cooling is intense, the thermal jump at the boundary is very pronounced and heat is transferred by conduction from the walls to the center of the channel. Only at sections where convection ceases to play a major role the temperature profile resembles that obtained in homogeneous models (see Fig. 3(b)). Understanding this behavior requires noticing that the convective term in the energy Eq. (18) does not vanish now. Only to find an approximate solution, we can assume that specific heat, density, viscosity and thermal conductivity do not vary appreciably with ; that the temperature gradient is also approximately independent on , and the pressure gradient negligible (the last two hypothesis have been checked to be valid here). Finally, for the sake of simplicity we take the solution Eq. (15) for the velocity (since we have seen that solution Eq. (20) offers similar results for the simulations presented in this work). With these approximations, we get
[TABLE]
where
[TABLE]
and
[TABLE]
where is the Kapitza length. In Fig. 5 it is shown that temperature profiles may indeed be very well fitted by this solution. At the beginning of the channel the convective term dominates and the profile is eminently quadratic; on the contrary, near the end where the flow is almost thermally developed and the profile is .
Finally, we have focused on the results obtained for the flow slip over the solid surface. The study of the slip observed at microscales and nanoscales remains to be of great interest at present, among other reasons, because of its potential technological utility for nanoscale flows: since the occurrence of slip in nanochannels reduces the fluid-solid friction and increases the flow rate, it is a phenomenon sought in many nanofluidic applications [8, 17]. Therefore, being able to establish a specific boundary condition for fluid flows over solid surfaces would be fundamental for understanding flows in these scales. But, although this phenomenon has been extensively investigated from experimental, theoretical and computational points of view [27, 33], there are some issues that are still controversial, like the slip dependence on shear rate. Since the seminal work of [47], some authors have reported (both in experimental and simulation studies) a non-bounded monotonic increase of the slip length with shear rate and the existence of a critical shear rate at which diverges [47, 55, 39]. However, other researchers have found that slip length tends to a finite constant value at high shear [31, 1]. It is important to emphasize that in all these works an homogeneous flow is assumed, the first group applying a thermostat to the fluid and the second only to the solid [1].
In Fig. 6 we can see the slip length for the SIFD flow model, calculated from definition in Eq. (16) and the velocity profiles obtained in MD simulation. The slip length is higher at the inlet, decreases along and tends to a constant value when the flow is hydrodynamically developed (between and in the simulated range of forces). It is worth pointing out that, for , the slip length value at high approximately coincides with that obtained with the homogeneous model and the same force. We confirm again, then, that the study of homogeneous flow can describe the developed flow, but not its developing behavior. We also see that shear rate increases along the channel, as it can be readily understood from the increasing slope of velocity profiles at the boundaries in Fig. 5 (see inset). The fact that slip reduces with growing shear rate could appear to be in contradiction with those works that, in the line of [47], conclude that slip grows with shear. However, those works assume constant temperature. Temperature variation affects the slip, as has already been highlighted in the literature [14]: when increases, fluid particles become more active and a higher number of them are able to penetrate in the region of interaction with the wall, in such a way that the momentum transfer between the fluid and the solid improves, and the velocity slip between them decreases [14]. We suggest, therefore, that the evolution of slip in the channel is due to the rise in temperature in it. In order to support this conclusion, we have carried out ten extra MD simulations of the homogeneous model with , but now thermostating also the fluid (with a DPD thermostat) to force the fluid temperature and density to be equal to those at ten different sections of the channel. The results, shown with squared symbols in Fig. 6, confirm that temperature is the crucial factor that makes the slip to decrease along the channel, even if the shear rate gradually increases. It also explains the smaller for higher (notice that at lower forces, thermal fluctuations cause noisier results, and additional averaging would be needed to smooth them).
3.3 Open or closed reservoirs?
A few comments on the effects of assuming open reservoirs outside the channel (configuration in Fig. 2 instead of that in Fig. 2) should also be made, since they can shed some light on the discussion about boundary conditions choice in MD simulations of nanoflows. The main difference with respect to the closed-reservoirs case reported so far lies on the pressure gradient created out of the channel (see Fig. 7(d)). The lack of walls in the open reservoirs causes much flatter velocity profiles (in the reservoir) than those in the closed ones, as shown in Fig. 8, and then, much smaller viscous forces in these regions. As a result, a positive pressure gradient appears to compensate the external force (see Eq. (14)). This pressure difference between channel ends translates in a pressure drop inside the channel, and in an extra force on the confined fluid which adds to . Its effects are not minor, since is comparable to . It must therefore be concluded that simulated systems with the same force but different boundary conditions may not be dynamically equivalent, and this must be taken into account when designing the model to simulate.
As a consequence a higher flow rate is observed when open reservoirs are considered, as it can be seen from Fig. 7(a) and Fig. 7(c) (note that, for example at , the densities are similar but the velocity is bigger when open reservoirs are considered). Evidently, the hydraulic resistance of closed reservoirs is higher.
On the other side, although the higher force exerted on the confined fluid in the open-reservoirs configuration (and the corresponding higher shear rate) could suggest a more intensive heating, the temperature distribution along the channel is not substantially different (and shows even a lower ) from the closed-reservoirs case (see Fig. 7(b)). The explanation for this behavior can be found in the second term of the left-hand side of the energy equation, Eq. (18): a fraction of the heat transferred to the fluid is devoted to increase the fluid temperature, but another part goes to diminish the fluid pressure (unlike what happens with closed reservoirs). Also the variation of shear viscosity in the flow direction could affect distribution at some extent (see a detailed discussion of this issue at the next subsection).
To conclude this subsection we also note that in the case of closed reservoirs, caution is recommended when choosing the reservoirs height (in direction), since it can affect the results in some measure. The reason is that, for a given channel width , increasing the reservoirs height (and then the wall thickness ) results in bigger pressure losses at the entrance (since the flow contraction is more abrupt), which, in turn, results in a reduction in the pressure gradient inside the channel. This influences the fluid properties obtained because, as discussed by [46], it is this pressure gradient, and not the pressure difference between reservoirs, which characterizes the flow (see also [34]). We have checked that entrance losses increase indeed if reservoirs height is enlarged, but it affects only slightly the presented results.
3.4 Streamwise inhomogeneous pressure-driven flow
Finally, we now move to discuss the third and last type of models studied in this work, which should be, a priori, the most realistic to simulate nanoflows, since its driving mechanism is not a fictitious external force that disturbs significantly the behavior of the fluid inside the channel, but a pressure gradient (obviously, induced also by a force but applied in this case far enough from the channel).
Firstly, it has been confirmed that the application of a force of the magnitude in Eq. (13) in the margin regions of length (see Fig. 2) translates in a pressure difference between the ends of the channel which coincides with the value imposed in Eq. (13) with satisfactory accuracy (less than a 10% discrepancy). In Fig. 9(d) we present the pressure profiles for a channel of length and four different values, chosen to create the same driving in the confined fluid as the one in the SIFD-OR model shown in Fig. 7 (that is, the value of in the SIPD model is chosen such that in this model equals the average driving in the SIFD-OR model for each value of shown in Fig. 7). This choice aims to compare dynamically equivalent flows. Observe that in the SIPD model the induced pressure gradient is much bigger than in the SIFD one. As it will be shown throughout this section, the pressure variation affects the rest of thermodynamic fluid properties and changes notably the results analyzed so far. Also note that pressure losses at the channel entrance, between the point where the external force is no longer applied and the inlet at , are barely appreciable.
The induced pressure difference causes a significantly more pronounced variation of the density along the channel than in the SIFD models with the same total force (see Fig. 9(a)). In fact this density variation limits the applicability of this kind of models, since if the pressure drop is too high, will diminish sufficiently to provoke a phase change at the exit of the channel. This imposes a limitation on the maximum applied in MD simulations, and on the channel length for a given pressure gradient. This is the reason why we are reporting results only for : simulations with larger demand also larger to induce a certain gradient, and the phase transition occurs. Also related to density variation, it should be noted that the profiles in the wall-normal direction () show a more marked structure near the walls (with more clearly located atomic layers) at the beginning of the channel, where density is higher, as is apparent in Fig. 10(a) and Fig. 10(d). On the other hand, it has been verified that in our simulations fluid density evolves with pressure in a qualitatively similar fashion to that reported by [35], who obtained the phase diagram of a Lennard-Jones fluid at equilibrium by MD simulations. As it can be seen in Fig. 12(a), for small the - relation approaches the equilibrium equation of state, while for larger the pressure is slightly higher than the one at equilibrium but the functional relation with the density is similar.
The averaged velocity also shows a faster growth in the channel when flow is induced by a difference in pressure (as it can be seen comparing Fig. 9(c) with Fig. 7(c), which is consistent with the greater density drop and the requirement of mass flow rate conservation along the channel. We can also observe that the gradient of progressively increases along , and it is clearly larger at the exit; that is, the fluid is more accelerated near the end than at the beginning of the channel. Besides, this effect is more pronounced for higher , in fact it is hardly noticeable for but clearly visible for . One might ask for the physical cause of this behavior. Since pressure gradient does not change appreciably along , we suggest that, again, it is the intense change of fluid properties in the channel (in this case, shear viscosity) which explains it. Figure 12(b) includes the results for viscosity as a function of for different , extracted from the simulated shear stress through . lowering along is in fact significant, being more marked as pressure gradient is increased. This tendency is consistent with the results of [45], who reported both theoretical and MD calculations for shear viscosity at a wide range of temperatures, and showed that diminishes when decreases (see the inset in Fig. 12(b)). This behavior indicates that friction is reduced along the channel, and then explains the increase in the gradient of . Precisely at those regions where grows, the hyperbolic function Eq. (20) starts to differ from the quadratic function Eq. (15), and one can confirm that it is more suitable to fit the velocity profiles, although the discrepancy is still small (as an example, see the velocity in a point near the end of the channel for in Fig. 11).
But certainly the most significant difference observed in our MD simulations between the SIFD and the SIPD flow models resides in the temperature distribution along the channel. If we look at Fig. 9(b), we clearly observe that in SIPD models raises to a much lesser extent than in SIFD models (Fig. 7(b)). The difference is important enough to conclude that the choice of proper boundary conditions is a fundamental question in MD simulations of nanoflows, and must be addressed carefully. In this work we suggest that the cause of this disparity in the evolution of is twofold. In the first place, as we mentioned for the case of models with an external force and open reservoirs, the term in the energy equation, Eq. (18), acts as an effective cooling mechanism. The internal energy increase produced by the viscous heat does not directly result in a temperature increase, as it would occur in an incompressible flow, due to the energy required by the pressure loss to occur. As the flow velocity increases along the channel, this contribution becomes higher and temperature growth becomes progressively slower (for larger than one can even observe a slight reduction at the end of the channel). The second factor that contributes to moderate the temperature is shear viscosity, that, as we have seen, decreases in the flow direction, then causing a gradual reduction of the friction. The relative importance of these two causes is not clear, and deserves further research. What we do know is that both become much more important in models in which flow is induced by a pressure gradient, since the streamwise pressure and viscosity variation increases notably with respect to those driven by a uniform external force. With regard to the form of temperature distribution across the flow (Fig. 10(b)), we see again that profiles meet the functional form derived in Eq. (22). Compared to those presented in Fig. 5 for SIFD flow models, the quadratic term (we recall that it vanishes for SH flow models) dominates over the fourth-order term.
4 Conclusions
A careful analysis of three different MD models for the flow in nanochannels has been reported. The traditional SH (force driven) flow model, which does not account for the variation of properties along the channel, permits to predict the density, temperature, pressure and velocity profiles (and thus slip length) when low forces are applied. In this case the heat generation by friction is small and it is easily dissipated by thermal conduction to the walls, where it is finally dissipated by the thermostat applied there. Other heat transfer (cooling) mechanisms, convection and dilatation, are missing as they are incompatible with an homogeneous flow. Therefore, at higher forces an inhomogeneous model must be used to capture flow developing profiles if the associated computational cost can be afforded.
When two reservoirs are added at the inlet and the outlet and the fluid is thermostated there to fix the inlet temperature, streamwise variation of the flow can be predicted. The main difficulty here is that the results depend on the design of the reservoirs. If the reservoirs are surrounded by (fictitious) extensions of the walls no pressure gradient is generated because the flow is driven by an external force that balances the viscous dissipation, in the same way as it occurs inside the channel. If open reservoirs are considered, the velocities outside the channel are almost uniform and a pressure gradient is generated. In the former case, we have seen that also the reservoirs size can affect the pressure distribution inside the channel, although the influence in the results presented in this work is minor.
The inclusion of reservoirs outside the domain of interest allows us to analyze the streamwise evolution of the shape of velocity and temperature profiles in the wall-normal direction. In particular, the appearance of a quadratic term in as a consequence of convection is discussed. For the higher forces in the range studied in this work, the flow is not fully (hydrodynamically and thermally) developed at the end of the channel, despite the large simulated channel lengths. The usual homogeneous simulations ignore this developing behavior, as well as the stabilization of the slip length along the channel.
The pressure gradient inside the channel has an important influence on the results. Even if the pressure profile were constant across the channel section, a pressure gradient is equivalent to a constant external force only for incompressible flows. At high pressure differences, heat generation makes compressibility effects important, the density cannot be assumed to be constant and the dilatation work acts as a heat sink. Therefore, the results obtained using the SIPD model are substantially different from those obtained using the SIFD model, specially regarding temperature distribution. It has been demonstrated that the temperature growth along the channel is much smaller in SIPD than in SIFD models. Both the energy required by the pressure loss and the streamwise variation of viscosity are identified as the factors which explain this behavior.
In this respect it is worth noting that if a low cost SH model is to be used, thermostating the fluid to account for the missing heat transfer mechanisms will produce better (but still inaccurate) results than those obtained with the SH model in which only walls are thermostated. This conclusion is obtained comparing the temperature distributions in Fig. 7 and Fig. 9: the temperature obtained with the most realistic model (SIPD) do not exceed whereas the temperatures obtained using the SH model almost doubles this value. It is therefore less inaccurate to consider the temperature fixed at its inlet value (). Nevertheless, we remark once again that the use of homogeneous models will only provide a first approximation due to their inability to describe the streamwise variation of flow properties.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] A. Alizadeh Pahlavan and J. B. Freund. Effect of solid properties on slip at a fluid-solid interface. Phys. Rev. E , 83(2):021602, 2011.
- 2[2] M. Allen and D. Tildesley. Computer Simulation of Liquids . Clarendon Press, Oxford, 1987.
- 3[3] N. Asproulis and D. Drikakis. Boundary slip dependency on surface stiffness. Phys. Rev. E , 81(6):061503, 2010.
- 4[4] J.-L. Barrat and L. Bocquet. Large slip effect at a nonwetting fluid-solid interface. Phys. Rev. Lett. , 82(23):4671–4674, 1999.
- 5[5] J.-L. Barrat and F. Chiaruttini. Kapitza resistance at the liquid solid interface. Mol. Phys. , 101(11):1605–1610, 2002.
- 6[6] G. K. Batchelor. An Introduction to Fluid Dynamics . Cambridge University Press, Cambridge, 1967.
- 7[7] S. Bernardi, B. D. Todd, and D. J. Searles. Thermostating highly confined fluids. J. Chem. Phys. , 132(24):244706, 2010.
- 8[8] L. Bocquet and E. Charlaix. Nanofluidics, from bulk to interfaces. Chem. Soc. Rev. , 39(3):1073–1095, 2010.
