원시데이터 수집 시스템
선정목록으로

A hybrid molecular–continuum method for unsteady compressible multiscale flows

간접 관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기) (6) PEM(고분자전해질막)(7) MEA(막전극접합체)(18) VENT(방수통기 부품)

기본 정보

저자
  1. Matthew K. Borg — University of Strathclyde.
  2. Duncan A. Lockerby — University of Warwick|||University of Edinburgh
  3. Jason M. Reese — Mechanical And Aerospace Engineering
DOI
10.1017/jfm.2015.83
저널
Journal of Fluid Mechanics
발행년도
2015
발행기관
Cambridge University Press
피인용수
49
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1017/jfm.2015.83
토픽
Fuel Cells and Related Materials
OpenAlex ID
W2114040007

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
(6) PEM(고분자전해질막), (7) MEA(막전극접합체), (18) VENT(방수통기 부품)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
nanofluidics, molecular dynamics, filtration membranes, multiscale method, nano-confined geometries
판단 근거
논문은 나노 규모의 유체 흐름을 시뮬레이션하는 하이브리드 분자-연속체 모델링 기법을 다루고 있습니다. 이는 코오롱인더스트리의 수소연료전지용 중공사막(5)이나 방수통기용 멤브레인(18)의 미세 기공 내 유체 거동 및 투과 성능을 예측하는 연구에 간접적으로 활용될 수 있습니다.
R&D 활용 포인트
수소연료전지용 중공사막이나 기능성 멤브레인의 미세 기공 내 수증기/가스 투과 메커니즘을 분자 수준에서 모델링하여 제품 설계 및 성능 최적화에 활용 가능함.
평가 입력
본문 74,059자 중 30,032자 발췌

초록

We present an internal-flow multiscale method (‘unsteady-IMM’) for compressible, time-varying/unsteady flow problems in nano-confined high-aspect-ratio geometries. The IMM is a hybrid molecular–continuum method that provides accurate flow predictions at macroscopic scales because local microscopic corrections to the continuum-fluid formulation are generated by spatially and temporally distributed molecular simulations. Exploiting separation in both time and length scales enables orders of magnitude computational savings, far greater than seen in other hybrid methods. We apply the unsteady-IMM to a converging–diverging channel flow problem with various time- and length-scale separations. Comparisons are made with a full molecular simulation wherever possible; the level of accuracy of the hybrid solution is excellent in most cases. We demonstrate that the sensitivity of the accuracy of a solution to the macro–micro time-stepping, as well as the computational speed-up over a full molecular simulation, is dependent on the degree of scale separation that exists in a problem. For the largest channel lengths considered in this paper, a speed-up of six orders of magnitude has been obtained, compared with a notional full molecular simulation.

본문 74,059자

