Professional Documents
Culture Documents
Reese JM Pure Coupled Continuum Hydrodynamics and Molecular Dynamics Method For Multiscale Simulation Aug 2011
Reese JM Pure Coupled Continuum Hydrodynamics and Molecular Dynamics Method For Multiscale Simulation Aug 2011
Reese JM Pure Coupled Continuum Hydrodynamics and Molecular Dynamics Method For Multiscale Simulation Aug 2011
The Strathprints institutional repository (https://strathprints.strath.ac.uk) is a digital archive of University of Strathclyde research
outputs. It has been developed to disseminate open access research outputs, expose data about those outputs, and enable the
management and persistent access to Strathclyde's intellectual output.
3rd Micro and Nano Flows Conference
Thessaloniki, Greece, 22-24 August 2011
Abstract We present a new hybrid methodology for carrying out multiscale simulations of flow
problems lying between continuum hydrodynamics and molecular dynamics, where macro/micro
lengthscale separation exists only in one direction. Our multiscale method consists of an iterative
technique that couples mass and momentum flux between macro and micro domains, and is tested
on a converging/diverging nanochannel case containing flow of a simple Lennard-Jones liquid.
Comparisons agree well with a full MD simulation of the same test case.
1
3rd Micro and Nano Flows Conference
Thessaloniki, Greece, 22-24 August 2011
Figure 1: Schematics of (a) the domain decomposition method, and (b) the HMM.
hinlet F hthroat ∆L
xi
L i
2
3rd Micro and Nano Flows Conference
Thessaloniki, Greece, 22-24 August 2011
height, which varies according to Eqn. (1). The gradient term is removed (because we have im-
walls of thickness, 6σ are modelled as ‘frozen’ posed periodicity at inlet and outlet), and we
wall molecules that interact with the liquid us- are left with a convenient constraint on the ex-
ing the same LJ parameters. Periodic bound- ternal force, f ext :
aries are applied in the x− and z−directions
1 L ext
Z
of the simulation box, and an external force f dx = F n̂x = F, (9)
f ext = f ext n̂x applied to all liquid molecules L 0
drives the desired flow. A Berendsen thermo- where L is the length of the channel. Equation
stat [17] is imposed on the MD box that sets (9) states that the spatial mean of the compu-
the temperature at T = 87K, in order to re- tational forces in each micro simulation, must
move heat generated by the work done by ex- be kept equal to the physical gravity force,
ternal forces. F = f̄ ext .
There are three macroscopic conditions that Continuity requires that the mass flow rate, ṁ,
constrain the micro MD simulations: must be the same for all the micro elements.
This can be enforced by appropriately modify-
1. periodicity, ing the axial variation of f ext (xi ) (while ensur-
ing that the mean value of the force is equal to
2. continuity, and F , in accordance with above).
Since force is roughly proportional to mass
3. momentum conservation.
flow rate, a simple proportional estimator for
the correct axial variation can be used, which
2.2.1 Momentum conservation we outline in the multiscale algorithm de-
For the steady and incompressible case we are scribed next.
considering in this paper, the conservation of
momentum equation is: 2.3 Multiscale procedure
The solution to the multiscale problem is an
ρF nx = −∇p + ∇ · σ, (6)
iterative one, which involves solving the con-
where F is the axial applied force, ρ is the num- tinuity and momentum conservation equations
ber density, p is the pressure and σ is the shear across all the detached MD sub-domains. The
stress. iterative procedure is outlined in the following
In the MD micro elements the momentum steps:
balance is: (n=0)
ρf ext = ∇ · σ. (7) 1. Assign an initial force fi = F to all Π
micro simulations. (Note the direction of
The pressure gradient term in Eqn. (6) does the force points in the x-direction: fiext =
not feature in Eqn. (7) due to the streamwise fi nx ).
periodicity of the micro MD domains. It is
highly complex to prescribe such a pressure 2. Simulate all Π simulations for τm molec-
gradient directly, and so here we impose it in- ular time-integration steps, until steady-
directly through the external forcing: state is reached.
3. Measure the mean mass flow rates ṁi over
ρf ext = ρF n̂x + ∇p. (8) S statistical number of samples:
Substituting Eqn. (8) into Eqn. (7) yields the S Ni
desired momentum Eqn. (6). If we integrate 1 XX
ṁi = mk vk (t) · nx , (10)
Eqn. (8) over the channel length, the pressure S∆X t=1 k=1
4
3rd Micro and Nano Flows Conference
Thessaloniki, Greece, 22-24 August 2011
where Ni are the number of molecules in measurement planes are placed in the stream-
the ith MD simulation, mk , vk (t) are the wise channel, with same 15σ spacing as in the
molecules mass and instantaneous velocity multiscale simulation, for direct measurements
respectively and ∆X is the x−direction of mass flux. The net mass flow rate at a
size of the MD box. plane is measured by averaging the number
of molecules which cross it over a prescribed
4. Take the mass flux from the smallest chan- time period; molecules which cross in the pos-
nel height and set it as the target mass itive x−direction are counted as positive and
flux, ṁT = ṁs (hs ≤ hi ). those which cross in the opposite direction are
counted as negative. The average mass flow
5. At the new iteration step, n = n + 1, com-
rate was calculated to be (67.81 ± 1.5×)10−12
pute the new forces that satisfy mass and
kg/s.
momentum conservation:
1
(n) ṁT
fi∗ = fi , (11) (a)
ṁi 0.8
L N)
1
Z
0.6
fi∗ dx,
-12
∆F = F − (12)
L
ΔF (10
0
0.4
(n+1)
fi = fi∗ + ∆F, (13)
0.2
where L is the length of the channel and
∆F is a measure of the global force con- 0
vergence. 0 1 2 3 4 5
h1 = 8
240 h2 = 6
6. Repeat from 2, until convergence (i.e. 220
kg/s)
h3 = 4
200 FULL MD
∆F = 0, and ṁi = ṁT ). For practicality,
-12
180
convergence is assumed when ∆F varies
MASS FLUX, mi (10
160
between ±0.02 × 10−12 N over several iter- 140
120
ations. 100
80
60
40
3 Results 20 (b)
0
0 1 2 3 4 5
For the purpose of this paper we consider
ITERATION, n
a nano-scale converging/diverging channel of
length L = 60σ. The multiscale simulation
consists of 5 streamwise distributed MD sub- Figure 4: Convergence results from the mul-
domains, which are reduced to 3 because the tiscale procedure: (a) global force variations
converging/diverging channel is symmetric at and (b) mass fluxes from i MD boxes, against
the throat; only channel heights from inlet iteration number n.
to throat are taken. The channel heights of
the micro-simulations are 8σ, 6σ and 4σ re- Results from the multiscale simulation show
spectively, which are separated uniformly by a that convergence is obtained over a very short
spacing of ∆L = 15σ. number of iterative steps (n ∼ 3−4), as seen in
A full MD simulation of the same test case Fig. 4(a) for the force term, ∆F in Eqn. (12).
is also carried out in order to validate the mul- Figure 4(b) also verifies that the mass flux in
tiscale simulations, see Fig. 5. A gravitational- the three individual MD boxes converge to the
like force, f ext = 1.22 × 10−12 N is applied to value calculated in the full MD simulation.
generate flow across the full MD system. Five We plot the spatial variation of forces and
5
3rd Micro and Nano Flows Conference
Thessaloniki, Greece, 22-24 August 2011
mass fluxes in the streamwise direction of the of continuity and momentum. The iterative
converging/diverging channel in Fig. 6. We scheme was tested on an axially-periodic con-
see that the mass fluxes converge to a uniform verging/diverging nanochannel, with a flow
value in all streamwise xi positions, coinciding driven by a gravity-type force. The axial mass
with the planar flux measurements from the flow rate in the multiscale simulation agreed
full MD simulation. Furthermore, Fig. 6(b) well with measurements taken from a full MD
shows the converged non-uniform axial force simulation of the same test case. Although
distribution f ext (xi ) for enforcing continuity in small computational savings were observed for
all micro elements. the small case considered in this paper, it is
To assess the computational advantage of predicted that the full potential of this tech-
our multiscale method over full MD we con- nique will be seen in larger (more realistic) sys-
sider the following criteria based on spatial tems, where substantial scale separations exist.
and temporal decoupling. Separation of spa- The application of the method on GPUs
tial scales will yield a computational advan- The multiscale method described in this pa-
tage if ∆L/L ≪ 1 (i.e. the spacing of mi- per is applicable to arbitrary-shaped nano-
cro simulations relative to the total length channels, so long that there exists spatial scale
of the channel), ∆X/∆L ≪ 1 (overlapping variation in one direction. The method may
micro simulations in the x−direction), and be used to study the fast transport of water
2∆Z(hinlet − hthroat )/L ≪ 1 (the rate of vari- in micro-scale long carbon-nanotubes of nano-
ation of channel cross sectional area). In our scale diameters [18], or to study bifurcation
test case we get the following values respec- laws for designing micro- and nano-fluidic de-
tively, 0.25, 1.33 and 0.42. vices [19].
Time-scale separations may be assessed by
evaluating the relaxation time of the flow to
reach steady-state after the external force is 5 Acknowledgments
imposed. The basic criteria should then be
τmicro n/tmacro ≪ 1. For the full MD simulation This research is financially supported by the
tmacro ∼ 1.3ns, while for the small MD boxes EPSRC Programme Grant EP/I011927/1.
τmicro ∼ 0.1ns (and another 0.1ns to achieve
the necessary statistics when computing mass
flux). The value for time-scale separation is
6 References
0.46.
Although most of the scale-separation val-
ues are below 1 (except the criteria for over-
lapping micro simulations), they are still not [1] J. Koplik and J. R. Banavar. Continuum
much less than 1, to achieve desirable speed deductions from molecular hydrodynam-
up. We expect that by increasing the chan- ics. Annual Review of Fluid Mechanics,
nel length L and keeping the height at the in- 27:257–292, 1995.
let/outlet and throat the same, we would get
much larger scale separations, and therefore [2] K. P. Travis and K. E. Gubbins. Poiseuille
much larger computational savings using our flow of Lennard-Jones fluids in narrow
multiscale approach. slit pores. Journal of Chemical Physics,
112(4):1984–1994, Jan 2000.
6
3rd Micro and Nano Flows Conference
Thessaloniki, Greece, 22-24 August 2011
f ext
∆L
inlet L outlet
260
240 FULL MD
n=0
220
kg/s)
n=1
200 n=2
180
-12
n=3
MASS FLUX, m (10
160
140
120
100
80
60
40
20 (a)
0
-10 -5 0 5 10
3
FULL MD
n=0
2.5 n=1
n=2
N)
2 n=3
-12
FORCE, f (10
1.5
0.5
(b)
0
-10 -5 0 5 10
STREAMWISE CHANNEL DIRECTION, x (nm)
Figure 6: Streamwise results from the multiscale procedure showing convergence of: (a) uni-
form mass flux and (b) non-uniform force variations. Comparisons are made to the full MD
simulation.
7
3rd Micro and Nano Flows Conference
Thessaloniki, Greece, 22-24 August 2011
[4] H. Okumura and D. M. Heyes. Compar- tries and in parallel. Molecular Simula-
isons between molecular dynamics and hy- tion, 33(15):1199–1212, December 2007.
drodynamics treatment of nonstationary
thermal processes in a liquid. Physical Re- [14] G. B. Macpherson and J. M. Reese.
view E, 70(6):061206, 2004. Molecular dynamics in arbitrary geome-
tries: Parallel evaluation of pair forces.
[5] S. T. O’Connell and P. A. Thomp- Molecular Simulation, 34(1):97–115, Jan
son. Molecular dynamics–continuum hy- 2008.
brid computations: A tool for studying
complex fluid flows. Physical Review E, [15] M. K. Borg, G. B. Macpherson, and
52:R5792–R5795, December 1995. J. M. Reese. Controllers for imposing
continuum-to-molecular boundary condi-
[6] N. Hadjiconstantinou and A. Patera. Het- tions in arbitrary fluid flow geometries.
erogeneous atomistic-continuum methods Molecular Simulation, 36(10):745, 2010.
for dense fluid systems. International
Journal of Modern Physics C, 8(4):967– [16] OpenFOAM. www.openfoam.org.
976, 1997. [17] H. J. C. Berendsen, J. P. M. Postma,
W. F. van Gunsteren, A. Dinola, and J. R.
[7] X. B. Nie, S. Y. Chen, W.N. E, and M. O.
Haak. Molecular dynamics with coupling
Robbins. A continuum and molecular
to an external bath. Journal of Chemical
dynamics hybrid method for micro- and
Physics, 81:3684–3690, October 1984.
nano-fluid flow. Journal of Fluid Mechan-
ics, 500:55–64, 2004. [18] W. D. Nicholls, M. K. Borg, D. A.
Lockerby, and J. M. Reese. Water trans-
[8] R. Delgado-Buscalioni and P. V. Coveney.
port through (7,7) carbon nanotubes of
Continuum-particle hybrid coupling for
different lengths using molecular dynam-
mass, momentum, and energy transfers in
ics. Submitted to the Journal of Microflu-
unsteady fluid flow. Physical Review E,
idics and Nanofluidics, 2011.
67(4):1–13, 2003.
[19] R. Barber and D. Emerson. Optimal de-
[9] W. Ren and W. E. Heterogeneous multi-
sign of microfluidic networks using bio-
scale method for the modeling of complex
logically inspired principles. Microfluidics
fluids and micro- fluidics. Journal of Com-
and Nanofluidics, 4(3):179–191, March
putational Physics, 204(1):1–26, 2005.
2008.
[10] W. E, W. Ren, and E. Vanden-Eijnden.
A general strategy for designing seamless
multiscale methods. Journal of Computa-
tional Physics, 228:5437–5453, 2009.