본문 펼치기
_J._ _Fluid_ _Mech._ (2015), _vol_ . 768, _pp._ 388–414. ⃝c Cambridge University Press 2015 This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/3.0/), which permits unrestricted re-use, distribution, and reproduction in any medium, provided the original work is properly cited. doi:10.1017/jfm.2015.83 # A hybrid molecular–continuum method for unsteady compressible multiscale flows Matthew K. <mark>Borg</mark> <sup>1,</sup> †, Duncan A. <mark>Lockerby</mark> <sup>2</sup> and Jason M. <mark>Reese</mark> <sup>3</sup> 1Department of Mechanical and Aerospace Engineering, University of Strathclyde, Glasgow G1 1XJ, UK 2School of Engineering, University of Warwick, Coventry CV4 7AL, UK 3School of Engineering, University of Edinburgh, Edinburgh EH9 3JL, UK (Received 20 October 2014; revised 6 January 2015; accepted 2 February 2015; first published online 10 March 2015) 388 We present an internal-flow multiscale method (‘unsteady-IMM’) for compressible, time-varying/unsteady flow problems in nano-confined high-aspect-ratio geometries. The IMM is a hybrid molecular–continuum method that provides accurate flow predictions at macroscopic scales because local microscopic corrections to the continuum-fluid formulation are generated by spatially and temporally distributed molecular simulations. Exploiting separation in both time and length scales enables orders of magnitude computational savings, far greater than seen in other hybrid methods. We apply the unsteady-IMM to a converging–diverging channel flow problem with various time- and length-scale separations. Comparisons are made with a full molecular simulation wherever possible; the level of accuracy of the hybrid solution is excellent in most cases. We demonstrate that the sensitivity of the accuracy of a solution to the macro–micro time-stepping, as well as the computational speed-up over a full molecular simulation, is dependent on the degree of scale separation that exists in a problem. For the largest channel lengths considered in this paper, a speed-up of six orders of magnitude has been obtained, compared with a notional full molecular simulation. Key words: computational methods, micro-/nano-fluid dynamics, molecular dynamics 1. Introduction From rapid point-of-care health diagnostics to alleviating the global problem of diminishing fresh water supplies, nanofluidics is expected to be an important component of many future technological applications. For example, nanotubes a few nanometres in diameter but millimetres in length could be used in reverse osmosis desalination and other highly selective filtration membranes. Nanofluidic applications generally have a few factors in common. - Email address for correspondence: [matthew.borg@strath.ac.uk](mailto:matthew.borg@strath.ac.uk) _A_ _molecular–continuum_ _method_ _for_ _unsteady_ _compressible_ _multiscale_ _flows_ 389 (i) The flow occurs in nano-confined geometries (e.g. pores, tubes, channels etc.) that are typically of large aspect ratio. The characteristic length in the streamwise direction can be several orders larger than a characteristic length perpendicular to the flow, such as the pore width or diameter. For example, aligned nanotube membranes for desalination (Holt _et_ _al._ 2006) or carbon-dioxide storage (Mantzalis, Asproulis & Drikakis 2011); nano/micro heat exchangers; lab-on-a-chip; and lubrication/tribology applications (Heo _et_ _al._ 2005). (ii) The flow is dominantly non-continuum. For example, molecular layering exists throughout the majority of the flow (Somers & Davis 1992), stress and viscosity can no longer be treated as local quantities (Todd, Hansen & Daivis 2008), and velocity slip can be present at surfaces of various hydrophobic and hydrophilic materials (Lee, Leese & Mattia 2012). (iii) Conventional continuum flow models, such as the standard Navier–Stokes–Fourier equations, on their own are no longer applicable. Even with significant modifications, at very high confinement the models are still questionable (Holland _et_ _al._ 2014). (iv) The flow is highly multiscale. Continuum variables (such as velocity) vary, in the direction of the confinement, on a scale similar to molecular scales, so no scale separation exists between them. However, in the direction of flow there generally does exist separation between the scale over which the continuum variables vary and the microscopic molecular scale. Molecular dynamics (MD) is currently the best method available to simulate these types of flows accurately. The fluid and solid parts of the problem are modelled using molecular constituents (atoms and molecules), whose behaviour in space and time is described by Newton’s equations of motion and intermolecular potentials derived from quantum mechanics or experiment. The problem with MD, however, is that it is very computationally intensive. Current processing power prohibits a full molecular calculation of systems any larger than a few nanometres for a few nanoseconds of problem time. A hybrid molecular–continuum approach is therefore an attractive alternative: it aims to combine the best attributes of both MD (i.e. molecular detail) and a continuum-fluid formulation (i.e. computational cheapness). Various hybrid methods that couple continuum with molecular solvers seamlessly within the same simulation have been proposed. These can be broadly categorised into either domain decomposition (DD) (O’Connell & Thompson 1995; Hadjiconstantinou & Patera 1997; Nie _et_ _al._ 2004) or heterogeneous multiscale methods (HMM) (Ren & E 2005; Yasuda & Yamamoto 2008; Kessler, Oran & Kaplan 2010; Asproulis, Kalweit & Drikakis 2012; Borg, Lockerby & Reese 2013 _a_ ). DD methods are applicable to configurations where the domain can be split distinctly into molecular and continuum-fluid regions, with overlapping regions placed at the molecular–continuum interfaces where two-way coupling based on fluxes or state properties occurs. Typically a Schwarz alternating method is used to converge the solutions in the disparate regions iteratively (Hadjiconstantinou & Patera 1997). A review of DD methods for dense fluids can be found in Mohamed & Mohamad (2010). As an alternative, the HMM is more effectively applied to rheological flows, or problems in which a constitutive relation and boundary information do not exist. The HMM places a continuum-fluid solver grid over the whole domain, and microscopic simulations dispersed at the nodes of the computational grid provide the missing information. For flow configurations of high aspect ratio, both DD and HMM approaches are too computationally expensive, and in fact HMM is much less accurate than a full 390 _M._ _K._ _Borg,_ _D._ _A._ _Lockerby_ _and_ _J._ _M._ _Reese_ Macro _s_ _y_ _h_ Micro FIGURE 1. (Colour online) Schematic of the IMM treatment of an arbitrary channel with high aspect ratio in the streamwise direction _s_ : a macro model is used to solve the full domain, and micro refinement is applied at nodes of the macro grid using parallel-wall MD simulations with periodic boundary conditions. molecular simulation. This is discussed in more detail in Borg, Lockerby & Reese (2013 _c_ ), Patronis _et_ _al._ (2013) and Patronis & Lockerby (2014). The internal-flow multiscale method (IMM) of Borg _et_ _al._ (2013 _c_ ) was developed instead for these kind of geometries, and for isothermal, incompressible, steady flows. The method consists of iteratively solving a one-dimensional (1D) steady continuity equation; MD simulations are applied at regularly spaced nodes along the streamwise direction of the domain, with heights chosen to match the local geometry of the full channel (see figure 1). Measurements of mass flow rates are extracted from these MD subdomains, which are then used to evaluate macro continuity errors. Based on these errors the equivalent pressure gradients (i.e. body forces) applied to each MD simulation are adjusted. A converged solution is obtained after only a few (typically two or three) iterations. As the fluid and wall conditions are defined from a microscopic (intermolecular) perspective in the micro elements, non-continuum models for slip, density layering, and non-local viscosity and stress are not required in the macro description. The flow rate is the sole parameter measured in the micro solutions, and provides an adequate and sufficient micro-to-macro coupling. However, several problems with this simple approach have become evident, in particular, the fluid compressibility is not incorporated and the method is only applicable to steady flows. Substantial fluid compressibility was evident in the flow simulations in Borg _et_ _al._ (2013 _c_ ), even for a liquid at extremely low Mach numbers (Gad-El-Hak 2005). In these highly confined flows, viscous-related pressure losses can significantly compress the fluid. Patronis _et_ _al._ (2013) include density as a coupling variable for rarefied gas flows, and Patronis & Lockerby (2014) have been able to deal with temperature variations. In this present paper we describe recent advances towards an extended IMM framework capable of simulating, for the first time, time-dependent and compressible flow problems accurately and efficiently. In these flow problems there can be both _A_ _molecular–continuum_ _method_ _for_ _unsteady_ _compressible_ _multiscale_ _flows_ 391 spatial and temporal scale separation; our method, termed ‘unsteady-IMM’, can exploit both and thereby achieve a multiplicative effect on the computational savings. The temporal part of the unsteady-IMM is posed in the general time-stepping framework described by Lockerby _et_ _al._ (2013); this involves advancing the macro and micro models in time separately, with information exchange organised dynamically, depending on the level of time-scale separation. This paper is structured as follows. In § 2 we introduce the multiscale flow problem in high-aspect-ratio geometries. Section 3 gives a detailed description of the new unsteady-IMM hybrid scheme. In § 4 we demonstrate hybrid simulations of a converging–diverging channel conveying a Lennard-Jones liquid. We conclude in § 5. 2. Multiscale flow in confined high-aspect-ratio geometries 2.1. _Length-scale_ _separation_ We present a simulation technique for problems that are scale-separated in the flow direction (i.e. between the scales over which continuum variables vary and the microscopic molecular scales), but not in the direction perpendicular to the flow. For this type of high-aspect-ratio flow geometry we can evaluate the degree of streamwise length-scale separation by a dimensionless number: _,_ (2.1) −1 _SL(s)_ = ���� <u>d</u> _<u>h</u>_ d _<u>(ss)</u>_ ���� applied locally in the streamwise direction _s_, where _h(s)_ is the variation of the channel height along _s_ . Equation (2.1) can also be extended to include streamwise variations in hydrodynamic variables and to channel curvature (see Borg _et_ _al._ 2013 _c_ ; Patronis _et_ _al._ 2013; Patronis & Lockerby 2014). channel,Providedthe _S_ walls _L_ ≫ 1 areit canapproximatelysafely be assumedparallelthat,to thein centresmall streamwisestreamline. sectionsThis is aoflocalthe parallel-flow assumption, and it enables the representation of small sections of the channel geometry by micro subdomains with exactly parallel walls and periodicity applied in the streamwise direction (Borg _et_ _al._ 2013 _c_ ). Consequently, this is a convenient set-up for MD ensembles. See figure 1 for a schematic of the IMM treatment of an example channel. The number of micro elements, which we denote as _Π_, required to solve a given macro flow problem accurately is highly dependent on _SL_ : more MD elements are requiredthere is nowhenlength-scale _SL_ → 1, andseparationfewer areinrequiredsome partswhenof _SL_ the →∞channel. In circumstancesflow configuration,where i.e. where _SL_ ≲ 1 at an arbitrary _s_, the parallel-flow assumption no longer holds and a suitable alternative is to model the local geometry by an exact MD representation that is then coupled to the other IMM micro elements. This has been demonstrated in Borg, Lockerby & Reese (2013 _b_ ) and Stephenson _et_ _al._ (2014) for junction components in network channel flows. The choice of _Π_ affects the accuracy (which can be determined through successive refinement) and computational cost. The micro gearing dimensionless parameter is usually a good indicator of how much computationally cheaper a hybrid simulation is than a full-MD simulation: _gL_ = <sup>_<u>�</u>_</sup> _δs_ <sup>_<u>s</u>_</sup> <sup>_<u>�</u>_</sup> _δs_ <sup>_<u>s</u>_</sup> <sup>_,_</sup> (2.2) where _�s_ ≈ _L/Π_ is the separation between micro elements (i.e. a macro cell size), _L_ is the length of the channel and _δs_ is the streamwise size of a micro element 392 _M._ _K._ _Borg,_ _D._ _A._ _Lockerby_ _and_ _J._ _M._ _Reese_ (see figure 1). Computational savings over a full-MD simulation are obtained when _gL >_ 1. In MD, _δs_ has to be larger than around 3× the intermolecular potential cut-off radius in order to prevent finite size effects from affecting the results; so _δs_ = 4 _._ 08 nm is chosen for all of the cases in this paper. The separation _�s_ of micro elements is assumed uniform along _s_ for numerical simplicity. 2.2. _Time-scale_ _separation_ Up until now the IMM could not be applied to unsteady flow problems. Unsteadiness presents a truly multiscale problem, as there are potentially varying degrees of scale separation in both time and space that can be exploited. The degree of time-scale separation between the macro (continuum) and micro (molecular) models can be evaluated at a time _t_ as _ST(t)_ = <sup>_<u>Tmacro</u>_</sup> _Tmicro_ <sup>_<u>(t)</u>_</sup> _Tmicro_ _,_ (2.3) where _Tmacro(t)_ is the time-scale characterising the temporal variation in the macro variables (e.g. the period of an oscillatory flow, or the time for a macro variable to relax to a steady state) and _Tmicro_ is the characteristic time taken for the variables in the micro model to relax to any step change in the macro variables (e.g. the start-up time from rest). From a numerical perspective, time is discretised using time steps _�t_ and _δt_ for the macro and micro solvers, respectively. The maximum time step that is allowed for the MD micro solver is based entirely on stability, and is taken to be _δt_ = 5 fs for all cases in this paper. The macroscopic time step is expressed as _�t_ = <sup>_<u>T</u>_</sup> _n_ <sup>_<u>macro</u>_</sup> _macro_ <sup>_<u>(t)</u>_</sup> _,_ (2.4) where _nmacro_ is a large number that: ( _a_ ) captures the macroscopic temporal variation of the hydrodynamic properties, ( _b_ ) satisfies the Courant–Friedrichs–Lewy (CFL) condition given by _vs�t/�s_ _<_ 1 in one dimension, where _vs_ is the streamwise velocity, and ( _c_ ) assures the hybrid simulation is stable. What we notice from (2.4) is that _�t_ may change depending on _Tmacro(t)_, and hence the scale separation _ST(t)_ . To enable this adaptability we need a generalised time-stepping procedure for the macro and micro time scales throughout the hybrid simulation. The Continuous micro solution–Asynchronous, Intermittent coupling (CAI) timestepping method of Lockerby _et_ _al._ (2013) exchanges information between micro and macro models at well-defined ‘intervals’; the circles in figure 2 show the points at which the exchange occurs. A ‘micro interval’ consists of _N_ MD time steps (i.e. _Nδt_ ), while a ‘macro interval’ consists of one macro time step _�t_ . In situations with large time-scale separation, i.e. _ST(t)_ ≫ 1, the macro interval can be set much larger than the micro interval (see the right-hand side of figure 2). The physical approximation and gain in efficiency stem from asynchronously coupling the macro and micro models. The macro model advances further in time, each time step, than the micro model, but they are coupled as if they are of equal times. This enables the macro model to advance more quickly than it would otherwise, but the overall hybrid method is still acceptably accurate whenever the variations in macro variables are slow compared with the relaxation time scale of the micro model (i.e. if the macro and micro models are time-scale separated). Of course, whenever time-scale separation does not exist this temporal gearing cannot be applied and the intervals must be made equal, as shown in the left-hand _A_ _molecular–continuum_ _method_ _for_ _unsteady_ _compressible_ _multiscale_ _flows_ 393 No scale separation <u>4</u> 1 3 5 2 6 Scale separated _t_ Macro _t_ Micro _N_ FIGURE 2. (Colour online) The CAI time-stepping scheme (Lockerby _et_ _al._ 2013). Horizontal arrows indicate the incremental time-stepping of the macro (top) and micro (bottom) solver, while arrows indicate the direction of information exchange. side of figure 2. In cases where the degree of scale separation in the flow varies (such as a sudden start-up flow evolving to steady state), the macro time step _�t_ as well as _N_ can vary with the time-local _ST(t)_, as explained below. An indication of the computational speed-up provided by the CAI time-stepping method over a fully coupled time-stepping procedure (in which _�t_ = _Nδt_ ) can therefore be obtained using a micro gearing parameter for time: _gT_ = _N_ <sup>_<u>�</u>_</sup> _δ_ <sup>_<u>t</u>_</sup> _t_ <sup>_,_</sup> (2.5) which is the ratio of macro to micro coupling intervals. Only when _gT >_ 1 (i.e. _ST >_ 1) can there be computational savings over a fully coupled scheme. As stated above, for flows of interest the scale separation may not necessarily be constant in time, hence the generality of _ST(t)_ in (2.3). The CAI method enables adaptable gearing throughout the simulation, with a relationship between _gT_ and _ST_ suggested in Lockerby _et_ _al._ (2013) as _gT_ = _Kg(ST_ - 1 _)_ + 1 _,_ (2.6) where _Kg_ is a proportional gain that acts as a control on how aggressively scale separation is exploited at the expense of accuracy. Assuming _�t_ is known and dictated by the macroscopic variations, (2.6) can be substituted into (2.5) to obtain an expression for an adaptive choice of _N_ : _<u>�t</u>_ _N_ = _δt_ [ _Kg(ST_ - 1 _)_ + 1] <sup>_._</sup> (2.7) 3. The unsteady-IMM Our hybrid method discretises the domain with _Π_ uniformly distributed micro elements, and advances the macro and the micro models separately on their own time line. Coupling information is exchanged between the macro and micro models at adaptive time intervals _�t_ and _Nδt_, respectively. 394 _M._ _K._ _Borg,_ _D._ _A._ _Lockerby_ _and_ _J._ _M._ _Reese_ 3.1. _Macro_ _model_ The macro model consists of the unsteady, isothermal, compressible mass and momentum conservation equations: and _ρ_ <sup>_<u>∂</u>_</sup> <sup>_<u>V</u>_</sup> _<u>∂ρ</u>_ _∂t_ <sup>+</sup> <sup>∇·</sup> <sup>_ρ_</sup> <sup>_V_</sup> <sup>= 0</sup> <sup>_,_</sup> (3.1) _∂_ <sup>_<u>V</u>_</sup> _t_ <sup>+</sup> <sup>_ρ_</sup> <sup>_V_</sup> <sup>· ∇</sup> <sup>_V_</sup> <sup>= −</sup> <sup>∇</sup> <sup>_p_</sup> <sup>+</sup> <sup>∇·</sup> <sup>_T_</sup> <sup>+</sup> <sup>_F_</sup> <sup>_s,_</sup> (3.2) where _ρ_ is the mass density, _V_ is the convective velocity, _p_ is the hydrostatic pressure, _T_ the shear stress tensor and _F_ _s_ is a source of flow in terms of force per unit volume. In these equations _t_ refers to the macroscopic time scale. For low Reynolds number flows of high aspect ratio, (3.1) and (3.2) become _<u>∂ρ</u>_ _∂s_ = 0 _,_ (3.3) <sup>_<u>s</u>_</sup> and _ρ_ <sup>_<u>∂vs</u>_</sup> <sup>_<u>∂v</u>_</sup> _∂t_ <sup>_<u>s</u>_</sup> <sup>= −</sup> <sup>_<u>∂</u>_</sup> _∂_ <sup>_<u>p</u>_</sup> _s_ _<u>∂ρ</u>_ _∂s_ _∂t_ <sup>+</sup> <sup>_<u>∂ρvs</u>_</sup> <sup>_<u>∂</u>_</sup> _∂_ <sup>_T_</sup> _y_ <sup>_<u>sy</u>_</sup> <sup>+</sup> <sup>_<u>∂</u>_</sup> _∂_ <sup>_T_</sup> _z_ <sup>_<u>sz</u>_</sup> <sup>_<u>∂</u>_</sup> _∂_ <sup>_<u>p</u>_</sup> _s_ <sup>+</sup> <sup>_<u>∂</u>_</sup> _∂_ <sup>_T_</sup> _y_ <sup>_<u>sy</u>_</sup> (3.4) _∂_ <sup>_T_</sup> _z_ <sup>_<u>sz</u>_</sup> <sup>+</sup> <sup>_Fs,_</sup> respectively, where _vs_ and _Fs_ are the velocity and forcing in the streamwise directions. It is worth noting here that (3.4) contains no constitutive approximation (e.g. Navier– Stokes), transport model (viscosity) or slip boundary conditions; it is maintained in its general form. Integrating the continuity equation (3.3) over the channel cross-sectional area _A_ we obtain _<u>∂ρ</u>_ _A_ _∂t_ <sup>+</sup> <sup><u>1</u></sup> _<u>∂ρ</u>_ _<u>∂m</u>_ <u>˙</u> _A_ _<u>∂∂ms</u>_ <u>˙</u> <sup>= 0</sup> <sup>_,_</sup> (3.5) where _m_ ˙ is the mass flow rate and _ρ_ is the mass density; both variables are a function of time _t_ and streamwise location _s_ . Equation (3.5) is the main macro model, applied in the streamwise direction, with _ρ(s, t)_ being the unknown macro state variable. The micro → macro coupling in this equation is imposed by extracting the mass flow rate _m_ ˙ _(s)_ from the micro state as explained in § 3.2. For the periodic problems of this paper, the spatial derivative in (3.5) is evaluated from values at subdomain locations using a trigonometric interpolation through all subdomains, as described in Patronis _et_ _al._ (2013). 3.2. _Micro_ _model_ The micro model consists of standard MD (Allen & Tildesley 1987) that solves for the molecular movements and interactions in each subdomain independently (see the example of a subdomain in figure 1): v _i_ = <sup><u>d</u></sup> d <sup>_<u>r</u>_</sup> _t_ <sup>_<u>i</u>_</sup> <sup>_,_</sup> (3.6) _j_ _mi_ <u>d</u> v _<u>i</u>_ d _t_ <sup>=</sup> - ∇ _V_ + _f_ <sup>_ext_</sup> _,_ (3.7) _A_ _molecular–continuum_ _method_ _for_ _unsteady_ _compressible_ _multiscale_ _flows_ 395 where _mi_, _r_ _i_ and v _i_ are the mass, position and velocity of the _i_ th molecule. On the right-hand side of (3.7), the first term is the net intermolecular force due to neighbouring molecules and the second term represents an external forcing applied to all liquid molecules. Without full macroscopic coupling, the latter is just the source term: _f_ <sup>_ext_</sup> = _ρ_ <sup>_<u>F</u>_</sup> _n_ <sup>_<u>s</u>_</sup> _ρn_ _n_ ˆ _s,_ (3.8) where _ρn_ is the number density and _n_ ˆ _s_ is a unit vector parallel to the walls. Details of the interaction potential and parameters are given in appendix A, since these are independent of the hybrid method proposed here. Each subdomain is periodic in the streamwise direction, so the mass in each subdomain is conserved. With an applied external forcing, the flow rate in one MD subdomain is therefore time-accurate and can be measured: _i_ <u>1</u> _m_ ˙ _(t)_ = _δsN_ _N_ _τ_ _mi_ v _i_ · _n_ ˆ _s,_ (3.9) where the first summation is over the time period _t_ → _t_ + _Nδt_ and the second summation is over fluid molecules in the MD subdomain. The micro subdomain with forcing given by (3.8) does not, however, contain the complete macro → micro momentum coupling. The problem with a MD set-up that contains parallel walls and periodicity applied in the streamwise direction is that it cannot support a streamwise pressure gradient. Therefore the micro momentum balance of one MD subdomain, i.e. <sup>_<u>∂v</u>_</sup> _∂t_ <sup>_<u>s</u>_</sup> <sup>=</sup> <sup>_<u>∂</u>_</sup> _∂_ <sup>_T_</sup> _y_ <sup>_<u>sy</u>_</sup> (3.10) _∂_ <sup>_T_</sup> _z_ <sup>_<u>sz</u>_</sup> <sup>+</sup> <sup>_Fs,_</sup> _ρ_ <sup>_<u>∂v</u>_</sup> _∂t_ <sup>_<u>s</u>_</sup> _∂_ <sup>_T_</sup> _y_ <sup>_<u>sy</u>_</sup> <sup>+</sup> <sup>_<u>∂</u>_</sup> _∂_ <sup>_T_</sup> _z_ <sup>_<u>sz</u>_</sup> is inconsistent with the macro balance of (3.4). For coupled simulations to be accurate, the conservation of momentum must hold at both macro and micro scales. To produce in the micro model the hydrodynamically equivalent effect of the missing local pressure gradient, we apply an artificial body force _Φ_, which we call the pressure gradient correction, as an additional external forcing to (3.8) in the corresponding subdomain, i.e. _f_ <sup>_ext_</sup> = _ρ_ <sup>_<u>F</u>_</sup> _n_ <sup>_<u>s</u>_</sup> _n_ ˆ _s_ + _ρ_ <sup>_<u>Φ</u>_</sup> _n_ _n_ ˆ _s_ + _ρ_ <sup>_<u>Φ</u>_</sup> _n_ _n_ ˆ _s,_ (3.11) where (3.12) _Φ_ = − <sup><u>d</u></sup> d <sup>_<u>p</u>_</sup> _s_ <sup>_._</sup> Equations (3.11) and (3.12) therefore now ensure an appropriate momentum conservation; so the local macroscopic pressure gradient comprises the macro → micro coupling. 3.3. _Closure_ _requirements_ The streamwise density variation _ρ(s)_, which is obtained by solving the continuity equation (3.5), is imposed on the MD subdomains by a particle insertion/deletion protocol (in this case, the USHER algorithm of Delgado-Buscalioni & Coveney 396 _M._ _K._ _Borg,_ _D._ _A._ _Lockerby_ _and_ _J._ _M._ _Reese_ (2003)). The fluid density in each micro element is therefore updated on-the-fly during the simulation. However, as there is a change in streamwise density, the streamwise pressure _p(s)_ must be updated first before solving the coupling equation (3.12). This closure is resolved by defining an equation of state relating density to pressure, i.e. of the form _p(ρ)_ . While this equation could be obtained from reliable literature sources, any slight mismatch between the macro and micro fluid descriptions, for example when high confinement exists, can produce inaccuracies in the hybrid predictions when compared with the full-MD solution. Instead, we measure the macro pressure–density relationship from each MD subdomain in a presimulation, as outlined in Borg, Lockerby & Reese (2014), and fit a least-squares polynomial of the form _p(ρ)_ = _M_ _j_ =0 _ajρ_ <sup>_(M_</sup> <sup>−</sup> <sup>_j)_</sup> _,_ (3.13) where _aj_ are the fit coefficients (see appendix B), and _M_ = 4 is the degree of the polynomial. 3.4. _Algorithm_ _overview_ The hybrid solver has been written in OpenFOAM, a C++ toolbox that contains classes for creating computational fluid dynamics solvers and, recently, also MD solvers (Macpherson & Reese 2008; Ritos _et_ _al._ 2013). The hybrid algorithm runs each MD subdomain in serial on an assigned central processing unit (CPU) core. As such, the micro subdomains run in parallel, and parallel communication of data (i.e. the _Π_ measured mass flow rates) is only required at each coupling interval, making this a very efficient parallelisation scheme. This approach also guarantees that the computational cost for a hybrid simulation is essentially independent of the number of subdomains ( _Π_ ), provided there are _Π_ CPU cores available. In the simulations in this paper, for example, we choose _Π_ = 5, which is smaller even than the number of core processors found on many desktop computers. The procedure of the algorithm is briefly outlined here, but is also detailed in appendix C in proper algorithmic format. The forcings imposed on micro solvers are given by (3.11); initially _Φ_ = 0 for each subdomain. After _N_ MD time steps, the mean mass flow rate is measured in each subdomain using (3.9) and a low-order polynomial is least-squares fitted to the data to obtain a spatially smoothed _m_ ˙ _(s)_ before trigonometric interpolation; this prefiltering step removes potentially destabilising MD noise. Time-stepping is applied as described in (2.3)–(2.7), to obtain new macro and micro time intervals. Next, the macro equations (3.5), (3.13) and (3.12) are solved numerically in this order to give the new values of macro densities _ρ(s)_, pressures _p(s)_ and pressure gradient corrections _Φ(s)_, respectively, at the next macro time interval. The new pressure-gradient correction _Φ(s)_ provides the macro → micro condition, so the forcings are updated in (3.11) and the hybrid algorithm proceeds back to the MD subdomains to obtain new mass flow rates for the next time interval. The number of molecules in each micro subdomain is modified using USHER at the beginning of each MD run to match the new local macroscopic density _ρ(s)_ . 4. Results We apply our unsteady-IMM hybrid method to the flow of liquid argon along a periodic converging–diverging channel that has a smoothly varying height in the _A_ _molecular–continuum_ _method_ _for_ _unsteady_ _compressible_ _multiscale_ _flows_ 397 ( _a_ ) _y_ _z_ _s_ ( _b_ ) _SL_ ( _c_ ) 120 100 80 60 40 20 0 6 4 2 0 –2 10 20 30 0 10 20 30 _s_ (nm) Exact <u>Min</u> 40 50 60 40 50 60 FIGURE 3. (Colour online) Converging–diverging channel case: ( _a_ ) the full-MD simulation, ( _b_ ) the length-scale separation _SL(s)_ taken from (2.1) and ( _c_ ) schematic of the unsteady-IMM approach. streamwise direction. A time-dependent gravity-type force is applied to the fluid to generate an unsteady/transient flow, although pressure-driven or boundary-driven flows can also be treated (Patronis _et_ _al._ 2013). The solution dependence on _Π_ has been reported by Patronis _et_ _al._ (2013) and Borg _et_ _al._ (2013 _c_ ), and is not repeated here: we choose a value of _Π_ that is comfortably sufficient for accurate solutions in the geometry we consider. Our hybrid results are benchmarked against a full-MD simulation to assess computational expense. 4.1. _Validation_ The full-MD converging–diverging channel shown in figure 3( _a_ ) has a length _L_ = 68 nm in the streamwise direction _s_, a depth of _�z_ = 5 _._ 44 nm, and heights of 3.4 and 398 _M._ _K._ _Borg,_ _D._ _A._ _Lockerby_ _and_ _J._ _M._ _Reese_ ( _a_ ) 1.0 ( _b_ ) 0.8 1.0 0.8 0.6 0.4 0.2 0 0.6 0.4 0.2 0 –0.2 –0.4 –0.6 –0.8 –1.0 0 50 100 150 200 250 300 350 400 0 100 200 300 400 500 600 700 800 ( _c_ ) 1.0 ( _d_ ) 0.8 0.6 0.4 0.2 1.0 0.8 0.6 0.4 0.2 0 0 –0.2 –0.4 –0.6 –0.8 –1.0 –0.2 –0.4 –0.6 –0.8 –1.0 0 5000 10 000 15 000 20 000 0 5000 10 000 15 000 20 000 <sup>0</sup> Force Period 10 8 6 4 2 _t_ (ps) _t_ (ps) FIGURE 4. (Colour online) Gravity force varying with time for various time-scaleseparated channel flow cases: ( _a_ ) case A, startup flow, ( _b_ ) case B, oscillating force with small scale separation _ST_ = 2, ( _c_ ) case C, oscillating force with large scale separation _ST_ = 100 and ( _d_ ) case D, oscillating force with mixed scale separation _ST_ = 2 → 100. 2.04 nm at the inlet and throat sections, respectively. The channel is periodic in both the streamwise and spanwise directions. The height between the top and bottom walls _h(s)_ varies in the streamwise direction according to a sinusoidal function, in order to make the variation in the scale separation gradual. For this channel geometry: - <u>2π</u> _<u>s</u>_ _L_ - 1 + _hinlet,_ (4.1) _h(s)_ = 2 _a_ cos where 4 _a_ = 1 _._ 36 nm is the difference in height from inlet to throat and _hinlet_ is the inlet height. The variation of length-scale separation in the streamwise direction _SL(s)_ is obtained from (2.1) and shown in figure 3( _b_ ). The minimum _SL_ for this configuration is ∼16. All flows in both the full-MD and the hybrid simulations start from rest, and have the same spatial density and velocity distributions _ρ(s)_, _vs(s)_ . Then a time-varying gravity force _Fg(t)_ is applied in the _s_ direction. Four types of time-scale-separated flows are simulated (see figure 4). _A_ _molecular–continuum_ _method_ _for_ _unsteady_ _compressible_ _multiscale_ _flows_ 399 Case B Case C Case D ( _ST_ = 2) ( _ST_ = 100) ( _ST_ = 2 → 100) _gT_ _Kg_ _gT_ _Kg_ _gT_ _Kg_ 1 0 10 0.09 1.10–11.10 0.10 2 1.0 20 0.19 1.25–20.83 0.20 4 3.0 40 0.39 1.43–35.71 0.33 TABLE 1. The micro gearing _gT_ and the scale-separation sensitivity parameter _Kg_ for the oscillatory-forcing cases considered. _(a)_ _No_ _time-scale_ _separation_ . A start-up flow problem where an instantaneous gravity force of _Fg_ = 0 _._ 487 pN is applied. This case is required to obtain an estimate of _Tmicro_ ≈ 108 ps. _(b)_ _Small_ _time-scale_ _separation_, _ST_ = 2. An oscillating gravity force is applied with amplitude _Fg_ = 0 _._ 487 pN and period _Tmacro_ = 0 _._ 22 ns. _(c)_ _Large_ _time-scale_ _separation_, _ST_ = 100. An oscillating gravity force of the same amplitude is applied, but with a larger period _Tmacro_ = 10 _._ 8 ns. _(d)_ _Mixed_ _time-scale_ _separation_, _ST_ = 2 → 100. An oscillating gravity force of the same amplitude is applied, but with gradually increasing period: 0 _._ 22 → 10 _._ 8 ns. The hybrid solver set-up of the converging–diverging channel is shown in figure 3( _c_ ), and consists of _Π_ = 5 micro elements distributed uniformly at streamwise locations: _si_ = _L(i_ - 1 _)/Π,_ (4.2) where _i_ = 1 _,_ 2 _,_ _. . ._ _,_ _Π_ are the indices of the micro elements. The channel height of each micro element is a mapping from the macro domain geometry, which can be obtained by substituting the subdomain locations _si_ (4.2), in the channel geometry (4.1). In the streamwise direction all micro elements have a width of _δs_ = 4 _._ 08 nm, which gives a micro subdomain separation (macro spacing) of _�s_ = 13 _._ 6 nm, and a consequent computational speed-up estimate due to spatial gearing of _gL_ = 3 _._ 33. Table 1 gives an overview of the three time-scale-separated cases we consider, each with three different temporal gearings _gT_ we test. In order to improve the MD statistics, the unsteady-IMM uses 10 independent realisations for each micro element. Mass flow rate measurements taken in each micro interval ( _Nδt_ ) are therefore further averaged across 10 ensembles. In the full-MD simulations we use either block-averaging or the wavelet proper orthogonal decomposition (WPOD) method (Zimón _et_ _al._ 2014) to reduce noise. In figure 5 we present our results for the streamwise variation of mass flow rate _m_ ˙ _(s,_ _t)_ for various time instances during the start-up problem (Case A), and in figure 6 we present the mass flow rate, density and average velocity in each subdomain location as they vary in time. We observe very good qualitative agreement between the full-MD and the hybrid results. The mass flow rate measurements in figure 6 pick up an acoustic response at the beginning of the start-up problem, which is caused by the impulse forcing. Reassuringly, these features are resolved in both the full-MD and the unsteady-IMM solutions. In figure 7( _a_ - _c_ ) we show mass flow rates varying with time for the three oscillating cases B-D, respectively; we plot here only the results for the inlet MD subdomain of the converging–diverging channel (i.e. _i_ = 0, _s_ = 0) for comparison. 400 _M._ _K._ _Borg,_ _D._ _A._ _Lockerby_ _and_ _J._ _M._ _Reese_ 5 Full MD 4 3 2 1 0 –1 Hybrid 0 20 40 60 _s_ (nm) FIGURE 5. (Colour online) Full-MD and hybrid predictions of mass flow rates _m_ ˙ _(s, t)_ along the streamwise direction _(s)_ for various instantaneous times _(t)_ in the start-up problem (Case A). The hybrid results for the high-frequency oscillating flow (Case B) match well with the full-MD solution when _gT_ = 1 (i.e. spatial gearing in the hybrid, but no temporal gearing), as shown in figure 7( _a_ ). In this case, as well as in Case A, the time-scale separation is low ( _ST_ ⩽ 2), meaning that the microscopic time scale is of similar magnitude to the oscillating period and so computational savings due to hybridisation in time cannot be obtained without loss of accuracy. To demonstrate this we include the simulation results for increasing values of _gT_ in figure 7( _a_ ), that show that for less-time-scale-separated cases the time accuracy of the solution is highly sensitive to _gT_ greater than one. Figure 8 shows the actual percentage error between the peaks of the full-MD and those of the unsteady-IMM simulation. For example, a change of gearing from _gT_ = 1 to _gT_ = 2 produces a ∼30 % error in the peaks of the mass flow rate, which grows to 60 % error when _gT_ = 4. In figure 9 we present subdomain measurements of mass flow rate, density and velocity as a function of time in the unsteady-IMM ( _gT_ = 1) solution of Case B. The hybrid method agrees very well with the full-MD simulation across all subdomain locations, and captures the temporal oscillations of mass density. For the low-frequency oscillating flow (Case C), the time-scale separation is much larger ( _ST_ = 100), and so the sensitivity to _gT_ is much less, as shown qualitatively in figure 7( _c_ ) and quantitatively in figure 8. In the latter figure this sensitivity is contrasted with the less-scale-separated case ( _ST_ = 2). Clearly, a reasonable accuracy ( _<_ 10 % error) would be obtained in Case C for _gT_ _<_ 20. To make the analysis complete we also present the full range of subdomain results for Case C in figure 10. We discuss the observed secondary oscillations in § 4.2 below. The final case, which consists of a mixed frequency oscillating flow (Case D), demonstrates the usefulness of the hybrid scheme: now the time-scale separation is a function of time. As such, the gearing parameter _gT(t)_ adapts on-the-fly during the solution procedure, depending on the local time-scale separation _ST(t)_ . The proportional gain parameter _Kg_ for these cases is indicated in table 1, and remains constant in each simulation. The resulting time variation of the gearing _gT(t)_ and macro time-step _�t(t)_ are shown in figure 11( _a_, _b_ ), respectively, for the three chosen values of _Kg_ . Figure 7( _c_ ) clearly shows that these adaptive simulations give excellent _A_ _molecular–continuum_ _method_ _for_ _unsteady_ _compressible_ _multiscale_ _flows_ 401 ( _a_ ) ( _b_ ) ( _c_ ) 100 200 300 400 100 200 300 400 100 200 300 400 100 200 300 400 300 200 100 Full-MD _FG_ 6 5 4 3 2 1 0 6 5 4 3 2 1 0 6 5 4 3 2 1 0 6 5 4 3 2 1 0 6 5 4 3 2 1 0 1600 1400 1200 1000 0 100 200 300 400 0 100 200 300 400 0 100 200 300 400 300 200 100 0 100 200 300 400 300 200 100 0 100 200 300 400 300 200 100 0 100 200 300 400 300 200 100 0 100 200 300 400 1600 1400 1200 1000 0 100 200 300 400 1600 1400 1200 1000 0 100 200 300 400 1600 1400 1200 1000 0 100 200 300 400 1600 1400 1200 1000 0 100 200 300 400 _t_ (ps) _t_ (ps) _t_ (ps) FIGURE 6. (Colour online) Transient results for the start-up flow (Case A) at each micro subdomain location: ( _a_ ) mass flow rate, ( _b_ ) mass density and ( _c_ ) average velocity are recorded from each MD subdomain location and compared with the result extracted from a corresponding bin of width 2.9 nm in the full-MD simulation. results across the range of time-scale separation, while figure 12 shows the full range of results for _Kg_ = 0 _._ 1. The high frequencies of the flow are resolved very accurately by the unsteady-IMM as it chooses a small gearing, and the lower frequencies of the flow because a higher gearing is chosen. 4.2. _Short_ _time-scale_ _artefacts_ In general, our multiscale simulation approach balances micro-scale resolution with macro-scale prediction. We capture relevant small-scale phenomena in order to predict large-scale phenomena. However, the results in figure 7( _b_ ) highlight an important 402 _M._ _K._ _Borg,_ _D._ _A._ _Lockerby_ _and_ _J._ _M._ _Reese_ ( _a_ ) 5 Full-MD 0 100 200 300 400 500 600 700 800 Full-MD 0 4000 8000 12 000 16 000 20 000 Full-MD 0 4000 8000 12 000 16 000 20 000 _t_ (ps) ( _b_ ) ( _c_ ) 4 3 2 1 0 –1 –2 –3 –4 5 4 3 2 1 0 –1 –2 –3 –4 5 4 3 2 1 0 –1 –2 –3 –4 FIGURE 7. (Colour online) Predicted mass flow rate ( ˙ _m_ ) varying with time ( _t_ ) at the inlet of the converging–diverging channel ( _s_ = 0) for all oscillatory-forcing cases: ( _a_ ) Case B, ( _b_ ) Case C and ( _c_ ) Case D. cautionary example of how temporal gearing can create erroneous artefacts on short time scales (i.e. short-period oscillations), which might otherwise give the impression of being physical. The source of this high-frequency oscillation is, in fact, acoustic. To estimate the natural acoustic frequency of the flow geometry, consider a micro and a macro model for an inviscid flow in a straight channel of length _L_ : _<u>∂ρ∂t</u>_ <sup>+</sup> <sup>_<u>∂ρ</u>_</sup> _∂s_ <sup>_<u>u</u>_</sup> _<u>∂ρ</u>_ _(_ macro _)_ (4.3) <sup>_<u>∂ρ</u>_</sup> _∂s_ <sup>_<u>u</u>_</sup> <sup>= 0</sup> <sup>_,_</sup> _A_ _molecular–continuum_ _method_ _for_ _unsteady_ _compressible_ _multiscale_ _flows_ 403 100 Case Case 80 60 (%) 40 20 0 5 10 15 20 25 30 35 40 _gT_ FIGURE 8. (Colour online) Percentage error in the peak mass flow rate values for the oscillating flow Cases B and C when our hybrid results are compared with the full-MD solutions. Sensitivity of this error to the gearing is clearly shown by the dotted lines (curve fits to the data) for the two time-scale-separated cases. _<u>∂ρu</u>_ _<u>∂ρu</u>_ _∂ρ_ _∂t_ <sup>+</sup> <sup>_<u>∂p</u>_</sup> _∂ρ_ _<u>∂ρ</u>_ _∂s_ <sup>= 0</sup> <sup>_,_</sup> _(_ micro _)._ (4.4) Coupling the two models produces a wave equation: _<u>∂</u>_ <sup>2</sup> _<u>ρ</u>_ _∂s_ <sup>2</sup> _∂t_ <sup>2</sup> <sup>=</sup> <sup>_c_</sup> <sup>2</sup> <sup>_<u>∂</u>_</sup> <sup>2</sup> <sup>_<u>ρ</u>_</sup> _<u>∂</u>_ <sup>2</sup> _<u>ρ</u>_ _∂s_ <sup>2</sup> <sup>_,_</sup> (4.5) <sup>2</sup> <sup>_<u>ρ</u>_</sup> where the wave speed _c_ = <sup>~~√~~</sup> _∂p/∂ρ_ <u>,</u> i.e. the speed of sound. The fundamental acoustic frequency is then determined by the length of the channel: _f_ = _c/L_ . For the situation where temporal gearing is applied, the micro and macro equations are modified: _(_ macro _)_ (4.6) <sup>_<u>∂ρ</u>_</sup> _∂s_ <sup>_<u>u</u>_</sup> <sup>= 0</sup> <sup>_,_</sup> _<u>∂ρ</u>_ _gT_ _<u>∂ρ∂t</u>_ <sup>+</sup> <sup>_<u>∂ρ</u>_</sup> _∂s_ <sup>_<u>u</u>_</sup> _<u>u</u>_ _<u>∂ρ</u>_ _<u>∂ρu</u>_ _<u>∂ρu</u>_ _∂ρ_ _∂t_ <sup>+</sup> <sup>_<u>∂p</u>_</sup> _<u>∂ρ</u>_ _∂ρ_ _∂s_ <sup>= 0</sup> <sup>_,_</sup> _(_ micro _)_ (4.7) which combine to produce a fundamental acoustic frequency with a dependence on the temporal gearing: _<u>c</u>_ _f_ = _L_ <sup>~~√~~</sup> _~~g~~_ _T_ _._ (4.8) In figure 13 this expression (derived for a straight channel) is compared with the frequencies of the high-frequency oscillations observed in our converging–diverging channel (extracted from the results of Case A and Case B using a Fourier transform); there is a clear correlation. However, this does not explain why such acoustic frequencies are not observed in the full-MD simulation (which is without temporal gearing). The reason is that temporal gearing reduces the ratio of the acoustic period to the viscous development 404 _M._ _K._ _Borg,_ _D._ _A._ _Lockerby_ _and_ _J._ _M._ _Reese_ ( _a_ ) ( _b_ ) ( _c_ ) 200 0 1700 1500 1300 1100 Full-MD _FG_ 4 2 0 –2 –4 0 200 400 600 800 0 4 2 0 –2 –4 0 200 400 600 800 4 2 0 –2 –4 0 200 400 600 800 4 2 0 –2 –4 0 200 400 600 800 4 2 0 –2 1700 1500 1300 1100 0 1700 1500 1300 1100 0 1700 1500 1300 1100 0 1700 1500 1300 1100 –200 200 400 600 800 0 200 400 600 800 200 0 –200 200 400 600 800 0 200 400 600 800 200 0 –200 200 400 600 800 0 200 400 600 800 200 0 –200 200 400 600 800 0 200 400 600 800 200 0 –4 0 0 200 400 600 800 0 200 400 600 800 0 200 400 _t_ (ps) _t_ (ps) _t_ (ps) –200 200 400 600 800 0 200 400 600 800 FIGURE 9. (Colour online) Transient results for the high-frequency oscillating unsteady flow (Case B) at each micro subdomain location: ( _a_ ) mass flow rate, ( _b_ ) mass density and ( _c_ ) average velocity are recorded from each MD subdomain location and compared with the result extracted from a corresponding bin of width 2.9 nm in the full-MD simulation. time. This means that ‘echoes’ in the flowfield, generated by flow disturbances and reinforced by the periodicity of the domain, are less prone to being damped out by viscosity. In other words, the Wormersley number (the ratio of the oscillatory inertia force to the shear forces) is increased when we employ temporal multiscaling. The existence of such oscillations, which are not a numerical artefact but are an artefact of the temporal gearing, reinforce the need for multiscale simulations to go hand-in-hand with gearing sensitivity studies (see § 4.4) in order to identify whether a short time-scale phenomenon is physical or not. But there are other practical issues that also arise. The high-frequency oscillations mean the particle insertion protocol _A_ _molecular–continuum_ _method_ _for_ _unsteady_ _compressible_ _multiscale_ _flows_ 405 ( _a_ ) ( _b_ ) ( _c_ ) 6 1700 Full-MD 0 8000 16 000 0 8000 16 000 0 8000 16 000 200 0 –200 _FG_ 4 2 0 –2 –4 1500 1300 1100 6 1700 4 2 0 –2 –4 0 8000 16 000 0 8000 16 000 0 8000 16 000 1500 1300 1100 200 0 –200 6 1700 4 2 0 –2 –4 0 8000 16 000 0 8000 16 000 0 8000 16 000 1500 1300 1100 200 0 –200 6 1700 4 2 0 –2 –4 0 8000 16 000 0 8000 16 000 0 8000 16 000 1500 1300 1100 200 0 –200 6 1700 4 2 0 –2 –4 0 8000 16 000 0 8000 16 000 0 8000 16 000 _t_ (ps) _t_ (ps) _t_ (ps) 1500 1300 1100 200 0 –200 FIGURE 10. (Colour online) Transient results for the low-frequency oscillating unsteady flow (Case C) at each micro subdomain location: ( _a_ ) mass flow rate, ( _b_ ) mass density and ( _c_ ) average velocity are recorded from each MD subdomain location and compared with the result extracted from a corresponding bin of width 2.9 nm in the full-MD simulation. The density profiles have been smoothed using block-averaging to minimise the short timescale artefacts in the plots. (here, the USHER algorithm) has to work very hard to track high-frequency changes in density. Insertion of molecules in MD has a prohibitive computational overhead when the fluid is dense, as discussed in Delgado-Buscalioni & Coveney (2003) and Borg _et_ _al._ (2014). 4.3. _Computational_ _savings_ The primary motivation for adopting any molecular-continuum scheme is to obtain accurate results at a lower processing cost than a full-MD simulation. First, we present 406 _M._ _K._ _Borg,_ _D._ _A._ _Lockerby_ _and_ _J._ _M._ _Reese_ ( _a_ ) 50 ( _b_ ) 40 30 _gT_ 20 10 3.0 2.5 2.0 1.5 1.0 0.5 0 4000 8000 12 000 16 000 20 000 0 4000 8000 12 000 16 000 20 000 4000 8000 12 000 16 000 20 000 0 4000 8000 12 000 _t_ (ps) _t_ (ps) 0 FIGURE 11. (Colour online) ( _a_ ) Time micro gearing _(gT)_ and ( _b_ ) macro time step ( _�t_ ) varying with time ( _t_ ), for the variable frequency oscillating flow problem in Case D. The gearing is an indication of the computational savings over a fully coupled case. Note that the discontinuity in plot ( _a_ ) occurs because _N_ in (2.7) is an integer, and the nearest integer is calculated. in this section the measured computational speed-up of our hybrid simulations. This is obtained by dividing the total time spent for the full-MD simulation ( _tcomp_ <sup>_F_</sup> <sup>)</sup> <sup>by</sup> is obtained by dividing the total time spent for the full-MD simulation ( _tcomp_ <sup>_F_</sup> <sup>)</sup> <sup>by</sup> the time taken for the corresponding hybrid simulation ( _tcomp_ <sup>_H_</sup> <sup>),</sup> <sup>i.e.</sup> <sup>(</sup> <sup>_t_</sup> _comp_ <sup>_F_</sup> <sup>_/t_</sup> _comp_ <sup>_H_</sup> <sup>).</sup> <sup>The</sup> _comp_ <sup>_H_</sup> <sup>),</sup> <sup>i.e.</sup> <sup>(</sup> <sup>_tF_</sup> _comp_ <sup>_F_</sup> <sup>_/tH_</sup> the time taken for the corresponding hybrid simulation ( _tcomp_ <sup>_H_</sup> <sup>),</sup> <sup>i.e.</sup> <sup>(</sup> <sup>_t_</sup> _comp_ <sup>_F_</sup> <sup>_/t_</sup> _comp_ <sup>_H_</sup> <sup>).</sup> <sup>The</sup> speed-ups for all of the cases above are shown in figure 14. In order to make a fair comparison, the computational times for the full-MD and the hybrid simulations have been normalised by the number of allocated processors, as well as by the processing time required to reach the same signal-to-noise ratio. Naturally, the computational speed-up is modest for cases where accuracy is more sensitive to the micro gearing _gT_, such as in the less-time-scale-separated Cases A and B. However, a sizeable speed-up is achieved for the more scale-separated Cases C and D. Note that the computational savings in figure 14 should be compared with the level of accuracy in figure 8 in order to make a practical compromise. (However, in practice, when full-MD is too costly for a benchmark case, the accuracy of a hybrid result can be assessed by running spatial and temporal gearing independence studies.) The ability to apply gearing is an important feature of the hybrid method proposed here, and it is one that cannot be exploited in a full-MD approach. A useful task before running any simulations is to obtain an estimate of how much speed-up a hybrid simulation will potentially give. This will help decide which simulation approach to use: a full-MD or a hybrid approach. The spatial and temporal gearings, _gL_ and _gT_ respectively, can be used as an _a_ _priori_ indication of speed-up, with the total overall speed-up given by their product: _gL_ × _gT_ . To demonstrate how well this fits with the actual speed-ups we found, we plot this measure as dashed lines in figure 14. The agreement between the estimation and the actual speed-up is reasonable for most cases. That there is some computational overhead in the unsteady-IMM simulations of the more scale-separated cases is probably due to the cost incurred by the USHER algorithm in resolving the acoustic oscillations in density, as explained in § 4.2. _A_ _molecular–continuum_ _method_ _for_ _unsteady_ _compressible_ _multiscale_ _flows_ 407 ( _a_ ) ( _b_ ) ( _c_ ) 6 1700 Full-MD 4 1500 2 0 1300 200 0 –200 _FG_ –2 1700 1500 1300 1100 –4 0 8000 16 000 0 8000 16 000 0 8000 16 000 6 4 2 0 –2 –4 6 4 2 0 –2 1700 1500 1300 1100 1700 1500 1300 1100 200 0 –200 200 0 –200 0 8000 16 000 0 8000 16 000 0 8000 16 000 –4 0 8000 16 000 0 8000 16 000 0 8000 16 000 6 4 2 0 –2 1700 1500 1300 1100 200 0 –200 –4 0 8000 16 000 0 8000 16 000 0 8000 16 000 6 4 2 0 –2 1700 1500 1300 1100 200 0 –200 –4 0 8000 16 000 0 8000 16 000 0 8000 16 000 _t_ (ps) _t_ (ps) _t_ (ps) FIGURE 12. (Colour online) Transient results for the mixed frequency oscillating unsteady flow (Case D) at each micro subdomain location: ( _a_ ) mass flow rate, ( _b_ ) mass density and ( _c_ ) average velocity are recorded from each MD subdomain location and compared with the result extracted from a corresponding bin of width 2.9 nm in the full-MD simulation. The density profiles have been smoothed using block-averaging to minimise the short timescale artefacts in the plots. 4.4. _Highly_ _scale-separated_ _flows_ In the previous tests, the geometry of the converging–diverging channel, as well as the time scales of the macroscopic variables, were chosen such that a full-MD simulation would be able to validate our hybrid results. We now demonstrate the full potential of the unsteady-IMM method by showing its applicability to cases where much larger length- and time-scale separations exist, and show that speed-ups of orders of magnitude can be obtained. In such cases it is not practical to run a full-MD 408 _M._ _K._ _Borg,_ _D._ _A._ _Lockerby_ _and_ _J._ _M._ _Reese_ Case A Case C Theory 0 5 10 15 20 25 30 35 40 45 _gT_ FIGURE 13. (Colour online) Frequency of secondary oscillations varying with micro gearing. The secondary frequencies are taken from fast Fourier transforms of the mass flow rate measurements in the first micro subdomain, for Cases A and C. Comparisons are made with the frequency prediction from (4.8). Vertical lines indicate the range of density fluctuations observed in the hybrid simulations, which affect the speed of sound _c_ in (4.8). simulation, but we perform a gearing-dependency study to provide confidence in the predictions (as is done similarly for mesh selection in computational fluid dynamics, for example). The converging–diverging channel with the geometry described by (4.1) is made successively longer in the streamwise direction for three cases: _L_ = 1 µm, _L_ = 10 µm and _L_ = 100 µm. These are typical length scales for flows, e.g. through carbon nanotube membranes (e.g. _L_ = 34–126 µm in Majumder _et_ _al._ (2005)). The test problem we carry out in this section is a start-up flow, as in figure 4( _a_ ), where the gravity forcing in the three cases is set to _FG_ = 0 _._ 24 pN, _FG_ = 0 _._ 015 pN and _FG_ The = 3 _._ start-up89 fN, respectively.problem for relatively long channels exhibits a variety of time scales. At the beginning of the simulation the dynamics are fast, and the mass flow rate approaches the steady-state value very quickly, within ∼200 ps. In this time period the time-scale separation number is small, _ST_ = 1, and so in all cases we use a tight couplingsimulationbetweenhas muchmacroslowerand dynamics,micro timein scales,particular,i.e. _g_ the _T_ =pressure1. The andremainderdensityofhavethe much longer development times that are dependent on the length of the channel. This long development time in micro/nano channels has been observed in, e.g., Patronis _et_ _al._ (2013). During this time the scale separation is much larger, and the macroscopic time intervals can be made much greater than the micro time intervals without much loss in accuracy. This produces orders of magnitude of computational savings. For the first channel length case, _L_ = 1 µm, we find that the pressures in the channel reach a steady-state relatively quickly, and so we maintain a temporal gearing of _gT_ = 1 throughout the simulation. For the two longer channels, the development _A_ _molecular–continuum_ _method_ _for_ _unsteady_ _compressible_ _multiscale_ _flows_ 409 100 80 60 40 20 0 10 20 30 40 50 _gT_ FIGURE 14. (Colour online) Computational speed-up varying with micro gearing (in time) for all four Cases A–D relative to the full-MD simulation. Symbols denote exact speed-up measurements taken from processor clock times, while dashed lines are an estimate of the speed-upthe largestgivengearing.by _gL_ × _gT_ . Note, Case D has a varying gearing, so for this plot we select _L_ _(_ µm _)_ _gL_ Low gearing Medium gearing High gearing ( _Kg_ = 0 _._ 1) ( _Kg_ = 0 _._ 2) ( _Kg_ = 0 _._ 33) 10 500 _gT_ 22.5 45 72 _g_ 11 000 22 500 36 000 100 5000 _gT_ 217 436 720 _g_ 1000 000 2200 000 3600 000 TABLE 2. Computational speed-up estimateschannels.given by _g_ = _gL_ × _gT_ for the two long times are significantly longer and we allow the gearing to vary adaptively, depending on the case, as listed in table 2. The pressure results evolving in time in all three cases are shown in figure 15. The hybrid simulations for the shortest channel case ( _L_ = 1 µm) have no temporal gearing ( _gT_ = 1), so the profiles are presented here for comparison with the other two cases. The profiles in the medium-length channel ( _L_ = 10 µm) contain features of the shortest channel results across all of the subdomains, but naturally these occur over much longer time scales. What is also noteworthy is that the gearing chosen here does not produce any noticeable effect on the accuracy. For the pressure profiles in the longest channel ( _L_ = 100 µm), some deviations are observed across the three gearings chosen, but this may be because of the noisy (negligible) flow rates obtained in these simulations. Table 2 also gives estimates of the total speed-up _g_ that our hybrid simulations would obtain relative to full-MD simulations: the two longer cases are estimated to have speed-ups of _O(_ 10 <sup>4</sup> _)_ and _O(_ 10 <sup>6</sup> _)_, respectively. This is many orders of 410 _M._ _K._ _Borg,_ _D._ _A._ _Lockerby_ _and_ _J._ _M._ _Reese_ ( _a_ ) ( _b_ ) ( _c_ ) 400 800 1200 400 800 1200 400 800 1200 400 800 1200 400 800 1200 _t_ (ns) 1 2 3 4 5 6 7 1 2 3 4 5 6 7 1 2 3 4 5 6 7 1 2 3 4 5 6 7 1 2 3 4 5 6 7 _t_ (ns) _FG_ 800 600 400 200 0 800 600 400 200 0 800 600 400 200 0 800 600 400 200 0 800 600 400 200 0 800 600 400 200 0 800 600 400 200 0 800 600 400 200 0 800 600 400 200 0 800 600 400 200 0 1000 600 200 0 10 000 20 000 1000 600 200 0 10 000 20 000 800 600 400 200 0 10 000 20 000 800 600 400 200 0 10 000 20 000 800 600 400 200 0 10 000 20 000 _t_ (ns) _L_ FIGURE 15. (Colour online) Pressure _p_ (MPa) varying with time _t_ (ns) in each micro subdomain for the three different lengths of the converging–diverging channel. magnitude larger than speed-ups reported for other hybrid methods that use MD as their micro solver, i.e. _O(_ 10 <sup>1</sup> _)_ (Hadjiconstantinou & Patera 1997). Our approach therefore represents a positive step towards practical simulation of nano-channel flows in realistically large geometries, over longer time scales. 5. Conclusions We have presented an unsteady internal multiscale flow method (‘unsteady-IMM’) for simulating high-aspect-ratio flows with nano-scale confinement. Both length- and time-scale separation are treated. What is needed to demonstrate that a hybridisation scheme is accurate is that the hybrid model provides the same results as a full-resolution simulation over a range of conditions; what is needed to demonstrate that it is useful is that it obtains these results at a fraction of the computational cost of the full-resolution simulation. We have demonstrated both of these in the current paper. We have validated the unsteady-IMM method against full-MD simulations of a converging–diverging channel for various time-scale-separated flows. In all cases we established the sensitivity of the accuracy to the temporal gearing, which we showed _A_ _molecular–continuum_ _method_ _for_ _unsteady_ _compressible_ _multiscale_ _flows_ 411 is dependent on the time-scale separation _ST_ . We also demonstrated the potential of the method for highly scale-separated flows for which full-MD simulations are not possible. There is much further work possible. Here, _ST_ has been estimated at the outset of the problem. Future work could involve a step that determines _ST_ on-the-fly. Noise inherent in the MD subdomain simulations is also another problem. This could be resolved by smoothing techniques such as proper orthogonal decomposition (POD) or wavelet POD (WPOD) methods (Zimón _et_ _al._ 2014). The unsteady-IMM method is general, and so may be used with other micro models, such as the direct simulation Monte Carlo technique for modelling micro-channel rarefied gas flows. Evidently our method is limited by geometrical factors: unsteady-IMM may become less efficient as the channel width becomes larger, i.e. when the flow is no longer confined and non-continuum effects no longer dominate. In such cases, however, scale separation may exist in the direction normal to the wall and so an alternative hybrid approach would be the HMM-FWC method of Borg _et_ _al._ (2013 _a_ ). We also expect some limitations to the method as the width of the channel becomes much smaller, for example, for strands of molecules flowing in an aquaporin. In this case, however, a full-MD simulation may be tractable. Acknowledgements This work was financially supported in the UK by EPSRC Programme Grant EP/I011927/1 and EPSRC grants EP/K038664/1 and EP/K038621/1. Our calculations were performed on the high-performance computer ARCHIE at the University of Strathclyde, funded by EPSRC grants EP/K000586/1 and EP/K000195/1. The authors would like to thank M. Zimón of Daresbury Laboratory for providing a noise-reduction POD code (Zimón _et_ _al._ 2014) that we applied to the full-MD mass flow rate measurements in figure 7. Appendix A. MD parameters We use the Lennard-Jones 6–12 potential to describe all solid–liquid (s–l), and liquid–liquid (l–l) potentials: - _<u>σ</u>_ _rij_ _,_ (A 1) �12 �6 <sup>�</sup> _VLJ(rij)_ = 4 _ϵ_ �� _<u>σ</u>_ _rij_ where _ϵ_ and _σ_ are the potential’s characteristic energy and length scales, and _rij_ = | _r_ _i_ - _r_ _j_ | is the separation of two arbitrary molecules ( _i, j_ ) within a cut-off radius, _r_ cut = 1 _._ 36 nm. The interaction parameters are _σl_ - _l_ = 3 _._ 4 × 10 <sup>−10</sup> m, _ϵl_ - _l_ = 1 _._ 65678 × 10 <sup>−21</sup> J and _σs_ - _l_ = 2 _._ 55 × 10 <sup>−10</sup> m, _ϵs_ - _l_ = 0 _._ 33 × 10 <sup>−21</sup> J in (A 1), taken from Thompson & Troian (1997). Solid molecules are kept rigid and packed in a simple cubic lattice structure with a number density approximately 8 times larger than the fluid. A velocity unbiased Berendsen thermostat is applied in local bins at _T_ = 292 _._ 8 K. All parameters used in the full-MD simulations are identical with those in the MD subdomains. Appendix B. Pressure–density fit coefficients Table 3 lists the fitting coefficients _aj_ in the equation of state (3.13) for the different micro subdomains used in this paper. 412 _M._ _K._ _Borg,_ _D._ _A._ _Lockerby_ _and_ _J._ _M._ _Reese_ <u>Algorithm</u> <u>1</u> <u>Unsteady-IMM</u> <u>algorithm</u> _t_ = 0 while _t < tEND_ do _Φ_ 1 <sup>_t_</sup> _,...,Π_ <sup>,</sup> <sup>_ρ_</sup> 1 <sup>_t_</sup> _,...,Π_ <sup>,</sup> _Φ_ 1 <sup>_t_</sup> _,...,Π_ <sup>,</sup> <sup>_ρ_</sup> 1 <sup>_t_</sup> _,...,Π_ <sup>,</sup> <sup>_u_</sup> 1 <sup>_t_</sup> <sup>−</sup> _,...,Π_ <sup>_�t/_</sup> <sup>2,</sup> <sup>_Ut_</sup> Control _ρ_ 1 <sup>_t_</sup> _,...,Π_ <sup>using</sup> Control _ρ_ 1 <sup>_t_</sup> _,...,Π_ <sup>using</sup> <sup>USHER</sup> <sup>(Delgado-Buscalioni</sup> <sup>&</sup> <sup>Coveney</sup> <sup>2003)</sup> for _i_ = 0 to _Π_ do _i_ ← _i_ + 1 _u_ <sup>_t_</sup> _i_ <sup>−</sup> <sup>_Nδt/_</sup> <sup>2</sup> <sup>_t_</sup> _i_ <sup>−</sup> <sup>_Nδt/_</sup> <sup>2</sup> _i_ ← _u_ <sup>_t_</sup> <sup>−</sup> <sup>_�t/_</sup> <sup>2</sup> _i_ _i_ ← _u_ <sup>_t_</sup> _i_ _m_ ˙ <sup>_t_</sup> _i_ <sup>=</sup> <sup>_γ (ut_</sup> <sup>−</sup> <sup>_Nδ_</sup> _i_ <sup>_t_</sup> _i_ <sup>=</sup> <sup>_γ (ut_</sup> <sup>−</sup> <sup>_Nδt/_</sup> <sup>2</sup> _i_ _m_ ˙ <sup>_t_</sup> _i_ <sup>=</sup> <sup>_γ (ut_</sup> <sup>−</sup> <sup>_Nδt/_</sup> <sup>2</sup> _)/(N_ + 1 _)_ for _q_ = 0 to _N_ do _q_ ← _q_ + 1 _i_ <sup>_t_</sup> <sup>+</sup> <sup>_(q_</sup> <sup>+1−</sup> <sup>_N/_</sup> <sup>2</sup> <sup>_)δt_</sup> _i_ = _u_ <sup>_t_</sup> <sup>+</sup> <sup>_(q_</sup> <sup>−</sup> <sup>_N/_</sup> <sup>2</sup> <sup>_)δt_</sup> _ui_ <sup>_t_</sup> <sup>+</sup> <sup>_(q_</sup> <sup>+1−</sup> <sup>_N/_</sup> <sup>2</sup> <sup>_)δt_</sup> _i_ _i_ <sup>_t_</sup> <sup>+</sup> <sup>_(q_</sup> <sup>−</sup> <sup>_N/_</sup> <sup>2</sup> <sup>_)δt_</sup> + _δt_ _w(u_ <sup>_t_</sup> <sup>+</sup> <sup>_(q_</sup> <sup>−</sup> <sup>_N/_</sup> <sup>2</sup> <sup>_)δt_</sup> _ui_ <sup>_t_</sup> <sup>+</sup> <sup>_(q_</sup> <sup>+1−</sup> <sup>_N/_</sup> <sup>2</sup> <sup>_)δt_</sup> = _ui_ <sup>_t_</sup> <sup>+</sup> <sup>_(q_</sup> <sup>−</sup> <sup>_N/_</sup> <sup>2</sup> <sup>_)δt_</sup> + _δt_ _w(ui_ <sup>_t_</sup> <sup>+</sup> <sup>_(q_</sup> <sup>−</sup> <sup>_N/_</sup> <sup>2</sup> <sup>_)δt_</sup> _, Φi_ <sup>_t)_</sup> <sup>as</sup> <sup>per</sup> <sup>(C 2).</sup> _i_ _m_ ˙ <sup>_t_</sup> _i_ for <sup>=</sup> <sup>_m_</sup> <sup>˙</sup> <sup>_t_</sup> _i_ <sup>+</sup> <sup>_γ (ut_</sup> <sup>+</sup> <sup>_(q_</sup> <sup>+1−</sup> <sup>_N/_</sup> <sup>2</sup> <sup>_)δt_</sup> _)/(N_ + 1 _)_ as per (3.9). _i_ <sup>_t_</sup> _i_ <sup>+</sup> <sup>_γ (ut_</sup> <sup>+</sup> <sup>_(q_</sup> <sup>+1−</sup> <sup>_N/_</sup> <sup>2</sup> <sup>_)δt_</sup> _i_ <sup>_t_</sup> <sup>+</sup> <sup>_(q_</sup> <sup>−</sup> <sup>_N/_</sup> <sup>2</sup> <sup>_)δt_</sup> _, Φi_ <sup>_t_</sup> <sup>_t_</sup> _i_ for <sup>=</sup> <sup>_m_</sup> <sup>˙</sup> <sup>_t_</sup> _i_ _i_ end _m_ ˙ <sup>_t_</sup> _i_ for <sup>=</sup> <sup>_m_</sup> <sup>˙</sup> <sup>_t_</sup> _i_ <sup>+</sup> <sup>_γ (ut_</sup> <sup>+</sup> <sup>_(q_</sup> <sup>+1−</sup> <sup>_N/_</sup> <sup>2</sup> <sup>_)δt_</sup> _)/(N_ + 1 _)_ as per (3.9). _u_ <sup>_t_</sup> _i_ <sup>+</sup> <sup>_�t/_</sup> <sup>2</sup> _i_ ← _u_ <sup>_t_</sup> <sup>+</sup> <sup>_(N/_</sup> <sup>2</sup> <sup>_)δt_</sup> <sup>_t_</sup> _i_ <sup>+</sup> <sup>_�t/_</sup> <sup>2</sup> _i_ ← _u_ <sup>_t_</sup> <sup>+</sup> <sup>_(N/_</sup> <sup>2</sup> <sup>_)δt_</sup> for _i_ _i_ ← _u_ <sup>_t_</sup> <sup>+</sup> <sup>_(N/_</sup> <sup>2</sup> <sup>_)δt_</sup> end for Parallel communication of _m_ ˙ <sup>_t_</sup> 1 Variation of _Tmacro(t)_ . Parallel communication of _m_ ˙ <sup>_t_</sup> 1 _,...,Π_ <sup>,</sup> <sup>and</sup> <sup>linear-squares</sup> <sup>fit:</sup> <sup>_m_</sup> <sup>˙</sup> <sup>_t(s)_</sup> Variation of _Tmacro(t)_ . _ST_ → (2.3). _�t_ → (2.4). _N_ → (2.7). _gT_ → (2.5). _i_ 1 _,...,Π_ <sup>_)_</sup> <sup>as</sup> <sup>per</sup> <sup>(C1).</sup> _U_ <sup>_t_</sup> <sup>+</sup> <sup>_�t_</sup> = _U_ <sup>_t_</sup> + _�tW(u_ <sup>_t_</sup> <sup>+</sup> <sup>_�t/_</sup> <sup>2</sup> _,_ _m_ ˙ <sup>_t_</sup> _ρ_ <sup>_t_</sup> <sup>+</sup> <sup>_�t_</sup> _i_ 1 <sup>_t_</sup> <sup>+</sup> <sup>_�t/_</sup> <sup>2</sup> _,_ _m_ ˙ <sup>_t_</sup> _i_ 1 _,...,Π_ <sup>_)_</sup> <sup>as</sup> <sup>per</sup> <sup>(C1).</sup> _U_ <sup>_t_</sup> <sup>+</sup> <sup>_�t_</sup> = _U_ <sup>_t_</sup> + _�tW(u_ <sup>_t_</sup> <sup>+</sup> <sup>_�t/_</sup> <sup>2</sup> _,_ _m_ ˙ <sup>_t_</sup> _ρ_ 1 <sup>_t_</sup> <sup>+</sup> _,...,Π_ <sup>_�t_</sup> <sup>_(m_</sup> <sup>˙</sup> <sup>_t(s))_</sup> <sup>→</sup> <sup>(3.5).</sup> _ρ_ 1 <sup>_t_</sup> <sup>+</sup> _,...,Π_ <sup>_�t_</sup> <sup>_(m_</sup> <sup>˙</sup> <sup>_t(s))_</sup> <sup>→</sup> <sup>(3.5).</sup> _p_ <sup>_t_</sup> 1 <sup>+</sup> _,...,Π_ <sup>_�t_</sup> <sup>_(ρ_</sup> 1 <sup>_t_</sup> <sup>+</sup> _,...,Π_ <sup>_�t_</sup> <sup>_)_</sup> <sup>→</sup> <sup>(</sup> _p_ <sup>_t_</sup> 1 <sup>+</sup> _,...,Π_ <sup>_�t_</sup> <sup>_(ρ_</sup> 1 <sup>_t_</sup> <sup>+</sup> _,...,Π_ <sup>_�t_</sup> <sup>_)_</sup> <sup>→</sup> <sup>(3.13).</sup> Fit polynomial to _p_ <sup>_t_</sup> 1 <sup>+</sup> _,...,Π_ <sup>_�t_</sup> <sup>:</sup> Fit polynomial to _p_ <sup>_t_</sup> 1 <sup>+</sup> _,...,Π_ <sup>_�t_</sup> <sup>:</sup> <sup>_pt(s)_</sup> <sup>.</sup> _Φ_ 1 <sup>_t_</sup> <sup>+</sup> _,...,Π_ <sup>_�t_</sup> <sup>←</sup> <sup>_Γ (Ut_</sup> <sup>+</sup> <sup>_�t)_</sup> <sup>as</sup> <sup>per</sup> <sup>(</sup> 1 <sup>_t_</sup> <sup>+</sup> _,...,Π_ <sup>_�t_</sup> <sup>←</sup> <sup>_Γ (Ut_</sup> <sup>+</sup> <sup>_�t)_</sup> <sup>as</sup> <sup>per</sup> <sup>(3.12).</sup> _t_ <u>←</u> _t_ <u>+</u> _�t_ . <u>end</u> <u>while</u> Appendix C. Hybrid algorithm Algorithm 1 gives an overview of the unsteady-IMM method in algorithmic format. Let the system be represented by the coupled macro and micro equations (E, Ren & Vanden-Eijnden 2009): _<u>∂U</u>_ _∂t_ <sup>=</sup> <sup>_W(U_</sup> <sup>;</sup> <sup>_γ (u)),_</sup> _(_ macro _)_ (C 1) _<u>∂u</u>_ _<u>∂u</u>_ with initial conditions _∂t_ <sup>=</sup> <sup>_w(u_</sup> <sup>;</sup> <sup>_Γ (U)),_</sup> _(_ micro _)_ (C 2) _U_ = _U_ <sup>0</sup> and _u_ = _u_ <sup>0</sup> _,_ (C 3 _a,b_ ) where _u_ are the micro-state variables (i.e. molecular positions and velocities in all subdomains), _U_ are the macro state variables and the operators _W_ and _w_ represent the macro and micro models, respectively. The superscript denotes a time index. The _A_ _molecular–continuum_ _method_ _for_ _unsteady_ _compressible_ _multiscale_ _flows_ 413 _h_ × 10 <sup>9</sup> _a_ 0 × 10 <sup>3</sup> _a_ 1 _a_ 2 _a_ 3 × 10 <sup>−4</sup> _a_ 4 × 10 <sup>−7</sup> (m) _(_ m <sup>11</sup> s <sup>−2</sup> kg <sup>−3</sup> _)_ _(_ m <sup>8</sup> s <sup>−2</sup> kg <sup>−2</sup> _)_ _(_ m <sup>5</sup> s <sup>−2</sup> kg <sup>−1</sup> _)_ _(_ m <sup>2</sup> s <sup>−2</sup> _)_ _(_ kg m <sup>−1</sup> s <sup>−2</sup> _)_ 3.40 0.252 −0.436 376.5 −8.432 1.908 2.93 0.263 −0.467 418.3 −10.380 2.162 2.17 0.216 −0.264 160.5 3.440 −0.400 TABLE 3. Least-squares fit coefficients, _aj_, _(j_ = 0 _,_ 1 _,_ 2 _,_ 3 _,_ 4 _)_ for each micro subdomain, required by (3.13). Values are presented in SI units. required by (3.13). Values are presented in SI units. operators _γ_ and _Γ_ represent models for processing variables passed between the macro and micro models, given by _m_ ˙ = _γ (u),_ (C 4) and respectively. _Φ_ = _Γ (U),_ (C 5) REFERENCES ALLEN, M. P. & TILDESLEY, D. J. 1987 _Computer_ _Simulation_ _of_ _Liquids_ . Oxford University Press. ASPROULIS, N., KALWEIT, M. & DRIKAKIS, D. 2012 A hybrid molecular continuum method using point wise coupling. _Adv._ _Engng_ _Softw._ 46 (1), 85–92. BORG, M. K., LOCKERBY, D. A. & REESE, J. M. 2013 _a_ Fluid simulations with atomistic resolution: a hybrid multiscale method with field-wise coupling. _J._ _Comput._ _Phys._ 255, 149–165. BORG, M. K., LOCKERBY, D. A. & REESE, J. M. 2013 _b_ A hybrid molecular–continuum simulation method for incompressible flows in micro/nanofluidic networks. _Microfluid_ _Nanofluid_ 15 (4), 541–557. BORG, M. K., LOCKERBY, D. A. & REESE, J. M. 2013 _c_ A multiscale method for micro/nano flows of high aspect ratio. _J._ _Comput._ _Phys._ 233, 400–413. BORG, M. K., LOCKERBY, D. A. & REESE, J. M. 2014 The FADE mass-stat: a technique for inserting or deleting particles in molecular dynamics simulations. _J._ _Chem._ _Phys._ 140, 074110. DELGADO-BUSCALIONI, R. & COVENEY, P. V. 2003 USHER: an algorithm for particle insertion in dense fluids. _J._ _Chem._ _Phys._ 119 (2), 978–987. E, W., REN, W. & VANDEN-EIJNDEN, E. 2009 A general strategy for designing seamless multiscale methods. _J._ _Comput._ _Phys._ 228 (15), 5437–5453. GAD-EL-HAK, M. 2005 _MEMS:_ _Introduction_ _and_ _Fundamentals_, 2nd edn. CRC Press. HADJICONSTANTINOU, N. & PATERA, A. 1997 Heterogeneous atomistic-continuum methods for dense fluid systems. _Intl_ _J._ _Mod._ _Phys._ C 8 (4), 967–976. HEO, S. J., SINNOTT, S. B., BRENNER, D. W. & HARRISON, J. A. 2005 Computational modeling of nanometer-scale tribology. In _Nanotribology_ _and_ _Nanomechanics_ (ed. B. Bhushan), pp. 623–691. Springer. HOLLAND, D. M., LOCKERBY, D. A., BORG, M. K., NICHOLLS, W. D. & REESE, J. M. 2014 Molecular dynamics pre-simulations for nano-scale computational fluid dynamics. _Microfluid_ _Nanofluid_ 18 (3), 461–474. HOLT, J. K., PARK, H. G., WANG, Y., STADERMANN, M., ARTYUKHIN, A. B., GRIGOROPOULOS, C. P., NOY, A. & BAKAJIN, O. 2006 Fast mass transport through sub-2-nanometer carbon nanotubes. _Science_ 312 (5776), 1034–1037. KESSLER, D. A., ORAN, E. S. & KAPLAN, C. R. 2010 Towards the development of a multiscale, multiphysics method for the simulation of rarefied gas flows. _J._ _Fluid_ _Mech._ 661, 262–293. 414 _M._ _K._ _Borg,_ _D._ _A._ _Lockerby_ _and_ _J._ _M._ _Reese_ LEE, K. P., LEESE, H. & MATTIA, D. 2012 Water flow enhancement in hydrophilic nanochannel. _Nanoscale_ 4 (8), 2621–2627. LOCKERBY, D. A., DUQUE-DAZA, C. A., BORG, M. K. & REESE, J. M. 2013 Time-step coupling for hybrid simulations of multiscale flows. _J._ _Comput._ _Phys._ 237, 344–365. MACPHERSON, G. B. & REESE, J. M. 2008 Molecular dynamics in arbitrary geometries: parallel evaluation of pair forces. _Mol._ _Simul._ 34 (1), 97–115. MAJUMDER, M., CHOPRA, N., ANDREWS, R. & HINDS, B. J. 2005 Nanoscale hydrodynamics: enhanced flow in carbon nanotubes. _Nature_ 438, 44. MANTZALIS, D., ASPROULIS, N. & DRIKAKIS, D. 2011 Filtering carbon dioxide through carbon nanotubes. _Chem._ _Phys._ _Lett._ 506 (1–3), 81–85. MOHAMED, K. & MOHAMAD, A. 2010 A review of the development of hybrid atomistic-continuum methods for dense fluids. _Microfluid_ _Nanofluid_ 8, 283–302. NIE, X. B., CHEN, S. Y., E, W. & ROBBINS, M. O. 2004 A continuum and molecular dynamics hybrid method for micro- and nano-fluid flow. _J._ _Fluid_ _Mech._ 500, 55–64. O’CONNELL, S. T. & THOMPSON, P. A. 1995 Molecular dynamics–continuum hybrid computations: a tool for studying complex fluid flows. _Phys._ _Rev._ E 52, R5792–R5795. PATRONIS, A. & LOCKERBY, D. A. 2014 Multiscale simulation of non-isothermal microchannel gas flows. _J._ _Comput._ _Phys._ 270, 532–543. PATRONIS, A., LOCKERBY, D. A., BORG, M. K. & REESE, J. M. 2013 Hybrid continuum–molecular modelling of multiscale internal gas flows. _J._ _Comput._ _Phys._ 255, 558–571. REN, W. & E, W. 2005 Heterogeneous multiscale method for the modeling of complex fluids and micro-fluidics. _J._ _Comput._ _Phys._ 204 (1), 1–26. RITOS, K., DONGARI, N., BORG, M. K., ZHANG, Y. & REESE, J. M. 2013 Dynamics of nanoscale droplets on moving surfaces. _Langmuir_ 29 (23), 6936–6943. SOMERS, S. A. & DAVIS, H. T. 1992 Microscopic dynamics of fluids confined between smooth and atomically structured solid surfaces. _J._ _Chem._ _Phys._ 96 (7), 5389–5407. STEPHENSON, D., LOCKERBY, D. A., BORG, M. K., NICHOLLS, W. D. & REESE, J. M. 2014 Multiscale simulation of nano-fluidic networks of arbitrary complexity. _Microfluid_ _Nanofluid_ ; [doi:10.1007/s10404-014-1476-x.](http://dx.doi.org/10.1007/s10404-014-1476-x) THOMPSON, P. A. & TROIAN, S. M. 1997 A general boundary condition for liquid flow at solid surfaces. _Nature_ 389 (6649), 360–362. TODD, B. D., HANSEN, J. S. & DAIVIS, P. J. 2008 Nonlocal shear stress for homogeneous fluids. _Phys._ _Rev._ _Lett._ 100, 195901. YASUDA, S. & YAMAMOTO, R. 2008 A model for hybrid simulations of molecular dynamics and computational fluid dynamics. _Phys._ _Fluids_ 20 (11), 113101. ZIMÓN, M. J., GRINBERG, L., REESE, J. M. & EMERSON, D. R. 2014 A noise reduction algorithm for nano-scale molecular fluids. In _Proceedings_ _of_ _the_ _5th_ _International_ _Conference_ _on_ _Heat_ _Transfer_ _and_ _Fluid_ _Flow_ _in_ _Microscale_ _(HTFFM-V)._ _Marseille,_ _France_ .

섹션 본문

섹션 본문이 없습니다.

참고문헌 36건

  1. Computational Modeling of Nanometer-Scale Tribology Springer eBooks · Springer Nature · 2006 10.1007/3-540-28248-3_13
  2. A general boundary condition for liquid flow at solid surfaces Nature · Nature Portfolio · 1997 10.1038/38686
  3. A model for hybrid simulations of molecular dynamics and computational fluid dynamics Physics of Fluids · American Institute of Physics · 2008 10.1063/1.3003218
  4. Heterogeneous Atomistic-Continuum Representations for Dense Fluid Systems International Journal of Modern Physics C · World Scientific · 1997 10.1142/s0129183197000837
  5. Fluid simulations with atomistic resolution: a hybrid multiscale method with field-wise coupling Journal of Computational Physics · Elsevier BV · 2013 10.1016/j.jcp.2013.08.022
  6. Nonlocal Shear Stress for Homogeneous Fluids Physical Review Letters · American Physical Society · 2008 10.1103/physrevlett.100.195901
  7. Nanoscale hydrodynamics: Enhanced flow in carbon nanotubes Nature · Nature Portfolio · 2005 10.1038/43844a
  8. Fast Mass Transport Through Sub-2-Nanometer Carbon Nanotubes Science · American Association for the Advancement of Science · 2006 10.1126/science.1126298
  9. A review of the development of hybrid atomistic–continuum methods for dense fluids Microfluidics and Nanofluidics · Springer Science+Business Media · 2009 10.1007/s10404-009-0529-z
  10. Computer Simulation of Liquids 2017 10.1093/oso/9780198803195.001.0001
  11. Multiscale simulation of nanofluidic networks of arbitrary complexity Microfluidics and Nanofluidics · Springer Science+Business Media · 2014 10.1007/s10404-014-1476-x
  12. Towards the development of a multiscale, multiphysics method for the simulation of rarefied gas flows Journal of Fluid Mechanics · Cambridge University Press · 2010 10.1017/s0022112010002934
  13. Water flow enhancement in hydrophilic nanochannels Nanoscale · Royal Society of Chemistry · 2012 10.1039/c2nr30098b
  14. Microscopic dynamics of fluids confined between smooth and atomically structured solid surfaces The Journal of Chemical Physics · American Institute of Physics · 1992 10.1063/1.462724
  15. <scp>USHER</scp>: An algorithm for particle insertion in dense fluids The Journal of Chemical Physics · American Institute of Physics · 2003 10.1063/1.1579475
  16. A hybrid molecular continuum method using point wise coupling Advances in Engineering Software · Elsevier BV · 2010 10.1016/j.advengsoft.2010.10.010
  17. Molecular dynamics–continuum hybrid computations: A tool for studying complex fluid flows Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics · American Physical Society · 1995 10.1103/physreve.52.r5792
  18. A general strategy for designing seamless multiscale methods Journal of Computational Physics · Elsevier BV · 2009 10.1016/j.jcp.2009.04.030
  19. A multiscale method for micro/nano flows of high aspect ratio Journal of Computational Physics · Elsevier BV · 2012 10.1016/j.jcp.2012.09.009
  20. Multiscale simulation of non-isothermal microchannel gas flows Journal of Computational Physics · Elsevier BV · 2014 10.1016/j.jcp.2014.04.004
  21. Heterogeneous multiscale method for the modeling of complex fluids and micro-fluidics Journal of Computational Physics · Elsevier BV · 2004 10.1016/j.jcp.2004.10.001
  22. Time-step coupling for hybrid simulations of multiscale flows Journal of Computational Physics · Elsevier BV · 2012 10.1016/j.jcp.2012.11.032
  23. A continuum and molecular dynamics hybrid method for micro- and nano-fluid flow Journal of Fluid Mechanics · Cambridge University Press · 2004 10.1017/s0022112003007225
  24. Dynamics of Nanoscale Droplets on Moving Surfaces Langmuir · American Chemical Society · 2013 10.1021/la401131x
  25. Molecular dynamics pre-simulations for nanoscale computational fluid dynamics Microfluidics and Nanofluidics · Springer Science+Business Media · 2014 10.1007/s10404-014-1443-6
  26. Hybrid continuum–molecular modelling of multiscale internal gas flows Journal of Computational Physics · Elsevier BV · 2013 10.1016/j.jcp.2013.08.033
  27. The FADE mass-stat: A technique for inserting or deleting particles in molecular dynamics simulations The Journal of Chemical Physics · American Institute of Physics · 2014 10.1063/1.4865337
  28. Filtering carbon dioxide through carbon nanotubes Chemical Physics Letters · Elsevier BV · 2011 10.1016/j.cplett.2011.02.054
  29. A hybrid molecular-continuum simulation method for incompressible flows in micro/nanofluidic networks Microfluidics and Nanofluidics · Springer Science+Business Media · 2013 10.1007/s10404-013-1168-y
  30. Molecular dynamics in arbitrary geometries: Parallel evaluation of pair forces Molecular Simulation · Taylor & Francis · 2008 10.1080/08927020801930554
  31. Enhanced flow in carbon nanotubes Nature · Nature Portfolio · 2005 10.1038/438044a
  32. Heterogeneous Atomistic-Continuum Methods for Dense Fluid Systems APS Meeting Abstracts · 1997
  33. <scp>USHER</scp>: An algorithm for particle insertion in dense fluids The Journal of Chemical Physics · American Institute of Physics · 2003 10.1063/1.1579475
  34. Computer Simulation of Liquids Journal of Molecular Liquids · Elsevier BV · 1988 10.1016/0167-7322(88)80022-9
  35. MEMS CRC Press eBooks · Informa · 2005 10.1201/9781420036558
  36. MEMS CRC Press eBooks · Informa · 2005 10.1201/9781420036572